/* =========================================================================
   Offlyn for Enterprise — Apple-inspired dark, dual-signal (green/violet)
   ========================================================================= */

:root {
  /* surfaces */
  --bg:        #08080a;
  --bg-2:      #0d0d10;
  --surface:   #141417;
  --surface-2: #1b1b1f;
  --hair:      rgba(255,255,255,.09);
  --hair-2:    rgba(255,255,255,.055);

  /* ink */
  --ink:   #f5f5f7;
  --ink-2: #a6a6ad;
  --ink-3: #6b6b73;

  /* signal accents */
  --green:      #27e38d;   /* Offlyn brand green */
  --green-ink:  #7df3b6;
  --green-deep: #07331f;
  --green-glow: rgba(39,227,141,.55);

  --violet:      #9d8cff;
  --violet-deep: #221d44;
  --violet-glow: rgba(157,140,255,.5);

  /* waste / leak signal — section-local to the diagnostic */
  --burn:      #ff9d4d;
  --burn-soft: rgba(255,157,77,.55);
  --burn-deep: #3a2410;

  /* fonts */
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* fluid type scale (~1.25) */
  --fs-xs:   clamp(.72rem, .69rem + .12vw, .8rem);
  --fs-sm:   clamp(.84rem, .8rem + .18vw, .94rem);
  --fs-base: clamp(1rem, .95rem + .25vw, 1.15rem);
  --fs-lg:   clamp(1.2rem, 1.08rem + .5vw, 1.45rem);
  --fs-h3:   clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
  --fs-h2:   clamp(2.1rem, 1.5rem + 2.6vw, 3.7rem);
  --fs-hero: clamp(2.9rem, 1.6rem + 5.6vw, 5.75rem);

  /* spacing rhythm */
  --pad-x: clamp(1.25rem, .6rem + 3vw, 5rem);
  --sect:  clamp(5rem, 3rem + 9vw, 11rem);
  --maxw:  1240px;

  --ease: cubic-bezier(.22, 1, .36, 1);          /* ease-out-quint-ish */
  --radius: 18px;
  --radius-sm: 11px;

  /* z-scale */
  --z-sticky: 100;
  --z-sheet: 200;
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:target, [id] { scroll-margin-top: 88px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* slim dark scrollbar */
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 999px; border: 3px solid var(--bg); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); background-clip: padding-box; }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--green); color: #04140d; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; transition: top .2s;
}
.skip:focus { top: 16px; }

/* =========================================================================
   Shared headings / blocks
   ========================================================================= */
.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  color: var(--ink-2);
  font-size: var(--fs-lg);
  line-height: 1.5;
  max-width: 56ch;
  text-wrap: pretty;
}
.kicker {
  display: inline-block;
  color: var(--green);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.section-head { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .h2 { margin-bottom: 1.5rem; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--green  { background: var(--green);  box-shadow: 0 0 12px var(--green-glow); }
.dot--violet { background: var(--violet); box-shadow: 0 0 12px var(--violet-glow); }
.dot--mix    { background: linear-gradient(120deg, var(--green), var(--violet)); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--bh); padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .35s, color .25s;
  will-change: transform;
}
.btn svg { transition: transform .35s var(--ease); }
.btn--sm { --bh: 40px; padding: 0 1.05rem; }
.btn--lg { --bh: 58px; padding: 0 1.9rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--green); color: #04150d;
  box-shadow: 0 0 0 0 var(--green-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--green-glow); }
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: rgba(255,255,255,.035);
  color: var(--ink);
  border: 1px solid var(--hair);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-sticky); transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav[data-scrolled] { background: rgba(8,8,10,.72); backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--hair); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: clamp(.8rem, 1.4vw, 1.15rem) var(--pad-x);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -0.03em; font-size: 1.18rem; color: var(--ink); }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; overflow: hidden; flex: none; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand--lg .brand__mark { width: 40px; height: 40px; border-radius: 10px; }
.brand__word { }
.brand--lg { font-size: 1.5rem; }

.nav__links { display: flex; gap: clamp(1rem, 2vw, 2rem); margin-inline: auto; }
.nav__links a { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

.nav__cta { display: flex; gap: .6rem; align-items: center; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--hair); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

.nav__sheet { display: none; flex-direction: column; gap: .35rem; padding: .5rem var(--pad-x) 1.5rem; background: rgba(8,8,10,.95); backdrop-filter: blur(18px); border-bottom: 1px solid var(--hair); }
.nav__sheet a:not(.btn) { padding: .85rem .25rem; color: var(--ink-2); font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--hair-2); }
.nav__sheet a:not(.btn):last-of-type { border: 0; }
.nav__sheet .btn { margin-top: .5rem; }

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__sheet[data-open] { display: flex; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 7rem var(--pad-x) 5rem; overflow: clip; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, var(--bg) 8%, rgba(8,8,10,.82) 34%, rgba(8,8,10,.15) 62%, rgba(8,8,10,.4) 100%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}

