/*
Theme Name: Frely Command
Description: Custom theme for Frely marketing site. Dark tech aesthetic, teal accent, full pixel control.
Author: ox-alpha for Vlad
Version: 1.0
Text Domain: frely
*/

/* ═══════════ FONTS (self-hosted, no Google CDN) ═══════════ */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/fonts-inter400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/fonts-inter500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/fonts-inter700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('assets/fonts/fonts-inter800.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/fonts-space700.woff2') format('woff2');
}

/* ═══════════ TOKENS ═══════════ */
:root {
  --bg-0: #070c14;
  --bg-1: #0b1220;
  --bg-2: #101b2e;
  --panel: #0e1726;
  --line: #1c2940;
  --line-bright: #2a3a4d;
  --text-hi: #f4f7fa;
  --text-mid: #a8b6c4;
  --text-low: #7c8b9b;
  --teal: #14b8a6;
  --teal-bright: #2dd4bf;
  --teal-deep: #0d9488;
  --teal-glow: rgba(20, 184, 166, 0.35);
  --radius: 14px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════ RESET / BASE ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-0);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
/* scrollbar-gutter: reserve the scrollbar column on ALL pages so pages with/without
   vertical scroll never shift content horizontally (classic "люфт влево-вправо") */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-bright); text-decoration: none; transition: color .25s var(--ease-out); }
a:hover { color: #5eead4; }
::selection { background: var(--teal); color: var(--bg-0); }

h1, h2, h3, h4 { color: var(--text-hi); font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-alt { padding: 110px 0; background: linear-gradient(180deg, transparent, rgba(20,184,166,0.02) 50%, transparent); }

/* eyebrow labels — rationed, max 2 per page */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--teal); display: inline-block; }

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(7, 12, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--text-hi); letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 2px; }
.logo em { font-style: normal; color: var(--teal); }
.logo::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); margin-left: 5px; margin-top: 14px; box-shadow: 0 0 12px var(--teal-glow); }
.main-nav ul { display: flex; list-style: none; gap: 34px; align-items: center; }
/* r6: the nav (and its ul) participates in the header layout; on mobile it becomes
   a fixed overlay - it must NEVER create page overflow while hidden or shown */
.main-nav { min-width: 0; }
.main-nav ul { min-width: 0; }
.main-nav a:not(.btn) { color: var(--text-mid); font-size: 0.95rem; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.main-nav a:not(.btn):hover { color: var(--text-hi); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; z-index: 102; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--text-hi); position: absolute; left: 9px; transition: all .3s var(--ease-out); }
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 11px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; position: relative; overflow: hidden;
  transition: transform .18s var(--ease-out), box-shadow .3s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--teal); color: #04231f; box-shadow: 0 0 0 rgba(20,184,166,0); }
.btn-primary:hover { background: var(--teal-bright); color: #04231f; box-shadow: 0 8px 32px var(--teal-glow); transform: translateY(-2px); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { background: transparent; color: var(--text-hi); border: 1px solid var(--line-bright); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-bright); background: rgba(20,184,166,0.06); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; border-radius: 12px; }

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 140px 0 90px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20,184,166,0.14), transparent);
  filter: blur(60px);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,58,77,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,58,77,0.28) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, black 25%, transparent 72%);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
.hero-copy .eyebrow { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease-out) .15s forwards; }
.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; opacity: 0; transform: translateY(110%); animation: unveil 1s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .28s; }
.hero-title .accent { color: var(--teal-bright); text-shadow: 0 0 42px var(--teal-glow); }
.hero-sub { font-size: 1.22rem; line-height: 1.62; max-width: 33em; color: var(--text-mid); margin-bottom: 38px; opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease-out) .55s forwards; }
.hero-sub strong { color: var(--text-hi); font-weight: 600; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease-out) .72s forwards; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--text-low); opacity: 0; animation: fadein 1s ease 1s forwards; }

