/* ═══════════════════════════════════════════════════════════════
   eAgro Product Brochure — premium presentation layer
   Dark-first · canopy green + harvest gold
   Fraunces (display) · Manrope (UI)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 74px;
  --radius: 22px;
  --radius-sm: 14px;
}

[data-theme="dark"] {
  --bg: #060d0a;
  --bg-2: #0a1510;
  --bg-3: #0e1c15;
  --surface: rgba(20, 38, 29, 0.55);
  --surface-solid: #101f18;
  --ink: #eef7f1;
  --ink-soft: #c0d4c8;
  --muted: #7e9588;
  --line: rgba(197, 232, 211, 0.1);
  --line-strong: rgba(197, 232, 211, 0.22);
  --brand: #37b57e;
  --brand-2: #6fe0ae;
  --brand-deep: #155e42;
  --gold: #e6c25a;
  --gold-soft: rgba(230, 194, 90, 0.14);
  --glow: rgba(55, 181, 126, 0.35);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f9f6;
  --bg-2: #edf3ee;
  --bg-3: #e3ece5;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #ffffff;
  --ink: #0a1a12;
  --ink-soft: #3a5246;
  --muted: #66806f;
  --line: rgba(10, 26, 18, 0.09);
  --line-strong: rgba(10, 26, 18, 0.2);
  --brand: #157a52;
  --brand-2: #2ea474;
  --brand-deep: #0d4a32;
  --gold: #b98f1f;
  --gold-soft: rgba(185, 143, 31, 0.13);
  --glow: rgba(21, 122, 82, 0.22);
  --shadow: 0 30px 80px rgba(10, 26, 18, 0.14);
  --card-shadow: 0 18px 44px rgba(10, 26, 18, 0.08);
  color-scheme: light;
}

/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.66;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }

.wrap {
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
}

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--brand); color: #fff; padding: 0.7rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Fraunces renders "&" as a decorative Et-glyph that reads poorly in
   headings — swap just the ampersand to the body font for clarity */
.amp { font-family: var(--font-body); font-weight: 700; }

/* gradient headline text */
.grad-text {
  background: linear-gradient(100deg, var(--brand-2) 10%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: grad-slide 6s ease infinite;
}
@keyframes grad-slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Loader ─────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: 1.1rem; }
.loader__mark { color: var(--brand-2); }
.loader__ring {
  stroke: var(--line-strong);
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  stroke-linecap: round;
  animation: draw-ring 1.4s var(--ease) forwards;
  transform: rotate(-90deg);
  transform-origin: center;
}
.loader__leaf {
  stroke: var(--brand-2);
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: draw-ring 1.2s 0.4s var(--ease) forwards;
}
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
.loader__word { display: flex; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; letter-spacing: 0.06em; }
.loader__word span {
  opacity: 0; transform: translateY(14px);
  animation: word-pop 0.5s var(--ease-spring) forwards;
}
.loader__word span:nth-child(1) { animation-delay: 0.30s; }
.loader__word span:nth-child(2) { animation-delay: 0.38s; color: var(--brand-2); }
.loader__word span:nth-child(3) { animation-delay: 0.46s; color: var(--brand-2); }
.loader__word span:nth-child(4) { animation-delay: 0.54s; color: var(--brand-2); }
.loader__word span:nth-child(5) { animation-delay: 0.62s; color: var(--brand-2); }
@keyframes word-pop { to { opacity: 1; transform: none; } }
.loader__bar {
  width: 180px; height: 3px; border-radius: 99px;
  background: var(--line); overflow: hidden;
}
.loader__bar i {
  display: block; height: 100%; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transition: width 0.3s ease;
}

/* ── Cursor glow & scroll progress ─────────────────── */
.cursor-glow {
  position: fixed; z-index: 1;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity: 0.5;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}
[data-theme="light"] .cursor-glow { mix-blend-mode: multiply; opacity: 0.35; }
@media (hover: none) { .cursor-glow { display: none; } }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001;
  background: transparent;
}
.scroll-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--gold));
  box-shadow: 0 0 12px var(--glow);
}

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 2rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.nav__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.nav__logo-bg { fill: var(--brand-deep); }
.nav__logo-sun { fill: var(--gold); }
.nav__logo-stroke { stroke: var(--brand-2); }
.nav__brand:hover .nav__logo-sun { animation: sun-spin 0.8s var(--ease); }
@keyframes sun-spin { 50% { transform: scale(1.35); } }

.nav__links { display: none; gap: 0.35rem; }
.nav__links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem; font-weight: 600; color: var(--muted);
  border-radius: 99px;
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.is-active { color: var(--brand-2); }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 0.7rem; }
/* the demo CTA lives inside the mobile menu on small screens */
@media (max-width: 700px) {
  .nav__actions .nav__cta { display: none; }
}

