/* =========================================================
   Sasoba Digital — Design tokens
   ========================================================= */
:root {
  --bg: #060912;
  --bg-2: #0a0f1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef3fb;
  --muted: #94a2ba;
  --dim: #66728a;

  /* theme-dependent surfaces */
  --nav-bg: rgba(6, 9, 18, 0.72);
  --glass: rgba(14, 20, 36, 0.75);
  --chip-bg: rgba(12, 18, 32, 0.9);
  --panel: #0b1120;
  --panel-glass: rgba(8, 12, 22, 0.85);
  --phone: #080c16;
  --phone-screen: #101828;
  --contact-bg: linear-gradient(160deg, #0f1a30, #080c16);
  --stroke: rgba(255, 255, 255, 0.35);
  --stroke-faint: rgba(255, 255, 255, 0.11);
  --dash: rgba(255, 255, 255, 0.2);
  --accent-text: #3cc8ec;
  --glow-op: 1;
  color-scheme: dark;

  /* Brand palette (from the Sasoba peacock logo): navy -> blue -> teal */
  --violet: #2f63d6;
  --pink: #1d87d4;
  --ember: #0fb0d8;
  --mint: #21d4a8;
  --grad: linear-gradient(110deg, var(--violet) 0%, var(--pink) 50%, var(--ember) 100%);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg: #f5f8fc;
  --bg-2: #e9f0f8;
  --surface: rgba(14, 30, 70, 0.035);
  --surface-2: rgba(14, 30, 70, 0.065);
  --line: rgba(14, 30, 70, 0.09);
  --line-2: rgba(14, 30, 70, 0.16);
  --text: #0d1a33;
  --muted: #4c5a73;
  --dim: #7d889e;
  --mint: #0e9a78;

  --nav-bg: rgba(245, 248, 252, 0.8);
  --glass: rgba(255, 255, 255, 0.82);
  --chip-bg: rgba(255, 255, 255, 0.94);
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.9);
  --phone: #ffffff;
  --phone-screen: #ecf2f9;
  --contact-bg: linear-gradient(160deg, #ffffff, #eaf1f9);
  --stroke: rgba(13, 26, 51, 0.3);
  --stroke-faint: rgba(13, 26, 51, 0.08);
  --dash: rgba(13, 26, 51, 0.22);
  --accent-text: #02789c;
  --glow-op: 0.55;
  color-scheme: light;
}
[data-theme="light"] .card,
[data-theme="light"] .why__item,
[data-theme="light"] .project,
[data-theme="light"] .quote,
[data-theme="light"] .tech,
[data-theme="light"] .faq details,
[data-theme="light"] .stats {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(14, 30, 70, 0.04), 0 12px 32px -18px rgba(14, 30, 70, 0.18);
}
[data-theme="light"] .quote--accent {
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
}
[data-theme="light"] .hero__canvas { opacity: 0.75; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: grid; place-items: center;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(-12deg); }
.theme-toggle svg {
  position: absolute;
  width: 20px; height: 20px;
  fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.theme-toggle .i-moon { transform: translateY(140%) rotate(-60deg); opacity: 0; }
[data-theme="light"] .theme-toggle .i-sun { transform: translateY(-140%) rotate(60deg); opacity: 0; }
[data-theme="light"] .theme-toggle .i-moon { transform: none; opacity: 1; }

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}

/* subtle grain + grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.45;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--pink); color: #fff; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
}
.btn span[aria-hidden] { transition: transform 0.35s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

.btn--primary {
  background: var(--grad);
  background-size: 160% 100%;
  color: #fff;
  box-shadow: 0 10px 40px -10px rgba(29, 135, 212, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 50px -10px rgba(15, 150, 216, 0.7);
}

.btn--ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--dim); transform: translateY(-2px); }

.btn--sm { height: 44px; padding: 0 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.play {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--text);
  position: relative;
}
.play::after {
  content: ""; position: absolute; left: 8px; top: 6px;
  border-left: 8px solid var(--bg);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; transition: transform 0.6s var(--ease); }
.brand:hover img { transform: translateY(-2px) scale(1.03); }
.footer__brand .brand img { height: 84px; }
/* theme-aware logo: original colours on light, lifted colours on dark */
.logo--light { display: none; }
[data-theme="light"] .logo--light { display: block; }
[data-theme="light"] .logo--dark { display: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0.06em; }
.brand__text em { font-style: normal; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.42em; color: var(--muted); margin-top: 5px; }

.nav__links {
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); background: var(--surface-2); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 28px;
  min-height: calc(100svh - var(--nav-h));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:not(.btn) {
  padding: 14px 4px;
  font-family: var(--f-display);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 16px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 62%;
  z-index: -1;
  mask-image: linear-gradient(to top, #000 40%, transparent);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -2;
  opacity: 0.55;
}
.hero__glow--a { width: 520px; height: 520px; background: var(--violet); top: -160px; left: -140px; opacity: calc(0.35 * var(--glow-op)); }
.hero__glow--b { width: 460px; height: 460px; background: var(--pink); top: 10%; right: -160px; opacity: calc(0.25 * var(--glow-op)); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 28px;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(33, 212, 168, 0.6);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(33, 212, 168, 0.6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(33, 212, 168, 0); }
}

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.rotator {
  display: grid;
  justify-items: start;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.rotator__word {
  grid-area: 1 / 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s;
  white-space: nowrap;
}
.rotator__word.is-active { transform: translateY(0); opacity: 1; }
.rotator__word.is-out { transform: translateY(-105%); opacity: 0; }

.hero__lead {
  margin-top: 26px;
  max-width: 520px;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta li { display: flex; align-items: baseline; gap: 6px; }
.hero__meta strong { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.hero__meta span { color: var(--muted); font-size: 0.9rem; }

/* ----- Orbit ----- */
.orbit {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
}
.orbit__ring {
  position: absolute;
  inset: var(--inset);
  border: 1px dashed var(--line-2);
  border-radius: 50%;
  animation: spin var(--dur) linear infinite;
}
.orbit__ring--1 { --inset: 22%; --dur: 26s; }
.orbit__ring--2 { --inset: 9%; --dur: 40s; animation-direction: reverse; border-style: solid; border-color: var(--line); }
.orbit__ring--3 { --inset: -3%; --dur: 60s; }

.orbit { container-type: inline-size; }
.orbit__ring--1 { --radius: 28cqw; }
.orbit__ring--2 { --radius: 41cqw; }
.orbit__ring--3 { --radius: 53cqw; }

/* chip sits on the ring edge; inner label counter-spins to stay upright */
.chip {
  position: absolute;
  top: 50%; left: 50%;
  width: max-content;
  transform: rotate(var(--a)) translate(var(--radius)) rotate(calc(-1 * var(--a)));
  translate: -50% -50%;
}
.chip b {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--chip-bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
  animation: spin var(--dur) linear infinite reverse;
}
.orbit__ring--2 .chip b { animation-direction: normal; }

@keyframes spin { to { rotate: 360deg; } }

.orbit__core {
  position: absolute;
  inset: 36%;
  border-radius: 30%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: 0 0 80px 10px rgba(29, 135, 212, 0.28), inset 0 0 40px rgba(47, 99, 214, 0.25);
  animation: float 6s ease-in-out infinite;
}
.orbit__core img { position: absolute; inset: 0; margin: auto; width: auto; height: 74%; filter: drop-shadow(0 10px 30px rgba(29, 135, 212, 0.5)); }

@keyframes float { 50% { transform: translateY(-10px); } }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  animation: float 7s ease-in-out infinite;
}
.float-card small { display: block; font-size: 0.72rem; color: var(--muted); font-family: var(--f-mono); }
.float-card strong { font-size: 0.9rem; }
.float-card--a { top: 4%; left: -8%; }
.float-card--b { bottom: 2%; right: -4%; flex-direction: column; align-items: flex-start; gap: 8px; animation-delay: -3s; }
.float-card__icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700;
}
.bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.bars i {
  width: 9px;
  height: var(--h);
  border-radius: 3px;
  background: var(--grad);
  background-size: 100% 300%;
  animation: grow 2.4s var(--ease) infinite alternate;
}
.bars i:nth-child(2n) { animation-delay: -0.6s; }
.bars i:nth-child(3n) { animation-delay: -1.2s; }
@keyframes grow { from { transform: scaleY(0.6); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-2);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--text);
  translate: -50% 0;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   Industries marquee
   ========================================================= */
.industries {
  padding: 40px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.industries__label {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke);
  transition: color 0.3s;
}
.marquee__track span:hover { color: var(--text); }
.marquee__track b { color: var(--accent-text); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }

.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 600px; }
.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 40px;
}
.section__head--split p { margin: 0; }

/* =========================================================
   Services bento
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* cursor spotlight */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(29, 135, 212, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }

.card--lg { grid-row: span 2; display: flex; flex-direction: column; }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }

