@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #070b12;
  --bg-2: #0b1320;
  --bg-grad-1: #14203a;
  --bg-grad-2: #0e2a29;
  --ink: #e8eef9;
  --muted: #bbc7dc;
  --accent: #24d2a4;
  --accent-2: #f4b740;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(11, 19, 32, 0.7);
  --overlay: rgba(3, 7, 12, 0.75);
  --panel: #0b1320;
  --shadow: 0 30px 80px rgba(2, 6, 23, 0.6);
  --orbit-1: rgba(36, 210, 164, 0.2);
  --orbit-2: rgba(244, 183, 64, 0.18);
  --surface-1: rgba(7, 11, 18, 0.7);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: rgba(255, 255, 255, 0.03);
  --surface-4: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-strong: rgba(255, 255, 255, 0.12);
  --surface-border-soft: rgba(255, 255, 255, 0.1);
  --surface-outline: rgba(255, 255, 255, 0.2);
  --surface-input: rgba(7, 11, 18, 0.8);
  --cta-strip-bg: linear-gradient(135deg, rgba(36, 210, 164, 0.25), rgba(36, 210, 255, 0.15));
  --footer-bg: rgba(5, 9, 14, 0.9);
  --grid-line: rgba(255, 255, 255, 0.05);
  --logo-bg: #ffffff;
  --logo-shadow: none;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  color-scheme: dark;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-2: #e9eef6;
  --bg-grad-1: #dfe7f5;
  --bg-grad-2: #d9f0ec;
  --ink: #0d1624;
  --muted: #4b5a6d;
  --line: rgba(12, 22, 36, 0.12);
  --glass: rgba(255, 255, 255, 0.7);
  --overlay: rgba(10, 16, 24, 0.25);
  --panel: #ffffff;
  --shadow: 0 30px 80px rgba(8, 16, 28, 0.15);
  --orbit-1: rgba(36, 210, 164, 0.12);
  --orbit-2: rgba(244, 183, 64, 0.12);
  --surface-1: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(255, 255, 255, 0.75);
  --surface-3: rgba(255, 255, 255, 0.6);
  --surface-4: rgba(14, 24, 40, 0.06);
  --surface-border: rgba(12, 22, 36, 0.12);
  --surface-border-strong: rgba(12, 22, 36, 0.18);
  --surface-border-soft: rgba(12, 22, 36, 0.12);
  --surface-outline: rgba(12, 22, 36, 0.2);
  --surface-input: rgba(255, 255, 255, 0.95);
  --cta-strip-bg: linear-gradient(135deg, rgba(36, 210, 164, 0.2), rgba(36, 210, 255, 0.12));
  --footer-bg: rgba(232, 238, 246, 0.9);
  --grid-line: rgba(12, 22, 36, 0.08);
  --logo-bg: transparent;
  --logo-shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% -10%, var(--bg-grad-1) 0%, transparent 60%),
    radial-gradient(900px 700px at 90% 10%, var(--bg-grad-2) 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.bg-orbit {
  position: fixed;
  inset: -40% 0 auto 0;
  height: 120vh;
  background: radial-gradient(circle at 20% 30%, var(--orbit-1), transparent 55%),
    radial-gradient(circle at 70% 20%, var(--orbit-2), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220" viewBox="0 0 220 220"><filter id="n" x="0" y="0"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="220" height="220" filter="url(%23n)" opacity="0.05"/></svg>');
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand span {
  position: relative;
}

.brand.effect-gradient span {
  background: linear-gradient(90deg, #ffffff 0%, #baf9eb 35%, #77dbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(36, 210, 164, 0.25);
}

.brand.effect-underline span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(36, 210, 164, 0.15),
    rgba(36, 210, 164, 0.6),
    rgba(36, 210, 164, 0.15),
    transparent
  );
  opacity: 0.9;
  transform: translateX(-35%);
  animation: underlineSweep 2.4s ease-in-out infinite;
}

.brand.effect-chip span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 210, 164, 0.45);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--surface-border);
}

@keyframes underlineSweep {
  0% {
    transform: translateX(-35%);
    opacity: 0.7;
  }
  50% {
    transform: translateX(35%);
    opacity: 1;
  }
  100% {
    transform: translateX(-35%);
    opacity: 0.7;
  }
}

.brand img {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  background: var(--logo-bg);
  box-shadow: none;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-right: 4px;
  transition: color 0.3s ease;
}

.lang-label.pulse {
  color: var(--accent);
}

