/* TerraGenie Hi-Fi Homepage — extension styles on top of colors_and_type.css + kit.css */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ——————————————————— Layout helpers ——————————————————— */
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tg-red); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;}
.eyebrow::before { content:''; width: 24px; height: 2px; background: var(--tg-red); }

/* ——————————————————— Nav ——————————————————— */
.nav { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--border-1);transition: all var(--t-med) var(--ease-out); }
.nav.is-dark { background: rgba(10,10,11,0.85); border-bottom-color: rgba(255,255,255,0.08); color: #fff; }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 14px 40px; display:flex; align-items:center; gap: 28px; }
.nav-logo { height: 48px; display: block; }
.nav-links-mobile { display: none; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; margin-left: 30px; }
.nav-links a { position: relative; padding: 6px 0; color: inherit; transition: color var(--t-fast); }
.nav-links a:hover { color: var(--tg-red); }
.nav-links a::after { content:''; position:absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--tg-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); display: flex; gap: 8px; padding: 6px 10px; border: 1px solid var(--border-2); border-radius: var(--r-sm); cursor: pointer; }
.lang b { color: var(--tg-red); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; transition: all var(--t-med) var(--ease-out); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--tg-red); color: #fff; box-shadow: 0 1px 2px rgba(214,12,24,0.2); }
.btn-primary:hover { background: var(--tg-red-hover); box-shadow: var(--shadow-brand); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg-1); }
.btn-ghost:hover { color: var(--tg-red); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-lg { font-size: 16px; padding: 15px 26px; }
.btn .arrow { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.hamburger { display: none; width: 28px; height: 22px; flex-direction: column; justify-content: space-between; background: none; border: none; cursor: pointer; padding: 0; }
.hamburger span { display:block; width: 100%; height: 2px; background: currentColor; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.hamburger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ——————————————————— Hero ——————————————————— */
.hero { position: relative; min-height: 720px; background: #0A0A0B; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease-in-out; transform: scale(1.08); animation: kenBurns 14s ease-in-out infinite alternate; }
.hero-media .slide.is-active { opacity: 1; }
@keyframes kenBurns { from { transform: scale(1.05) translate(0,0); } to { transform: scale(1.15) translate(-1.5%, -1%); } }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.65) 55%, rgba(10,10,11,0.92) 100%); }
.hero-media::before { content:''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; z-index: 2; mix-blend-mode: overlay; opacity:.6; }

.hero-inner { position: relative; z-index: 3; max-width: 1240px; margin: 0 auto; padding: 140px 40px 120px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--tg-red); box-shadow: 0 0 0 0 var(--tg-red); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214,12,24,0.7);} 70% { box-shadow: 0 0 0 10px rgba(214,12,24,0);} 100% { box-shadow: 0 0 0 0 rgba(214,12,24,0);} }

.hero-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 8vw, 96px); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 28px; max-width: 14ch; color: #fff; }
.hero-title .word { display: inline-block; opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s var(--ease-out) forwards; }
.hero-title .word:nth-child(1) { animation-delay: 0.05s; }
.hero-title .word:nth-child(2) { animation-delay: 0.15s; }
.hero-title .word:nth-child(3) { animation-delay: 0.25s; }
.hero-title .word:nth-child(4) { animation-delay: 0.45s; color: var(--tg-red); }
.hero-title .word:nth-child(5) { animation-delay: 0.55s; color: var(--tg-red); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.hero-title br { display: block; content: ''; }

.hero-sub { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; color: rgba(255,255,255,0.82); max-width: 56ch; margin: 0 0 36px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.7s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.9s forwards; }
.hero-strip { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 14px 26px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.72); letter-spacing: 0.03em; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 1.1s forwards; }
.hero-strip span.dot { color: var(--tg-red); }
.hero-strip .item { display:inline-flex; gap: 6px; align-items: center; }
.hero-strip .item::before { content:''; width:6px; height:6px; background: var(--tg-red); border-radius: 50%; }
.hero-scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,0.6); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items:center; gap: 10px; }
.hero-scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after { content:''; position:absolute; top: -34px; left: 0; right: 0; height: 34px; background: linear-gradient(to bottom, transparent, var(--tg-red)); animation: scrollCue 2s infinite; }
@keyframes scrollCue { to { top: 100%; } }