.hero-shot { position: relative; opacity: 0; transform: translateY(36px) scale(0.97); animation: shotIn 1.1s var(--ease-out) .45s forwards; }
.hero-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line-bright);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(20,184,166,0.07);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2.5deg);
  transition: transform .6s var(--ease-out);
}
.hero-shot:hover img { transform: perspective(1400px) rotateY(-2deg) rotateX(0.5deg) scale(1.01); }
.hero-shot::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(45,212,191,0.5), transparent 35%, transparent 65%, rgba(45,212,191,0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; pointer-events: none;
}
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(14, 23, 38, 0.88); backdrop-filter: blur(12px);
  border: 1px solid var(--line-bright); border-radius: 12px; padding: 11px 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-hi);
  box-shadow: 0 14px 44px rgba(0,0,0,0.45);
  animation: floaty 5.5s ease-in-out infinite;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal-glow); flex-shrink: 0; }
.chip-1 { top: -18px; right: -14px; }
.chip-2 { bottom: 26px; left: -26px; animation-delay: -2.7s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes shotIn { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* marquee — clipped inside its own bar, never leaks to page */
.proof-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); overflow: hidden; padding: 0; max-width: 100vw; }
.marquee { display: flex; gap: 84px; padding: 22px 0; white-space: nowrap; animation: marquee 34s linear infinite; width: max-content; will-change: transform; }
.marquee-item { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 1.02rem; color: var(--text-low); }
.marquee-item b { font-size: 1.55rem; color: var(--text-hi); font-weight: 700; letter-spacing: -0.02em; }
.marquee-item i { font-style: normal; color: var(--teal-bright); }
@keyframes marquee { to { transform: translateX(-50%); } }
.proof-bar:hover .marquee { animation-play-state: paused; }

/* ═══════════ PAIN ═══════════ */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.pain-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s ease;
}
.pain-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: 0; transition: opacity .4s ease; }
.pain-card:hover { transform: translateY(-6px); border-color: var(--line-bright); }
.pain-card:hover::before { opacity: 1; }
.pain-num { font-family: var(--font-display); font-size: 0.82rem; color: var(--text-low); letter-spacing: 0.1em; display: block; margin-bottom: 46px; }
.pain-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.pain-card p { font-size: 0.95rem; line-height: 1.6; color: var(--text-mid); }

/* ═══════════ SOLUTION / BENTO ═══════════ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 60px; }
.bento-cell {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; position: relative;
  transition: transform .45s var(--ease-out), border-color .45s ease, box-shadow .45s ease;
  display: flex; flex-direction: column;
}
.bento-cell:hover { transform: translateY(-5px); border-color: rgba(45,212,191,0.4); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.bento-cell.cell-wide { grid-column: span 7; }
.bento-cell.cell-tall { grid-column: span 5; }
/* media fills the whole top of the tile; screenshot cropped from top (meaningful UI), fades into tile */
.bento-media { position: relative; height: 230px; overflow: hidden; flex-shrink: 0; background: #ffffff; }
.bento-media img {
  width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top center;
  border: none; box-shadow: none; border-radius: 0;
  transition: transform .6s var(--ease-out);
}
.bento-cell:hover .bento-media img { transform: scale(1.03); }
/* fade only the bottom 30px into the tile, keep the screenshot itself crisp */
.bento-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: linear-gradient(180deg, transparent, var(--panel));
  pointer-events: none;
}
.bento-body { padding: 24px 28px 30px; }
.bento-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-bright); display: block; margin-bottom: 10px; }
.bento-body h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.bento-body p { font-size: 0.97rem; line-height: 1.6; color: var(--text-mid); }
.cell-row2 { grid-column: span 6; }
.cell-row2 .bento-media { height: 200px; }

