/* ============================================
   TERMLY — design tokens
   bg-deep   #0A0D24   near-navy from the mark
   bg-elev   #12163A   card surface
   bg-elev-2 #171C46   raised surface
   line      rgba(255,255,255,.08)
   text-hi   #F4F6FF
   text-mid  #B7BEDD
   text-low  #7B84AC
   teal      #2FE0B0
   blue      #3E8EF7
   amber     #FFB84D  (reserved, unused in v1 — future risk states)
   ============================================ */

:root{
  --bg-deep:#0A0D24;
  --bg-elev:#12163A;
  --bg-elev-2:#171C46;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text-hi:#F4F6FF;
  --text-mid:#B7BEDD;
  --text-low:#7B84AC;
  --teal:#2FE0B0;
  --blue:#3E8EF7;
  --grad: linear-gradient(135deg, var(--teal), var(--blue));
  --grad-soft: linear-gradient(135deg, rgba(47,224,176,.16), rgba(62,142,247,.16));
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,.6);
  --ease: cubic-bezier(.22,1,.36,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

body{
  margin:0;
  background:var(--bg-deep);
  color:var(--text-hi);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:-0.02em;
  margin:0;
}

p{margin:0;}

a{color:inherit; text-decoration:none;}

img{display:block; max-width:100%;}

svg{fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;}

::selection{background:rgba(47,224,176,.35); color:var(--text-hi);}

/* ambient grain / vignette so the navy doesn't go flat */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(1200px 700px at 82% -10%, rgba(62,142,247,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(47,224,176,.10), transparent 55%);
}

.container-note{display:none;}

/* ===== layout helpers ===== */
main, .footer{position:relative; z-index:1;}

section{
  padding:120px 24px;
  max-width:1160px;
  margin:0 auto;
}

.section-head{
  max-width:640px;
  margin-bottom:56px;
}
.section-eyebrow{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal);
  margin-bottom:14px;
}
.section-head h2{
  font-size:clamp(28px, 3.4vw, 40px);
  margin-bottom:14px;
}
.section-sub{color:var(--text-mid); font-size:17px; max-width:520px;}

/* ===== buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius:999px;
  padding:14px 26px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:15px;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space:nowrap;
}
.btn:focus-visible{outline:2px solid var(--teal); outline-offset:3px;}
.btn-primary{
  background:var(--grad);
  color:#06110E;
  box-shadow: 0 10px 30px -8px rgba(47,224,176,.45);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 36px -8px rgba(47,224,176,.6); }
.btn-ghost{
  background:transparent;
  color:var(--text-hi);
  border-color:var(--line-strong);
}
.btn-ghost:hover{ border-color:var(--teal); color:var(--teal); transform:translateY(-2px); }
.btn-small{ padding:10px 20px; font-size:14px; }
.btn-large{ padding:17px 34px; font-size:16px; }

/* ===== nav ===== */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(14px);
  background:rgba(10,13,36,.72);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:1160px; margin:0 auto;
  padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:32px; height:32px; border-radius:8px; }
.brand-name{ font-family:var(--font-display); font-weight:600; font-size:19px; letter-spacing:-.01em; }
.nav-links{ display:flex; gap:32px; }
.nav-links a{ font-size:14.5px; color:var(--text-mid); transition:color .2s; }
.nav-links a:hover{ color:var(--text-hi); }

@media (max-width:820px){
  .nav-links{ display:none; }
}

/* ===== hero ===== */
.hero{ position:relative; padding-top:96px; padding-bottom:60px; overflow:visible; }
.hero-inner{
  max-width:1160px; margin:0 auto; padding:0 24px;
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:.06em;
  color:var(--text-mid);
  background:var(--bg-elev);
  border:1px solid var(--line);
  padding:7px 14px 7px 10px;
  border-radius:999px;
  margin-bottom:24px;
}
.pulse-dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 0 0 rgba(47,224,176,.6);
  animation:pulse 2.2s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(47,224,176,.55); }
  70%{ box-shadow:0 0 0 8px rgba(47,224,176,0); }
  100%{ box-shadow:0 0 0 0 rgba(47,224,176,0); }
}