/* mobile: give the routing animation its OWN framed stage instead of hiding behind text */
@media (max-width: 760px) {
  .hero { justify-content: flex-start; min-height: auto; }
  .hero__veil { display: none; }
  .hero__inner { order: 1; }
  .hero__canvas {
    position: relative; inset: auto; order: 2; opacity: 1;
    width: 100%; height: 44svh; min-height: 320px; margin-top: 2rem;
    border: 1px solid var(--hair); border-radius: var(--radius);
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(39,227,141,.07), transparent 55%),
      var(--bg-2);
  }
  .hero__readout { order: 3; margin-top: 2rem; }
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; }

.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; margin-bottom: 1.6rem; padding: .4rem .85rem .4rem .7rem; border: 1px solid var(--hair); border-radius: 999px; background: rgba(255,255,255,.025); }

.hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: .98; letter-spacing: -0.035em; text-wrap: balance; max-width: 16ch; }
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--green); }

.hero__sub { margin-top: 1.8rem; max-width: 52ch; color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.5; text-wrap: pretty; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }

.hero__readout {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2.6rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem; border-top: 1px solid var(--hair);
}
.readout__item { display: flex; flex-direction: column; gap: .15rem; }
.readout__num { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.readout__num .readout__pct { color: var(--green); }
.readout__lbl { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .02em; }
.readout__sep { width: 1px; height: 34px; background: var(--hair); }
@media (max-width: 620px) { .readout__sep { display: none; } .hero__readout { gap: 1.4rem 2rem; } }

.hero__scroll { position: absolute; right: var(--pad-x); bottom: 1.8rem; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .15em; text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--ink-3), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--green); animation: scrolldrop 2.2s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }
@media (max-width: 620px) { .hero__scroll { display: none; } }

/* =========================================================================
   STRIP
   ========================================================================= */
