/* ============================================================
   Compass TI — Modern Tech Website
   ============================================================ */

:root {
  --bg:        #060c1c;
  --bg-2:      #0a1633;
  --surface:   rgba(18, 30, 60, 0.55);
  --surface-2: rgba(24, 40, 78, 0.6);
  --border:    rgba(120, 160, 255, 0.14);
  --border-2:  rgba(120, 160, 255, 0.28);

  --blue:      #4f6bff;
  --blue-2:    #38bdf8;
  --cyan:      #22d3ee;
  --accent:    #6ea8ff;

  --text:      #eaf1ff;
  --muted:     #9fb2d8;
  --muted-2:   #6f83ad;

  --grad:      linear-gradient(120deg, #38bdf8 0%, #4f6bff 55%, #7c5cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(56,189,248,.16), rgba(79,107,255,.16));
  --grad-gold: linear-gradient(120deg, #f6dd93 0%, #c99a4b 55%, #9c7638 100%);

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 24px 60px -20px rgba(4, 12, 40, 0.8);
  --shadow-glow: 0 0 40px -6px rgba(79, 107, 255, 0.5);

  --container: 1180px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --font:      'Inter', system-ui, sans-serif;
  --font-head: 'Sora', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* ---------- Backgrounds ---------- */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -3;
  opacity: .55;
}

.bg-gradient {
  position: fixed; inset: 0; z-index: -4;
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(79,107,255,.35), transparent 60%),
    radial-gradient(55% 50% at 90% 10%, rgba(56,189,248,.25), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(124,92,255,.22), transparent 60%),
    var(--bg);
  animation: hue 18s ease-in-out infinite alternate;
}
@keyframes hue { to { filter: hue-rotate(24deg); } }

.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(120,160,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 40%, transparent 100%);
  animation: gridmove 20s linear infinite;
}
@keyframes gridmove { to { background-position: 54px 54px; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad);
  z-index: 200;
  box-shadow: 0 0 12px rgba(79,107,255,.8);
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 18px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), backdrop-filter .3s;
}
.header.scrolled {
  padding: 10px 0;
  background: rgba(6, 12, 28, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.logo__mark { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 3px 12px rgba(79, 107, 255, .45)); transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(72deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-weight: 800; font-size: 1.28rem; letter-spacing: .06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__ti { -webkit-text-fill-color: transparent; }
.logo__sub { font-family: var(--font); font-weight: 500; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 9px 15px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: var(--muted);
  position: relative; transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--text); background: rgba(120,160,255,.08); }
.nav__cta {
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: var(--shadow-glow);
}
.nav__cta:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, filter .25s, background .25s;
  font-family: var(--font);
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 0 50px -4px rgba(79,107,255,.7); }
.btn--primary svg { transition: transform .25s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { background: rgba(120,160,255,.06); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: rgba(120,160,255,.14); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Gradient text ---------- */
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 130px 0 70px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 100px; font-size: .85rem; font-weight: 500; color: var(--accent);
  background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 24px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 0 rgba(56,189,248,.6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(56,189,248,.6);} 100%{box-shadow:0 0 0 10px rgba(56,189,248,0);} }

.hero__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 22px; }
.hero__subtitle { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 540px; margin-bottom: 34px; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero__stats { display: flex; justify-content: flex-start; }
.stat {
  position: relative; display: inline-flex; align-items: center; gap: 20px;
  padding: 20px 30px 20px 26px; border-radius: 18px; cursor: default; outline: none;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.stat::before { /* animated gradient border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.stat::after { /* sweeping shine */
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(140,180,255,.18), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease);
}
.stat:hover, .stat:focus-visible { transform: translateY(-8px); border-color: transparent; box-shadow: 0 24px 50px -18px rgba(79,107,255,.55); }
.stat:hover::before, .stat:focus-visible::before { opacity: 1; }
.stat:hover::after, .stat:focus-visible::after { left: 120%; }

.stat__ring {
  position: relative; flex-shrink: 0; width: 12px; height: 46px; border-radius: 100px;
  background: var(--grad); background-size: 100% 200%;
  box-shadow: 0 0 16px -2px rgba(79,107,255,.6); animation: ringflow 3s ease-in-out infinite;
  transition: transform .4s var(--ease);
}
.stat:hover .stat__ring { transform: scaleY(1.14); }
@keyframes ringflow { 50% { background-position: 0 100%; } }

.stat__value { display: inline-flex; align-items: baseline; line-height: 1; }
.stat__num, .stat__plus {
  font-family: var(--font-head); font-weight: 800; line-height: 1; display: inline-block;
  background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
.stat__num { font-size: 3.1rem; }
.stat__plus { font-size: 1.9rem; margin-left: 2px; transition: transform .4s var(--ease); }
.stat:hover .stat__plus { transform: translateY(-6px); }
.stat__label { text-align: left; font-size: .88rem; color: var(--muted); max-width: 210px; }

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }

.orbit { position: relative; width: 320px; height: 320px; display: grid; place-items: center; }
.orbit__core {
  width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-2); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow); z-index: 3;
  animation: bob 4s ease-in-out infinite;
}
.orbit__core svg { width: 44px; height: 44px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.orbit__ring { position: absolute; inset: 0; border: 1px dashed var(--border-2); border-radius: 50%; }
.orbit__ring--1 { inset: 40px; animation: orbit 12s linear infinite; }
.orbit__ring--2 { inset: 8px;  animation: orbit 18s linear infinite reverse; }
.orbit__ring--3 { inset: -30px; animation: orbit 24s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.orbit__chip {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--accent);
  background: var(--bg-2); border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.orbit__ring--1 .orbit__chip { animation: counter 12s linear infinite; }
.orbit__ring--2 .orbit__chip { animation: counter 18s linear infinite reverse; }
.orbit__ring--3 .orbit__chip { animation: counter 24s linear infinite; }
@keyframes counter { to { transform: translateX(-50%) rotate(-360deg); } }

.code-card {
  position: absolute; bottom: 0; right: -10px; width: 290px;
  background: rgba(10, 18, 40, .82); border: 1px solid var(--border-2); border-radius: 14px;
  backdrop-filter: blur(14px); box-shadow: var(--shadow); overflow: hidden; z-index: 4;
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.code-card__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(120,160,255,.04); }
.code-card__bar span { width: 10px; height: 10px; border-radius: 50%; background: #33436b; }
.code-card__bar span:nth-child(1){background:#ff5f57;} .code-card__bar span:nth-child(2){background:#febc2e;} .code-card__bar span:nth-child(3){background:#28c840;}
.code-card__bar em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--muted-2); font-family: var(--font-head); }
.code-card__body { padding: 16px; font-family: 'Courier New', monospace; font-size: .82rem; line-height: 1.7; color: #cdd9f5; overflow-x: auto; }
.c-key { color: #7c5cff; } .c-fn { color: #38bdf8; } .c-str { color: #34d399; } .c-cmt { color: #6f83ad; }

/* Scroll hint */
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-2); border-radius: 20px; display: grid; justify-items: center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translateY(-2px);} 50%{opacity:1;} 100%{opacity:0; transform:translateY(12px);} }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--border); background: rgba(10,18,40,.4); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: scroll-x 34s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--muted); white-space: nowrap; }
.marquee__track span[aria-hidden] { color: var(--blue-2); font-size: .7rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(10,18,40,.5), transparent); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section__eyebrow { display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px; }
.section__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); opacity: 0; transition: opacity .35s; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--blue-2); margin-bottom: 20px; transition: transform .35s var(--ease); }
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.card__list { display: flex; flex-wrap: wrap; gap: 8px; }
.card__list li { font-size: .78rem; color: var(--accent); padding: 4px 11px; border-radius: 100px; background: rgba(120,160,255,.08); border: 1px solid var(--border); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__content .section__eyebrow, .split__content .section__title { text-align: left; }
.split__content .section__title { margin-top: 6px; }
.split__content .section__lead { margin-bottom: 28px; }

.glass-panel { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-2); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.glass-panel__row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-family: var(--font-head); margin-bottom: 22px; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 1.8s infinite; }
.tag { margin-left: auto; font-size: .72rem; padding: 3px 10px; border-radius: 100px; }
.tag--green { color: #34d399; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-bottom: 24px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar span { width: 100%; height: var(--h); background: var(--grad); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: growbar 1.4s var(--ease) both; }
@keyframes growbar { from { transform: scaleY(0); } }
.bar:nth-child(1) span{animation-delay:.05s;} .bar:nth-child(2) span{animation-delay:.12s;} .bar:nth-child(3) span{animation-delay:.19s;} .bar:nth-child(4) span{animation-delay:.26s;} .bar:nth-child(5) span{animation-delay:.33s;} .bar:nth-child(6) span{animation-delay:.4s;} .bar:nth-child(7) span{animation-delay:.47s;}

.glass-panel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.glass-panel__grid div { text-align: center; padding: 14px 6px; border-radius: var(--radius-sm); background: rgba(120,160,255,.05); border: 1px solid var(--border); }
.glass-panel__grid strong { display: block; font-family: var(--font-head); font-size: 1.15rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass-panel__grid small { color: var(--muted-2); font-size: .72rem; }

.feature-list { display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list__ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--blue-2); font-weight: 700; }
.feature-list strong { font-family: var(--font-head); font-size: 1.08rem; }
.feature-list p { color: var(--muted); font-size: .95rem; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); transition: transform .35s var(--ease), border-color .35s; }
.step:hover { transform: translateY(-6px); border-color: var(--border-2); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.step__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin: 8px 0 8px; }
.step__text { color: var(--muted); font-size: .93rem; }