.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47, 99, 214, 0.22), rgba(15, 176, 216, 0.14));
  border: 1px solid var(--line-2);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
  font-weight: 500;
}

.mock-browser {
  margin: 28px 0 24px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  overflow: hidden;
  flex: 1;
  min-height: 190px;
}
.mock-browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.mock-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-browser__bar span {
  margin-left: 10px; padding: 3px 12px; border-radius: 6px;
  background: var(--surface-2); font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted);
}
.mock-browser__body { padding: 14px; display: grid; gap: 12px; }
.mb-hero {
  height: 92px; border-radius: 10px;
  background: var(--grad);
  opacity: 0.85;
  position: relative;
  overflow: hidden;
}
.mb-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 3.5s var(--ease) infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.mb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mb-row i { height: 52px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }

.ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.ticks li, .mini-tags span {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.ticks li::before { content: "✓ "; color: var(--mint); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.spark { margin-top: 22px; height: 48px; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.spark path {
  fill: none; stroke: url(#none); stroke: var(--ember); stroke-width: 2.5;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.card.is-in .spark path { stroke-dashoffset: 0; }

.swatches { display: flex; margin-top: 22px; }
.swatches i {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--bg);
  margin-right: -10px;
  transition: transform 0.4s var(--ease), margin 0.4s var(--ease);
}
.swatches i:nth-child(1) { background: var(--violet); }
.swatches i:nth-child(2) { background: var(--pink); }
.swatches i:nth-child(3) { background: var(--ember); }
.swatches i:nth-child(4) { background: var(--text); }
.card:hover .swatches i { margin-right: 4px; }

.wire { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wire__col { display: grid; gap: 10px; align-content: start; }
.wire i {
  height: 54px; border-radius: 10px;
  border: 1px dashed var(--dash);
  transition: background 0.4s, border-color 0.4s;
}
.wire i.s { height: 26px; }
.wire i.t { height: 90px; }
.card:hover .wire i.t { background: linear-gradient(135deg, rgba(47, 99, 214, 0.35), rgba(29, 135, 212, 0.25)); border-color: transparent; }

/* =========================================================
   Why
   ========================================================= */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.why__sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
.why__sticky p { color: var(--muted); margin: 22px 0 32px; font-size: 1.05rem; }

.why__list { display: grid; gap: 14px; counter-reset: why; }
.why__item {
  display: flex;
  gap: 24px;
  padding: 28px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.why__item:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateX(6px); }
.why__num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  min-width: 48px;
}
.why__item p { color: var(--muted); margin-top: 6px; font-size: 0.96rem; }

.stats {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.stat { padding: 40px 28px; text-align: center; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat > span { color: var(--muted); font-size: 0.92rem; }

/* =========================================================
   Tech tabs
   ========================================================= */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 36px;
}
.tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--text); color: var(--bg); }

.stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.tech {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  animation: pop 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tech:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tech__badge {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #0b0b10;
  background: var(--c, var(--ember));
  flex-shrink: 0;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

/* =========================================================
   Work
   ========================================================= */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.project:hover { border-color: var(--line-2); transform: translateY(-6px); }
.project__art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 55%),
    radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--c2) 50%, transparent), transparent 55%),
    var(--panel);
  overflow: hidden;
}
.project__art > * { transition: transform 0.8s var(--ease); }
.project:hover .project__art > * { transform: scale(1.05) rotate(-1deg); }
.project__info { padding: 26px 28px 30px; }
.project__type {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.project__info h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.project__info p { color: var(--muted); font-size: 0.95rem; }

/* illustrative project art */
.pa-window {
  width: 74%; height: 66%;
  display: grid; grid-template-columns: 22% 1fr; gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--panel-glass);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.pa-side { border-radius: 8px; background: var(--surface-2); }
.pa-main { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1.4fr; gap: 10px; }
.pa-main i { border-radius: 8px; background: var(--surface-2); }
.pa-main i.w { grid-column: span 2; background: linear-gradient(120deg, var(--c1), var(--c2)); opacity: 0.8; }

.pa-shop { width: 72%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pa-shop i {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: var(--panel-glass);
  border: 1px solid var(--line-2);
  position: relative;
}
.pa-shop i::before {
  content: ""; position: absolute; inset: 8px 8px 34%;
  border-radius: 8px; background: linear-gradient(160deg, var(--c1), var(--c2)); opacity: 0.75;
}
.pa-shop i:nth-child(even) { translate: 0 16px; }

.pa-phone {
  width: 30%; aspect-ratio: 9 / 18;
  border-radius: 26px;
  padding: 8px;
  background: var(--phone);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.pa-phone__screen {
  height: 100%;
  border-radius: 20px;
  padding: 12px 10px;
  display: grid; grid-template-rows: 1.4fr 1fr 1fr; gap: 8px;
  background: var(--phone-screen);
}
.pa-phone__screen i { border-radius: 10px; background: var(--surface-2); }
.pa-phone__screen i:first-child { background: linear-gradient(140deg, var(--c1), var(--c2)); }

.pa-chart {
  width: 74%; height: 60%;
  padding: 18px;
  border-radius: 14px;
  background: var(--panel-glass);
  border: 1px solid var(--line-2);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 25%;
}
.pa-chart svg { width: 100%; height: 100%; overflow: visible; }
.pa-chart path { fill: none; stroke: var(--c2); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 6px 14px var(--c1)); }

/* =========================================================
   Process
   ========================================================= */
.process { position: relative; }
.process__line {
  position: absolute;
  top: 9px; left: 0; right: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.process__line span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(29, 135, 212, 0.7);
  transition: width 0.15s linear;
}
.process__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.step { position: relative; padding-top: 44px; }
.step__dot {
  position: absolute; top: 0; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.step.is-lit .step__dot { border-color: var(--pink); box-shadow: 0 0 0 5px rgba(29, 135, 212, 0.18); }
.step__no { font-family: var(--f-mono); font-size: 0.74rem; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.step h3 { margin: 10px 0 10px; font-size: 1.3rem; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* =========================================================
   Testimonials
   ========================================================= */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.quote blockquote { font-size: 1.04rem; line-height: 1.7; }
.quote--accent {
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  transform: translateY(-18px);
}
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption small { display: block; color: var(--muted); font-size: 0.84rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.8rem; font-weight: 500;
  color: #fff; background: var(--grad);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.faq__intro p { color: var(--muted); margin-top: 18px; }
.faq__list { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: background 0.3s, border-color 0.3s;
}
.faq details[open] { background: var(--surface-2); border-color: var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  font-weight: 400; font-size: 1.2rem;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--text); color: var(--bg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* =========================================================
   Contact
   ========================================================= */
.contact-wrap { padding-top: 40px; }
.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 36px;
  border: 1px solid var(--line-2);
  background: var(--contact-bg);
  overflow: hidden;
  isolation: isolate;
}
.contact__glow {
  position: absolute;
  width: 600px; height: 600px;
  right: -200px; top: -260px;
  background: conic-gradient(from 90deg, var(--violet), var(--pink), var(--ember), var(--violet));
  filter: blur(120px);
  opacity: 0.35;
  z-index: -1;
  animation: spin 18s linear infinite;
}
.contact__copy p { color: var(--muted); margin: 20px 0 32px; font-size: 1.05rem; max-width: 460px; }
.contact__list { display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.contact__list a:hover { color: var(--accent-text); }
.ci {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.ci svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.form { display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label > span, .form legend {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.form input[type="text"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--pink);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(29, 135, 212, 0.15);
}
.form .is-invalid { border-color: #ff5a5a !important; }

.form__chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { width: 100%; }
.form__chips label { cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.25s;
}
.form__chips input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.form__chips input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }

.form__note { min-height: 1.4em; font-size: 0.88rem; color: var(--mint); }
.form__note.is-error { color: #ff7a7a; }

/* =========================================================
   Footer
   ========================================================= */
.footer { position: relative; padding-top: 80px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big {
  position: absolute;
  left: 50%; bottom: -0.18em;
  translate: -50% 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 20rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-faint);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer__brand p { color: var(--muted); margin: 20px 0 24px; }
.footer h4 { font-size: 0.95rem; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a, .footer ul span { color: var(--muted); font-size: 0.94rem; transition: color 0.25s; }
.footer ul a:hover { color: var(--text); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.socials a:hover { background: var(--text); transform: translateY(-3px); }
.socials a:hover svg { fill: var(--bg); stroke: var(--bg); }
.socials svg { width: 18px; height: 18px; fill: var(--text); stroke: none; transition: fill 0.3s; }
.socials a[aria-label="Instagram"] svg { fill: none; stroke: var(--text); stroke-width: 1.8; }
.socials a[aria-label="Instagram"]:hover svg { fill: none; }

.footer__bottom {
  position: relative;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 0 120px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.88rem;
}
.to-top:hover { color: var(--text); }

/* WhatsApp */
.wa {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.35s var(--ease);
}
.wa:hover { transform: scale(1.08) rotate(-6deg); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.quote--accent.reveal.is-in { transform: translateY(-18px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .orbit { margin: 40px auto 0; width: min(420px, 82%); }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--lg { grid-row: span 1; grid-column: span 2; }
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .process__line { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .process__line span { width: 100% !important; height: var(--fill, 0%); }
  .step { padding: 0 0 40px 52px; }
  .step__dot { top: 2px; }
  .quotes { grid-template-columns: 1fr; }
  .quote--accent, .quote--accent.reveal.is-in { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open { background: var(--bg); }
  .nav.is-open .mobile-menu { display: flex; }

  .section__head--split, .why, .faq, .contact { grid-template-columns: 1fr; gap: 32px; }
  .why__sticky { position: static; }
  .work { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .bento { grid-template-columns: 1fr; }
  .card--lg, .card--wide { grid-column: span 1; }
  .card--wide { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px; }
  .float-card--a { left: -2%; }
  .float-card--b { right: 0; }
  .chip b { font-size: 0.66rem; padding: 5px 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { height: 50px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
