/* ============================================================
   TensorIn — Landing Page styles
   Dark-first. Green used sparingly as the "live signal".
   ============================================================ */

:root {
  /* Palette */
  --carbon: #0A0A0A;
  --graphite: #161616;
  --graphite-2: #1C1C1C;
  --fog: #EDEDED;
  --white: #FFFFFF;
  --signal: #76B900;
  --signal-dim: #5b8f00;
  --signal-glow: rgba(118, 185, 0, 0.35);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --muted: #8A8A8A;
  --muted-2: #6A6A6A;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--carbon);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint instrumentation grid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* Typographic primitives ------------------------------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.muted { color: var(--muted); }

.signal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-glow); }
  70%  { box-shadow: 0 0 0 9px rgba(118,185,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(118,185,0,0); }
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 54px);
}

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin-top: 18px; max-width: 60ch; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.green { color: var(--signal); }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--signal);
  color: #0A0A0A;
  box-shadow: 0 0 0 0 var(--signal-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px var(--signal-glow), 0 0 24px var(--signal-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--fog);
  border-color: var(--hairline-2);
}
.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--white);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--white);
}
.logo .in { color: var(--signal); }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--fog);
  opacity: 0.82;
  position: relative;
  transition: opacity .2s ease, color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--signal);
  transition: width .28s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { opacity: 1; color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav .btn { padding: 11px 20px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fog); margin: 4px 0; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
/* hero green halo */
.hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 62%);
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(44px, 6.6vw, 88px);
  margin: 24px 0 26px;
}
.hero h1 .line { display: block; }
.hero p.sub {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--fog);
  opacity: 0.78;
  max-width: 52ch;
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Gauge visual */
.gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.gauge {
  width: min(440px, 90%);
  aspect-ratio: 1;
  position: relative;
}
.gauge svg { width: 100%; height: 100%; transform: rotate(135deg); }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 10; stroke-linecap: round; }
.gauge-fill {
  fill: none;
  stroke: var(--signal);
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px var(--signal-glow));
  transition: stroke-dashoffset 2.4s cubic-bezier(.16,.84,.34,1);
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gauge-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 76px);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
}
.gauge-value .pct { color: var(--signal); font-size: 0.5em; }
.gauge-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.gauge-delta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  margin-top: 16px;
  opacity: 0;
  transition: opacity .6s ease 1.6s;
}
.gauge.live .gauge-delta { opacity: 1; }

/* small ticks around gauge */
.gauge-ticks { position: absolute; inset: 0; }

/* ============================================================
   PROBLEM STRIP
   ============================================================ */
section { position: relative; z-index: 1; }
.section-pad { padding-block: clamp(80px, 11vw, 150px); }

.problem { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.problem .section-title { font-size: clamp(28px, 3.8vw, 46px); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
}
.stat-card {
  padding: 34px 32px 32px;
  border-left: 1px solid var(--hairline);
}
.stat-card:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 68px);
  color: var(--signal);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 26px var(--signal-glow);
}
.stat-num .unit { font-size: 0.45em; color: var(--fog); opacity: .6; margin-left: 4px; }
.stat-card p { margin-top: 18px; color: var(--muted); font-size: 15.5px; max-width: 30ch; }
.stat-card h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fog); opacity:.5; margin-bottom: 22px; }

/* ============================================================
   SERVICES LADDER
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
}
.service-card {
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-top: 2px solid rgba(118,185,0,0.25);
  border-radius: 14px;
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0; height: 2px;
  background: var(--signal);
  opacity: 0;
  box-shadow: 0 0 16px var(--signal-glow);
  transition: opacity .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline-2);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.9);
}
.service-card:hover::before { opacity: 1; }

.service-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .1em;
}
.service-icon {
  width: 48px; height: 48px;
  margin: 22px 0 26px;
  color: var(--signal);
}
.service-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid rgba(118,185,0,0.3);
  border-radius: 999px;
  padding: 3px 9px;
}
.service-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; flex: 1; }
.learn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--fog);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s ease, color .25s ease;
}
.learn:hover { color: var(--signal); gap: 12px; }

/* ============================================================
   HOW IT WORKS — timeline
   ============================================================ */