/* ---------- Tech grid ---------- */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 860px; margin: 0 auto; }
.tech-pill { font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 11px 22px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: transform .25s var(--ease), color .25s, border-color .25s, background .25s; }
.tech-pill:hover { transform: translateY(-4px) scale(1.05); color: var(--text); border-color: var(--border-2); background: var(--grad-soft); }

/* ---------- CTA / Form ---------- */
.cta { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: center; padding: 54px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border-2); backdrop-filter: blur(14px); overflow: hidden; }
.cta__glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(79,107,255,.35), transparent 70%); top: -180px; left: -140px; filter: blur(20px); animation: floatglow 10s ease-in-out infinite; }
@keyframes floatglow { 50% { transform: translate(60px, 40px); } }
.cta__content { position: relative; z-index: 1; }
.cta__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 14px; }
.cta__text { color: var(--muted); font-size: 1.05rem; }

.contact-list { display: grid; gap: 12px; margin-top: 26px; }
.contact-list a { display: inline-flex; align-items: center; gap: 13px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(120,160,255,.05); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s, background .25s; }
.contact-list a:hover { transform: translateX(4px); border-color: var(--border-2); background: var(--grad-soft); }
.contact-list__ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--blue-2); }
.contact-list__ic svg { width: 21px; height: 21px; }
.contact-list small { display: block; font-size: .74rem; color: var(--muted-2); }
.contact-list strong { font-family: var(--font-head); font-size: 1rem; }

