/* ==========================================================================
   blackolive.dev — design tokens
   ========================================================================== */
:root {
  color-scheme: dark;

  --bg:            #080b09;
  --bg-elev:       #0c110d;
  --surface:       rgba(255, 255, 255, .035);
  --surface-2:     rgba(255, 255, 255, .06);
  --border:        rgba(196, 222, 156, .12);
  --border-strong: rgba(196, 222, 156, .26);

  --text:    #eaf0e6;
  --text-2:  #b7c3ae;
  --muted:   #8d9a85;

  --olive:      #b8e04a;
  --olive-soft: #d7e86b;
  --olive-deep: #5e8a24;
  --oil:        #e3c46a;

  --grad-text: linear-gradient(112deg, #f6f9f0 4%, #d3e78d 52%, #e3c46a 96%);
  --grad-btn:  linear-gradient(165deg, #d7e86b 0%, #a8d13f 48%, #7fb03a 100%);
  --grad-card: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 18px 40px -22px rgba(0,0,0,.85);
  --shadow-lg: 0 40px 90px -40px rgba(0,0,0,.95);
  --glow:      0 20px 60px -26px rgba(184, 224, 74, .55);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1180px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter,
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(184, 224, 74, .28); }

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

.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--olive);
  color: #0a0f07;
  font-weight: 650;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { position: relative; padding-block: var(--section-y); scroll-margin-top: 90px; }
.section + .section { padding-top: 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px rgba(184, 224, 74, .16);
}
.eyebrow.plain::before { display: none; }

h2.h-section { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h3 { font-size: 1.22rem; letter-spacing: -.024em; }

.lead {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--text-2);
  max-width: 60ch;
  line-height: 1.7;
}
.section-head.center .lead { margin-inline: auto; }

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

/* ==========================================================================
   Ambient background
   ========================================================================== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-decor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 222, 156, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 222, 156, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 78%);
}
.header, main, .footer { position: relative; z-index: 1; }

.blob {
  position: absolute;
  border-radius: 50%;
  animation: drift 24s var(--ease) infinite alternate;
}
.blob-1 { width: 58rem; height: 58rem; top: -26rem; right: -18rem; background: radial-gradient(circle closest-side, rgba(184,224,74,.22), rgba(184,224,74,.06) 55%, transparent 78%); }
.blob-2 { width: 46rem; height: 46rem; top: 34rem; left: -20rem; background: radial-gradient(circle closest-side, rgba(227,196,106,.14), rgba(227,196,106,.04) 55%, transparent 78%); animation-delay: -9s; }
.blob-3 { width: 52rem; height: 52rem; bottom: -18rem; right: -14rem; background: radial-gradient(circle closest-side, rgba(127,176,58,.16), rgba(127,176,58,.05) 55%, transparent 78%); animation-delay: -15s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3rem, 3rem, 0) scale(1.1); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.header.is-stuck {
  background: rgba(8, 11, 9, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; }
.brand svg, .brand img { width: 34px; height: 34px; flex: none; }
.brand .dot { color: var(--olive); }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .4rem; }
.nav-list a:not(.btn) {
  display: block;
  padding: .55rem .85rem;
  border-radius: var(--r-pill);
  font-size: .95rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-list a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav-list a:not(.btn).is-active { color: var(--text); background: var(--surface-2); }

.nav-cta { margin-left: .6rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  width: 18px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(-90deg); }
.nav-toggle[aria-expanded="true"] span::after  { opacity: 0; transform: translateY(-6px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .96rem;
  font-weight: 640;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-btn);
  color: #0a1005;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover { box-shadow: 0 26px 70px -24px rgba(184,224,74,.7), inset 0 1px 0 rgba(255,255,255,.55); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }

.btn-sm { padding: .58rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem .4rem .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .84rem;
  font-weight: 560;
  color: var(--text-2);
  backdrop-filter: blur(8px);
}
.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--olive);
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  opacity: .6;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.7); opacity: .8; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  letter-spacing: -.045em;
}
.hero .lead { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--border);
}
.hero-facts dt { font-size: .82rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.hero-facts dd { margin: .35rem 0 0; font-size: 1.02rem; font-weight: 600; color: var(--text); letter-spacing: -.02em; }

/* --- device mockups ------------------------------------------------------- */
.hero-visual { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.stage { position: relative; width: 100%; max-width: 430px; aspect-ratio: 1 / 1.12; }

.device {
  position: absolute;
  width: 200px;
  aspect-ratio: 9 / 18.6;
  padding: 6px;
  background: linear-gradient(160deg, #2e392c, #0f140f 62%);
  border-radius: 32px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(196,222,156,.14), inset 0 1px 0 rgba(255,255,255,.16);
  animation: float 8s var(--ease) infinite alternate;
}
.device-ios     { left: 0;    top: 0;   transform: rotate(-6deg); z-index: 3; }
.device-android { right: 4%;  top: 15%; transform: rotate(6deg);  z-index: 2; animation-delay: -4s; }

@keyframes float {
  from { translate: 0 0; }
  to   { translate: 0 -14px; }
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  background: radial-gradient(120% 80% at 20% 0%, #172016, #0a0e0a 70%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 9px 7px;
}
.notch {
  position: absolute;
  top: 6px; left: 50%;
  translate: -50% 0;
  width: 50px; height: 5px;
  background: #050705;
  border-radius: var(--r-pill);
  z-index: 2;
}
.device-android .notch { width: 6px; height: 6px; left: 50%; top: 7px; }

.s-top { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.s-title { width: 58px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--olive-soft), rgba(184,224,74,.3)); }
.s-avatar { width: 15px; height: 15px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }

.s-hero {
  height: 66px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(184,224,74,.30), rgba(227,196,106,.12) 60%, rgba(255,255,255,.03));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.s-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.20) 42%, transparent 62%);
  translate: -120% 0;
  animation: sweep 5s var(--ease) infinite;
}
@keyframes sweep { 0%, 62% { translate: -120% 0; } 100% { translate: 120% 0; } }

