*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════
   DESIGN TOKENS — DARK MODE (default)
   ══════════════════════════════════════════ */
:root {
  --bg:          #0B1829;
  --bg-alt:      #132238;
  --surface:     #0F2035;
  --text:        #F7F9FC;
  --text-muted:  #8A9BB0;
  --accent:      #00C9B1;
  --accent-dim:  rgba(0,201,177,0.12);
  --accent-glow: rgba(0,201,177,0.35);
  --border:      rgba(255,255,255,0.07);
  --nav-bg:      rgba(11,24,41,0.85);
  --shadow:      rgba(0,0,0,0.30);
  --noise-opacity: 0.40;

  /* Legacy aliases — keeps all component CSS and inline HTML styles working */
  --navy:     var(--bg);
  --navy-mid: var(--bg-alt);
  --teal:     var(--accent);
  --teal-dim: var(--accent-dim);
  --teal-glow: var(--accent-glow);
  --white:    var(--text);
  --muted:    var(--text-muted);
  --card-bg:  var(--surface);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

/* ══════════════════════════════════════════
   DESIGN TOKENS — LIGHT MODE
   ══════════════════════════════════════════ */
html[data-theme="light"] {
  --bg:          #F1F4F8;
  --bg-alt:      #E5E9F0;
  --surface:     #FFFFFF;
  --text:        #0D1829;
  --text-muted:  #5A6B80;
  --accent:      #00C9B1;
  --accent-dim:  rgba(0,201,177,0.10);
  --accent-glow: rgba(0,201,177,0.22);
  --border:      rgba(13,24,41,0.10);
  --nav-bg:      rgba(241,244,248,0.92);
  --shadow:      rgba(0,20,50,0.08);
  --noise-opacity: 0.12;
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: var(--noise-opacity);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--teal); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--teal); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal);
  color: #0D1829; /* always dark on teal — high contrast in both themes */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: #00E5CA;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--teal-glow);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--teal);
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--teal-dim);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,201,177,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,177,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,177,0.12) 0%, transparent 70%);
  top: -100px; right: -200px;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,100,255,0.08) 0%, transparent 70%);
  bottom: 50px; left: -100px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 2;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,201,177,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h1 em {
  font-style: normal;
  color: var(--teal);
  position: relative;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
  font-weight: 400;
}