.hero-slide-dots { position: absolute; bottom: 110px; right: 40px; display: flex; gap: 10px; z-index: 3; }
.hero-slide-dots button { width: 26px; height: 3px; background: rgba(255,255,255,0.25); border: 0; cursor: pointer; border-radius: 2px; transition: background var(--t-fast); padding: 0; }
.hero-slide-dots button.is-active { background: var(--tg-red); }

/* ——————————————————— Trust strip ——————————————————— */
.trust { background: #fff; border-bottom: 1px solid var(--border-1); padding: 26px 0; }
.trust-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.trust-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.trust-items { display:flex; gap: 36px; flex-wrap: wrap; align-items:center; }
.trust-items .ti { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg-2); letter-spacing: 0.02em; opacity: 0.85; }

/* ——————————————————— Topo background texture ———————————————————
   Two flavors, both tuned to BLEND, not dominate:
   - .topo-bg          → light surface, very faint dark lines (multiply @ 0.14)
   - .topo-bg.topo-bg--dark → dark surface, very faint light lines (screen @ 0.05)
   The --dark recipe matches .sup-contact on the support page.
*/
.topo-bg { position: relative; overflow: hidden; }
.topo-bg::before {
  content:''; position: absolute; inset: 0;
  background-image: url('assets/backgrounds/topo-light.png');
  background-size: 1800px auto; background-position: center; background-repeat: repeat;
  opacity: 0.14; mix-blend-mode: multiply;
  pointer-events: none; z-index: 0;
}
.topo-bg > .container { position: relative; z-index: 1; }

.topo-bg--dark { background: var(--tg-ink); color: #fff; }
.topo-bg--dark::before {
  background-size: 1800px auto;
  opacity: 0.05; mix-blend-mode: screen;
}

/* ——————————————————— Pain section ——————————————————— */
.pain { background: var(--tg-bone); }
.pain-head { max-width: 900px; margin-bottom: 64px; }
.pain-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; }
.pain-head h2 em { font-style: normal; color: var(--tg-red); }
.pain-head p { font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 62ch; margin: 0; }

/* Dark-mode override: when .pain also has .topo-bg--dark */
.pain.topo-bg--dark { background: var(--tg-ink); }
.pain.topo-bg--dark .pain-head h2 { color: #fff; }
.pain.topo-bg--dark .pain-head p { color: rgba(255,255,255,0.72); }
.pain.topo-bg--dark .eyebrow { color: var(--tg-red); }
.pain.topo-bg--dark .pain-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(6px);
}
.pain.topo-bg--dark .pain-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--tg-red);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(214,12,24,0.25);
}
.pain.topo-bg--dark .pain-card h3 { color: #fff; }
.pain.topo-bg--dark .pain-card p { color: rgba(255,255,255,0.72); }
.pain.topo-bg--dark .pain-bridge p { color: #fff; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card { background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 32px 28px; transition: all var(--t-med) var(--ease-out); position: relative; overflow: hidden; }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--tg-red); }
.pain-card::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tg-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); }
.pain-card:hover::before { transform: scaleX(1); }
.pain-num { font-family: var(--font-display); font-weight: 900; font-size: 48px; line-height: 1; color: var(--tg-red); letter-spacing: -0.03em; margin-bottom: 18px; opacity: 0.9; }.pain-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--tg-red-tint); color: var(--tg-red); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.pain-icon svg { width: 26px; height: 26px; }
.pain-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; margin: 0 0 12px; color: var(--fg-1); }
.pain-card p { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0; }
.pain-bridge { margin-top: 56px; text-align: center; }
.pain-bridge p { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; max-width: 44ch; margin: 0 auto; color: var(--fg-1); }
.pain-bridge p strong { color: var(--tg-red); font-weight: 800; }

