/* =========================================================
   KARTA BEZ GRANIC — Dark futuristic, glassmorphism, neon
   ========================================================= */

:root {
  /* palette */
  --bg:        #05070D;
  --bg-2:      #0A0F1A;
  --ink:       #E8EEF9;
  --ink-dim:   #A4AEC4;
  --ink-mute:  #6B7591;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  /* brand */
  --mint:      #7CF9D4;
  --blue:      #6C8DFF;
  --violet:    #B07CFF;
  --red:       #FF7A8A;

  /* gradients */
  --g-primary: linear-gradient(135deg, #7CF9D4 0%, #6C8DFF 55%, #B07CFF 100%);
  --g-soft:    linear-gradient(135deg, rgba(124,249,212,.15), rgba(108,141,255,.15));
  --g-card:    linear-gradient(135deg, #1a1f2e 0%, #0d1118 100%);
  --g-text:    linear-gradient(135deg, #7CF9D4, #6C8DFF 60%, #B07CFF);

  /* shadows */
  --sh-glow:   0 0 40px rgba(108,141,255,.35), 0 0 80px rgba(124,249,212,.15);
  --sh-card:   0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06) inset;

  /* spacing */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  /* type */
  --f-display: 'Unbounded', 'Space Grotesk', sans-serif;
  --f-body:    'Space Grotesk', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  width: 100%;
}
img, svg { display: block; max-width: 100%; }
a, button, .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; }

.container {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 0 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* ---------- atmospheric background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
  pointer-events: none;
}
.bg-noise {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 700px; height: 700px; border-radius: 50%;
  filter: blur(140px); opacity: .35;
  max-width: 100vw;
}
.bg-glow--1 {
  top: -200px; left: 0;
  background: radial-gradient(circle, #6C8DFF 0%, transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-glow--2 {
  bottom: -200px; right: 0;
  background: radial-gradient(circle, #7CF9D4 0%, transparent 70%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.1); }
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 210;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  background: rgba(5,7,13,.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-scrolled {
  background: rgba(5,7,13,.85);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 32px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
}
.logo__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--g-soft);
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.logo__text em {
  font-style: normal;
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex; gap: 32px;
  font-size: 14px; color: var(--ink-dim);
}
.nav a {
  position: relative;
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute;
  left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--g-primary);
  transition: width .3s ease;
}
.nav a:hover::after { width: 100%; }

/* ---------- login dropdown ---------- */
.login { position: relative; }
.login__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.login__btn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(124,249,212,.4);
}
.login__chev { transition: transform .3s; }
.login.is-open .login__chev { transform: rotate(180deg); }

.login__menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 320px;
  background: linear-gradient(180deg, rgba(20,25,38,.95), rgba(10,15,26,.95));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.login.is-open .login__menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.login__menu::before {
  content: ""; position: absolute;
  top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
}
.login__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 12px;
  transition: background .2s;
}
.login__item:hover { background: rgba(255,255,255,.05); }
.login__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.login__icon--tg   { background: rgba(38,154,219,.15); color: #5cbaed; }
.login__icon--max  { background: rgba(176,124,255,.15); color: var(--violet); }
.login__icon--web  { background: rgba(124,249,212,.12); color: var(--mint); }
.login__meta { display: flex; flex-direction: column; gap: 2px; }
.login__meta b { font-size: 14px; font-weight: 500; }
.login__meta em {
  font-style: normal; font-size: 12px;
  color: var(--ink-mute);
}
.login__foot {
  padding: 14px;
  font-size: 12px; color: var(--ink-mute);
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.login__foot a {
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  gap: 6px;
  justify-content: center; align-items: center;
  position: relative;
  z-index: 210;
  background: transparent;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.burger span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn--sm  { height: 40px; padding: 0 18px; font-size: 13px; }
.btn--lg  { height: 60px; padding: 0 36px; font-size: 16px; }

.btn--primary {
  background: var(--g-primary);
  color: #0a0f1a;
  font-weight: 600;
  box-shadow: 0 0 0 rgba(108,141,255,0);
  position: relative; overflow: hidden;
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #B07CFF, #7CF9D4 60%, #6C8DFF);
  opacity: 0; transition: opacity .3s;
  z-index: 0;
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -15px rgba(108,141,255,.6);
}
.btn--primary:hover::before { opacity: 1; }

.btn--ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(124,249,212,.35);
  transform: translateY(-2px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 60px 0 40px; position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  min-height: 620px;
}

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px; color: var(--ink-dim);
  font-family: var(--f-mono);
  margin-bottom: 28px;
}
.chip__dot {
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--mint);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

.hero__title {
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero__sub {
  font-size: 18px; color: var(--ink-dim);
  max-width: 520px;
  margin: 0 0 36px;
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 460px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.hero__stats b {
  display: block;
  font-family: var(--f-display);
  font-size: 28px; font-weight: 600;
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.hero__stats span {
  font-size: 13px; color: var(--ink-mute);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================================
   HERO VISUAL: POS + CARD
   ========================================================= */
.hero__visual {
  position: relative;
  height: 620px;
  overflow: hidden;
}
.scene {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  perspective: 1600px;
  perspective-origin: center center;
}
.scene--orbit { perspective: 1800px; }

/* Stage — the 3D-tilted parent of everything */
.stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateZ(-2deg);
}

/* Grid floor that recedes into distance */
.stage__grid {
  position: absolute;
  left: 50%; top: 60%;
  width: 900px; height: 500px;
  transform: translate(-50%, -50%) rotateX(72deg);
  background-image:
    linear-gradient(rgba(124,249,212,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,249,212,.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  opacity: .6;
  pointer-events: none;
}

/* Ambient glow rings */
.ring {
  position: absolute; border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ring--1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(108,141,255,.18), transparent 60%);
  filter: blur(30px);
  animation: pulse-glow 6s ease-in-out infinite;
}
.ring--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,249,212,.22), transparent 60%);
  filter: blur(22px);
  animation: pulse-glow 8s ease-in-out infinite reverse;
}
.ring--3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(176,124,255,.25), transparent 60%);
  filter: blur(18px);
  animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: .6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.08); }
}