.hero-ctas {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex; gap: 32px;
}
.stat {
  display: flex; flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-num span { color: var(--teal); }
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Hero right — mock browser window */
.hero-visual {
  position: relative;
}
.browser-window {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  transition: transform 0.4s;
}
.browser-window:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

.browser-bar {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.browser-content {
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.mock-hero-bar {
  height: 140px;
  background: linear-gradient(135deg, rgba(0,201,177,0.15), rgba(0,100,200,0.1));
  border-radius: 8px;
  border: 1px solid rgba(0,201,177,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.mock-hero-bar .mock-h { width: 60%; height: 12px; background: rgba(255,255,255,0.5); border-radius: 4px; }
.mock-hero-bar .mock-sub { width: 40%; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.mock-hero-bar .mock-btn { width: 80px; height: 28px; background: var(--teal); border-radius: 4px; margin-top: 4px; opacity: 0.9; }
.mock-cards {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
}
.mock-card {
  height: 70px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.mock-card .mc-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); opacity: 0.6; }
.mock-card .mc-line { width: 50%; height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; }
.mock-card .mc-line-s { width: 35%; height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.mock-row {
  display: flex; gap: 8px;
}
.mock-text-block { flex: 2; height: 48px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; }
.mock-img-block { flex: 1; height: 48px; background: rgba(0,201,177,0.1); border: 1px solid rgba(0,201,177,0.15); border-radius: 6px; }

/* Score badge */
.score-badge {
  position: absolute;
  bottom: -20px; left: -30px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  min-width: 180px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.score-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 324deg, rgba(255,255,255,0.1) 0deg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; color: var(--teal);
  position: relative;
}
.score-circle::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--card-bg);
}
.score-circle span { position: relative; z-index: 1; }
.score-text strong { display: block; font-family: var(--font-display); font-size: 0.8rem; color: var(--white); }
.score-text small { font-size: 0.7rem; color: var(--muted); }

/* ── SECTION SHARED ── */
section { padding: 100px 40px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '//';
  opacity: 0.5;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ── PROBLEM STRIP ── */
.problem-strip {
  padding: 40px;
  background: linear-gradient(135deg, rgba(0,201,177,0.08), rgba(0,100,200,0.06));
  border-top: 1px solid rgba(0,201,177,0.2);
  border-bottom: 1px solid rgba(0,201,177,0.2);
}
.problem-strip .container {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.problem-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  max-width: 680px;
  line-height: 1.4;
}
.problem-text em {
  font-style: normal;
  color: var(--teal);
}

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(0,201,177,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,201,177,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.service-features li {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.service-features li::before {
  content: '→';
  color: var(--teal);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── HOW IT WORKS ── */
.how-section { background: var(--bg-alt); }
.steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 40px;
  margin-top: 60px; position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(16.66% + 20px); right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--teal), rgba(0,201,177,0.2), var(--teal));
}

.step { text-align: center; padding: 0 20px; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  color: var(--teal);
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 0 24px var(--teal-glow);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.step p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── PROCESS LINE ANIMATION ── */

/* Glow track: mirrors the connector line position so the orb travels exactly on top of it */
.step-glow-track {
  position: absolute;
  top: 22px;                      /* line sits at top:28px; glow is 12px tall → center at 28-6=22 */
  left: calc(16.66% + 20px);     /* matches .steps::before left edge */
  right: calc(16.66% + 20px);    /* matches .steps::before right edge */
  height: 12px;
  pointer-events: none;
  z-index: 1;
}

/* The glowing orb — positioned absolutely inside the track, animated left→right */
.step-glow-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;                    /* center of the orb starts at the left edge of the track */
  width: 60px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 201, 177, 1)   0%,
    rgba(0, 201, 177, 0.5) 40%,
    transparent            70%
  );
  filter: blur(5px);
  animation: glow-travel 8s linear infinite;
}

/* Orb travels 01→02, pauses, continues to 03, dwells, fades out, snaps back invisibly.
   Timeline over 8s:
   0–4%   (0–0.32s)  : fade in at 01
   4–22%  (0.32–1.76s): travel to 02
   22–32% (1.76–2.56s): pause at 02   ← slight hold
   32–50% (2.56–4.0s) : travel to 03
   50–72% (4.0–5.76s) : dwell at 03   ← satisfying hold
   72–80% (5.76–6.4s) : fade out
   80–81% (6.4–6.48s) : invisible snap back to start
   81–100%            : hold until next cycle */
@keyframes glow-travel {
  0%   { left: -30px;             opacity: 0; }
  4%   { left: -30px;             opacity: 1; } /* fade in at 01 */
  22%  { left: calc(50% - 30px); opacity: 1; } /* arrive at 02 */
  32%  { left: calc(50% - 30px); opacity: 1; } /* pause at 02 */
  50%  { left: calc(100% - 30px);opacity: 1; } /* arrive at 03 */
  72%  { left: calc(100% - 30px);opacity: 1; } /* dwell at 03 */
  80%  { left: calc(100% - 30px);opacity: 0; } /* fade out */
  81%  { left: -30px;             opacity: 0; } /* invisible snap back */
  100% { left: -30px;             opacity: 0; } /* hold */
}

/* ── CIRCLE HIGHLIGHT ANIMATIONS ── */
/* Circles pulse (peak → valley → peak) while the orb dwells on them.
   Peak   = strong outer ring + wide bloom
   Valley = softer ring, still visibly glowing — not base
   All share the same 8s cycle to stay in sync with glow-travel. */

/* Circle 01: 1 heartbeat (lub-dub) as orb passes through */
@keyframes circle-glow-01 {
  0%   { box-shadow: 0 0 24px var(--teal-glow); }
  4%   { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 11px rgba(0,201,177,0.4),  0 0 32px rgba(0,201,177,0.55); } /* lub */
  6%   { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* valley */
  9%   { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 6px  rgba(0,201,177,0.24), 0 0 18px rgba(0,201,177,0.35); } /* dub */
  14%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* rest */
  20%  { box-shadow: 0 0 24px var(--teal-glow); }
  100% { box-shadow: 0 0 24px var(--teal-glow); }
}

/* Circle 02: 2 heartbeats as orb pauses */
@keyframes circle-glow-02 {
  0%   { box-shadow: 0 0 24px var(--teal-glow); }
  19%  { box-shadow: 0 0 24px var(--teal-glow); }
  /* — heartbeat 1 — */
  22%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 11px rgba(0,201,177,0.4),  0 0 32px rgba(0,201,177,0.55); } /* lub */
  24%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* valley */
  26%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 6px  rgba(0,201,177,0.24), 0 0 18px rgba(0,201,177,0.35); } /* dub */
  30%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* rest */
  /* — heartbeat 2 — */
  32%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 11px rgba(0,201,177,0.4),  0 0 32px rgba(0,201,177,0.55); } /* lub */
  34%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* valley */
  36%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 6px  rgba(0,201,177,0.24), 0 0 18px rgba(0,201,177,0.35); } /* dub */
  40%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* rest */
  44%  { box-shadow: 0 0 24px var(--teal-glow); }
  100% { box-shadow: 0 0 24px var(--teal-glow); }
}