/* ═══════════ HOW ═══════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; counter-reset: step; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  background: linear-gradient(180deg, var(--bg-2), var(--panel));
  position: relative; transition: transform .4s var(--ease-out), border-color .4s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(45,212,191,0.35); }
.step-n {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, var(--teal-bright), rgba(20,184,166,0.15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: 0.96rem; line-height: 1.62; }
.step code.block {
  display: block; margin-top: 16px; padding: 12px 15px; border-radius: 9px;
  background: #060a12; border: 1px solid var(--line);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.83rem; color: var(--teal-bright);
  overflow-x: auto; white-space: pre;
}

/* terminal demo */
.demo-wrap { margin-top: 64px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-bright); box-shadow: 0 30px 90px rgba(0,0,0,0.5); background: #060b13; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.demo-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.demo-bar i:nth-child(1) { background: #ff5f57; } .demo-bar i:nth-child(2) { background: #febc2e; } .demo-bar i:nth-child(3) { background: #28c840; }
.demo-bar span { margin-left: 12px; font-size: 0.82rem; color: var(--text-low); font-family: ui-monospace, Menlo, monospace; }
.demo-body { padding: 28px 30px 32px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.95rem; line-height: 2.05; }
.demo-line { opacity: 0; display: block; }
.demo-line.play { animation: typeline .5s steps(40, end) forwards; }
.demo-line .p { color: var(--teal-bright); }
.demo-line .c { color: var(--text-low); }
.demo-line .w { color: var(--text-hi); }
.demo-caret { display: inline-block; width: 9px; height: 1.15em; background: var(--teal); vertical-align: text-bottom; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes typeline { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ═══════════ SELF-HOSTED SPLIT ═══════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-list { list-style: none; margin-top: 28px; display: grid; gap: 15px; }
.split-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 1.03rem; line-height: 1.55; }
.split-list .tick {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; margin-top: 2px;
  background: rgba(20,184,166,0.14); border: 1px solid rgba(45,212,191,0.4);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal-bright); font-size: 0.72rem; font-weight: 800;
}
.code-window { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-bright); box-shadow: 0 24px 70px rgba(0,0,0,0.45); background: #060b13; transform: rotate(-1.2deg); transition: transform .5s var(--ease-out); }
.code-window:hover { transform: rotate(0deg) scale(1.015); }
.code-window .demo-body { font-size: 0.92rem; }

/* ═══════════ ROADMAP ═══════════ */
.roadmap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.rm-col { border-radius: 18px; padding: 34px 32px; border: 1px solid var(--line); background: var(--panel); }
.rm-col.done { border-color: rgba(45,212,191,0.45); background: linear-gradient(180deg, rgba(20,184,166,0.07), transparent 55%), var(--panel); }
.rm-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 22px; }
.rm-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; }
.rm-badge.live { background: rgba(20,184,166,0.16); color: var(--teal-bright); border: 1px solid rgba(45,212,191,0.4); }
.rm-badge.next { background: rgba(124,139,155,0.12); color: var(--text-low); border: 1px solid var(--line-bright); }
.rm-col ul { list-style: none; display: grid; gap: 12px; }
.rm-col li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; line-height: 1.5; }
.rm-col li::before { content: "→"; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ═══════════ FAQ ═══════════ */
.faq-list { max-width: 800px; margin: 52px auto 0; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color .3s ease; }
.faq-item[open] { border-color: rgba(45,212,191,0.4); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 21px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; color: var(--text-hi); font-size: 1.04rem;
  transition: color .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal-bright); }
.faq-plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--teal); transition: transform .35s var(--ease-out); }
.faq-plus::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-item[open] summary ~ .faq-a { animation: faqIn .45s var(--ease-out); }
.faq-a { padding: 0 26px 24px; color: var(--text-mid); line-height: 1.65; font-size: 0.98rem; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ═══════════ FINAL CTA + FORM ═══════════ */
.final-cta { position: relative; overflow: hidden; }
.final-cta .hero-grid { opacity: 0.55; }
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.waitlist-form { max-width: 540px; margin: 40px auto 0; text-align: left; }
.wl-row { margin-bottom: 16px; }
.wl-label { display: block; color: var(--text-mid); font-size: 0.92rem; margin-bottom: 7px; font-weight: 500; }
.wl-optional { color: var(--text-low); font-weight: 400; }
.waitlist-form input[type=email], .waitlist-form select {
  width: 100%; padding: 15px 18px; border-radius: 12px;
  border: 1px solid var(--line-bright); background: rgba(11, 18, 32, 0.85);
  color: var(--text-hi); font-size: 1rem; font-family: inherit;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.waitlist-form input[type=email]:focus, .waitlist-form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,0.15);
}
.waitlist-form .btn { width: 100%; margin-top: 6px; }
.wl-note { color: var(--text-low); font-size: 0.86rem; text-align: center; margin-top: 14px; }
.frely-waitlist-success {
  max-width: 540px; margin: 40px auto 0; padding: 26px 30px; border-radius: 14px;
  border: 1px solid var(--teal); background: rgba(20,184,166,0.09);
  color: var(--text-hi); font-size: 1.05rem; line-height: 1.6; text-align: center;
  animation: rise .6s var(--ease-out);
}