/* Visible orbit rings (thin circles) */
.orbit {
  position: absolute; border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.orbit::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(124,249,212,.15);
}
.orbit--a { width: 420px; height: 420px; }
.orbit--b { width: 580px; height: 580px; border-color: rgba(176,124,255,.08); }
.orbit--c { width: 720px; height: 720px; border-color: rgba(108,141,255,.06); border-style: dotted; }

/* Orbit tracks (rotating) */
.orbit-track {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
}
.orbit-track--a {
  animation: orbit-spin 22s linear infinite;
}
.orbit-track--b {
  animation: orbit-spin 32s linear infinite reverse;
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Individual orbiting nodes */
.orb {
  position: absolute;
  width: 56px; height: 56px;
  top: -28px; left: -28px;
  transform-style: preserve-3d;
}
/* Orbit A positions — 4 points on 210px radius, facing camera */
.orbit-track--a .orb--1 { transform: translate(210px, 0); }
.orbit-track--a .orb--2 { transform: translate(0, 210px); }
.orbit-track--a .orb--3 { transform: translate(-210px, 0); }
.orbit-track--a .orb--4 { transform: translate(0, -210px); }
/* Orbit B positions — 4 points on 290px radius */
.orbit-track--b .orb--5 { transform: translate(290px, 0); }
.orbit-track--b .orb--6 { transform: translate(205px, 205px); }
.orbit-track--b .orb--7 { transform: translate(-290px, 0); }
.orbit-track--b .orb--8 { transform: translate(-205px, -205px); }

.orb__ic {
  width: 100%; height: 100%;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--g1), var(--g2));
  box-shadow:
    0 18px 40px -10px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -2px 6px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  /* counter-rotate so icon stays upright while orbit rotates */
  animation: orb-counter 22s linear infinite;
}
.orbit-track--b .orb__ic { animation-duration: 32s; animation-direction: reverse; }
@keyframes orb-counter {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.orbit-track--b .orb__ic { animation-name: orb-counter-rev; }
@keyframes orb-counter-rev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Central 3D virtual card */
.card3d {
  position: absolute;
  left: 50%; top: 50%;
  width: 360px; height: 226px;
  transform: translate(-50%, -50%) rotateX(-18deg) rotateY(14deg) rotateZ(-4deg);
  transform-style: preserve-3d;
  animation: card3d-float 8s ease-in-out infinite;
  z-index: 4;
}
@keyframes card3d-float {
  0%, 100% { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(14deg) rotateZ(-4deg); }
  50%      { transform: translate(-50%, calc(-50% - 12px)) rotateX(-20deg) rotateY(16deg) rotateZ(-4deg); }
}
.card3d__inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 20px;
  padding: 26px;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(176,124,255,.55), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(124,249,212,.45), transparent 60%),
    linear-gradient(135deg, #1d2336 0%, #080b14 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 60px 120px -20px rgba(0,0,0,.85),
    0 20px 60px -15px rgba(108,141,255,.35),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -20px 40px -20px rgba(0,0,0,.6);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  color: var(--ink);
}
.card3d__gloss {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.1) 50%, transparent 70%);
  animation: gloss 5s ease-in-out infinite;
  pointer-events: none;
}
.card3d__shine {
  position: absolute;
  width: 220%; height: 220%;
  top: -60%; left: -110%;
  background: conic-gradient(from 210deg, transparent 0deg, rgba(124,249,212,.15) 45deg, transparent 90deg);
  animation: shine-rotate 14s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes gloss {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
@keyframes shine-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.card3d__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  position: relative; z-index: 2;
}
.card3d__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display);
  font-size: 15px; font-weight: 600;
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.card3d__brand svg { color: var(--mint); }
.card3d__chip svg { border-radius: 4px; }
.card3d__number {
  display: flex; gap: 14px;
  font-family: var(--f-mono);
  font-size: 19px; letter-spacing: 0.06em;
  position: relative; z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.card3d__bottom {
  display: flex; gap: 20px; align-items: flex-end;
  position: relative; z-index: 2;
}
.card3d__bottom em {
  display: block; font-style: normal;
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 3px;
  font-family: var(--f-mono);
}
.card3d__bottom b {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
}
.card3d__logo { margin-left: auto; }
.card3d__reflection {
  position: absolute;
  inset: auto 0 -90%;
  height: 90%;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(176,124,255,.3), transparent 55%),
    linear-gradient(135deg, #1d2336 0%, #080b14 100%);
  transform: rotateX(180deg) translateY(6px);
  transform-origin: top;
  opacity: .3;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  filter: blur(1px);
}

/* Floating dust particles */
.dust {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  opacity: 0;
  animation: dust-float 9s ease-in-out infinite;
}
.dust--1 { top: 20%; left: 15%; animation-delay: 0s; }
.dust--2 { top: 68%; left: 85%; animation-delay: -1.5s; background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.dust--3 { top: 35%; left: 88%; animation-delay: -3s; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.dust--4 { top: 80%; left: 20%; animation-delay: -4.5s; }
.dust--5 { top: 10%; left: 70%; animation-delay: -6s; background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.dust--6 { top: 55%; left: 8%;  animation-delay: -7.5s; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
@keyframes dust-float {
  0%   { opacity: 0; transform: translateY(20px); }
  20%  { opacity: 1; }
  80%  { opacity: .8; }
  100% { opacity: 0; transform: translateY(-40px); }
}


/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  margin-top: 60px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
  display: flex; gap: 60px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 13px; letter-spacing: 0.2em;
  color: var(--ink-mute);
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee__track span::after {
  content: "•"; margin-left: 60px; color: var(--mint); opacity: .4;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
section { padding: 120px 0; position: relative; }
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}
.section-head--row {
  text-align: left; max-width: none;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mint);
  padding: 4px 12px;
  border: 1px solid rgba(124,249,212,.3);
  border-radius: 4px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-head h2 em {
  font-style: italic; font-weight: 400;
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-dim);
}

/* =========================================================
   FEATURES
   ========================================================= */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat {
  padding: 36px 28px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.feat::before {
  content: ""; position: absolute; inset: 0;
  background: var(--g-soft);
  opacity: 0;
  transition: opacity .35s;
}
.feat:hover::before { opacity: 1; }
.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(124,249,212,.25);
}
.feat > * { position: relative; z-index: 1; }
.feat__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  margin-bottom: 24px;
  transition: transform .3s;
}
.feat:hover .feat__icon { transform: rotate(-8deg) scale(1.05); }
.feat h3 {
  font-size: 20px; margin-bottom: 12px;
}
.feat p {
  font-size: 15px; color: var(--ink-dim);
  margin: 0; line-height: 1.6;
}

/* =========================================================
   SERVICES MARQUEE
   ========================================================= */
.services__marquee {
  display: flex; flex-direction: column; gap: 16px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.services__row {
  display: flex; gap: 16px;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.services__row[data-dir="right"] {
  animation-direction: reverse;
  animation-duration: 55s;
}
.stile {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: all .3s;
}
.stile:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.stile__ic {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--c);
  color: #fff;
  font-weight: 700; font-size: 14px;
  border-radius: 8px;
  font-family: var(--f-display);
}

/* =========================================================
   CATEGORIES
   ========================================================= */
.cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat {
  padding: 28px 24px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.cat::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--g-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.cat:hover::before { transform: scaleX(1); }
.cat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.04);
  border-color: var(--line-2);
}
.cat__ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--mint);
  background: rgba(124,249,212,.08);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: transform .3s;
}
.cat:hover .cat__ic { color: var(--blue); background: rgba(108,141,255,.1); }
.cat h3 {
  font-size: 17px; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.cat p {
  font-size: 13px; color: var(--ink-dim);
  margin: 0; line-height: 1.55;
  flex: 1;
}
.cat__arrow {
  margin-top: 16px;
  font-size: 20px;
  color: var(--ink-mute);
  transition: all .3s;
}
.cat:hover .cat__arrow {
  color: var(--mint);
  transform: translateX(6px);
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 40px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.step {
  padding: 36px 28px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  text-align: center;
}
.step__num {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 20px; font-weight: 600;
  background: linear-gradient(135deg, var(--bg-2), #12172a);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--mint);
  position: relative; z-index: 1;
  box-shadow: 0 0 30px rgba(124,249,212,.15);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--ink-dim); margin: 0; }

/* =========================================================
   PRICING
   ========================================================= */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 36px 32px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: all .35s;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
.plan--popular {
  background:
    radial-gradient(ellipse at top, rgba(108,141,255,.12), transparent 60%),
    rgba(255,255,255,.03);
  border-color: rgba(108,141,255,.25);
  box-shadow: 0 0 60px -20px rgba(108,141,255,.35);
}
.plan__badge {
  position: absolute; top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--f-mono);
  background: var(--g-primary);
  color: #0a0f1a;
  border-radius: 999px;
}
.plan header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.plan__price {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap;
}
.plan__price span { color: var(--ink-mute); font-size: 13px; }
.plan__price b {
  font-family: var(--f-display);
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.plan__price em { font-style: normal; font-size: 14px; color: var(--ink-dim); white-space: nowrap; }
.plan ul {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.plan ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-dim);
}
.plan ul li::before {
  content: "";
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(124,249,212,.15);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8l3 3 5-6' stroke='%237CF9D4' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.plan .btn { justify-content: center; width: 100%; }

/* =========================================================
   BLOG
   ========================================================= */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .35s;
}
.post:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
.post__cover {
  aspect-ratio: 16/10;
  position: relative;
  background-size: cover; background-position: center;
}
.post__cover--1 {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(124,249,212,.3), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(108,141,255,.3), transparent 60%),
    #0d1118;
}
.post__cover--1::after {
  content: "AI"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 72px; font-weight: 700;
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  opacity: .3;
}
.post__cover--2 {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(176,124,255,.35), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(124,249,212,.25), transparent 60%),
    #0d1118;
}
.post__cover--2::after {
  content: "🔒"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 80px; opacity: .4;
}
.post__cover--3 {
  background:
    radial-gradient(ellipse at 40% 60%, rgba(255,122,138,.28), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(108,141,255,.28), transparent 60%),
    #0d1118;
}
.post__cover--3::after {
  content: "TOP"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 64px; font-weight: 700;
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  opacity: .3;
  letter-spacing: 0.1em;
}
.post__tag {
  position: absolute; top: 16px; left: 16px;
  padding: 4px 10px;
  background: rgba(5,7,13,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  z-index: 2;
}
.post__body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.post__body time {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.post__body h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color .2s;
}
.post:hover .post__body h3 {
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.post__body p {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0;
}

/* =========================================================
   CTA
   ========================================================= */
.cta { padding: 80px 0; }
.cta__box {
  padding: 80px 40px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124,249,212,.15), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(176,124,255,.15), transparent 50%),
    rgba(255,255,255,.02);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.cta__box > * { position: relative; z-index: 1; }
.cta__box h2 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta__box h2 em {
  font-style: italic; font-weight: 400;
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.cta__box p {
  font-size: 17px; color: var(--ink-dim);
  margin: 0 auto 36px; max-width: 480px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__desc {
  margin-top: 16px;
  font-size: 14px; color: var(--ink-dim);
  max-width: 280px;
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__grid a {
  display: block;
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer__grid a:hover { color: var(--mint); }
.footer__bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-mute);
  flex-wrap: wrap; gap: 16px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-dim);
  transition: all .2s;
}
.footer__social a:hover {
  color: var(--mint);
  border-color: rgba(124,249,212,.3);
  background: rgba(124,249,212,.05);
}

/* =========================================================
   REVEAL ANIMATION (JS intersection observer)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1; transform: translateY(0);
}
/* stagger groups */
.features__grid .reveal:nth-child(1) { transition-delay: .0s; }
.features__grid .reveal:nth-child(2) { transition-delay: .08s; }
.features__grid .reveal:nth-child(3) { transition-delay: .16s; }
.features__grid .reveal:nth-child(4) { transition-delay: .08s; }
.features__grid .reveal:nth-child(5) { transition-delay: .16s; }
.features__grid .reveal:nth-child(6) { transition-delay: .24s; }

.cats__grid .reveal:nth-child(2) { transition-delay: .07s; }
.cats__grid .reveal:nth-child(3) { transition-delay: .14s; }
.cats__grid .reveal:nth-child(4) { transition-delay: .21s; }

.plans .reveal:nth-child(2) { transition-delay: .1s; }
.plans .reveal:nth-child(3) { transition-delay: .2s; }

.posts .reveal:nth-child(2) { transition-delay: .1s; }
.posts .reveal:nth-child(3) { transition-delay: .2s; }

.steps .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }

/* =========================================================
   MOBILE DRAWER (hidden on desktop)
   ========================================================= */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  z-index: 200;
  background: rgba(5, 7, 13, .98);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  padding:
    calc(88px + env(safe-area-inset-top, 0px))
    max(24px, env(safe-area-inset-right))
    calc(40px + env(safe-area-inset-bottom, 0px))
    max(24px, env(safe-area-inset-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  flex-direction: column;
  gap: 28px;
}
.drawer.is-open {
  display: flex;
  animation: drawer-in .3s cubic-bezier(.4, 0, .2, 1);
}
@keyframes drawer-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.drawer__nav {
  display: flex; flex-direction: column; gap: 4px;
}
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.drawer__nav a::after {
  content: "→";
  color: var(--ink-mute);
  font-size: 18px;
  transition: transform .2s, color .2s;
}
.drawer__nav a:hover::after,
.drawer__nav a:active::after {
  transform: translateX(3px);
  color: var(--mint);
}
.drawer__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 8px 0 0;
}
.drawer__login {
  display: flex; flex-direction: column; gap: 8px;
}
.drawer__label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.drawer__login-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  transition: background .2s, border-color .2s;
}
.drawer__login-item:active {
  background: rgba(255, 255, 255, .06);
  border-color: var(--line-2);
}
.drawer__login-item .login__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.drawer__cta {
  margin-top: auto;
  padding-top: 20px;
}