/* theme toggle — pill */
.theme-toggle {
  width: 56px; height: 30px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer; position: relative;
  transition: border-color 0.3s;
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle__thumb {
  position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  color: #06110c;
  transition: transform 0.45s var(--ease-spring);
}
[data-theme="light"] .theme-toggle__thumb { transform: translateX(26px); color: #fff; }
[data-theme="dark"] .icon--sun { display: none; }
[data-theme="light"] .icon--moon { display: none; }

.nav__burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4.5px;
  width: 42px; height: 42px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.nav__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.35s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  animation: mobile-drop 0.4s var(--ease);
}
@keyframes mobile-drop { from { opacity: 0; transform: translateY(-12px); } }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a { padding: 0.8rem 0.6rem; font-weight: 600; border-radius: 10px; }
.mobile-nav a:hover { background: var(--surface); color: var(--brand-2); }
.mobile-nav .btn { margin-top: 0.6rem; justify-content: center; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.68rem 1.3rem;
  border-radius: 99px;
  font-weight: 700; font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s, background 0.3s, color 0.3s;
  will-change: transform;
}
.btn > span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, var(--brand-deep));
  color: #04110a;
  box-shadow: 0 8px 30px var(--glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
[data-theme="light"] .btn--primary { color: #fff; }
.btn--primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover::before { transform: translateX(110%); }
.btn--primary:hover { box-shadow: 0 12px 42px var(--glow), inset 0 1px 0 rgba(255,255,255,0.25); }

.btn--glass {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { border-color: var(--brand); color: var(--brand-2); }

.btn--gold {
  background: linear-gradient(135deg, #f3d98b, var(--gold) 60%, #a87e18);
  color: #241a02;
  box-shadow: 0 10px 36px rgba(230, 194, 90, 0.35);
}
.btn--gold::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}
.btn--gold:hover::before { transform: translateX(110%); }

.btn--outline-light {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn--lg { padding: 0.95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 42% at 75% 18%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
    radial-gradient(30% 34% at 12% 68%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(45% 45% at 45% 110%, color-mix(in srgb, var(--brand-deep) 55%, transparent), transparent 70%);
  animation: mesh-float 22s ease-in-out infinite alternate;
}
@keyframes mesh-float {
  from { transform: translate(0,0) rotate(0deg) scale(1); }
  to { transform: translate(2.5%, -2%) rotate(2deg) scale(1.05); }
}
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.5;
  animation: orb-drift 16s ease-in-out infinite alternate;
}
.hero__orb--a { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; background: color-mix(in srgb, var(--brand) 55%, transparent); top: -12%; right: -8%; }
.hero__orb--b { width: 30vw; height: 30vw; max-width: 340px; max-height: 340px; background: color-mix(in srgb, var(--gold) 40%, transparent); bottom: 4%; left: -8%; animation-delay: -5s; }
.hero__orb--c { width: 20vw; height: 20vw; max-width: 240px; max-height: 240px; background: color-mix(in srgb, var(--brand-2) 40%, transparent); top: 40%; left: 38%; opacity: 0.25; animation-delay: -9s; }
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 5%) scale(1.08); }
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 75%);
  opacity: 0.5;
}
.hero__grain {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__particles { position: absolute; inset: 0; }
.hero__particles i {
  position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-2);
  opacity: 0;
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  12% { opacity: 0.7; }
  85% { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-46vh) scale(1.1); }
}

.hero__wrap {
  position: relative; z-index: 2;
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
  display: grid; gap: 3.5rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-size: 0.82rem; font-weight: 700; color: var(--ink-soft);
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 0 var(--glow);
  animation: ping 2.2s ease infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 var(--glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  font-size: clamp(2.9rem, 7.2vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 0.4em;
}
.hero__title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.65em) rotate(3deg);
  filter: blur(6px);
  animation: word-in 0.85s var(--ease) forwards;
  animation-delay: var(--wd, 0s);
}
@keyframes word-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero__title .w--accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--brand-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}
.hero__lede b { color: var(--ink-soft); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  margin-top: 2.5rem;
  color: var(--muted);
}
.hero__proof small { white-space: nowrap; }
.hero__proof > div { display: grid; }
.hero__proof b {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 700; color: var(--ink);
  line-height: 1.1;
}
.hero__proof small { font-size: 0.78rem; font-weight: 600; }
.hero__proof i { width: 1px; height: 30px; background: var(--line-strong); }

/* splash-in (hero staged entrance) */
[data-splash] {
  opacity: 0;
  transform: translateY(26px);
  animation: splash-in 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0.35s);
}
@keyframes splash-in { to { opacity: 1; transform: none; } }

/* ── Dashboard mock ─────────────────────────────────── */
.hero__visual { position: relative; }
.mock {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: mock-float 7s ease-in-out infinite;
}
@keyframes mock-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.mock__glow {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, var(--glow), transparent 32%);
  animation: rotate-glow 7s linear infinite;
  opacity: 0.6;
}
@keyframes rotate-glow { to { transform: rotate(360deg); } }
.mock__chrome, .mock__body { position: relative; z-index: 1; }
.mock__chrome {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 75%, transparent);
}
.mock__chrome span { width: 10px; height: 10px; border-radius: 50%; }
.mock__chrome span:nth-child(1) { background: #ff5f57; }
.mock__chrome span:nth-child(2) { background: #febc2e; }
.mock__chrome span:nth-child(3) { background: #28c840; }
.mock__chrome em {
  margin-left: 0.6rem;
  font-style: normal; font-size: 0.76rem; font-weight: 700;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.mock__live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--brand-2);
}
.mock__live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: ping 1.6s ease infinite;
}
.mock__body { padding: 1.3rem 1.4rem 1.5rem; }

.mock__kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.mock__kpi {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-3) 85%, transparent);
  border: 1px solid var(--line);
}
.mock__kpi small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.25rem; }
.mock__kpi b { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.1; }
.mock__kpi u {
  display: inline-block;
  margin-top: 0.3rem;
  text-decoration: none;
  font-size: 0.7rem; font-weight: 800;
}
.mock__kpi u.up { color: var(--brand-2); }