/* ——————————————————— Product anchor ——————————————————— */
.product { background: #fff; position: relative; overflow: hidden; }
.product-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.product-copy h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 22px; }
.product-lead { font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 52ch; margin: 0 0 30px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; padding: 24px 0; border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); margin: 0 0 28px; font-family: var(--font-mono); font-size: 13px; }
.spec-list dt { color: var(--fg-3); margin: 0; font-weight: 500; }
.spec-list dd { color: var(--fg-1); margin: 0; font-weight: 600; }
.product-image-wrap { position: relative; padding: 60px 20px; background: linear-gradient(180deg, var(--tg-bone) 0%, #f0ebe0 100%); border-radius: var(--r-2xl); overflow: hidden; }
.product-image-wrap::before { content:''; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 40%, transparent 30%, rgba(88,90,91,0.08) 31%, transparent 32%), radial-gradient(circle at 30% 40%, transparent 45%, rgba(88,90,91,0.06) 46%, transparent 47%), radial-gradient(circle at 30% 40%, transparent 60%, rgba(88,90,91,0.05) 61%, transparent 62%); }
.product-image-wrap img { position: relative; z-index: 1; width: 100%; height: auto; max-height: 520px; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.25)); transition: transform var(--t-slow) var(--ease-out); }
.product-image-wrap:hover img { transform: translateY(-8px) rotate(-1deg); }
.product-badges { position: absolute; top: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.pb { background: #fff; border: 1px solid var(--border-1); padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--fg-1); display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-1); }
.pb .d { width: 6px; height: 6px; border-radius: 50%; background: var(--tg-success); }

/* Hardware tabs in product section */
.hw-tabs { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.hw-tab { background: #fff; border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 10px 14px; font-family: var(--font-display); font-weight: 600; font-size: 13px; cursor: pointer; transition: all var(--t-fast); }
.hw-tab:hover { border-color: var(--tg-red); color: var(--tg-red); }
.hw-tab.is-active { background: var(--tg-red); color:#fff; border-color: var(--tg-red); }

/* ——————————————————— Workflow (software) ——————————————————— */
.workflow { background: var(--tg-black); color: #fff; position: relative; overflow: hidden; }
.workflow::before { content:''; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 48px 48px; }
.workflow-head { max-width: 800px; margin-bottom: 64px; position: relative; z-index: 1; }
.workflow-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; color: #fff; }
.workflow-head p { color: rgba(255,255,255,0.72); font-size: 18px; line-height: 1.55; max-width: 52ch; margin: 0; }
.workflow-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 60px; }
.wf-step { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); padding: 26px 22px; transition: all var(--t-med) var(--ease-out); position: relative; }
.wf-step:hover { background: rgba(255,255,255,0.07); border-color: rgba(214,12,24,0.5); transform: translateY(-4px); }
.wf-n { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--tg-red); letter-spacing: -0.02em; margin-bottom: 18px; }
.wf-step h4 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 10px; color: #fff; }
.wf-step p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.7); margin: 0; }
.wf-step .arrow { position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--tg-red); font-size: 22px; font-family: var(--font-mono); z-index: 2; }

.sw-showcase {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
}
.sw-tabs { display: flex; flex-direction: column; gap: 6px; }
.sw-tab {
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: all var(--t-fast);
  color: rgba(255,255,255,0.65);
}
.sw-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.sw-tab.is-active {
  color: #fff;
  background: rgba(214,12,24,0.1);
  border-left-color: var(--tg-red);
}
.sw-tab .tab-num { font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1; color: var(--tg-red); letter-spacing: -0.02em; margin-bottom: 8px; opacity: 0.8; }
.sw-tab h5 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 6px; color: inherit; }
.sw-tab p { font-size: 13px; line-height: 1.5; margin: 0; color: rgba(255,255,255,0.6); }
.sw-tab.is-active p { color: rgba(255,255,255,0.85); }