/* Burger open state */
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Lock scroll when drawer is open */
body.has-drawer-open {
  overflow: hidden;
}

/* =========================================================
   MOBILE STICKY CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: none;
  padding: 12px;
  background: rgba(5, 7, 13, .92);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .7);
}
.sticky-cta .btn {
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.sticky-cta .btn svg {
  flex-shrink: 0;
}

/* Button helpers for mobile */
.btn--block {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 100%;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- Tablet: <= 900px ---- */
@media (max-width: 900px) {
  .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .nav { display: none; }
  .login { display: none; }
  .burger { display: flex; }

  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual {
    height: 460px; max-width: 560px; margin: 0 auto;
  }

  .orbit--a { width: 340px; height: 340px; }
  .orbit--b { width: 460px; height: 460px; }
  .orbit--c { width: 580px; height: 580px; }
  .orbit-track--a .orb--1 { transform: translate(170px, 0); }
  .orbit-track--a .orb--2 { transform: translate(0, 170px); }
  .orbit-track--a .orb--3 { transform: translate(-170px, 0); }
  .orbit-track--a .orb--4 { transform: translate(0, -170px); }
  .orbit-track--b .orb--5 { transform: translate(230px, 0); }
  .orbit-track--b .orb--6 { transform: translate(163px, 163px); }
  .orbit-track--b .orb--7 { transform: translate(-230px, 0); }
  .orbit-track--b .orb--8 { transform: translate(-163px, -163px); }

  .features__grid,
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
  .plans, .posts, .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---- Mobile: <= 640px ---- */
@media (max-width: 640px) {
  :root { --radius: 16px; --radius-lg: 22px; }
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  section { padding: 72px 0; }

  /* header slimmer */
  .header__inner { height: 64px; gap: 12px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__mark svg { width: 22px; height: 22px; }

  /* drawer takes into account 64px header */
  .drawer { padding-top: 80px; }

  /* hero */
  .hero { padding: 32px 0 16px; }
  .hero__title {
    font-size: clamp(34px, 10vw, 48px);
    margin-bottom: 16px;
  }
  .hero__sub { font-size: 16px; margin-bottom: 28px; }
  .hero__cta { gap: 10px; margin-bottom: 36px; }
  .hero__cta .btn { flex: 1; justify-content: center; min-width: 140px; }
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 28px;
    max-width: 100%;
  }
  .hero__stats b { font-size: 22px; }
  .hero__stats span { font-size: 11px; letter-spacing: .06em; }

  /* hero scene */
  .hero__visual { height: 380px; }
  .card3d { width: 260px; height: 164px; }
  .card3d__inner { padding: 20px; border-radius: 16px; }
  .card3d__number { font-size: 15px; gap: 8px; }
  .card3d__number span { font-size: 15px; }
  .card3d__bottom b { font-size: 11px; }
  .card3d__logo svg { width: 40px; height: 24px; }

  .orb { width: 44px; height: 44px; top: -22px; left: -22px; }
  .orb__ic { border-radius: 13px; }
  .orb__ic svg { width: 18px; height: 18px; }
  .orbit--a { width: 260px; height: 260px; }
  .orbit--b { width: 360px; height: 360px; }
  .orbit--c { width: 450px; height: 450px; }
  .orbit-track--a .orb--1 { transform: translate(130px, 0); }
  .orbit-track--a .orb--2 { transform: translate(0, 130px); }
  .orbit-track--a .orb--3 { transform: translate(-130px, 0); }
  .orbit-track--a .orb--4 { transform: translate(0, -130px); }
  .orbit-track--b .orb--5 { transform: translate(180px, 0); }
  .orbit-track--b .orb--6 { transform: translate(127px, 127px); }
  .orbit-track--b .orb--7 { transform: translate(-180px, 0); }
  .orbit-track--b .orb--8 { transform: translate(-127px, -127px); }

  .stage__grid { width: 600px; height: 360px; }
  .ring--1 { width: 400px; height: 400px; }
  .ring--2 { width: 300px; height: 300px; }
  .ring--3 { width: 200px; height: 200px; }

  /* section headers */
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(28px, 7vw, 38px); }
  .eyebrow { font-size: 11px; }

  /* features & categories: horizontal swipe */
  .features__grid,
  .cats__grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 4px 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .features__grid::-webkit-scrollbar,
  .cats__grid::-webkit-scrollbar { display: none; }
  .features__grid > *,
  .cats__grid > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-width: 0;
  }
  .features__grid > *:first-child,
  .cats__grid > *:first-child { scroll-snap-align: start; }

  /* pricing: horizontal swipe too */
  .plans {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 4px 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-x: contain;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plans > * {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  /* posts on home: stack */
  .posts { display: flex; flex-direction: column; gap: 16px; }

  /* steps */
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }

  /* how-it-works section */
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* CTA box */
  .cta__box { padding: 44px 20px; border-radius: var(--radius-lg); }
  .cta__box .btn {
    width: 100%;
    justify-content: center;
    padding: 0 20px;
    height: 54px;
    font-size: 15px;
    /* allow the text to wrap if phone is tiny */
    white-space: normal;
    line-height: 1.2;
  }

  /* footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  /* footer gets bottom padding only on pages where sticky CTA is present */
  body:has(.sticky-cta) .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }

  /* show sticky CTA */
  .sticky-cta { display: block; }

  /* marquee — speed up slightly */
  .marquee__track { animation-duration: 25s; }

  /* service tiles marquee — smaller */
  .stile { padding: 10px 14px; font-size: 13px; }
  .stile__ic { width: 24px; height: 24px; font-size: 13px; }
}