.mock__charts {
  display: grid; grid-template-columns: 128px 1fr; gap: 1.3rem;
  align-items: center; margin-bottom: 1.1rem;
}
.mock__gauge-wrap { position: relative; width: 120px; height: 120px; margin-inline: auto; }
.mock__gauge { transform: rotate(-90deg); }
.mock__gauge-track { fill: none; stroke: var(--line); stroke-width: 10; }
.mock__gauge-fill {
  fill: none;
  stroke: var(--brand-2);
  stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.6s var(--ease);
  filter: drop-shadow(0 0 6px var(--glow));
}
.mock.in-view .mock__gauge-fill { stroke-dashoffset: 88; } /* 72% */
.mock__gauge-label {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
}
.mock__gauge-label b { font-family: var(--font-display); font-size: 1.5rem; }
.mock__gauge-label small { font-size: 0.68rem; color: var(--muted); font-weight: 700; }

.mock__bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 118px; }
.mock__bars i {
  flex: 1; height: var(--h);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand) 70%);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.9s var(--ease);
  box-shadow: 0 0 14px color-mix(in srgb, var(--glow) 60%, transparent);
}
.mock.in-view .mock__bars i { transform: scaleY(1); }
.mock.in-view .mock__bars i:nth-child(2) { transition-delay: 0.06s; }
.mock.in-view .mock__bars i:nth-child(3) { transition-delay: 0.12s; }
.mock.in-view .mock__bars i:nth-child(4) { transition-delay: 0.18s; }
.mock.in-view .mock__bars i:nth-child(5) { transition-delay: 0.24s; }
.mock.in-view .mock__bars i:nth-child(6) { transition-delay: 0.3s; }
.mock.in-view .mock__bars i:nth-child(7) { transition-delay: 0.36s; }
.mock.in-view .mock__bars i:nth-child(8) { transition-delay: 0.42s; }

/* Ask eAgro AI panel inside hero mock */
.mock__ai-panel {
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mock__ai-head {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.mock__ai-head b {
  display: block; font-size: 0.82rem; font-weight: 800; color: var(--ink);
  font-family: var(--font-body); letter-spacing: 0;
}
.mock__ai-head small {
  display: block; font-size: 0.68rem; color: var(--muted); font-weight: 600;
}
.mock__ai-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-style: normal; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2);
}
.mock__ai-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 8px var(--glow);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.mock__ai-thread {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  min-height: 88px;
  max-height: 140px;
  overflow: hidden;
}
.mock__ai-msg {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem; line-height: 1.4;
  animation: ai-msg-in 0.35s var(--ease);
}
@keyframes ai-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.mock__ai-msg[hidden] { display: none !important; }
.mock__ai-msg--user {
  align-self: flex-end;
  max-width: 92%;
  background: color-mix(in srgb, var(--brand) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--ink);
  font-weight: 600;
  border-bottom-right-radius: 4px;
}
.mock__ai-msg--bot {
  align-self: stretch;
  background: color-mix(in srgb, var(--bg-3) 90%, transparent);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-bottom-left-radius: 4px;
}
.mock__ai-msg-body b {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
}
.mock__ai-meta {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  font-size: 0.65rem; font-weight: 700;
  color: var(--brand-2);
  letter-spacing: 0.02em;
}

.mock__ai-typing {
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-3) 90%, transparent);
  border: 1px solid var(--line);
}
.mock__ai-typing[hidden] { display: none !important; }
.mock__ai-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-2);
  animation: ai-dot 1s ease-in-out infinite;
}
.mock__ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.mock__ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.mock__ai-inputbar {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0.7rem 0.7rem;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  min-height: 40px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.mock__ai-text {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock__ai-caret {
  width: 2px; height: 14px; flex-shrink: 0;
  background: var(--brand-2);
  animation: caret 0.9s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.mock__ai-send {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #04110a;
}
.mock__ai-avatar {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #04110a;
}

/* floating chips beside mock */
.hero__float {
  position: absolute;
  padding: 0.8rem 1.05rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  font-size: 0.8rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__float b { display: block; font-size: 0.88rem; }
.hero__float small { color: var(--muted); font-size: 0.72rem; }
.hero__float--card1 {
  top: -52px; right: -2%;
  animation: chip-float 5s ease-in-out infinite;
}
.hero__float--card2 {
  bottom: -54px; left: -2%;
  animation: chip-float 6s 0.8s ease-in-out infinite;
}
/* keep the floating chips from covering the mock on small screens */
@media (max-width: 760px) {
  .hero__float { display: none; }
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero__float-check {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-size: 0.8rem; font-weight: 800;
}

.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 2px solid var(--line-strong);
  border-radius: 99px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 4px; height: 7px; border-radius: 99px;
  background: var(--brand-2);
  transform: translateX(-50%);
  animation: scroll-hint 1.8s ease infinite;
}
@keyframes scroll-hint {
  0% { opacity: 1; transform: translate(-50%, 0); }
  75% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ── Marquee ────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1.05rem 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 2.2rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__track span:hover { color: var(--brand-2); }
.marquee__track i { color: var(--gold); font-style: normal; font-size: 0.8rem; }

/* ── Sections ───────────────────────────────────────── */
.section { padding: clamp(4.5rem, 11vw, 8rem) 0; position: relative; }
.section--tint {
  background:
    radial-gradient(60% 50% at 80% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 60%),
    var(--bg-2);
}
.section__head { max-width: 680px; margin-bottom: 3.2rem; }
.section__head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.section__lede { color: var(--muted); margin: 0; font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-2);
}

/* ── Reveal engine ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(4px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform, filter;
}
[data-reveal].is-visible { opacity: 1; transform: none; filter: blur(0); }

/* word-by-word scroll statement */
.statement { padding: clamp(3rem, 9vw, 6rem) 0; }
.statement__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 21ch;
}
.statement__text .sw {
  opacity: 0.14;
  transition: opacity 0.45s ease;
}
.statement__text .sw.lit { opacity: 1; }

/* ── Cards: spotlight + tilt ────────────────────────── */
.card-spot {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(150deg, var(--line-strong), var(--line) 60%) border-box;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.card-spot::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 13%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card-spot:hover::before { opacity: 1; }
.card-spot:hover {
  box-shadow: var(--card-shadow);
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--brand) 55%, transparent), var(--line) 70%) border-box;
}

.tilt { transform-style: preserve-3d; }

/* ── Portals ────────────────────────────────────────── */
.portal-grid { display: grid; gap: 1.2rem; }
.portal { padding: 2rem 1.8rem 1.7rem; }
.portal__num {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.portal__icon {
  color: var(--brand-2);
  margin-bottom: 1.15rem;
  transition: transform 0.45s var(--ease-spring);
}
.portal:hover .portal__icon { transform: translateY(-4px) scale(1.06); }
.portal h3 { font-size: 1.5rem; }
.portal p { color: var(--ink-soft); margin: 0 0 1.15rem; font-size: 0.96rem; }
.portal ul { list-style: none; display: grid; gap: 0.5rem; margin-bottom: 0.5rem; }
.portal li {
  position: relative; padding-left: 1.25rem;
  font-size: 0.9rem; color: var(--muted);
}
.portal li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}
.portal__arrow {
  position: absolute; right: 1.5rem; bottom: 1.2rem;
  font-size: 1.25rem; color: var(--brand-2);
  opacity: 0; transform: translateX(-8px);
  transition: all 0.35s var(--ease);
}
.portal:hover .portal__arrow { opacity: 1; transform: none; }

/* ── Bento features ─────────────────────────────────── */
.bento { display: grid; gap: 1.1rem; }
.bento__cell { padding: 1.8rem 1.7rem; }
.feature__tag {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.28rem 0.75rem;
  border-radius: 99px;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}
.bento__cell h3 { font-size: 1.38rem; }
.bento__cell p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.bento__cell--hero h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }

/* dashboard hierarchy chips (fills the hero cell, shows drill-down levels) */
.dash-levels {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  margin-top: 1.3rem;
}
.dash-levels span {
  padding: 0.38rem 0.85rem;
  border-radius: 99px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.dash-levels span:not(:last-child)::after {
  content: "→"; margin-left: 0.65rem; color: var(--muted); font-weight: 400;
}
.dash-levels span:first-child {
  color: var(--brand-2);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line-strong));
}

/* AI conversation demo */
.ai-demo { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.ai-demo__q, .ai-demo__a {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.85rem 1.05rem;
  border-radius: 16px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
}
.ai-demo__q {
  background: var(--bg-3);
  max-width: 420px;
  color: var(--ink-soft);
}
.ai-demo__a {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-solid));
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  margin-left: 1.2rem;
  color: var(--ink-soft);
}
.ai-demo__a b { color: var(--ink); }
.ai-demo__avatar {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  color: var(--muted);
}
.ai-demo__avatar--ai {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border: none; color: #04110a;
}
.ai-demo__meta {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  font-size: 0.72rem; font-weight: 700;
  color: var(--brand-2);
}

/* wizard steps mini */
.steps-mini { display: flex; gap: 0.4rem; margin-top: 1.3rem; }
.steps-mini i {
  flex: 1; height: 6px; border-radius: 99px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.steps-mini i.done { background: var(--brand); }
.steps-mini i.active::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  animation: step-fill 2.2s ease infinite;
}
@keyframes step-fill {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(0); }
}