/* Tablet frame for the portrait software screenshots */
.sw-screen {
  position: relative;
  width: 100%;
  max-width: 360px;
  justify-self: center;
  aspect-ratio: 608 / 999;
  background: #0d1117;
  border-radius: 32px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 20px 40px -10px rgba(214,12,24,0.12);
}
.sw-screen::before {
  content: "";
  position: absolute;
  top: 50%; left: 7px;
  transform: translateY(-50%);
  width: 3px; height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.sw-screen::after {
  content: "";
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  z-index: 4;
}
.sw-screen .screen-chrome { display: none; }
.sw-screen img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.sw-screen img.is-active { opacity: 1; }

@media (max-width: 900px) {
  .sw-showcase { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .sw-screen { max-width: 300px; }
}



/* ——————————————————— Proof ——————————————————— */
.proof { background: #fff; }
.proof-head { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.proof-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--tg-bone); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; min-height: 320px; transition: all var(--t-med) var(--ease-out); position: relative; }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--tg-red); }
.testimonial::before { content:'"'; font-family: var(--font-display); font-weight: 900; font-size: 80px; line-height: 1; color: var(--tg-red); position: absolute; top: 8px; right: 22px; opacity: 0.18; }
.stars { color: var(--tg-red); font-size: 16px; letter-spacing: 3px; margin-bottom: 16px; }
.testimonial blockquote { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.4; color: var(--fg-1); margin: 0 0 24px; flex: 1; }
.testimonial cite { font-style: normal; display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--tg-red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.t-meta { font-size: 13px; line-height: 1.35; }
.t-meta b { color: var(--fg-1); font-family: var(--font-display); display: block; font-size: 14px; }
.t-meta span { color: var(--fg-3); }

.stat-strip { margin-top: 48px; background: var(--tg-black); color: #fff; border-radius: var(--r-xl); padding: 56px 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; overflow: hidden; }
.stat-strip::before { content:''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 50%, rgba(214,12,24,0.15), transparent 50%); }
.stat-cell { position: relative; z-index: 1; border-left: 2px solid var(--tg-red); padding-left: 20px; }
.stat-n { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; color:#fff; }
.stat-n .unit { font-size: 0.4em; color: rgba(255,255,255,0.6); margin-left: 4px; font-weight: 600;}
.stat-l { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.4; }

/* ——————————————————— Segments ——————————————————— */
.segments { background: var(--tg-n-50); }
.seg-head { max-width: 820px; margin-bottom: 56px; }
.seg-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; }
.seg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.seg-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 0.85; cursor: pointer; background: var(--tg-black); transition: all var(--t-med) var(--ease-out); }
.seg-card .seg-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.55; transition: all var(--t-slow) var(--ease-out); }
.seg-card:hover .seg-img { opacity: 0.85; transform: scale(1.08); }
.seg-card::after { content:''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0) 30%, rgba(10,10,11,0.92) 100%); }
.seg-content { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; z-index: 2; }
.seg-num { font-family: var(--font-mono); font-size: 11px; color: var(--tg-red); letter-spacing: 0.18em; margin-bottom: 6px; }
.seg-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; margin: 0 0 6px; color: #fff; }
.seg-desc { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.4; max-height: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease-out); margin: 0; }
.seg-card:hover .seg-desc { max-height: 120px; }

/* ——————————————————— Comparison ——————————————————— */
.compare { background: var(--tg-bone); }
.compare-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.compare-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; }