.form { position: relative; z-index: 1; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field span { font-size: .84rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: .96rem; color: var(--text);
  padding: 13px 15px; border-radius: 12px; background: rgba(6,12,28,.6);
  border: 1px solid var(--border-2); transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,107,255,.18); }
.field select { cursor: pointer; }
.field select option { background: var(--bg-2); }
.form__note { font-size: .88rem; text-align: center; min-height: 20px; }
.form__note.ok { color: #34d399; }
.form__note.err { color: #ff6b81; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(6,12,28,.6); backdrop-filter: blur(10px); margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer__brand p { color: var(--muted); max-width: 320px; margin-top: 14px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer__nav h4 { font-family: var(--font-head); font-size: .95rem; margin-bottom: 14px; }
.footer__nav a { display: block; color: var(--muted); font-size: .92rem; padding: 5px 0; transition: color .25s; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- App-style bottom tab bar (mobile only) ---------- */
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 340px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ======================================================
   MOBILE — desenhado como um app nativo
   ====================================================== */
@media (max-width: 720px) {

  /* safe-area helpers */
  .header { padding: 12px 0; padding-top: max(12px, env(safe-area-inset-top)); }
  .header__inner { padding-inline: 4px; }
  .logo__mark { width: 40px; height: 40px; }
  .logo__name { font-size: 1.15rem; }
  .logo__sub { font-size: .56rem; letter-spacing: .18em; }

  /* --- Full-screen app menu --- */
  .nav {
    position: fixed; inset: 0; width: 100%; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 8px;
    padding: calc(env(safe-area-inset-top) + 76px) 26px calc(env(safe-area-inset-bottom) + 40px);
    background: linear-gradient(160deg, rgba(10,18,40,.98), rgba(6,12,28,.99));
    backdrop-filter: blur(22px);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .45s var(--ease), opacity .3s var(--ease); z-index: 90;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link {
    padding: 18px 20px; font-size: 1.25rem; font-family: var(--font-head); font-weight: 600;
    border-radius: 16px; background: rgba(120,160,255,.05); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    transform: translateY(14px); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease), background .2s;
  }
  .nav__link::after { content: "→"; color: var(--blue-2); opacity: .6; }
  .nav.open .nav__link { transform: none; opacity: 1; }
  .nav.open .nav__link:nth-child(1){ transition-delay:.06s; }
  .nav.open .nav__link:nth-child(2){ transition-delay:.12s; }
  .nav.open .nav__link:nth-child(3){ transition-delay:.18s; }
  .nav.open .nav__link:nth-child(4){ transition-delay:.24s; }
  .nav.open .nav__link:nth-child(5){ transition-delay:.30s; }
  .nav__link:active { transform: scale(.97); background: rgba(120,160,255,.12); }
  .nav__cta { background: var(--grad); color: #fff; justify-content: center; box-shadow: var(--shadow-glow); }
  .nav__cta::after { content: none; }
  .nav-toggle { display: flex; z-index: 95; }

  /* --- Hero as an app splash --- */
  .hero { min-height: 100svh; padding: 96px 0 40px; text-align: center; }
  .hero__inner { gap: 30px; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .badge { margin-bottom: 18px; }
  .hero__title { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero__subtitle { margin-bottom: 26px; }
  .hero__actions { width: 100%; flex-direction: column; gap: 12px; margin-bottom: 30px; }
  .hero__actions .btn { width: 100%; padding: 16px 24px; }
  .hero__stats { justify-content: center; }
  .stat { width: 100%; max-width: 340px; justify-content: center; }
  .hero__visual { min-height: 260px; }
  .orbit { transform: scale(.8); }
  .code-card { display: none; }
  .scroll-hint { display: none; }

  /* --- General section rhythm --- */
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 26px 22px; }
  .card:active { transform: scale(.985); }
  .marquee { padding: 18px 0; }
  .marquee__track span { font-size: 1rem; }

  /* --- Split / stats panel --- */
  .glass-panel { padding: 22px; }

  /* --- CTA / form --- */
  .cta { padding: 34px 22px; border-radius: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .btn--block { padding: 16px; }

  /* --- Footer centered on mobile --- */
  .footer { margin-bottom: 0; }
  .footer__inner { text-align: center; justify-items: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__brand .logo { flex-direction: column; gap: 10px; }
  .footer__brand .logo__text { align-items: center; }
  .footer__brand .logo__name, .footer__brand .logo__sub { text-align: center; }
  .footer__brand p { margin-inline: auto; }
  .footer__nav { justify-items: center; text-align: center; width: 100%; }
  .footer__bottom .container { flex-direction: column; text-align: center; gap: 8px; }

  /* --- Buttons: native tap feedback --- */
  .btn:active { transform: scale(.97); }

  /* --- Room for the bottom tab bar --- */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

  /* ============ BOTTOM TAB BAR ============ */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 14, 32, .82); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-2);
    box-shadow: 0 -10px 30px -12px rgba(0,0,0,.6);
    transition: transform .4s var(--ease);
  }
  /* Hide tab bar + freeze background while the full-screen menu is open */
  body.menu-open { overflow: hidden; }
  body.menu-open .tabbar { transform: translateY(140%); }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px 0; color: var(--muted-2); font-size: 0; position: relative;
    transition: color .25s var(--ease); -webkit-tap-highlight-color: transparent;
  }
  .tabbar__ic { width: 26px; height: 26px; display: grid; place-items: center; transition: transform .3s var(--ease); }
  .tabbar__ic svg { width: 24px; height: 24px; }
  .tabbar__label { font-size: .66rem; font-weight: 600; letter-spacing: .01em; }
  .tabbar__item::before {
    content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%) scaleX(0);
    width: 26px; height: 3px; border-radius: 3px; background: var(--grad); transition: transform .3s var(--ease);
  }
  .tabbar__item.is-active { color: var(--text); }
  .tabbar__item.is-active .tabbar__ic { transform: translateY(-2px); color: var(--blue-2); }
  .tabbar__item.is-active::before { transform: translateX(-50%) scaleX(1); }
  .tabbar__item:active { transform: scale(.92); }
}

@media (max-width: 440px) {
  .timeline { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .container { width: 90%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