/* doc mini */
.doc-mini {
  margin-top: 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.doc-mini__file { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-weight: 600; }
.doc-mini__btns { display: flex; gap: 0.4rem; }
.doc-mini__btns b {
  padding: 0.32rem 0.75rem; border-radius: 99px;
  font-size: 0.72rem; font-weight: 800;
  background: var(--brand); color: #04110a;
}
[data-theme="light"] .doc-mini__btns b { color: #fff; }
.doc-mini__btns b.alt { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); }

/* hierarchy flow */
.hierarchy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-top: 1.4rem;
}
.hierarchy span {
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  font-size: 0.8rem; font-weight: 700; color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.hierarchy span:hover { border-color: var(--brand); color: var(--brand-2); transform: translateY(-2px); }
.hierarchy span.hl {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border-color: var(--brand); color: var(--brand-2);
}
.hierarchy em { color: var(--gold); font-style: normal; }

/* ── Modules ────────────────────────────────────────── */
.modules-layout { display: grid; gap: 1.4rem; }
.modules { display: grid; gap: 0.55rem; }
.module {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem; row-gap: 0.4rem;
  text-align: left; width: 100%;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.module:hover { border-color: var(--line-strong); background: var(--surface); transform: translateX(6px); }
.module.is-active {
  background: var(--surface-solid);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  transform: translateX(6px);
  box-shadow: var(--card-shadow);
}
.module__num {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  color: var(--muted);
  transition: color 0.3s;
}
.module.is-active .module__num { color: var(--gold); }
.module__title { font-weight: 800; font-size: 0.98rem; }
.module__bar {
  grid-column: 2;
  height: 3px; border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.module.is-active .module__bar { opacity: 1; }
.module__bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}
.module.is-active .module__bar i { animation: module-progress 5s linear forwards; }
@keyframes module-progress { to { width: 100%; } }

.module-panel {
  padding: 2.2rem 2rem;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
}
.module-panel__glow {
  position: absolute; top: -30%; right: -20%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  opacity: 0.5;
}
.module-panel h3 { font-size: 1.7rem; position: relative; }
.module-panel > p { color: var(--ink-soft); position: relative; margin: 0 0 1.2rem; }
.module-panel__points { list-style: none; display: grid; gap: 0.55rem; position: relative; }
.module-panel__points li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; color: var(--muted); font-weight: 600;
}
.module-panel__points li::before {
  content: "✓";
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-2);
  font-size: 0.7rem; font-weight: 800;
}
.module-panel.switching { animation: panel-switch 0.45s var(--ease); }
@keyframes panel-switch {
  0% { opacity: 0.3; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}

/* ── Timeline ───────────────────────────────────────── */
.timeline {
  list-style: none;
  position: relative;
  display: grid; gap: 1.6rem;
  padding-left: 3rem;
}
.timeline__line {
  position: absolute;
  left: 17px; top: 10px; bottom: 10px;
  width: 4px; height: calc(100% - 20px);
}
.timeline__line line {
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0.55;
}
.timeline.drawn .timeline__line line {
  transition: stroke-dashoffset 1.8s var(--ease);
  stroke-dashoffset: 0;
}
.timeline__item {
  position: relative;
  display: grid; gap: 0.4rem;
}
.timeline__dot {
  position: absolute; left: -3rem; top: 1.1rem;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-solid);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent), 0 0 20px var(--glow);
  z-index: 1;
}
.timeline__dot i {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
  color: var(--brand-2);
}
.timeline__card { padding: 1.5rem 1.6rem; }
.timeline__card h3 { font-size: 1.35rem; margin-bottom: 0.3em; }
.timeline__card p { margin: 0 0 0.8rem; color: var(--ink-soft); font-size: 0.95rem; }
.timeline__meta {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

/* ── Architecture ───────────────────────────────────── */
.arch { max-width: 760px; display: grid; gap: 0.4rem; }
.arch__layer { padding: 1.5rem 1.7rem; display: grid; gap: 0.5rem; }
.arch__layer p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.arch__badge {
  justify-self: start;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--brand-2);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.arch__badge--ai {
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--gold);
}
.arch__layer--ai {
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--gold) 60%, transparent), var(--line) 70%) border-box;
  margin-top: 0.8rem;
}
.arch__flow {
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0.25rem 0;
}
.arch__flow i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-2);
  animation: flow-down 1.4s ease infinite;
}
.arch__flow i:nth-child(2) { animation-delay: 0.18s; }
.arch__flow i:nth-child(3) { animation-delay: 0.36s; }
@keyframes flow-down {
  0%, 100% { opacity: 0.2; transform: translateY(-3px); }
  50% { opacity: 1; transform: translateY(3px); }
}

/* ── Benefits ───────────────────────────────────────── */
.benefit-grid { display: grid; gap: 1.1rem; }
.benefit { padding: 1.7rem 1.6rem; }
.benefit__icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand-2);
  margin-bottom: 1.1rem;
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}
.benefit:hover .benefit__icon { transform: rotate(-6deg) scale(1.1); }
.benefit h3 { font-size: 1.3rem; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ── Security ───────────────────────────────────────── */
.security-grid { display: grid; gap: 1.1rem; }
.sec { padding: 1.7rem 1.6rem; }
.sec__ring {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--brand-2);
  border: 1.5px solid color-mix(in srgb, var(--brand) 40%, transparent);
  margin-bottom: 1.1rem;
  position: relative;
}
.sec__ring::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--brand) 30%, transparent);
  animation: rotate-glow 14s linear infinite;
}
.sec h3 { font-size: 1.22rem; }
.sec p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

.tech-strip { margin-top: 3rem; text-align: center; }
.tech-strip__label {
  margin: 0 0 1rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.tech-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.tech-chip {
  padding: 0.6rem 1.15rem;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-weight: 700; font-size: 0.88rem;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.tech-chip:hover {
  border-color: var(--brand);
  color: var(--brand-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px var(--glow);
}

/* ── Gallery ────────────────────────────────────────── */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-bottom: 2.4rem;
}
.gallery-filter {
  padding: 0.55rem 1.15rem;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700; font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.gallery-filter:hover { border-color: var(--brand); color: var(--brand-2); }
.gallery-filter.is-active {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent;
  color: #04110a;
  box-shadow: 0 8px 24px var(--glow);
}
[data-theme="light"] .gallery-filter.is-active { color: #fff; }

.gallery-portal { margin-bottom: 3.2rem; }
.gallery-portal.is-hidden { display: none; }
.gallery-portal__title {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.35rem;
  margin: 0 0 1.3rem;
}
.gallery-portal__badge {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--gold);
}

.gallery { display: grid; gap: 1.3rem; }
.shot { margin: 0; }
.shot.is-hidden { display: none; }
.shot__frame {
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
  padding: 1.1rem;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.45s var(--ease);
  display: block;
}
.shot__frame--photo {
  padding: 0;
  aspect-ratio: 16 / 10;
  background: #0a1510;
}
.shot__frame--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}
.shot:hover .shot__frame {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  box-shadow: var(--card-shadow);
}
.shot__frame--doc {
  aspect-ratio: 3 / 4;
  object-position: top center;
}
.gallery--docs {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .gallery--docs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .gallery--docs { grid-template-columns: repeat(3, 1fr); }
}

/* phone-framed mobile screenshots */
.gallery--phones {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1rem;
}
@media (min-width: 700px) {
  .gallery--phones { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gallery--phones { grid-template-columns: repeat(5, 1fr); }
}
.shot__frame--phone {
  aspect-ratio: 9 / 19;
  max-width: 220px;
  margin-inline: auto;
  border-radius: 22px;
  border: 2px solid color-mix(in srgb, var(--ink) 18%, var(--line-strong));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--bg) 80%, transparent),
    0 18px 40px rgba(0, 0, 0, 0.35);
  background: #0a0f0c;
}
.shot__frame--phone img {
  object-fit: cover;
  object-position: top center;
}
.gallery--phones .shot figcaption {
  text-align: center;
  font-size: 0.82rem;
}

/* ── Operations spine ───────────────────────────────── */
.section--ops {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 10vw, 7rem);
}
.ops-bg { position: absolute; inset: 0; pointer-events: none; }
.ops-bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent 75%);
  opacity: 0.45;
}
.ops-bg__orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.ops-bg__orb--a {
  width: 420px; height: 420px; top: 8%; right: -8%;
  background: color-mix(in srgb, var(--brand) 40%, transparent);
}
.ops-bg__orb--b {
  width: 320px; height: 320px; bottom: 12%; left: -6%;
  background: color-mix(in srgb, var(--gold) 28%, transparent);
  animation-delay: -6s;
}