/* light pages (inner) */
.page-hero { padding: 170px 0 60px; position: relative; overflow: hidden; }
.page-hero .hero-grid { opacity: 0.7; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 18px; }
.page-hero p { font-size: 1.18rem; line-height: 1.65; max-width: 40em; }

/* ═══════════ INNER PAGE COMPONENT SYSTEM ═══════════ */
/* (r4: wrapper width rules removed - see ALIGNMENT FIX at line ~520) */

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 20px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .45s var(--ease-out), border-color .35s ease, box-shadow .45s ease;
  position: relative; overflow: hidden;
}
.feat-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(45,212,191,0.09), transparent 42%);
  opacity: 0; transition: opacity .35s ease;
}
.feat-card:hover { transform: translateY(-6px); border-color: rgba(45,212,191,0.38); box-shadow: 0 22px 55px rgba(0,0,0,0.4); }
.feat-card:hover::after { opacity: 1; }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(20,184,166,0.2), rgba(20,184,166,0.05));
  border: 1px solid rgba(45,212,191,0.35); font-size: 1.3rem; margin-bottom: 18px;
}
/* r7: emoji replaced with inline Lucide SVGs - size the svg to the chip */
.feat-icon svg { width: 22px; height: 22px; color: var(--teal-bright); }
.feat-card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.feat-card p { font-size: 0.94rem; line-height: 1.62; color: var(--text-mid); }

/* big checklist */
.check-list { list-style: none !important; display: grid; gap: 14px; margin: 34px 0 !important; padding: 0 !important; }
.check-list li {
  position: relative !important; display: block !important;
  padding: 18px 22px 18px 60px !important; border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); line-height: 1.6 !important;
  transition: border-color .3s ease;
}
.check-list li:hover { border-color: rgba(45,212,191,0.35); }
.check-list li::before {
  content: "✓" !important; position: absolute !important; left: 20px; top: 20px;
  color: var(--teal-bright); font-weight: 800;
  width: 26px; height: 26px; min-width: 26px; border-radius: 8px; background: rgba(20,184,166,0.14);
  border: 1px solid rgba(45,212,191,0.4); display: inline-flex !important;
  align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85rem;
}
/* strong inside checklist stays inline with text */
.check-list li strong { color: var(--text-hi); }

/* roadmap timeline */
.timeline { position: relative; margin: 52px 0; padding-left: 34px; display: grid; gap: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(20,184,166,0.08));
}
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-0); border: 2px solid var(--teal); box-shadow: 0 0 14px var(--teal-glow);
}
.tl-item.done::before { background: var(--teal); }
.tl-status {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; margin-bottom: 10px;
}
.tl-status.live { background: rgba(20,184,166,0.15); color: var(--teal-bright); border: 1px solid rgba(45,212,191,0.4); }
.tl-status.next { background: rgba(124,139,155,0.12); color: var(--text-low); border: 1px solid var(--line-bright); }
.tl-item h3 { font-size: 1.22rem; margin-bottom: 8px; }
.tl-item p { color: var(--text-mid); line-height: 1.62; max-width: 44em; }

/* stat row with animated counters */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 44px 0; }
.stat-box {
  text-align: center; padding: 30px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--panel));
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.stat-num {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #8ea3b5);
  -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1;
  display: block;
}
.stat-label { font-size: 0.86rem; color: var(--text-low); margin-top: 0; display: block; max-width: 20em; }

/* glowing CTA panel */
.cta-panel {
  position: relative; border-radius: 22px; overflow: hidden; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background: linear-gradient(160deg, #101b2e, #0b1220 65%);
  border: 1px solid var(--line-bright); margin: 70px 0 10px;
}
.cta-panel::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 640px; height: 380px; border-radius: 50%; filter: blur(70px);
  background: radial-gradient(closest-side, rgba(20,184,166,0.22), transparent);
  pointer-events: none; animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { opacity: .7; } 50% { opacity: 1.15; } }
.cta-panel h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 14px; position: relative; }
.cta-panel p { position: relative; max-width: 36em; margin: 0 auto 28px; }
.cta-panel .btn { position: relative; }
.cta-panel .btn-primary { animation: ctaPulse 2.6s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0.35); }
  55% { box-shadow: 0 0 0 13px rgba(20,184,166,0); }
}

/* doc (privacy) */
.doc h2 { font-size: 1.35rem; margin-top: 46px; }
.doc ul li::before { content: "•" !important; }