/* Circle 03: 3 heartbeats as orb dwells */
@keyframes circle-glow-03 {
  0%   { box-shadow: 0 0 24px var(--teal-glow); }
  47%  { box-shadow: 0 0 24px var(--teal-glow); }
  /* — heartbeat 1 — */
  50%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 11px rgba(0,201,177,0.4),  0 0 32px rgba(0,201,177,0.55); } /* lub */
  52%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* valley */
  55%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 6px  rgba(0,201,177,0.24), 0 0 18px rgba(0,201,177,0.35); } /* dub */
  59%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* rest */
  /* — heartbeat 2 — */
  61%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 11px rgba(0,201,177,0.4),  0 0 32px rgba(0,201,177,0.55); } /* lub */
  63%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* valley */
  66%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 6px  rgba(0,201,177,0.24), 0 0 18px rgba(0,201,177,0.35); } /* dub */
  70%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* rest */
  /* — heartbeat 3 — */
  72%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 11px rgba(0,201,177,0.4),  0 0 32px rgba(0,201,177,0.55); } /* lub */
  74%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* valley */
  77%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 6px  rgba(0,201,177,0.24), 0 0 18px rgba(0,201,177,0.35); } /* dub */
  80%  { box-shadow: 0 0 24px var(--teal-glow), 0 0 0 2px  rgba(0,201,177,0.08), 0 0 8px  rgba(0,201,177,0.12); } /* rest */
  82%  { box-shadow: 0 0 24px var(--teal-glow); }
  100% { box-shadow: 0 0 24px var(--teal-glow); }
}

/* Apply staggered glow to each numbered circle */
.step:nth-child(1) .step-num { animation: circle-glow-01 8s linear infinite; }
.step:nth-child(2) .step-num { animation: circle-glow-02 8s linear infinite; }
.step:nth-child(3) .step-num { animation: circle-glow-03 8s linear infinite; }

/* ── PORTFOLIO ── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 24px;
  margin-top: 60px;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.portfolio-card:hover {
  border-color: rgba(0,201,177,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.portfolio-card:first-child { grid-column: span 2; }

.portfolio-img {
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.portfolio-card:first-child .portfolio-img { height: 280px; }

.portfolio-img-1 { background: linear-gradient(135deg, #0D3B2E, #1A6B50); }
.portfolio-img-2 { background: linear-gradient(135deg, #1A1040, #2D1B69); }
.portfolio-img-3 { background: linear-gradient(135deg, #1A0A00, #5C2E00); }
.portfolio-img-4 { background: linear-gradient(135deg, #0A1A3B, #1A3A6B); }
.portfolio-img-5 { background: linear-gradient(135deg, #1A0A2E, #3B1A5C); }

.portfolio-mock {
  width: 80%; max-width: 380px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.pm-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.2); }
.pm-bar.accent { background: var(--teal); width: 40%; opacity: 0.8; }
.pm-bar.short { width: 60%; }
.pm-bar.tiny { width: 40%; opacity: 0.5; }
.pm-row { display: flex; gap: 8px; }
.pm-block { height: 40px; flex: 1; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }

.portfolio-info { padding: 24px; }
.portfolio-industry {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.portfolio-result {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,201,177,0.1);
  border: 1px solid rgba(0,201,177,0.25);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}

/* ── TESTIMONIALS ── */
.testi-section { background: var(--navy-mid); }
.testi-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  margin-top: 60px;
}
.testi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
}
.testi-card:hover {
  border-color: rgba(0,201,177,0.2);
  transform: translateY(-2px);
}
.stars { color: var(--teal); font-size: 0.8rem; margin-bottom: 16px; letter-spacing: 2px; }
.testi-quote {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.88;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  background: var(--teal-dim); border: 1px solid rgba(0,201,177,0.3);
  color: var(--teal);
}
.testi-name { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; }
.testi-biz { font-size: 0.75rem; color: var(--muted); }