.strip { max-width: var(--maxw); margin-inline: auto; padding: clamp(3.5rem, 7vw, 6rem) var(--pad-x); border-bottom: 1px solid var(--hair); }
.strip__lead { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.18; max-width: 24ch; text-wrap: balance; }
.strip__row { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.strip__team { color: var(--ink); font-weight: 600; font-size: var(--fs-base); padding-top: 1.1rem; border-top: 1px solid var(--hair); }
.strip__team .mono { color: var(--green); font-size: var(--fs-xs); display: block; margin-bottom: .7rem; }
.strip__team em { display: block; font-style: normal; color: var(--ink-2); font-weight: 400; font-size: var(--fs-sm); margin-top: .3rem; }
@media (max-width: 760px) { .strip__row { grid-template-columns: 1fr; gap: 0; } .strip__team { padding: 1.1rem 0; } }

/* =========================================================================
   PROBLEM / LEAKS
   ========================================================================= */
.problem { padding-block: var(--sect); }

.diag {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(1.5rem, 3vw, 3.25rem); align-items: start;
}

/* --- selector list --- */
.diag__list { display: flex; flex-direction: column; gap: .35rem; }
.dleak { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.dleak__btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start;
  text-align: left; padding: 1.2rem 1.25rem; border-radius: var(--radius-sm);
  background: transparent; transition: background .35s var(--ease);
}
.dleak__btn:hover { background: rgba(255,255,255,.03); }
.dleak[data-active] .dleak__btn { background: linear-gradient(100deg, rgba(255,157,77,.11), rgba(255,157,77,.018) 70%); }
.dleak__id { color: var(--ink-3); font-size: var(--fs-sm); padding-top: .18rem; transition: color .3s; }
.dleak[data-active] .dleak__id { color: var(--burn); }
.dleak__main { display: flex; flex-direction: column; min-width: 0; }
.dleak__name { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.dleak__desc {
  color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; max-width: 46ch;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .55s var(--ease), opacity .45s var(--ease), margin .45s var(--ease);
}
.dleak[data-active] .dleak__desc { max-height: 8em; opacity: 1; margin-top: .4rem; }
.dleak__wpct { color: var(--ink-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; padding-top: .18rem; transition: color .3s; }
.dleak[data-active] .dleak__wpct { color: var(--burn); }
.dleak__prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--burn); box-shadow: 0 0 10px var(--burn-soft); opacity: 0; }
.dleak[data-active] .dleak__prog { opacity: .9; }
@keyframes dwell { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dleak__mobi { display: none; }

/* --- live visualization panel --- */
.diag__viz {
  margin: 0; border: 1px solid var(--hair); border-radius: var(--radius);
  background: radial-gradient(120% 120% at 80% 0%, rgba(255,157,77,.06), transparent 55%), linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: clamp(1.4rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: clamp(1.2rem, 2.5vw, 1.7rem);
  overflow: hidden;
}
.diag__cap { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .05em; }
.diag__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.diag__cell { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.045); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.diag__cell.is-waste { background: var(--burn); box-shadow: 0 0 14px var(--burn-soft); transform: scale(1.06); }
.diag__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.diag__stat { display: flex; flex-direction: column; gap: .35rem; }
.diag__pct { font-size: clamp(2.8rem, 1.7rem + 4.5vw, 4.4rem); font-weight: 500; letter-spacing: -0.05em; line-height: .85; color: var(--burn); }
.diag__statlbl { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.35; max-width: 22ch; }
.diag__fix { max-width: 27ch; display: flex; flex-direction: column; gap: .45rem; }
.diag__fixtag { align-self: flex-start; color: var(--green-ink); background: var(--green-deep); font-size: var(--fs-xs); padding: .25rem .65rem; border-radius: 999px; letter-spacing: .03em; }
.diag__fixtext { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.45; }

@media (max-width: 900px) {
  /* stack; grid panel becomes a sticky readout above the list and updates on scroll/tap */
  .diag { display: flex; flex-direction: column; gap: 1rem; }
  .diag__viz { display: flex; order: -1; position: sticky; top: 58px; z-index: 4; gap: 1rem; padding: 1.1rem 1.2rem; }
  .diag__grid { gap: 4px; }
  .diag__pct { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .diag__foot { gap: 1rem; }
  .diag__list { gap: .3rem; }
  /* descriptions always visible on mobile → fixed row heights → no reflow while scroll-activating */
  .dleak__btn { padding: 1rem; }
  .dleak__desc { max-height: none; opacity: 1; margin-top: .35rem; }
  .dleak__mobi { display: none; }
  .dleak[data-active] .dleak__btn { background: linear-gradient(100deg, rgba(255,157,77,.1), rgba(255,157,77,.02) 80%); }
}

@media (prefers-reduced-motion: reduce) {
  .dleak__prog { display: none; }
}

/* =========================================================================
   METHOD (pinned horizontal scroll)
   ========================================================================= */
.method { background: var(--bg-2); border-block: 1px solid var(--hair); }
.method__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: clamp(5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); overflow: hidden; }
.method__intro { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); width: 100%; }
.method__intro .h2 { margin-bottom: 1rem; }
.method__progress { color: var(--ink-3); font-size: var(--fs-sm); }
.method__progress span { color: var(--green); }

.method__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); padding-inline: var(--pad-x); width: max-content; }
.mcard {
  flex: 0 0 auto;                       /* never shrink — keep readable width, let the track scroll */
  width: clamp(290px, 80vw, 420px);
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: clamp(1.6rem, 2.5vw, 2.3rem);
  display: flex; flex-direction: column; gap: 1rem; min-height: 300px;
}
.mcard__step { color: var(--green); font-size: var(--fs-sm); letter-spacing: .02em; }
.mcard h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.mcard p { color: var(--ink-2); font-size: var(--fs-base); line-height: 1.55; }
.mcard__tag { margin-top: auto; color: var(--ink-3); font-size: var(--fs-xs); padding-top: 1rem; border-top: 1px solid var(--hair); }
.mcard--accent { background: linear-gradient(165deg, var(--green-deep), var(--surface) 70%); border-color: rgba(39,227,141,.3); }
.mcard--accent .mcard__step { color: var(--green-ink); }