.s-rows { display: grid; gap: 7px; }
.s-row { display: flex; align-items: center; gap: 7px; }
.s-row i { width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.s-row b { display: block; height: 5px; border-radius: 3px; background: rgba(234,240,230,.22); }
.s-row .lines { flex: 1; display: grid; gap: 4px; }
.s-row .lines b:last-child { width: 56%; background: rgba(234,240,230,.11); }

.s-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid var(--border); }
.s-tabs span { width: 15px; height: 4px; border-radius: 3px; background: rgba(234,240,230,.16); }
.s-tabs span:first-child { background: var(--olive); box-shadow: 0 0 12px rgba(184,224,74,.7); }
.device-android .s-tabs span { width: 18px; border-radius: 2px; }

.plat-tag {
  position: absolute;
  top: -12px; left: 50%;
  translate: -50% 0;
  padding: .26rem .66rem;
  background: rgba(10, 14, 10, .94);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive-soft);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.browser {
  position: absolute;
  left: -6%; bottom: 3%;
  width: 66%;
  padding: 8px;
  background: linear-gradient(170deg, rgba(21,28,20,.98), rgba(8,11,8,.98));
  border: 1px solid rgba(196,222,156,.16);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 4;
  animation: float 9s var(--ease) -2s infinite alternate;
}
.b-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.b-bar em { width: 6px; height: 6px; border-radius: 50%; background: #2f3a2c; }
.b-bar em:first-child { background: #56652f; }
.b-url {
  flex: 1;
  margin-left: 5px;
  height: 14px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-inline: 7px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0;
}
.b-skeleton { display: grid; gap: 5px; margin-bottom: 9px; }
.b-skeleton i { height: 5px; border-radius: 3px; background: rgba(234,240,230,.14); }
.b-skeleton i:first-child { width: 52%; background: rgba(215,232,107,.4); }
.b-skeleton i:last-child { width: 78%; }
.b-body { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; align-items: end; height: 34px; }
.b-body span {
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(184,224,74,.85), rgba(94,138,36,.25));
  transform-origin: bottom;
  animation: rise 3.4s var(--ease) infinite alternate;
}
.b-body span:nth-child(1) { height: 42%; animation-delay: -.2s; }
.b-body span:nth-child(2) { height: 70%; animation-delay: -.8s; }
.b-body span:nth-child(3) { height: 54%; animation-delay: -1.4s; }
.b-body span:nth-child(4) { height: 100%; animation-delay: -2s; background: linear-gradient(180deg, var(--olive-soft), rgba(184,224,74,.35)); }
.b-body span:nth-child(5) { height: 64%; animation-delay: -2.6s; }
@keyframes rise { from { transform: scaleY(.78); } to { transform: scaleY(1); } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  position: relative;
  padding-block: 1.6rem;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-size: .96rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(184,224,74,.45); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215,232,107,.5), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }

.ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.15rem;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(184,224,74,.22), rgba(184,224,74,.05));
  border: 1px solid var(--border-strong);
  color: var(--olive-soft);
}
.ic svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-2); font-size: .98rem; }

.tick-list { margin-top: 1.25rem; display: grid; gap: .55rem; }
.tick-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .94rem;
  color: var(--text-2);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--olive);
  opacity: .85;
  rotate: 45deg;
}

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.chip {
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: 0;
  color: var(--text-2);
}

