/* AI Wizard – redesign 2026 */
:root {
  --bg: #fcfbff;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-2: rgba(255, 255, 255, 0.9);
  --surface-faint: rgba(255, 255, 255, 0.45);
  --border: rgba(23, 20, 44, 0.09);
  --border-strong: rgba(23, 20, 44, 0.16);
  --text: #17142c;
  --muted: #55526e;
  --dim: #8d8aa6;
  --violet: #a78bfa;
  --violet-2: #c4b5fd;
  --cyan: #67e8f9;
  --grad: linear-gradient(120deg, #7c3aed 0%, #6366f1 45%, #0891b2 100%);
  --grad-btn: linear-gradient(120deg, #8b5cf6, #6366f1 50%, #06b6d4);
  --max: 1200px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --page-bg: linear-gradient(180deg, #fdfcff 0%, #faf8f5 100%);
  --solid: rgba(255, 255, 255, 0.82);
  --accent-text: #6d28d9;
  --icon: #6d28d9;
  --quote: #2b2748;
  --ok: #0d9488;
  --giant: rgba(23, 20, 44, 0.08);
  --header-bg: rgba(255, 255, 255, 0.72);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --invert-bg: #17142c;
  --invert-text: #fff;
  --grain-opacity: 0.025;
  --card-shadow: 0 1px 2px rgba(23, 20, 44, 0.04), 0 18px 40px -18px rgba(76, 29, 149, 0.18);
  --dot-a: 124, 58, 237;
  --dot-b: 8, 145, 178;
  --line-rgb: 109, 40, 217;
  --line-alpha: 0.1;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(167, 139, 250, 0.4); color: #fff; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
p { margin: 0; }
em.serif, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- Ambient background ---------- */
.bg-canvas { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
/* Vivid colour mesh behind the hero only; it fades out into the clean page below. */
.aurora {
  position: absolute; top: 0; left: 0; right: 0; height: 1500px; z-index: -3;
  overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 85vw; height: 85vw; left: -25vw; top: -40vw; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.95), transparent); }
.aurora span:nth-child(2) { width: 70vw; height: 70vw; right: -25vw; top: 80px; background: radial-gradient(closest-side, rgba(6, 182, 212, 0.8), transparent); animation-duration: 32s; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 65vw; height: 65vw; left: 15vw; top: 600px; background: radial-gradient(closest-side, rgba(236, 72, 153, 0.75), transparent); opacity: 0.4; animation-duration: 38s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(0.95); }
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: var(--grain-opacity);
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.06) 40%, transparent 70%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  transition: opacity 0.4s;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: var(--grad-btn); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  width: min(var(--max), calc(100% - 28px));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 12px 10px 20px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s, padding 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: var(--header-bg);
  border-color: var(--border);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.logo img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav .nav-cta {
  margin-left: 6px; color: var(--invert-text); background: var(--invert-bg); font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--violet); color: #fff; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s, border-color 0.3s;
  cursor: pointer; border: 0; font-family: inherit; color: inherit;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff; background: var(--grad-btn); background-size: 180% 100%;
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 44px -8px rgba(99, 102, 241, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.3); }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.05rem; }

/* ---------- Layout ---------- */
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(48px, 6vw, 84px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
.section-head p { margin-top: 1.2rem; font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.3rem;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
  background: rgba(167, 139, 250, 0.08); border: 1px solid rgba(167, 139, 250, 0.22);
}
.tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.75); } }

/* ---------- Reveal ---------- */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.reveal-pending { opacity: 0; transform: translateY(40px); filter: blur(8px); }
.reveal.reveal-pending.is-visible { opacity: 1; transform: none; filter: none; }
.split .punct { margin-left: -0.07em; }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .word > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s));
}
.split.is-split.is-visible .word > span, .split.is-split.is-in .word > span { transform: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; align-items: center;
  padding: 130px 0 70px; position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.8rem;
  padding: 7px 16px 7px 8px; border-radius: 999px; font-size: 0.88rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(8px);
}
.hero-badge b {
  white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: var(--invert-text);
  background: var(--grad); letter-spacing: 0.02em;
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .serif { font-size: 1.12em; letter-spacing: -0.02em; font-weight: 400; }
.hero-lead { margin-top: 1.8rem; font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 590px; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2.6rem; color: var(--dim); font-size: 0.92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--cyan); }