/* Dark-mode override */
.compare.topo-bg--dark { background: var(--tg-ink); }
.compare.topo-bg--dark .compare-head h2 { color: #fff; }
.compare.topo-bg--dark .compare-head > p,
.compare.topo-bg--dark .compare-head .lead { color: rgba(255,255,255,0.72); }
.compare.topo-bg--dark .eyebrow { color: var(--tg-red); }
/* Non-hero columns: translucent cards on dark */
.compare.topo-bg--dark .compare-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
}
.compare.topo-bg--dark .compare-col .compare-name { color: #fff; }
.compare.topo-bg--dark .compare-col .compare-tier { color: rgba(255,255,255,0.55); }
.compare.topo-bg--dark .compare-list li { border-color: rgba(255,255,255,0.08); }
.compare.topo-bg--dark .compare-list .mark.no { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
/* Hero column keeps its black background — just give it a subtle lift */
.compare.topo-bg--dark .compare-col.is-hero {
  background: #000;
  box-shadow: 0 28px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(214,12,24,0.2);
}
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.compare-col { position: relative; background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 36px 28px; transition: all var(--t-med) var(--ease-out); }
.compare-col.is-hero { background: var(--tg-black); color: #fff; border-color: transparent; box-shadow: var(--shadow-4); transform: translateY(-12px); z-index: 2; }
.compare-col.is-hero::before { content:''; position: absolute; inset: -1px; border-radius: var(--r-lg); padding: 1px; background: linear-gradient(135deg, var(--tg-red), transparent 60%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.compare-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--tg-red); color:#fff; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.compare-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.compare-col.is-hero .compare-name { color: #fff; }
.compare-tier { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; margin-bottom: 20px; }
.compare-col.is-hero .compare-tier { color: rgba(255,255,255,0.6); }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border-1); font-size: 14px; line-height: 1.4; }
.compare-col.is-hero .compare-list li { border-color: rgba(255,255,255,0.1); }
.compare-list li:last-child { border-bottom: 0; }
.compare-list .mark { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-top: 2px; }
.compare-list .mark.yes { background: rgba(31,143,78,0.15); color: var(--tg-success); }
.compare-list .mark.no { background: var(--tg-n-100); color: var(--fg-3); }
.compare-list .mark.hi { background: var(--tg-red); color: #fff; }

/* ——————————————————— ROI calculator ——————————————————— */
.roi { background: var(--tg-black); color: #fff; position: relative; overflow: hidden;}
.roi::before { content:''; position:absolute; inset:0; background-image: radial-gradient(circle at 20% 30%, rgba(214,12,24,0.15), transparent 40%); }
.roi-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.roi-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; color: #fff; }
.roi-head p { color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.55; max-width: 46ch; }
.roi-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-xl); padding: 36px; backdrop-filter: blur(10px); }
.roi-row { margin-bottom: 26px; }
.roi-row label { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }
.roi-row label b { color: #fff; font-family: var(--font-mono); font-weight: 600; }
.roi-row input[type="range"] { width: 100%; appearance: none; background: rgba(255,255,255,0.1); height: 4px; border-radius: 2px; outline: none; cursor: pointer; }
.roi-row input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--tg-red); border: 3px solid #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(214,12,24,0.5); }
.roi-row input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--tg-red); border: 3px solid #fff; cursor: pointer; }
.roi-result { margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.roi-result .rlabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tg-red); margin-bottom: 8px; }
.roi-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 6vw, 72px); line-height: 1; color: #fff; letter-spacing: -0.02em; }
.roi-small { display: flex; gap: 32px; margin-top: 16px; }
.roi-small > div { flex: 1; }
.roi-small .n { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; }
.roi-small .l { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

.roi-math-toggle {
  margin-top: 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--t-fast);
}
.roi-math-toggle:hover { border-color: var(--tg-red); color: #fff; background: rgba(214,12,24,0.08); }
.roi-math-toggle .chev { display: inline-block; transition: transform var(--t-fast); font-size: 14px; }
.roi-math-toggle .chev.open { transform: rotate(180deg); }

.roi-math {
  margin-top: 20px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 22px 24px;
  animation: fadeUp 0.25s var(--ease-out);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.roi-math-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: baseline;
}
.roi-math-row:last-of-type { border-bottom: none; }
.roi-math-row .mlabel b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}
.roi-math-row .mlabel span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.roi-math-row .mval {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
}
.roi-math-total .mval { font-size: 24px; }
.roi-math-total { border-top: 1px solid rgba(255,255,255,0.18); }
.roi-math-sub .mval { color: rgba(255,255,255,0.6); }
.roi-math-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}