/* ── CTA BANNER ── */
.cta-banner {
  padding: 80px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(0,201,177,0.1) 0%, transparent 70%);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 16px; }
.cta-banner p { color: var(--muted); font-size: 1.05rem; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 40px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-grid-bg { mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 30%, transparent 100%); }
.page-hero .container { position: relative; z-index: 2; max-width: 800px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 16px; }
.page-hero .hero-sub { font-size: 1.05rem; margin-bottom: 0; }

/* ── FOOTER ── */
footer {
  padding: 48px 40px 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  max-width: 1200px; margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--muted); font-size: 0.875rem; line-height: 1.7;
  margin-top: 12px; max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px; color: var(--muted);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none; font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--muted);
}

/* ── NAV RIGHT GROUP ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  border-color: rgba(0,201,177,0.4);
  color: var(--accent);
  background: var(--accent-dim);
}
/* Sun visible in dark mode (default), moon visible in light mode */
.toggle-icon { display: none; line-height: 1; }
html[data-theme="light"] .toggle-icon--moon { display: flex; }
html:not([data-theme="light"]) .toggle-icon--sun { display: flex; }

/* ── LIGHT MODE — BROWSER MOCK OVERRIDES ── */
/* The hero browser window renders on a white card in light mode;
   the dark rgba overlays become invisible, so we flip them */
html[data-theme="light"] .browser-bar {
  background: rgba(13,24,41,0.04);
}
html[data-theme="light"] .browser-url {
  background: var(--bg);
  color: var(--text-muted);
}
html[data-theme="light"] .mock-card {
  background: var(--bg);
  border-color: var(--border);
}
html[data-theme="light"] .mock-card .mc-line { background: rgba(13,24,41,0.15); }
html[data-theme="light"] .mock-card .mc-line-s { background: rgba(13,24,41,0.08); }
html[data-theme="light"] .mock-text-block {
  background: var(--bg);
  border-color: var(--border);
}
html[data-theme="light"] .mock-hero-bar .mock-h { background: rgba(13,24,41,0.3); }
html[data-theme="light"] .mock-hero-bar .mock-sub { background: rgba(13,24,41,0.15); }
html[data-theme="light"] .score-circle {
  background: conic-gradient(var(--accent) 324deg, var(--border) 0deg);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.7s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }
.hero-content > *:nth-child(5) { animation-delay: 0.65s; }
.hero-visual { animation: fadeUp 0.9s 0.4s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  section { padding: 70px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  .services-grid, .testi-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  /* Hide the animated connector on mobile — no horizontal line exists */
  .step-glow-track { display: none; }
  .step:nth-child(1) .step-num,
  .step:nth-child(2) .step-num,
  .step:nth-child(3) .step-num { animation: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card:first-child { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── REDUCED MOTION — disable or simplify all animations for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .step-glow-track { display: none; }
  .step:nth-child(1) .step-num,
  .step:nth-child(2) .step-num,
  .step:nth-child(3) .step-num { animation: none; }
}

/* ── SMALL MOBILE NAV FIX (320px–480px) ── */
@media (max-width: 480px) {
  nav { padding: 12px 16px; }
  .logo { font-size: 1.05rem; flex-shrink: 0; }
  .nav-right { gap: 8px; }
  .theme-toggle { width: 30px; height: 30px; font-size: 0.875rem; }
  nav .btn-primary { padding: 8px 14px; font-size: 0.78rem; white-space: nowrap; flex-shrink: 0; }
}