.hero-title{
  font-size:clamp(38px, 5vw, 60px);
  line-height:1.06;
  margin-bottom:22px;
}
.fold-icon{
  display:inline-flex;
  vertical-align:-0.14em;
  width:.85em; height:.85em;
  margin:0 .02em;
}
.fold-icon svg{ width:100%; height:100%; }
.fold-back{ fill:var(--bg-elev); stroke:var(--line-strong); stroke-width:1.4; }
.fold-check{ stroke:url(#heroCheckGrad); stroke-width:2.6; }

.hero-sub{
  font-size:18px; color:var(--text-mid); max-width:480px; margin-bottom:32px;
}
.hero-sub em{ color:var(--text-hi); font-style:normal; border-bottom:1px dashed var(--line-strong); }

.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }

.hero-meta{ display:flex; align-items:center; gap:22px; }
.meta-item{ display:flex; flex-direction:column; gap:2px; }
.meta-num{ font-family:var(--font-mono); font-size:26px; font-weight:600; color:var(--text-hi); }
.meta-unit{ font-size:15px; color:var(--text-low); }
.meta-label{ font-size:12.5px; color:var(--text-low); max-width:140px; }
.meta-divider{ width:1px; height:34px; background:var(--line-strong); }

/* --- hero browser mock --- */
.hero-visual{ position:relative; display:flex; justify-content:center; }
.float-slow{ animation:float 7s ease-in-out infinite; }
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}