/* capability grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.cap {
  padding: clamp(1.3rem, 2.2vw, 1.75rem);
  background: var(--bg-elev);
  transition: background .3s var(--ease);
}
.cap:hover { background: #121a13; }
.cap h3 { font-size: 1.04rem; margin-bottom: .45rem; }
.cap p { color: var(--muted); font-size: .93rem; }
.cap .num {
  display: block;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--olive);
  margin-bottom: .8rem;
  letter-spacing: .08em;
}

/* ==========================================================================
   Process
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  content: "";
  position: absolute;
  top: 1.05rem; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.step .dot {
  position: absolute;
  top: .55rem; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 5px rgba(184,224,74,.14);
}
.step span.k { font-family: var(--mono); font-size: .8rem; color: var(--olive); letter-spacing: .1em; }
.step h3 { margin: .5rem 0 .55rem; }
.step p { color: var(--text-2); font-size: .95rem; }

/* ==========================================================================
   Engagements
   ========================================================================== */
.plan { display: flex; flex-direction: column; }
.plan.featured {
  border-color: var(--border-strong);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(184,224,74,.14), transparent 60%),
    var(--grad-card);
}
.plan .ribbon {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  padding: .2rem .6rem;
  border-radius: var(--r-pill);
  background: var(--olive);
  color: #0a1005;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan .best-for { margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.plan .btn { margin-top: 1.6rem; width: 100%; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: .7rem; max-width: 52rem; }
.faq details {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0 1.3rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 620;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  width: 11px; height: 11px;
  flex: none;
  border-right: 1.8px solid var(--olive);
  border-bottom: 1.8px solid var(--olive);
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.faq p { padding: 0 0 1.25rem; color: var(--text-2); font-size: .97rem; max-width: 60ch; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  position: relative;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(184,224,74,.16), transparent 58%),
    radial-gradient(70% 90% at 0% 100%, rgba(227,196,106,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.8rem, 4vw, 3.4rem); }

.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.6rem; }
.mail-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--olive-soft);
  border-bottom: 1px dashed rgba(215,232,107,.45);
  padding-bottom: 2px;
}
.mail-link:hover { color: var(--text); border-bottom-color: var(--text); }
.copy-btn {
  padding: .35rem .7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.copy-btn:hover { border-color: var(--border-strong); color: var(--text); }

.trust { margin-top: 2rem; display: grid; gap: .6rem; }
.trust li { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; color: var(--text-2); }
.trust svg { width: 17px; height: 17px; flex: none; margin-top: .22rem; color: var(--olive); }

.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 620; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  background: rgba(6, 9, 6, .55);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  font-size: .96rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23b8e04a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #5f6b59; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: rgba(6, 9, 6, .8);
  box-shadow: 0 0 0 3px rgba(184,224,74,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .btn { margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { font-size: .9rem; color: var(--olive-soft); min-height: 1.2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--border); padding-block: 2.6rem 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between; }
.footer p { color: var(--muted); font-size: .9rem; max-width: 30rem; margin-top: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-col h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; font-weight: 650; }
.footer-col a { display: block; padding: .18rem 0; font-size: .93rem; color: var(--text-2); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--olive-soft); }
.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
}

/* ==========================================================================
   404
   ========================================================================== */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.nf-inner { max-width: 34rem; padding-inline: var(--pad); }
.nf img { width: 76px; height: 76px; margin: 0 auto 2rem; }
.nf .code { font-family: var(--mono); font-size: .86rem; letter-spacing: .18em; color: var(--olive); }
.nf h1 { margin: 1rem 0 0; font-size: clamp(2rem, 6vw, 3rem); }
.nf p { margin-top: 1.1rem; color: var(--text-2); }
.nf .btn { margin-top: 2rem; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; order: 2; }
  .hero .lead { max-width: 46rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%; left: var(--pad); right: var(--pad);
    margin: 0;
    padding: .6rem;
    background: rgba(9, 13, 10, .96);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-list a { padding: .8rem 1rem; font-size: 1rem; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
  .hero-facts { grid-template-columns: 1fr; gap: 1.1rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cap-grid { grid-template-columns: 1fr; }
  .stage { max-width: 330px; }
  .device { width: 158px; border-radius: 26px; }
  .screen { border-radius: 21px; padding: 7px 7px 6px; }
  .s-hero { height: 52px; }
  .browser { left: -4%; width: 72%; }
  .field-row { grid-template-columns: 1fr; }
  .footer-links { gap: 1.8rem; }
}

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

@media print {
  .bg-decor, .header, .hero-visual, .marquee { display: none; }
  body { background: #fff; color: #000; }
}