/* ——————————————————— Demo + form ——————————————————— */
.demo { background: #fff; }
.demo-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.demo-copy h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; }
.demo-copy p { font-size: 17px; line-height: 1.55; color: var(--fg-2); max-width: 46ch; margin: 0 0 28px;}
.demo-perks { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; }
.demo-perks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--fg-1); }
.demo-perks li .check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tg-red-tint); color: var(--tg-red); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

.form-card { background: var(--tg-bone); border: 1px solid var(--border-1); border-radius: var(--r-xl); padding: 28px; align-self: start; }
.form-tabs { display: flex; background: #fff; border-radius: var(--r-md); padding: 4px; margin-bottom: 28px; border: 1px solid var(--border-1); }
.form-tab { flex: 1; padding: 10px 14px; font-family: var(--font-display); font-weight: 600; font-size: 13px; border-radius: var(--r-sm); border: 0; background: transparent; cursor: pointer; color: var(--fg-2); transition: all var(--t-fast); }
.form-tab.is-active { background: var(--tg-red); color: #fff; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12px; font-family: var(--font-display); font-weight: 600; color: var(--fg-2); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-field label .req { color: var(--tg-red); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: var(--r-md); font-family: var(--font-text); font-size: 14px; background: #fff; transition: all var(--t-fast); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--tg-red); box-shadow: var(--shadow-focus); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; padding: 15px; margin-top: 10px; }
.form-note { font-size: 11px; color: var(--fg-3); margin-top: 12px; line-height: 1.5; }

.ghl-embed { background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 0; min-height: 520px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; color: var(--fg-2); }
.ghl-embed .placeholder { padding: 40px; }
.ghl-embed code { font-family: var(--font-mono); font-size: 11px; background: var(--tg-n-100); padding: 4px 8px; border-radius: 4px; display: inline-block; margin-top: 12px; color: var(--fg-1);}

/* Success state */
.form-success { text-align: center; padding: 40px 20px; }
.form-success .big-check { width: 70px; height: 70px; margin: 0 auto 20px; background: var(--tg-success); color: #fff; border-radius: 50%; display:flex; align-items:center; justify-content: center; font-size: 34px; }
.form-success h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0 0 10px; }

/* ——————————————————— FAQ ——————————————————— */
.faq { background: #fff; border-top: 1px solid var(--border-1); }
.faq-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.faq-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; }
.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--border-1); }
.faq-item { border-bottom: 1px solid var(--border-1); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 8px 22px 0; background: transparent; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fg-1); cursor: pointer; text-align: left; transition: color var(--t-fast); }
.faq-q:hover { color: var(--tg-red); }
.faq-caret { font-size: 22px; color: var(--tg-red); width: 28px; text-align: center; transition: transform var(--t-med) var(--ease-out); }
.faq-item.is-open .faq-caret { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--t-slow) var(--ease-out); color: var(--fg-2); line-height: 1.65; font-size: 15px; }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 40px 24px 0; }