.how { background: var(--graphite); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
}
.timeline::before {
  content: "";
  position: absolute;
  top: 11px; left: 4%; right: 4%;
  height: 2px;
  background: var(--hairline-2);
}
.timeline .line-fill {
  position: absolute;
  top: 11px; left: 4%;
  height: 2px;
  width: 0;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal-glow);
  transition: width 1.8s cubic-bezier(.16,.84,.34,1);
}
.step { position: relative; padding-right: 12px; }
.step .node {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--carbon);
  border: 2px solid var(--hairline-2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 2;
  transition: border-color .4s ease, background .4s ease;
}
.step .node::after { content:""; width:7px; height:7px; border-radius:50%; background: var(--muted-2); transition: background .4s ease, box-shadow .4s ease; }
.timeline.lit .step .node { border-color: var(--signal); }
.timeline.lit .step .node::after { background: var(--signal); box-shadow: 0 0 8px var(--signal-glow); }
.step .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin: 20px 0 8px; }
.step h4 { font-family: var(--font-display); font-size: 22px; color: var(--white); margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 15px; max-width: 26ch; }

/* ============================================================
   PROOF BAND
   ============================================================ */
.proof .proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.proof .section-title { font-size: clamp(28px, 3.6vw, 44px); }
.trust-list { display: flex; flex-direction: column; gap: 22px; }
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(118,185,0,0.12);
  border: 1px solid rgba(118,185,0,0.3);
  color: var(--signal);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.trust-item p { color: var(--fog); font-size: 16px; opacity: .9; }
.trust-item p strong { color: var(--white); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ============================================================
   RESULTS
   ============================================================ */
.results { text-align: center; }
.results .section-head { margin-inline: auto; text-align: center; }
.results .section-head p { margin-inline: auto; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(40px, 5vw, 70px);
}
.result-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 104px);
  color: var(--signal);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 0 36px var(--signal-glow);
}
.result-num .pre { color: var(--fog); opacity:.5; font-size: 0.5em; }
.result-num .unit { font-size: 0.42em; }
.result-label { color: var(--muted); font-size: 15px; margin-top: 16px; letter-spacing: .01em; }
.result-foot { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 50px; letter-spacing: .04em; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 900px; height: 460px;
  background: radial-gradient(ellipse, var(--signal-glow) 0%, transparent 65%);
  filter: blur(20px);
  opacity: .45;
  pointer-events: none;
}
.final-inner { position: relative; z-index: 1; }
.final h2 {
  font-size: clamp(34px, 5.6vw, 72px);
  max-width: 16ch;
  margin: 0 auto 38px;
}
.final h2 .green { color: var(--signal); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 64px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .logo { font-size: 24px; margin-bottom: 16px; }
.footer-tag { color: var(--muted); font-size: 15px; max-width: 32ch; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--fog); opacity: .72; font-size: 15px; margin-bottom: 12px; transition: color .2s, opacity .2s; }
.footer-col a:hover { color: var(--signal); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); }
.footer-bottom .loc { display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .gauge-wrap { order: -1; }
  .gauge { width: min(340px, 78%); }
  .proof .proof-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 0;
  }
  .nav.open .nav-links a { padding: 14px var(--gutter); width: 100%; }
  .nav.open .nav-links a::after { display: none; }

  .stat-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-card { border-left: 0; border-top: 1px solid var(--hairline); padding: 28px 0; }
  .stat-card:first-child { border-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before, .timeline .line-fill { display: none; }
  .step { padding-left: 40px; }
  .step .node { position: absolute; left: 0; top: 2px; }
  .results-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