.browser-mock{
  width:100%; max-width:440px;
  border-radius:var(--radius-lg);
  background:var(--bg-elev);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.browser-chrome{
  display:flex; align-items:center; gap:8px;
  padding:12px 14px;
  background:var(--bg-elev-2);
  border-bottom:1px solid var(--line);
}
.dot{ width:9px; height:9px; border-radius:50%; }
.d1{ background:#FF6259; } .d2{ background:#FFBD2E; } .d3{ background:#28C93F; }
.browser-url{
  margin-left:8px;
  font-family:var(--font-mono); font-size:11px; color:var(--text-low);
  background:var(--bg-deep);
  border:1px solid var(--line);
  border-radius:6px;
  padding:4px 10px;
  flex:1;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}

.browser-body{ position:relative; padding:26px 22px 30px; min-height:420px; }
.page-lines{ display:flex; flex-direction:column; gap:12px; opacity:.35; }
.line{ height:9px; border-radius:5px; background:linear-gradient(90deg, var(--line-strong), var(--line)); }
.w-90{width:90%;} .w-70{width:70%;} .w-80{width:80%;} .w-60{width:60%;} .w-85{width:85%;} .w-50{width:50%;}

.termly-popup{
  position:absolute; right:16px; left:16px; top:64px;
  background:var(--bg-deep);
  border:1px solid var(--line-strong);
  border-radius:var(--radius-md);
  padding:20px 20px 24px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.7);
}
.popup-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.popup-logo{ width:22px; height:22px; border-radius:6px; }
.popup-head span{ font-family:var(--font-display); font-weight:600; font-size:15px; }
.popup-tagline{ font-size:12.5px; color:var(--text-mid); margin-bottom:16px; line-height:1.45; }
.popup-btn{
  width:100%;
  background:var(--grad);
  color:#06110E;
  border:none;
  border-radius:999px;
  padding:11px;
  font-family:var(--font-body); font-weight:700; font-size:13.5px;
  cursor:default;
  margin-bottom:22px;
}

.gauge-wrap{ position:relative; width:140px; height:140px; margin:0 auto 12px; }
.gauge{ width:100%; height:100%; transform:rotate(-90deg); }
.gauge-track{ fill:none; stroke:var(--line-strong); stroke-width:9; }
.gauge-fill{
  fill:none; stroke-width:9; stroke-linecap:round;
  stroke:url(#unused);
  stroke:var(--teal);
  stroke-dasharray:377;
  stroke-dashoffset:377;
  transition:stroke-dashoffset 1.6s var(--ease);
}
.gauge-center{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.gauge-score{ font-family:var(--font-mono); font-size:32px; font-weight:600; color:var(--text-hi); }
.gauge-total{ font-family:var(--font-mono); font-size:12px; color:var(--text-low); }
.gauge-verdict{
  text-align:center;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.12em;
  color:var(--teal); margin-bottom:14px;
}
.popup-summary{ font-size:12.5px; color:var(--text-mid); text-align:center; line-height:1.5; }

.hero-fade{
  position:absolute; left:0; right:0; bottom:0; height:140px;
  background:linear-gradient(to bottom, transparent, var(--bg-deep));
  pointer-events:none;
}

@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-copy{ text-align:left; }
  .hero-visual{ margin-top:12px; }
}

/* ===== how it works / flow ===== */
.flow{
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:start; gap:0;
}
.flow-step{
  background:var(--bg-elev);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:28px 24px;
}
.flow-index{
  font-family:var(--font-mono); font-size:13px; color:var(--teal);
  letter-spacing:.08em; margin-bottom:14px;
}
.flow-step h3{ font-size:20px; margin-bottom:10px; }
.flow-step p{ color:var(--text-mid); font-size:14.5px; }
.flow-connector{
  width:40px; align-self:center;
  height:1px;
  background:repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px);
}

@media (max-width:900px){
  .flow{ grid-template-columns:1fr; gap:16px; }
  .flow-connector{ display:none; }
}

/* ===== showcase / screenshots ===== */
.showcase-tabs{ display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap; }
.tab{
  font-family:var(--font-mono); font-size:12.5px;
  background:var(--bg-elev);
  border:1px solid var(--line);
  color:var(--text-mid);
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  transition:border-color .2s, color .2s, background .2s;
}
.tab:hover{ color:var(--text-hi); border-color:var(--line-strong); }
.tab.active{
  color:#06110E;
  background:var(--grad);
  border-color:transparent;
}

.showcase-stage{ display:grid; grid-template-columns:1fr 300px; gap:40px; align-items:center; }
.showcase-browser{
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--bg-elev);
  box-shadow:var(--shadow-soft);
}
.shot-frame{
  position:relative;
  aspect-ratio: 429 / 567;
  max-height:560px;
  background:var(--bg-elev-2);
}
.shot{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transform:scale(1.01);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
.shot.active{ opacity:1; transform:scale(1); }

.showcase-caption p{ color:var(--text-mid); font-size:15.5px; line-height:1.6; }

@media (max-width:900px){
  .showcase-stage{ grid-template-columns:1fr; }
  .shot-frame{ max-height:none; }
}

/* ===== why grid ===== */
.why-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:18px;
}
.why-card{
  background:var(--bg-elev);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:26px 22px;
  transition:transform .3s var(--ease), border-color .3s var(--ease);
}
.why-card:hover{ transform:translateY(-4px); border-color:var(--line-strong); }
.why-icon{
  width:40px; height:40px; border-radius:10px;
  background:var(--grad-soft);
  color:var(--teal);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.why-icon svg{ width:20px; height:20px; }
.why-card h3{ font-size:16.5px; margin-bottom:8px; }
.why-card p{ color:var(--text-mid); font-size:13.8px; line-height:1.55; }

@media (max-width:980px){
  .why-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .why-grid{ grid-template-columns:1fr; }
}

/* ===== get CTA ===== */
.get-card{
  position:relative;
  text-align:center;
  padding:72px 32px;
  border-radius:32px;
  background:
    radial-gradient(560px 280px at 50% 0%, rgba(47,224,176,.14), transparent 70%),
    var(--bg-elev);
  border:1px solid var(--line-strong);
  overflow:hidden;
}
.get-logo{ width:56px; height:56px; border-radius:14px; margin:0 auto 22px; }
.get-card h2{ font-size:clamp(26px,3.4vw,36px); margin-bottom:12px; }
.get-card p{ color:var(--text-mid); max-width:440px; margin:0 auto 30px; font-size:16px; }
.get-note{ display:block; margin-top:16px; font-size:12.5px; color:var(--text-low); font-family:var(--font-mono); }

/* ===== about ===== */
.about-inner{
  display:grid; grid-template-columns:auto 1fr; gap:40px; align-items:center;
}
.about-avatar{ display:none; }
.about-text h2{ font-size:clamp(24px,3vw,32px); margin:10px 0 14px; }
.about-placeholder{
  color:var(--text-mid);
  font-size:15.5px;
  line-height:1.7;
  max-width:560px;
  padding:16px 18px;
  border:1px dashed var(--line-strong);
  border-radius:var(--radius-sm);
  margin-bottom:22px;
  font-style:italic;
}
.linkedin-link{
  display:inline-flex; align-items:center; gap:9px;
  font-weight:600; font-size:14.5px;
  color:var(--text-hi);
  border:1px solid var(--line-strong);
  padding:11px 20px;
  border-radius:999px;
  transition:border-color .2s, color .2s, transform .2s;
}
.linkedin-link:hover{ border-color:var(--blue); color:var(--blue); transform:translateY(-2px); }
.li-icon{ width:17px; height:17px; fill:currentColor; stroke:none; }

@media (max-width:640px){
  .about-inner{ grid-template-columns:1fr; text-align:center; justify-items:center; }
}

/* ===== footer ===== */
.footer{
  border-top:1px solid var(--line);
  padding:56px 24px 40px;
}
.footer-inner{ max-width:1160px; margin:0 auto; }
.footer-top{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  padding-bottom:32px; margin-bottom:28px;
  border-bottom:1px solid var(--line);
}
.footer-socials{ display:flex; gap:10px; }
.social-icon{
  width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-elev);
  border:1px solid var(--line);
  color:var(--text-mid);
  transition:color .2s, border-color .2s, transform .2s;
}
.social-icon svg{ width:17px; height:17px; }
.social-icon:hover{ color:var(--teal); border-color:var(--teal); transform:translateY(-2px); }

.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-bottom:18px;
}
.footer-copy{ font-size:13.5px; color:var(--text-low); }
.footer-legal{ display:flex; gap:22px; }
.footer-legal a{ font-size:13.5px; color:var(--text-mid); transition:color .2s; }
.footer-legal a:hover{ color:var(--text-hi); }

.footer-note{ font-size:12px; color:var(--text-low); max-width:720px; line-height:1.6; }

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