/* ---- Tiny phones: <= 480px ---- */
@media (max-width: 480px) {
  section { padding: 60px 0; }

  .hero__title { font-size: clamp(30px, 9vw, 38px); }
  .hero__sub { font-size: 15px; }
  .hero__stats { gap: 10px; padding-top: 24px; }
  .hero__stats b { font-size: 18px; }
  .hero__stats span { font-size: 10px; }

  .hero__visual { height: 340px; }
  .card3d { width: 230px; height: 144px; }
  .card3d__inner { padding: 16px; }
  .card3d__number { font-size: 13px; }
  .card3d__bottom em { font-size: 8px; }
  .card3d__bottom b { font-size: 10px; }

  .orb { width: 38px; height: 38px; top: -19px; left: -19px; }
  .orb__ic svg { width: 16px; height: 16px; }
  .orbit--a { width: 220px; height: 220px; }
  .orbit--b { width: 310px; height: 310px; }
  .orbit--c { width: 390px; height: 390px; }
  .orbit-track--a .orb--1 { transform: translate(110px, 0); }
  .orbit-track--a .orb--2 { transform: translate(0, 110px); }
  .orbit-track--a .orb--3 { transform: translate(-110px, 0); }
  .orbit-track--a .orb--4 { transform: translate(0, -110px); }
  .orbit-track--b .orb--5 { transform: translate(155px, 0); }
  .orbit-track--b .orb--6 { transform: translate(110px, 110px); }
  .orbit-track--b .orb--7 { transform: translate(-155px, 0); }
  .orbit-track--b .orb--8 { transform: translate(-110px, -110px); }

  .stage__grid { width: 480px; height: 300px; }
  .ring--1 { width: 320px; height: 320px; }
  .ring--2 { width: 240px; height: 240px; }
  .ring--3 { width: 160px; height: 160px; }

  .features__grid > *,
  .cats__grid > * { flex-basis: 84%; }
  .plans > * { flex-basis: 90%; }

  .drawer { padding: 76px 20px 32px; }
  .drawer__nav a { font-size: 20px; padding: 14px 4px; }
}

/* =========================================================
   HIDE DESKTOP-ONLY / MOBILE-ONLY
   ========================================================= */
@media (min-width: 901px) {
  .drawer { display: none; }
  .sticky-cta { display: none !important; }
  .burger { display: none; }
}

/* =========================================================
   UTILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