/* ——————————————————— Final CTA ——————————————————— */
.finalcta { position: relative; color: #fff; overflow: hidden; padding: 130px 0; }
.finalcta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transform: scale(1.05); }
.finalcta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.65) 70%, rgba(10,10,11,0.3) 100%); }
.finalcta-inner { position: relative; z-index: 1; max-width: 720px; }
.finalcta .eyebrow { color: var(--tg-red); }
.finalcta h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(42px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 24px; color: #fff; }
.finalcta p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.82); margin: 0 0 32px; max-width: 50ch; }
.finalcta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ——————————————————— Footer ——————————————————— */
.footer { background: #0A0A0B; color: rgba(255,255,255,0.65); }
.footer-top { padding: 72px 40px 40px; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 3fr; gap: 60px; }
.footer-brand img { height: 48px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.55; max-width: 32ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h6 { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer-cols a { display: block; font-size: 13px; color: rgba(255,255,255,0.55); padding: 4px 0; transition: color var(--t-fast); }
.footer-cols a:hover { color: var(--tg-red); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); padding: 0; }
.footer-social a:hover { background: var(--tg-red); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 40px; max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.55; max-width: 70ch; }
.footer-meta { font-size: 11px; color: rgba(255,255,255,0.4); display: flex; gap: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal.r-d1 { transition-delay: 0.1s; }
.reveal.r-d2 { transition-delay: 0.2s; }
.reveal.r-d3 { transition-delay: 0.3s; }
.reveal.r-d4 { transition-delay: 0.4s; }

/* Mobile sticky CTA */
.mobile-cta { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: var(--tg-red); color: #fff; padding: 14px 18px; border-radius: var(--r-md); font-family: var(--font-display); font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); align-items: center; justify-content: space-between; }
.mobile-cta .phone { font-family: var(--font-mono); font-size: 12px; opacity: 0.9; }

/* ——————————————————— Tweaks panel ——————————————————— */
.tweaks { position: fixed; right: 18px; bottom: 80px; width: 320px; background: #fff; border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--shadow-4); z-index: 100; padding: 18px; display: none; max-height: calc(100vh - 120px); overflow: auto; }
.tweaks.is-open { display: block; }
.tweaks h4 { font-family: var(--font-display); font-weight: 800; font-size: 14px; margin: 0 0 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-1); }
.tweak-row { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border-1); }
.tweak-row:last-child { border-bottom: 0; }
.tweak-row label { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--fg-2); display: block; margin-bottom: 6px; }
.tweak-row .opts { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-row button { border: 1px solid var(--border-2); background: #fff; padding: 6px 10px; font-size: 11px; border-radius: var(--r-sm); cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--fg-2); }
.tweak-row button.is-on { background: var(--tg-red); color: #fff; border-color: var(--tg-red); }
.tweak-row input[type="color"] { width: 40px; height: 30px; border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 2px; cursor: pointer; }
.tweak-row input[type="text"] { width: 100%; padding: 6px 10px; border: 1px solid var(--border-2); border-radius: var(--r-sm); font-size: 12px; font-family: var(--font-mono);}

/* ——————————————————— Responsive ——————————————————— */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .nav-inner { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-right .btn-ghost { display: none; }
  .nav.mobile-open .nav-links-mobile { display: flex; }
  .hamburger { display: flex; }
  .nav-links-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border-1); flex-direction: column; padding: 20px; gap: 6px; }
  .nav-links-mobile a { padding: 12px 0; border-bottom: 1px solid var(--border-1); font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--fg-1); }
  .nav-links-mobile .mlang { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
  .hero-inner { padding: 90px 24px 140px; }
  .pain-grid, .proof-grid, .footer-cols { grid-template-columns: 1fr; gap: 14px; }
  .product-inner, .roi-inner, .demo-inner, .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .wf-step .arrow { display: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); padding: 40px 28px; gap: 28px; }
  .seg-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col.is-hero { transform: none; order: -1; }
  .sw-showcase { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  .hero-scroll-cue, .hero-slide-dots { display: none; }
  .footer-bottom { padding: 20px 24px; }
  .tweaks { right: 12px; bottom: 86px; width: calc(100vw - 24px); max-width: 320px; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 72px 20px 130px; }
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .seg-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 20px; }
  .trust-items .ti { font-size: 13px; }
  .pain-card { padding: 24px 20px; }
  .testimonial { min-height: unset; padding: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