/* two-col info split inside inner pages */
.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; margin: 40px 0; }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; z-index: 200;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-bright));
  width: 0%; box-shadow: 0 0 10px var(--teal-glow);
  transition: width .12s linear; pointer-events: none;
}

@media (max-width: 1080px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .info-split { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-num { font-size: 2rem; }
  .timeline { padding-left: 28px; }
  .tl-item::before { left: -27px; }
}
.light-panel {
  background: #f5f8fa; color: #33414f; border-radius: 22px;
  padding: clamp(36px, 5vw, 72px); position: relative; overflow: hidden;
}
.light-panel h2, .light-panel h3 { color: #101b2e; }
.light-panel p { color: #45566a; }

/* inner content typography (rendered page body) */
/* ALIGNMENT FIX (r4, v3): .inner-content always comes WITH .container on the same div.
   The old `max-width:900px; margin:0 auto` here re-centered the block INSIDE the
   1180px container, shifting its text right of the header/footer axis (logo at x=147,
   text at x=86 on 1440 screens). The container itself (1180px, padding 0 24px) already
   sits on the page axis - so NO extra width/margin rules on the wrapper at all.
   Readable line length is enforced on CHILDREN (max-width:900, left-aligned),
   which keeps every h2/p/list/code edge exactly on the logo axis. */
.page-hero-inner > *, .inner-content > * { max-width: 900px; }
.inner-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 64px 0 18px; }
.inner-content h3 { font-size: 1.28rem; margin: 40px 0 12px; }
.inner-content p { margin-bottom: 16px; line-height: 1.7; }
.inner-content ul { margin: 0 0 20px 4px; list-style: none; display: grid; gap: 10px; }
.inner-content ul li { padding-left: 26px; position: relative; line-height: 1.6; }
.inner-content ul li::before { content: "→"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.inner-content code { background: #060b13; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 0.88em; color: var(--teal-bright); font-family: ui-monospace, Menlo, monospace; }
.inner-content pre { background: #060b13; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; overflow-x: auto; margin-bottom: 20px; max-width: 100%; }
.inner-content pre code { background: none; border: none; padding: 0; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.shot-frame { border: 1px solid var(--line-bright); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.45); margin: 28px 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: 64px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
.footer-brand p { font-size: 0.93rem; line-height: 1.6; margin: 14px 0 0; max-width: 300px; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-low); margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer-col a { display: block; color: var(--text-mid); padding: 5px 0; font-size: 0.94rem; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-cta-link { display: inline-block !important; border: 1px solid var(--teal); border-radius: 9px; padding: 9px 18px !important; color: var(--teal-bright) !important; margin-top: 4px; }
.footer-bottom { max-width: 1180px; margin: 48px auto 0; padding: 22px 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--text-low); }

/* scroll reveal — JS-gated, with safety: if IO unavailable, everything visible.
   IMPORTANT: reveal elements are only hidden AFTER JS confirms IO works (js-reveal class on <html>). */
html.js .js-reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.js .js-reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

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

/* responsive — mobile: no horizontal shift anywhere */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .hero { padding-top: 130px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cell-wide, .cell-tall, .cell-row2 { grid-column: 1 / -1; }
  .split, .roadmap-cols { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .section { padding: 78px 0; }
  html, body { overflow-x: hidden; }
  .container { padding: 0 18px; }
  .main-nav {
    position: fixed; inset: 0; background: rgba(7,12,20,0.98);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 101;
    /* r6: hidden overlay must not contribute to page scrollWidth */
    visibility: hidden;
  }
  body.nav-open .main-nav { opacity: 1; pointer-events: auto; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 17px; }
  .main-nav a:not(.btn) { font-size: 1.12rem; }
  .nav-toggle { display: block; }
  /* r6: menu is now taller (unified list + MORE group) - make it scrollable
     and top-anchored so the CTA never clips at the bottom edge */
  body.nav-open .main-nav { justify-content: flex-start; overflow-y: auto; padding: 90px 24px 40px; }
  .pain-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.2rem, 9.5vw, 3rem); }
  .hero-title .line { overflow: visible; }
  .float-chip { display: none; }
  .code-window, .hero-shot img { transform: none; }
  .hero-shot img { transform: none !important; }
  .bento-media img { width: 100%; }
  .demo-body { font-size: 0.78rem; padding: 20px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