.ops-block {
  position: relative;
  display: grid; gap: 1.6rem;
  margin-bottom: clamp(2.8rem, 7vw, 4.5rem);
  align-items: center;
}
.ops-block__copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin-bottom: 0.45em;
}
.ops-block__copy > p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.ops-list { list-style: none; display: grid; gap: 0.55rem; }
.ops-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted); font-size: 0.94rem; font-weight: 600;
}
.ops-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}
.ops-list li b { color: var(--ink-soft); }
.ops-block__visual { padding: 1.6rem 1.4rem; min-height: 280px; }

@media (min-width: 900px) {
  .ops-block { grid-template-columns: 1fr 1.05fr; gap: 2.4rem; }
  .ops-block--flip .ops-block__copy { order: 2; }
  .ops-block--flip .ops-block__visual { order: 1; }
}

.org-tree {
  display: grid; justify-items: center; gap: 0.35rem;
  padding: 0.5rem 0;
}
.org-tree__node {
  position: relative;
  padding: 0.7rem 1.2rem;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.org-tree.is-live .org-tree__node { opacity: 1; transform: none; }
.org-tree__node b { display: block; font-size: 0.92rem; font-weight: 800; }
.org-tree__node small {
  color: var(--muted); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.org-tree__node--root {
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 22%, var(--bg-3)), var(--bg-3));
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 0 28px var(--glow);
}
.org-tree__node--leaf { padding: 0.5rem 0.85rem; border-radius: 99px; }
.org-tree__node--leaf.hl {
  background: color-mix(in srgb, var(--gold) 18%, var(--bg-3));
  border-color: var(--gold); color: var(--gold);
  animation: leaf-pulse 2.4s ease infinite;
}
@keyframes leaf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 45%, transparent); }
}
.org-tree__node--sm { min-width: 88px; }
.org-tree__branch {
  width: 2px; height: 18px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 2px;
  opacity: 0; transform: scaleY(0); transform-origin: top;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.org-tree.is-live .org-tree__branch { opacity: 0.7; transform: scaleY(1); }
.org-tree__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; }

.budget { display: grid; gap: 1rem; }
.budget__head {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--muted); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.budget__head b {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--ink);
  text-transform: none; letter-spacing: -0.02em;
}
.budget__period {
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: 0.75rem; align-items: center;
}
.budget__label span { display: block; font-weight: 800; color: var(--brand-2); }
.budget__label em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.budget__track {
  height: 12px; border-radius: 99px;
  background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
}
.budget__track i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--gold));
  transition: width 1.4s var(--ease); box-shadow: 0 0 12px var(--glow);
}
.budget.is-live .budget__track i { width: var(--to); }
.budget__period strong { font-size: 0.88rem; font-weight: 800; white-space: nowrap; }
.budget__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.budget__chips span {
  padding: 0.35rem 0.75rem; border-radius: 99px;
  border: 1px solid var(--line); font-size: 0.72rem; font-weight: 700; color: var(--muted);
}
.budget__chips span.on {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border-color: var(--brand); color: var(--brand-2);
}
.budget__note { margin: 0; font-size: 0.78rem; color: var(--muted); }

.ops-duo {
  display: grid; gap: 1.2rem;
  margin-bottom: clamp(2.8rem, 7vw, 4.5rem);
}
@media (min-width: 800px) { .ops-duo { grid-template-columns: 1fr 1fr; } }
.ops-duo__card { padding: 1.7rem 1.5rem; }
.ops-duo__card h3 { font-size: 1.35rem; }
.ops-duo__card > p { color: var(--ink-soft); margin: 0 0 1.2rem; font-size: 0.94rem; }

.product-rates { display: grid; gap: 0.65rem; }
.product-rate {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 0.75rem; align-items: center;
  padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--line);
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.product-rate.is-in { opacity: 1; transform: none; }
.product-rate__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}
.product-rate b { display: block; font-size: 0.92rem; }
.product-rate small { color: var(--muted); font-size: 0.72rem; }
.product-rate em {
  font-style: normal; font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: var(--gold);
}