.lang-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.lang-btn[aria-pressed='true'] {
  color: var(--ink);
  border-color: rgba(36, 210, 164, 0.6);
  box-shadow: inset 0 0 0 1px rgba(36, 210, 164, 0.2);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent), #1ec6ff);
  color: #041016;
  box-shadow: 0 16px 40px rgba(36, 210, 164, 0.25);
}

.nav-cta {
  position: relative;
  overflow: hidden;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: rgba(36, 210, 164, 0.6);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6px;
}

.theme-toggle .theme-icon-dark {
  fill: currentColor;
  stroke: none;
}

html[data-theme='light'] .theme-icon-light {
  display: none;
}

html:not([data-theme='light']) .theme-icon-dark {
  display: none;
}

.nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.nav-cta:hover::after {
  transform: translateX(120%);
}

.nav-cta.sheen::after {
  animation: sheenSweep 0.7s ease;
}

.cta.ghost {
  border-color: var(--surface-outline);
  color: var(--ink);
  background: transparent;
}

.cta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 6;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: absolute;
  top: 80px;
  right: 20px;
  left: 20px;
  background: var(--panel);
  border: 1px solid var(--surface-border-strong);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.mobile-lang {
  display: inline-flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 120px 0 80px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 16px 0;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.metric-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-4);
  color: var(--accent);
  flex-shrink: 0;
}

.metric-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.metric-card.accent-cobalt .metric-icon {
  color: #5ab4ff;
}

.metric-card.accent-amber .metric-icon {
  color: #f4b740;
}

.metric-card.accent-primary .metric-icon {
  color: var(--accent);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(36, 210, 164, 0.35), rgba(244, 183, 64, 0.25), transparent);
  filter: blur(10px);
  animation: orbit 12s linear infinite;
  z-index: 0;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.glass-card {
  width: min(420px, 100%);
  background: var(--glass);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  z-index: 1;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--surface-outline);
  font-size: 0.75rem;
}

.card-body {
  margin-top: 30px;
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.signal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.signal-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.signal-bar.alt {
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

.floating-pill {
  position: absolute;
  bottom: -18px;
  right: 0;
  background: var(--surface-4);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--surface-border-strong);
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  scroll-margin-top: 96px;
}

.section-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cap-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  padding: 28px;
  border-radius: var(--radius-md);
  min-height: 180px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 210, 164, 0.55);
  box-shadow: 0 22px 50px rgba(36, 210, 164, 0.28);
}

.cap-card.primary {
  border-color: rgba(36, 210, 164, 0.5);
  box-shadow: 0 18px 40px rgba(36, 210, 164, 0.2);
}

.cap-card.primary .cap-icon {
  color: var(--accent);
}

.cap-card.accent-cobalt {
  border-color: rgba(90, 180, 255, 0.5);
  box-shadow: 0 18px 40px rgba(90, 180, 255, 0.18);
}

.cap-card.accent-cobalt .cap-icon {
  color: #5ab4ff;
}

.cap-card.accent-cobalt:hover {
  border-color: rgba(90, 180, 255, 0.65);
  box-shadow: 0 22px 50px rgba(90, 180, 255, 0.28);
}

.cap-card.accent-amber {
  border-color: rgba(244, 183, 64, 0.55);
  box-shadow: 0 18px 40px rgba(244, 183, 64, 0.2);
}

.cap-card.accent-amber .cap-icon {
  color: #f4b740;
}

.cap-card.accent-amber:hover {
  border-color: rgba(244, 183, 64, 0.75);
  box-shadow: 0 22px 50px rgba(244, 183, 64, 0.3);
}

.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 12px;
}

.cap-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.cap-card:hover .cap-icon svg {
  transform: scale(1.2);
}

.ai-example {
  margin-top: 36px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border-soft);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ai-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.ai-flow span {
  padding: 8px 12px;
  background: var(--surface-4);
  border-radius: 999px;
}

.ai-arrow {
  color: var(--accent);
}

.portfolio-grid {
  display: grid;
  gap: 24px;
}

.portfolio-block {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-3);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.logo-row.ai-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.logo-row.catdai-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-row.catdai-row .logo-card:first-child {
  flex: 1 1 320px;
}

.logo-row.catdai-row .catdai-cta-card {
  flex: 0 0 auto;
}
.logo-row.ai-row .ai-card {
  flex: 1 1 320px;
}

.logo-row.ai-row .ai-cta-card {
  flex: 0 0 auto;
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  font-size: 0.85rem;
  text-align: left;
}

.logo-card.link-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.logo-card.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 210, 164, 0.45);
  box-shadow: 0 14px 30px rgba(2, 10, 22, 0.35);
  background: linear-gradient(120deg, rgba(36, 210, 164, 0.08), var(--surface-1));
}