/* Phone mockup */
.hero-stage { position: relative; height: 620px; perspective: 1400px; }
.phone-3d {
  position: absolute; left: 50%; top: 50%; width: 290px; height: 590px;
  transform: translate(-50%, -50%) rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg));
  transform-style: preserve-3d; transition: transform 0.6s var(--ease);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { translate: 0 -14px; } }
.phone-body {
  position: absolute; inset: 0; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2a2a38, #0d0d15 40%, #1c1c28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 60px 120px -30px rgba(76, 29, 149, 0.7), 0 30px 60px -20px rgba(8, 145, 178, 0.45);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #2e1065 0%, #0f0a24 45%, #070711 100%);
  padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 12px;
}
.phone-screen::before {
  content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 24px; margin-left: -46px;
  border-radius: 20px; background: #000;
}
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-top small { color: var(--dim); font-size: 0.7rem; display: block; }
.app-top strong { font-family: var(--font-display); font-size: 1.15rem; }
.app-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px rgba(167, 139, 250, 0.5); }
.app-card {
  border-radius: 18px; padding: 14px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px); animation: appIn 0.8s var(--ease) forwards;
}
.app-card:nth-of-type(2) { animation-delay: 0.9s; }
.app-card:nth-of-type(3) { animation-delay: 1.2s; }
.app-card:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes appIn { to { opacity: 1; transform: none; } }
.app-card .label { font-size: 0.68rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.app-card .big { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.app-card .up { color: #5eead4; font-size: 0.75rem; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 10px; }
.bars i {
  flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, #6366f1, #67e8f9);
  height: var(--h); transform-origin: bottom; transform: scaleY(0);
  animation: grow 1s var(--ease) forwards; animation-delay: calc(1.2s + var(--n) * 80ms);
}
.bars i:nth-child(odd) { background: linear-gradient(to top, #7c3aed, #c4b5fd); }
@keyframes grow { to { transform: scaleY(1); } }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 0.74rem; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--grad-btn); border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: rgba(255, 255, 255, 0.08); border-bottom-left-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 11px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.app-nav {
  margin-top: auto; display: flex; justify-content: space-around; padding: 12px;
  border-radius: 20px; background: rgba(255, 255, 255, 0.05);
}
.app-nav i { width: 20px; height: 20px; border-radius: 7px; background: rgba(255, 255, 255, 0.18); }
.app-nav i:first-child { background: var(--grad); }
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  background: rgba(20, 18, 36, 0.72); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  animation: floaty 6s ease-in-out infinite;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 10px #5eead4; }
.chip-1 { top: 12%; left: -2%; animation-delay: -1s; }
.chip-2 { top: 44%; right: -4%; animation-delay: -3s; }
.chip-3 { bottom: 10%; left: 4%; animation-delay: -2s; }
.chip svg { width: 16px; height: 16px; color: var(--accent-text); }
.orbit {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(167, 139, 250, 0.18);
  transform: translate(-50%, -50%); animation: spin 60s linear infinite;
}
.orbit::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 16px var(--cyan);
}
.orbit-1 { width: 480px; height: 480px; }
.orbit-2 { width: 620px; height: 620px; animation-duration: 90s; animation-direction: reverse; border-color: rgba(103, 232, 249, 0.1); }
.orbit-2::after { background: var(--violet); box-shadow: 0 0 16px var(--violet); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--border-strong);
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--violet-2); animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; padding: 26px 0; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface-faint);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600; color: var(--dim);
  white-space: nowrap; transition: color 0.3s;
}
.marquee-track span:hover { color: var(--text); }
.marquee-track span::after { content: "✦"; font-size: 0.7em; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 36px 28px; background: var(--solid); position: relative; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Cards / spotlight ---------- */
.spot {
  --x: 50%; --y: 50%;
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  overflow: hidden; isolation: isolate;
  transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s;
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(139, 92, 246, 0.16), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--x) var(--y), rgba(196, 181, 253, 0.7), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.spot:hover { transform: translateY(-4px); }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { padding: 34px; min-height: 290px; display: flex; flex-direction: column; }
.bento .card:nth-child(1) { grid-column: span 4; }
.bento .card:nth-child(2) { grid-column: span 2; }
.bento .card:nth-child(3) { grid-column: span 2; }
.bento .card:nth-child(4) { grid-column: span 4; }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: auto;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.22), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.6);
}
.card-icon svg { width: 26px; height: 26px; color: var(--icon); }
.card h3 { font-size: 1.4rem; font-weight: 700; margin-top: 2.2rem; }
.card p { margin-top: 0.7rem; color: var(--muted); }
.card .num { position: absolute; top: 28px; right: 32px; font-family: var(--font-display); font-weight: 700; color: var(--dim); font-size: 0.9rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.3rem; }
.card-tags span { font-size: 0.78rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.card-art { position: absolute; right: -70px; bottom: -80px; width: 240px; height: 240px; opacity: 0.18; z-index: -1; pointer-events: none; }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { padding: 38px; border-radius: var(--radius); border: 1px solid var(--border); }
.compare-col h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.compare-col ul { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.compare-col li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.compare-col li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.compare-col.them { background: var(--surface-faint); }
.compare-col.them li svg { color: #71717a; }
.compare-col.us {
  position: relative; background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.05));
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 40px 80px -40px rgba(124, 58, 237, 0.6);
}
.compare-col.us li { color: var(--text); }
.compare-col.us li svg { color: var(--ok); }
.quote {
  margin: clamp(40px, 5vw, 64px) auto 0; max-width: 980px; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.25; color: var(--quote);
}
.quote .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fit .card { padding: 30px; }
.fit .card h3 { font-size: 1.3rem; margin-top: 1.4rem; }
.fit .emoji { font-size: 1.8rem; }
.fit-note { margin-top: 20px; color: var(--dim); font-size: 0.95rem; text-align: center; }

/* ---------- Process ---------- */
.process-wrap { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
.process-sticky { position: sticky; top: 130px; align-self: start; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 42px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--border); }
.steps::after { background: var(--grad-btn); transform-origin: top; transform: scaleY(var(--line, 0)); box-shadow: 0 0 16px rgba(139, 92, 246, 0.8); }
.step { position: relative; padding: 0 0 56px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -39px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--solid); border: 2px solid var(--border-strong); transition: all 0.5s var(--ease);
}
.step.is-active::before { border-color: var(--cyan); background: var(--violet); box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.15), 0 0 24px var(--violet); }
.step-num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--accent-text); letter-spacing: 0.1em; }
.step h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-top: 6px; }
.step p { margin-top: 10px; color: var(--muted); max-width: 520px; }
.step .when { display: inline-block; margin-top: 14px; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* ---------- Work teaser ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.work {
  display: block; padding: 0; min-height: 440px;
}
.work-media { position: relative; height: 290px; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.25), transparent 70%); }
.work-media:not(.phones) { padding: 28px 28px 0; }
.work-media:not(.phones) img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-bottom: 0; border-radius: 12px 12px 0 0; transition: object-position 4s ease-in-out; padding-top: 26px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: #16161f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='10'%3E%3Ccircle cx='5' cy='5' r='4' fill='%23ff5f57'/%3E%3Ccircle cx='21' cy='5' r='4' fill='%23febc2e'/%3E%3Ccircle cx='37' cy='5' r='4' fill='%2328c840'/%3E%3C/svg%3E") 12px 8px no-repeat; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
/* Teaser shows the top of the page; hovering scrolls through the whole screenshot. */
.work:hover .work-media:not(.phones) img { object-position: bottom; }
.work-media.phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding-top: 36px; }
.work-media.phones img { width: auto; height: 236px; object-fit: contain; border-radius: 18px 18px 0 0; border: 4px solid #1f1f2b; border-bottom: 0; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7); }
.work-media.phones img:nth-child(2) { width: auto; height: 256px; }
.work-media.phones img:nth-child(1), .work-media.phones img:nth-child(3) { transform: translateY(22px); }
.work:hover .work-media.phones img { transform: translateY(-6px); }
.work:hover .work-media.phones img:nth-child(1), .work:hover .work-media.phones img:nth-child(3) { transform: translateY(10px); }
.work-body { padding: 26px 30px 30px; }
.work-meta { font-size: 0.8rem; color: var(--accent-text); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.work-body h3 { font-size: 1.5rem; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.work-body h3 svg { width: 26px; height: 26px; color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s; }
.work:hover .work-body h3 svg { transform: rotate(-45deg); color: var(--text); }
.work-body p { margin-top: 8px; color: var(--muted); }
.center-cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Contact ---------- */
.contact-panel {
  position: relative; overflow: hidden; border-radius: 36px; text-align: center;
  padding: clamp(60px, 9vw, 120px) clamp(24px, 6vw, 80px);
  background: linear-gradient(160deg, rgba(76, 29, 149, 0.55), rgba(15, 12, 35, 0.9) 50%, rgba(8, 51, 68, 0.6));
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.contact-panel::before {
  content: ""; position: absolute; inset: -50%; z-index: 0;
  background: conic-gradient(from 0deg, transparent, rgba(167, 139, 250, 0.22) 12%, transparent 30%, rgba(34, 211, 238, 0.18) 42%, transparent 60%);
  animation: spinSlow 18s linear infinite; will-change: transform;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 700; }
.contact-panel p.lead { margin: 1.3rem auto 0; max-width: 580px; font-size: 1.18rem; color: #d4d4de; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2.4rem; }
.contact-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.contact-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 12px #5eead4; animation: pulse 2s infinite; }
.copy-btn.is-copied { border-color: #5eead4; color: #5eead4; }

/* ---------- Footer ---------- */
.site-footer { overflow: hidden; padding: 40px 0 0; border-top: 1px solid var(--border); color: var(--dim); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner img { height: 26px; width: auto; opacity: 0.8; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner nav a:hover { color: var(--text); }
.footer-giant {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.8;
  font-size: clamp(3rem, 15vw, 13.5rem); white-space: nowrap; text-align: center; margin: 60px 0 -0.1em; user-select: none;
  background: linear-gradient(to bottom, var(--giant), transparent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- About page ---------- */
.about-hero { padding: 150px 0 30px; }
.about-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 50px; align-items: end; }
.about-hero h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; }
.about-lead { margin-top: 1.8rem; font-size: 1.22rem; color: var(--muted); max-width: 680px; }
.about-lead strong { color: var(--text); }
.id-card { padding: 30px; }
.id-card dl { margin: 0; display: grid; gap: 14px; }
.id-card dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.id-card dd { margin: 2px 0 0; font-weight: 600; }
.id-card dd a { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.projects { display: grid; gap: 22px; }
.project { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 420px; }
.project.reverse { grid-template-columns: 0.9fr 1.1fr; }
.project.reverse .project-media { order: 2; }
.project-media { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.25), transparent 70%); min-height: 320px; }
.project-media:not(.phones) { display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 40px); }
.project-media:not(.phones) > img { width: auto; max-width: 100%; height: auto; max-height: 460px; transition: transform 0.8s var(--ease); padding-top: 26px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: #16161f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='10'%3E%3Ccircle cx='5' cy='5' r='4' fill='%23ff5f57'/%3E%3Ccircle cx='21' cy='5' r='4' fill='%23febc2e'/%3E%3Ccircle cx='37' cy='5' r='4' fill='%2328c840'/%3E%3C/svg%3E") 12px 8px no-repeat; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.project:hover .project-media:not(.phones) > img { transform: translateY(-6px) scale(1.02); }
.project-media.phones { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 40px 20px; }
.project-media.phones img { width: 30%; max-width: 170px; border-radius: 22px; border: 5px solid #1f1f2b; box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8); transition: transform 0.8s var(--ease); }
.project-media.phones img:nth-child(1) { transform: rotate(-7deg) translateY(20px); }
.project-media.phones img:nth-child(3) { transform: rotate(7deg) translateY(20px); }
.project-media.phones img:nth-child(2) { transform: scale(1.1); z-index: 1; }
.project:hover .project-media.phones img:nth-child(1) { transform: rotate(-11deg) translate(-12px, 10px); }
.project:hover .project-media.phones img:nth-child(3) { transform: rotate(11deg) translate(12px, 10px); }
.project-copy { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.project-copy .work-meta { margin-bottom: 8px; }
.project-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.project-copy p { margin-top: 1rem; color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.project-links a { padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; border: 1px solid var(--border-strong); transition: all 0.3s; display: inline-flex; gap: 6px; align-items: center; }
.project-links a:hover { background: var(--invert-bg); color: var(--invert-text); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-grid .card { padding: 30px; }
.team-grid h3 { font-size: 1.5rem; }
.team-grid p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.team-grid .who { font-size: 0.8rem; color: var(--accent-text); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.career { margin-top: 48px; }
.career h3 { font-size: 1.3rem; margin-bottom: 26px; color: var(--muted); font-weight: 600; }
.career-line { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.career-line::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: linear-gradient(90deg, var(--border), var(--violet), var(--cyan)); }
.career-item { position: relative; padding-top: 32px; padding-right: 10px; }
.career-item::before { content: ""; position: absolute; top: 2px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--solid); border: 2px solid var(--violet); }
.career-item:last-child::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.career-item span { font-size: 0.8rem; color: var(--dim); }
.career-item strong { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-top: 2px; }


/* ---------- Dark islands: keep these dark on every background ---------- */
.contact-panel, .phone-3d, .chip {
  --text: #f5f5f7; --muted: #a3a3b2; --dim: #6e6e80;
  --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.035); --surface-2: rgba(255, 255, 255, 0.06);
  --accent-text: #c4b5fd; --invert-text: #0b0b12;
  --grad: linear-gradient(120deg, #e9e3ff 0%, #c4b5fd 30%, #a5b4fc 55%, #67e8f9 100%);
  color: var(--text);
}

/* Light-page polish */
.compare-col { box-shadow: var(--card-shadow); background-color: var(--surface); }
.compare-col.us { background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.7)); }
.site-header.is-scrolled { box-shadow: 0 10px 40px rgba(76, 29, 149, 0.12); }
.btn-primary { box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about-hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento .card:nth-child(n) { grid-column: span 3; }
  .process-wrap { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .fit, .team-grid { grid-template-columns: 1fr; }
  .project, .project.reverse { grid-template-columns: 1fr; }
  .project.reverse .project-media { order: 0; }
  .career-line { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .career-line::before { display: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-header { background: var(--header-bg); border-color: var(--border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 26px; }
  .site-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px; border-radius: 22px; background: var(--menu-bg); border: 1px solid var(--border);
    backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transform: translateY(-10px) scale(0.98);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 120px; }
  .hero-stage { height: 520px; transform: scale(0.88); margin: -30px 0; }
  .orbit-2 { display: none; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .bento .card:nth-child(n) { grid-column: span 6; min-height: 0; }
  .bento .card h3 { margin-top: 1.6rem; }
  .compare, .work-grid { grid-template-columns: 1fr; }
  .compare-col { padding: 28px; }
  .stat { padding: 26px 20px; }
  .scroll-hint { display: none; }
  .career-line { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .split .word > span { transform: none; }
  .bg-canvas, .cursor-glow { display: none; }
  html { scroll-behavior: auto; }
}