.comm-types { display: grid; gap: 0.65rem; }
.comm-type {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.85rem; align-items: flex-start;
  padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--line);
  opacity: 0; transform: translateX(-14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.comm-type.is-in { opacity: 1; transform: none; }
.comm-type__badge {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 800;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-2);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.comm-type__badge.gold {
  background: var(--gold-soft); color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}
.comm-type b { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.comm-type small { color: var(--muted); font-size: 0.78rem; line-height: 1.4; font-weight: 600; }

.comm-mini {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.35rem;
}
.comm-mini span {
  padding: 0.35rem 0.75rem; border-radius: 99px;
  font-size: 0.72rem; font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand-2);
}

.salary-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.salary-tabs button {
  padding: 0.4rem 0.85rem; border-radius: 99px;
  border: 1px solid var(--line); background: transparent;
  font-size: 0.75rem; font-weight: 800; color: var(--muted);
  cursor: pointer; transition: all 0.3s;
}
.salary-tabs button.is-active {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  border-color: var(--brand); color: var(--brand-2);
}
.salary-panel { display: grid; gap: 0.55rem; }
.salary-panel.switching { animation: panel-switch 0.4s var(--ease); }
.salary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0.95rem; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--line); font-size: 0.88rem;
}
.salary-row span { color: var(--muted); font-weight: 600; }
.salary-row b { color: var(--ink); font-weight: 800; }

.ladder { display: grid; gap: 1.3rem; padding: 0.4rem 0.2rem; }
.ladder__title {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.ladder__rail {
  position: relative; height: 14px; border-radius: 99px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.ladder__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c45c4a, var(--gold) 55%, var(--brand-2));
  transition: width 1.8s var(--ease); box-shadow: 0 0 16px var(--glow);
}
.ladder.is-live .ladder__fill { width: 94%; }
.ladder__marker {
  position: absolute; top: 50%; left: var(--p);
  transform: translate(-50%, -50%); z-index: 2;
}
.ladder__marker span {
  display: block; padding: 0.2rem 0.45rem; border-radius: 6px;
  background: var(--surface-solid); border: 1px solid var(--line-strong);
  font-size: 0.65rem; font-weight: 800; color: var(--ink); white-space: nowrap;
}
.ladder__marker small {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; color: var(--muted); font-weight: 700; white-space: nowrap;
}
.ladder__marker--gold span { border-color: var(--gold); color: var(--gold); }
.ladder__meter { text-align: center; margin-top: 1.6rem; }
.ladder__needle b {
  display: block; font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(100deg, var(--brand-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ladder__needle small { color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.ladder__payouts { display: grid; gap: 0.45rem; }
.ladder__pay {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.9rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-3);
  font-size: 0.88rem; font-weight: 700; color: var(--muted);
  transition: all 0.4s var(--ease);
}
.ladder__pay i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong); transition: background 0.3s, box-shadow 0.3s;
}
.ladder__pay.is-on {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-3));
}
.ladder__pay.is-on i { background: var(--brand-2); box-shadow: 0 0 10px var(--glow); }

.doc-vault {
  position: relative; min-height: 260px;
  display: grid; place-items: center;
}
.doc-vault__stack { position: relative; width: min(100%, 280px); height: 200px; }
.doc-card {
  position: absolute; left: 50%; top: 50%; width: 200px;
  padding: 1.1rem 1.2rem; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--surface-solid);
  box-shadow: var(--card-shadow);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) translateY(var(--ty, 0));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.doc-vault.is-live .doc-card { opacity: 1; }
.doc-card b { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.doc-card small { color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.doc-card--a { --rot: -8deg; --ty: -28px; z-index: 1; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.doc-card--b { --rot: 4deg; --ty: -8px; z-index: 2; }
.doc-card--c { --rot: -3deg; --ty: 14px; z-index: 3; border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.doc-card--d {
  --rot: 7deg; --ty: 36px; z-index: 4;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 14%, var(--surface-solid)), var(--surface-solid));
}
.doc-vault.is-live .doc-card {
  animation: doc-float 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
@keyframes doc-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--rot)) translateY(var(--ty)); }
  50% { transform: translate(-50%, calc(-50% - 6px)) rotate(var(--rot)) translateY(var(--ty)); }
}
.doc-vault__orbit {
  position: absolute; bottom: 0.2rem; right: 0.5rem;
  display: flex; gap: 0.35rem;
}
.doc-vault__orbit span {
  padding: 0.3rem 0.6rem; border-radius: 99px;
  font-size: 0.65rem; font-weight: 800;
  background: var(--gold-soft); color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  animation: chip-float 4s ease-in-out infinite;
}
.doc-vault__orbit span:nth-child(2) { animation-delay: 0.4s; }
.doc-vault__orbit span:nth-child(3) { animation-delay: 0.8s; }

.improve { margin-top: 0.5rem; }
.improve__head { max-width: 640px; margin-bottom: 2rem; }
.improve__head h3 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.improve__head > p { color: var(--ink-soft); margin: 0; }
.improve__grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .improve__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .improve__grid { grid-template-columns: repeat(3, 1fr); } }

.improve__card {
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex; flex-direction: column; gap: 0;
  min-height: 0;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.improve__card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line-strong));
  transform: translateY(-3px);
}