.logo-meta span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.logo-meta span:last-child {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-cta-card {
  width: fit-content;
  align-items: center;
  justify-content: center;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.ai-cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.ai-cta-card:hover::after {
  transform: translateX(120%);
}

.ai-cta-card.sheen::after {
  animation: sheenSweep 0.7s ease;
}

@keyframes sheenSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.catdai-cta-card {
  position: relative;
  overflow: hidden;
}

.catdai-cta-card .cta-icon {
  color: #79931f;
}

.catdai-cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(121, 147, 31, 0.22), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.catdai-cta-card:hover::after {
  transform: translateX(120%);
}

.catdai-cta-card.sheen::after {
  animation: sheenSweep 0.7s ease;
}

@media (max-width: 720px) {
  .ai-card {
    flex-direction: row;
    align-items: center;
  }
  .ai-cta {
    margin-left: 0;
  }
}

.logo-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.cta-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cc5500;
  flex-shrink: 0;
}

.cta-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ai-cta-card {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.ai-cta-card .logo-meta {
  gap: 0;
}

.logo-meta {
  display: grid;
  gap: 0;
  flex: 1;
}

.logo-meta a {
  color: var(--ink);
  font-weight: 600;
}

.logo-meta span {
  color: var(--muted);
  font-size: 0.8rem;
}

.portfolio-sub {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.portfolio-cta {
  margin-top: 18px;
}

.portfolio-cta .cta.ghost {
  border-color: rgba(36, 210, 164, 0.45);
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.checklist {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.checklist li {
  position: relative;
  padding-left: 28px;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.method-stack {
  display: grid;
  gap: 16px;
}

.stack-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border-soft);
  background: var(--surface-1);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.stack-card.active {
  border-color: rgba(36, 210, 164, 0.65);
  box-shadow: 0 16px 34px rgba(36, 210, 164, 0.2);
  background: rgba(10, 18, 28, 0.9);
  transform: translateY(-2px);
}

html[data-theme='light'] .stack-card.active {
  background: rgba(240, 246, 255, 0.9);
  box-shadow: 0 16px 34px rgba(36, 210, 164, 0.15);
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  --step-color: var(--accent-2);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.step {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--accent-2);
}

.timeline-item:nth-child(1) {
  --step-color: #24d2a4;
}

.timeline-item:nth-child(2) {
  --step-color: #5ab4ff;
}

.timeline-item:nth-child(3) {
  --step-color: #f4b740;
}

.timeline-item:nth-child(4) {
  --step-color: #7ddc6b;
}

.timeline-item.active {
  border-color: color-mix(in srgb, var(--step-color) 70%, transparent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--step-color) 24%, transparent);
  background: rgba(10, 18, 28, 0.85);
  transform: translateY(-2px);
}

html[data-theme='light'] .timeline-item.active {
  background: rgba(240, 246, 255, 0.9);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--step-color) 18%, transparent);
}

.timeline-item.active .step {
  color: var(--step-color);
  text-shadow: 0 0 18px color-mix(in srgb, var(--step-color) 55%, transparent);
  animation: stepPulse 1.6s ease;
}

@keyframes stepPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.cta-strip {
  background: var(--cta-strip-bg);
  padding: 60px 0;
}

.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  background: var(--surface-input);
  border: 1px solid var(--surface-border-soft);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-success {
  font-size: 0.85rem;
  color: var(--accent);
}

.secondary-cta {
  margin-top: 18px;
}

.secondary-cta a {
  color: var(--accent);
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: var(--footer-bg);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-actions .lang-btn,
  .nav-actions .theme-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav {
    justify-content: space-between;
  }
  .hero {
    padding-top: 90px;
  }
  .cta-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .step {
    margin-bottom: 8px;
  }
  .cap-card {
    padding: 22px;
  }
  .cap-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .cap-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ai-example p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .nav-actions .nav-cta {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .nav-actions .theme-toggle,
  .nav-actions .lang-btn {
    display: none;
  }
  .logo-row.catdai-row .catdai-cta-card,
  .logo-row.ai-row .ai-cta-card {
    width: 100%;
  }
  .logo-row.catdai-row .logo-card:first-child,
  .logo-row.ai-row .ai-card {
    flex: 1 1 100%;
  }
  .logo-row:not(.ai-row):not(.catdai-row) {
    grid-template-columns: 1fr;
  }
  .logo-row:not(.ai-row):not(.catdai-row) .logo-card {
    width: 100%;
  }
  .portfolio-block h3 {
    font-size: 1rem;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--surface-border);
  }
  .timeline-item {
    padding-top: 28px;
  }
}