/* fallback when JS/pin disabled: horizontal scroll */
.method:not([data-pinned]) .method__track { overflow-x: auto; width: 100%; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.method:not([data-pinned]) .mcard { scroll-snap-align: start; }

/* =========================================================================
   ROUTING
   ========================================================================= */
.routing { padding-block: var(--sect); }
.routing__head { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.routing__head .h2 { margin-bottom: 1.5rem; }

.lanes { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lane { border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem); background: var(--surface); position: relative; overflow: hidden; }
.lane::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.lane--local::before  { background: var(--green); box-shadow: 0 0 20px var(--green-glow); }
.lane--cloud::before  { background: var(--violet); box-shadow: 0 0 20px var(--violet-glow); }
.lane--hybrid::before { background: linear-gradient(90deg, var(--green), var(--violet)); }
.lane--local  { background: linear-gradient(180deg, rgba(39,227,141,.06), transparent 60%), var(--surface); }
.lane--cloud  { background: linear-gradient(180deg, rgba(157,140,255,.06), transparent 60%), var(--surface); }
.lane header { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; }
.lane__dot { width: 9px; height: 9px; border-radius: 50%; }
.lane__name { font-weight: 600; font-size: var(--fs-base); }
.lane__share { margin-left: auto; color: var(--ink-3); font-size: var(--fs-sm); }
.lane ul { display: flex; flex-direction: column; gap: .7rem; }
.lane li { color: var(--ink-2); font-size: var(--fs-sm); padding-left: 1.1rem; position: relative; }
.lane li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.lane--local li::before { background: var(--green); }
.lane--cloud li::before { background: var(--violet); }
.lane__foot { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: var(--fs-xs); }
@media (max-width: 860px) { .lanes { grid-template-columns: 1fr; } }

.matrix { max-width: var(--maxw); margin: clamp(2rem, 4vw, 3rem) auto 0; padding-inline: var(--pad-x); }
.matrix__cap { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.matrix__rows { border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.matrix__rows li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.1rem, 2.5vw, 1.7rem); border-bottom: 1px solid var(--hair-2); font-size: var(--fs-base); }
.matrix__rows li:last-child { border-bottom: 0; }
.matrix__rows li:nth-child(odd) { background: rgba(255,255,255,.012); }
.matrix__rows span { color: var(--ink); font-weight: 500; }
.tag { font-family: var(--mono); font-size: var(--fs-xs); padding: .35rem .7rem; border-radius: 7px; font-weight: 500; }
.tag--green  { color: var(--green-ink); background: var(--green-deep); }
.tag--violet { color: var(--violet);    background: var(--violet-deep); }
.tag--mix    { color: var(--ink); background: rgba(255,255,255,.07); }

/* =========================================================================
   REPORT METRICS
   ========================================================================= */
.report { padding-block: var(--sect); background: var(--bg-2); border-block: 1px solid var(--hair); }
.metrics { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair-2); border: 1px solid var(--hair-2); border-radius: var(--radius); overflow: hidden; }
.metric { background: var(--bg-2); padding: clamp(1.3rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; gap: .6rem; min-height: 132px; }
.metric__lbl { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.4; }
.metric__val { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 500; letter-spacing: -0.04em; margin-top: auto; }
.metric__val--green { color: var(--green); }
.metric__val--word { font-size: var(--fs-lg); letter-spacing: -0.01em; color: var(--ink); }
.metric--feature { grid-column: span 2; grid-row: span 2; justify-content: center; gap: 1rem; background: linear-gradient(160deg, var(--green-deep), var(--bg-2) 65%); border: 0; }
.metric--feature .metric__lbl { font-size: var(--fs-sm); color: var(--green-ink); }
.metric__big { font-size: clamp(3rem, 1.5rem + 7vw, 6rem); font-weight: 500; letter-spacing: -0.05em; line-height: .9; color: var(--ink); }
.metric__pre { color: var(--green); }
.metric__suf { color: var(--green); }
.metric__note { color: var(--ink-3); font-size: var(--fs-xs); max-width: 30ch; }
.metric--link { text-decoration: none; transition: background .3s; }
.metric--link:hover { background: var(--surface); }
.metric__val--link { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.02em; }
.metric--link:hover .metric__val--link svg { transform: translateX(3px); transition: transform .35s var(--ease); }
.report__exports { max-width: var(--maxw); margin: 1.5rem auto 0; padding-inline: var(--pad-x); color: var(--ink-3); font-size: var(--fs-sm); }

@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } .metric--feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr; } .metric--feature { grid-column: span 1; } }

/* =========================================================================
   TIERS
   ========================================================================= */