.improve__before,
.improve__after {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.improve__before span,
.improve__after span {
  display: inline-flex; align-items: center; gap: 0.35rem;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-body);
}
.improve__before span {
  color: #e8a090;
  background: color-mix(in srgb, #c45c4a 18%, transparent);
}
.improve__after span {
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}
.improve__before p {
  margin: 0;
  font-weight: 600; font-size: 0.92rem; line-height: 1.4;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, #c45c4a 45%, transparent);
}
.improve__after p {
  margin: 0;
  font-weight: 700; font-size: 0.98rem; line-height: 1.4;
  color: var(--ink);
}

.improve__arrow {
  display: flex; align-items: center; justify-content: center;
  margin: 0.75rem 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.85rem; font-weight: 700;
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  flex-shrink: 0;
}

/* ── CTA ────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: clamp(5rem, 13vw, 8.5rem) 0;
  overflow: hidden;
  background: linear-gradient(150deg, #051009 0%, #0d2a1c 50%, #155e42 130%);
  color: #eef7f1;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.cta__beam {
  position: absolute; top: -60%; left: 50%;
  width: 130%; height: 120%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 40%, rgba(111, 224, 174, 0.14) 50%, transparent 60%);
  animation: beam-sway 9s ease-in-out infinite alternate;
}
@keyframes beam-sway { from { transform: translateX(-54%) } to { transform: translateX(-46%) } }
.cta__orb {
  position: absolute; right: -8%; bottom: -30%;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 194, 90, 0.28), transparent 65%);
  filter: blur(30px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.cta__inner {
  position: relative; z-index: 1; max-width: 660px;
  margin-inline: auto; text-align: center;
}
.cta__buttons { justify-content: center; }
.cta__logo {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700;
  background: linear-gradient(110deg, #fff 25%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: #fff; }
.cta p { color: rgba(238, 247, 241, 0.72); margin: 0 0 2rem; font-size: 1.06rem; }
.cta__buttons { gap: 0.9rem; }

/* ── Contact ────────────────────────────────────────── */
.contact { display: grid; gap: 2.5rem; }
.contact__info h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.contact__points { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.8rem; }
.contact__points li {
  display: flex; align-items: center; gap: 0.85rem;
  font-weight: 600; color: var(--ink-soft); font-size: 0.96rem;
}
.contact__points b {
  color: var(--gold); font-family: var(--font-display); font-size: 1.15rem;
}
.contact__form { padding: 2rem 1.8rem; display: grid; gap: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
  background: var(--surface-solid);
}
.form-note { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--brand-2); animation: splash-in 0.5s var(--ease); }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  padding: 3.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer__inner { display: grid; gap: 1.6rem; }
.footer__brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.15rem; }
.footer__brand p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.footer__links {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.35rem;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
  align-content: flex-start;
}
.footer__links a { transition: color 0.25s; }
.footer__links a:hover { color: var(--brand-2); }
.footer__copy { margin: 0; font-size: 0.8rem; color: var(--muted); }

.footer__powered {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem;
}
.footer__powered-label {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.footer__powered-logo {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.footer__powered-logo:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line-strong));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--glow) 35%, transparent);
  transform: translateY(-2px);
}
.footer__powered-img {
  display: block;
  height: 34px; width: auto;
  max-width: 190px;
  object-fit: contain;
}
/* Wordmark is navy ink — invert to white on dark theme */
[data-theme="dark"] .footer__powered-img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
[data-theme="light"] .footer__powered-logo {
  background: #fff;
  border-color: color-mix(in srgb, #0a1a3a 14%, transparent);
}
[data-theme="light"] .footer__powered-img {
  filter: none;
  opacity: 1;
}

/* ── Lightbox (screenshot preview) ──────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, black);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
  animation: lb-fade 0.3s var(--ease);
}
@keyframes lb-fade { from { opacity: 0; } }
.lightbox__figure {
  position: relative; z-index: 1;
  margin: 0;
  max-width: min(1200px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  animation: lb-pop 0.35s var(--ease);
}
@keyframes lb-pop { from { opacity: 0; transform: scale(0.96) translateY(10px); } }
.lightbox__img {
  max-width: 100%;
  max-height: min(82vh, 1000px);
  width: auto; height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #fff;
}
.lightbox__caption {
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
  text-align: center;
}
.lightbox__btn {
  position: absolute; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.lightbox__btn:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line-strong));
  transform: scale(1.06);
}
.lightbox__btn--close { top: 1.1rem; right: 1.1rem; }
.lightbox__btn--prev { left: 1.1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 1.1rem; top: 50%; translate: 0 -50%; }
.lightbox__counter {
  position: absolute; z-index: 2;
  top: 1.55rem; left: 50%; translate: -50% 0;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted);
}
@media (max-width: 700px) {
  .lightbox { padding: 0.9rem; }
  .lightbox__btn { width: 40px; height: 40px; }
  .lightbox__btn--prev { left: 0.6rem; top: auto; bottom: 1rem; translate: none; }
  .lightbox__btn--next { right: 0.6rem; top: auto; bottom: 1rem; translate: none; }
}

/* back to top */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all 0.4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand); color: var(--brand-2); box-shadow: 0 8px 24px var(--glow); }

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal], [data-splash] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .statement__text .sw { opacity: 1; }
  .cursor-glow { display: none; }
}

/* ── Breakpoints ────────────────────────────────────── */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--hero { grid-column: 1 / -1; }
  .bento__cell--wide { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .portal-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--real { grid-template-columns: repeat(2, 1fr); }
  .modules-layout { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
  .contact { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: end; }
  .footer__copy { grid-column: 1 / -1; }
  .footer__powered { align-items: flex-end; text-align: right; }
  .footer__powered-logo { margin-left: auto; }
  .timeline { padding-left: 4rem; max-width: 780px; }
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .hero__wrap { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__cell--hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .bento__cell--hero .ai-demo { margin-top: auto; padding-top: 1.4rem; }
  .bento__cell--wide { grid-column: span 2; }
  .gallery--real { grid-template-columns: repeat(3, 1fr); }
}