.tiers { padding-block: var(--sect); }
.tiers__grid { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.tier { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1rem; transition: transform .4s var(--ease), border-color .3s; }
.tier:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }
.tier__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tier__no { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.tier__price { color: var(--ink-2); font-size: var(--fs-xs); }
.tier h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.tier > p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.tier__list { display: flex; flex-direction: column; gap: .65rem; margin-block: .4rem; }
.tier__list li { color: var(--ink); font-size: var(--fs-sm); padding-left: 1.5rem; position: relative; }
.tier__list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--green-deep); }
.tier__list li::after { content: ""; position: absolute; left: 4px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.tier .btn { margin-top: auto; }

.tier--featured { background: linear-gradient(180deg, rgba(39,227,141,.07), var(--surface) 40%); border-color: rgba(39,227,141,.35); box-shadow: 0 30px 80px -40px var(--green-glow); }
.tier__flag { position: absolute; top: -1px; right: clamp(1.6rem, 3vw, 2.4rem); transform: translateY(-50%); background: var(--green); color: #04150d; font-size: var(--fs-xs); font-weight: 500; padding: .3rem .8rem; border-radius: 999px; letter-spacing: .03em; }
@media (max-width: 900px) { .tiers__grid { grid-template-columns: 1fr; max-width: 480px; } }

/* =========================================================================
   PRODUCTS
   ========================================================================= */
.products { padding-block: var(--sect); background: var(--bg-2); border-block: 1px solid var(--hair); }
.prods { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.prod { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; transition: transform .4s var(--ease), border-color .3s; }
.prod:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }
.prod header { display: flex; align-items: center; justify-content: space-between; }
.prod h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.025em; }
.prod p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.prod__platform { color: var(--ink-3); font-size: var(--fs-xs); margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hair); }
.prod__badge { font-size: var(--fs-xs); padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--ink-2); }
.prod__badge--live { background: var(--green-deep); color: var(--green-ink); }
.prod__badge--soon { background: var(--violet-deep); color: var(--violet); }
.prod--live { border-color: rgba(39,227,141,.25); }
@media (max-width: 860px) { .prods { grid-template-columns: 1fr; max-width: 480px; } }

.usecases { max-width: var(--maxw); margin: clamp(2rem, 4vw, 3rem) auto 0; padding-inline: var(--pad-x); display: flex; flex-wrap: wrap; gap: .65rem; }
.usecases li { font-size: var(--fs-xs); color: var(--ink-2); padding: .5rem .9rem; border: 1px solid var(--hair); border-radius: 999px; }

/* =========================================================================
   CTA / ESTIMATE
   ========================================================================= */
.cta { position: relative; padding-block: clamp(5rem, 10vw, 9rem); overflow: clip; }
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .45; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 60% at 50% 50%, transparent, var(--bg) 85%); pointer-events: none; }
.cta__inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; padding-inline: var(--pad-x); text-align: center; }
.cta__title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; margin-bottom: 1.4rem; }
.cta__sub { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.5; max-width: 50ch; margin: 0 auto 2.5rem; text-wrap: pretty; }

.estimate { display: flex; flex-direction: column; gap: 1rem; max-width: 460px; margin: 0 auto; text-align: left; }
.estimate__field { display: flex; flex-direction: column; gap: .5rem; }
.estimate__field label { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .04em; }
.estimate__inputwrap { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; padding: 0 1rem; transition: border-color .25s, box-shadow .25s; }
.estimate__inputwrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39,227,141,.15); }
.estimate__prefix { color: var(--ink-3); font-size: 1.2rem; }
.estimate__inputwrap input { flex: 1; background: none; border: 0; outline: none; color: var(--ink); font-size: 1.3rem; font-family: var(--mono); letter-spacing: -0.02em; padding: 1rem 0; width: 100%; }
.estimate__inputwrap input::placeholder { color: var(--ink-3); }

.estimate__result { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.4rem; background: linear-gradient(150deg, var(--green-deep), var(--surface) 70%); border: 1px solid rgba(39,227,141,.3); border-radius: 12px; }
.estimate__rlbl { color: var(--green-ink); font-size: var(--fs-xs); letter-spacing: .05em; }
.estimate__rnum { color: var(--ink); font-size: clamp(2rem, 1.3rem + 3vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.estimate__rnote { color: var(--ink-3); font-size: var(--fs-xs); }
.estimate__legal { color: var(--ink-3); font-size: var(--fs-xs); text-align: center; }

.cta__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--bg); border-top: 1px solid var(--hair); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.footer__top { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; }
.footer__tag { margin-top: 1.2rem; color: var(--ink-2); font-size: var(--fs-lg); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__col { display: flex; flex-direction: column; gap: .9rem; }
.footer__col h4 { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: .3rem; }
.footer__col a { color: var(--ink-2); font-size: var(--fs-sm); transition: color .2s; }
.footer__col a:hover { color: var(--green); }
.footer__base { max-width: var(--maxw); margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding: 1.5rem var(--pad-x) 0; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__base .mono { color: var(--ink-3); font-size: var(--fs-xs); }
.footer__loc { color: var(--green) !important; opacity: .7; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 2.5rem; } .footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* =========================================================================
   Reveal animation (JS adds .is-in). Default visible -> reduced-motion safe.
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-stagger] > * { transition-delay: var(--d, 0ms); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
