/* Trade Genie — Design System v2
   Playfair Display (display) · Inter (UI) · SFMono (mono)
   #151515 dark · #f7f7f7 light · #19a26c green accent
   ═══════════════════════════════════════════════════ */

/* ── 1. Design Tokens ───────────────────────────────── */
:root {
  --tg-black: #151515;
  --tg-dark-card: #1c1c1c;
  --tg-dark-border: #383838;
  --tg-white: #ffffff;
  --tg-offwhite: #f5f2eb;
  --tg-light-section: #f7f7f7;
  --tg-muted: #737373;
  --tg-soft: #8b8b8b;
  --tg-green-accent: #19a26c;
  --tg-green-dark: #135b45;
  --tg-red-accent: #d94636;
  --tg-blue-accent: #0071c1;
  --tg-soft-border: rgba(168,162,158,0.20);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, monospace;

  /* Legacy portal compatibility — original values kept so auth pages render correctly */
  --ink: #070F1E;
  --deep: #0D1A2E;
  --layer: #111F35;
  --ridge: #1B2D47;
  --ridge-bright: #254268;
  --signal: #2B70E8;
  --signal-dim: rgba(43,112,232,0.15);
  --signal-glow: rgba(43,112,232,0.35);
  --pulse: #00C896;
  --pulse-dim: rgba(0,200,150,0.12);
  --amber: #E8A020;
  --amber-dim: rgba(232,160,32,0.12);
  --red-bias: #E8523A;
  --red-dim: rgba(232,82,58,0.12);
  --fog: #C2D4E8;
  --mist: #8AA3BB;
  --ghost: #4E6A84;
  --white: #EDF4FC;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

/* ── 2. Reset & Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--tg-black);
  color: var(--tg-white);
  font-family: var(--font-ui);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── 3. Typography ──────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--tg-white);
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--tg-white);
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--tg-white);
}
.body-lg { font-size: 1.1rem; line-height: 1.7; }
.body-md { font-size: 1rem;   line-height: 1.65; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }
.mono { font-family: var(--font-mono); }
.text-muted { color: var(--tg-muted); }
.text-green  { color: var(--tg-green-accent); }
.text-blue   { color: var(--tg-blue-accent); }
.text-red    { color: var(--tg-red-accent); }

/* ── 4. Layout ──────────────────────────────────────── */
.container {
  width: min(100% - 80px, 1280px);
  margin-inline: auto;
  padding-left: 2vw;
  padding-right: 2vw;
}
.section-sm  { padding-block: 150px; }
.section-md  { padding-block: 150px; }
.section-lg  { padding-block: 150px; border-top: 4px solid #737373; }
.section-xl  { padding-block: 196px; }

/* ── 5. Announcement Bar ────────────────────────────── */
.nav-announcement {
  height: 6vh;
  background: #111111;
  border-top: solid #303030 1px;
  color: var(--tg-white);
  font-size: 13px;
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.35s ease;
  position: relative;
  padding: 0 48px;
}
.nav-announcement-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-announcement-link:hover { opacity: 1; }
.nav-announcement-dismiss {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.nav-announcement-dismiss:hover { color: #ffffff; }
.nav.scrolled .nav-announcement {
  height: 0;
  opacity: 0;
}

/* ── 6. Navigation ──────────────────────────────────── */

/* Light-background nav: flip all inner text to black until scrolled */
.nav--light:not(.scrolled) .nav-link,
.nav--light:not(.scrolled) .nav-link:hover,
.nav--light:not(.scrolled) .nav-link.active,
.nav--light:not(.scrolled) .nav-logo,
.nav--light:not(.scrolled) .nav-login,
.nav--light:not(.scrolled) .btn-ghost,
.nav--light:not(.scrolled) .nav-hamburger span {
  color: var(--tg-black);
}
.nav--light:not(.scrolled) .btn-ghost {
  border-color: var(--tg-black);
}
.nav--light:not(.scrolled) .nav-hamburger span {
  background: var(--tg-black);
}
.nav--light:not(.scrolled) .nav-bar {
  background: rgba(255,255,255,0.15);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--tg-black);
  border-bottom-color: var(--tg-dark-border);
}
.nav-bar {
  padding: 16px 0;
  transition: padding 0.3s ease;
  background: #00000024;
}
.nav.scrolled .nav-bar { padding: 13px 0; }
.nav-bar .container {
  width: 100%;
  max-width: none;
  padding-left: 3vw;
  padding-right: 3vw;
  margin-inline: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--tg-white);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo-mark {
  height: 1.8em;
  width: auto;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-logo-mark--light { display: none; }
.nav--light:not(.scrolled) .nav-logo-mark--dark { display: none; }
.nav--light:not(.scrolled) .nav-logo-mark--light { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  transition: color var(--transition);
  letter-spacing: 0.01em;
  height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover, .nav-link.active { color: var(--tg-white); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-login {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.nav-login:hover { color: var(--tg-white); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tg-white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--tg-black);
  z-index: 99;
  padding: 120px 40px 40px;
  flex-direction: column;
  gap: 28px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--tg-white);
}

/* ── 7. Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--tg-white);
  color: var(--tg-black);
  border-radius: 8px;
  padding: 12px 24px;
}
.btn-primary:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn-dark {
  background: var(--tg-black);
  color: var(--tg-white);
  border-radius: 8px;
  padding: 12px 24px;
}
.btn-dark:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--tg-white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 10px 20px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); }
.btn-ghost-dark {
  background: transparent;
  color: var(--tg-black);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 999px;
  padding: 10px 20px;
}
.btn-ghost-dark:hover { border-color: var(--tg-black); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* Legacy portal button compat */
.btn-outline {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--ridge-bright);
  border-radius: var(--radius);
  padding: 13px 28px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.btn-outline:hover { border-color: var(--signal); color: var(--white); background: var(--signal-dim); }
.btn-pulse { background: var(--pulse); color: var(--ink); font-weight: 700; border-radius: var(--radius); padding: 13px 28px; font-size: 0.9375rem; }
.btn-pulse:hover { background: #10DCA8; transform: translateY(-1px); }

/* ── 8. Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: #0d1117;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}
.hero-text-block {
  position: absolute;
  left: 50%;
  top: 40%;
  margin-top: 21vh;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  text-align: center;
  z-index: 1;
  padding: 0 24px;
  opacity: 0;
  animation: heroLineFade 900ms ease forwards;
  animation-delay: 0.3s;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: 4.8rem;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #ffffff;
  white-space: normal;
  text-align: center;
  margin: 0;
}
.hero-h1-sub {
  display: block;
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: 1.4px;
  line-height: 0.95;
  padding-top: 5px;
}
.hero-subtitle {
  font-family: system-ui;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #929292;
  padding-top: 5px;
  text-align: center;
  max-width: 640px;
  margin: 3vh auto 40px;
}
@keyframes heroLineFade {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 6px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.hero-cta-wrap {
  display: flex;
  justify-content: center;
  padding-top: 11vh;
}
.hero-btn-primary {
  background: #ffffff !important;
  color: #151515 !important;
  border-radius: 6px !important;
  padding: 14px 28px !important;
  border: none !important;
}
.hero-btn-primary:hover { background: #f0f0f0 !important; transform: none !important; }
.hero-bias-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #4ade80;
  margin-bottom: 16px;
}
.hero-bias-headline {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-bias-body {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 380px;
  line-height: 1.6;
}
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}
.hero-dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-dot.hero-dot--active {
  background: #ffffff;
  width: 32px;
}
@media (max-width: 768px) {
  .hero-text-block {
    max-width: 90vw;
    top: 45%;
  }
  .hero-h1 { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-text-block {
    opacity: 1;
    animation: none;
  }
}

/* ── 10. Vision Section ─────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tg-muted);
  margin-top: 5px;
  margin-bottom: 0;
  padding-left: 1vw;
  display: block;
}
.section-headline-dark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.1875rem);
  font-weight: 300;
  color: var(--tg-black);
  line-height: 1.15;
  margin: 0;
}
.section-headline-light {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--tg-white);
  letter-spacing: -0.02em;
}
/* ── 11. Process Flow ───────────────────────────────── */
/* ── 11. Process Flow (new) ──────────────────────────── */

.tg-process-section {
  background: var(--tg-black);
  color: var(--tg-white);
  padding: clamp(72px, 9vw, 132px) 0;
  overflow: hidden;
}

.tg-process-container {
  width: min(100% - 64px, 1280px);
  margin-inline: auto;
}

.tg-process-copy {
  max-width: 720px;
  margin-bottom: clamp(56px, 7vw, 92px);
}

.tg-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg-green-accent);
  display: block;
  margin-bottom: 18px;
}

.tg-process-copy h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 640px;
  color: var(--tg-white);
}

.tg-subtitle {
  font-family: var(--font-ui);
  color: var(--tg-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  margin: 0;
}

/* Grid: card | arrow | card | arrow | featured-wrapper | outcome-aside */
.tg-process-flow {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    56px
    minmax(220px, 1fr)
    56px
    minmax(260px, 1.08fr)
    minmax(200px, 0.65fr);
  align-items: center;
  column-gap: 0;
}

/* ── Cards ───────────────────────────────────────────── */
.tg-process-card {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 0;
  border: 1px solid rgba(21,21,21,0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.tg-process-card-featured {
  background: #ffffff;
  border: 2px solid var(--tg-green-accent);
  box-shadow: 0 2px 12px rgba(25,162,108,0.15);
}

.tg-card-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.tg-card-heading-row h3 {
  font-family: var(--font-ui);
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 600;
  color: #151515;
}

.tg-card-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--tg-green-accent);
}

.tg-choice-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--tg-green-accent);
}

.tg-card-icon svg,
.tg-choice-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Card body lines (bulleted) ──────────────────────── */
.tg-card-lines {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tg-card-lines p {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.6;
  color: #737373;
  margin: 0;
  padding-left: 16px;
  position: relative;
}

.tg-card-lines p::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #737373;
}

/* ── Card footer (grey band) ─────────────────────────── */
.tg-card-output {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-top: auto;
  margin-left: -32px;
  margin-right: -32px;
  padding: 16px 32px;
  border-top: 1px solid rgba(21,21,21,0.10);
  background: #e8e8e8;
  color: #151515;
}

.tg-featured-output {
  color: var(--tg-green-accent);
  background: #e8e8e8;
  border-top-color: rgba(25,162,108,0.25);
}

/* ── Featured wrapper (badge above card) ─────────────── */
.tg-featured-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-featured-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tg-green-accent);
  background: rgba(25,162,108,0.12);
  border: 1px solid rgba(25,162,108,0.3);
  border-radius: 5px;
  padding: 5px 10px;
  margin: 0;
  align-self: flex-start;
}

/* ── Arrows (larger, more visible) ──────────────────── */
.tg-flow-arrow {
  display: block;
  width: 56px;
  height: 28px;
  color: rgba(115,115,115,0.80);
  flex-shrink: 0;
}

.tg-flow-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Outcome / Second Chance ─────────────────────────── */
.tg-second-chance {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-second-chance-title {
  font-family: var(--font-ui);
  font-size: clamp(22px, 1.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--tg-white);
  margin: 0;
}

/* Inner row: branching SVG sits left, card stack sits right.
   SVG height (212px) = 3×64 cards + 2×10 gaps — branches align exactly. */
.tg-second-chance-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.tg-branch-connector {
  flex-shrink: 0;
  color: rgba(115,115,115,0.75);
}

.tg-branch-connector path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-choice-card {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(21,21,21,0.12);
  border-radius: 9px;
  background: #e8e8e8;
  color: #151515;
  font-family: var(--font-ui);
  font-size: 15px;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.tg-choice-card:hover {
  border-color: rgba(25,162,108,0.55);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .tg-process-flow {
    grid-template-columns: 1fr;
    row-gap: 20px;
    column-gap: 0;
    overflow: visible;
  }
  .tg-flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .tg-process-card { min-height: auto; }
  .tg-featured-wrapper { grid-column: 1; }
  .tg-second-chance { align-self: stretch; }
  .tg-choice-card { white-space: normal; }
}

@media (max-width: 640px) {
  .tg-process-container { width: min(100% - 32px, 390px); }
  .tg-process-card { padding: 28px 24px 0; }
  .tg-card-output { margin-left: -24px; margin-right: -24px; padding: 14px 24px; }
  .tg-card-lines p { font-size: clamp(14px, 4vw, 16px); }
}

.section-eyebrow-green {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tg-green-accent);
  margin-bottom: 20px;
  display: block;
}
.section-eyebrow-light {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a8a2a2;
  margin-top: 5px;
  margin-bottom: 0;
  padding-left: 1vw;
  display: block;
}

/* ── 12. Proof Grid ─────────────────────────────────── */
.section-proof {
  background: var(--tg-black);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.proof-cell {
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 32px 16px;
}
.proof-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  color: var(--tg-white);
  line-height: 1;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tg-muted);
}

/* ── 13. Product Rows ───────────────────────────────── */
.section-products { background: var(--tg-light-section); }
.products-header {
  padding: 80px 0 64px;
}
.products-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--tg-black);
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.product-rows { padding-bottom: 80px; }
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0,0,0,0.08);
  min-height: 520px;
}
.product-row:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.product-visual {
  background: var(--tg-black);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}
.product-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.product-visual-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  z-index: 1;
}
.product-text {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--tg-light-section);
}
.product-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}
.product-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--tg-black);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.product-desc {
  font-size: 1rem;
  color: var(--tg-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 400px;
}
.product-cta-link {
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.product-cta-link:hover { gap: 12px; }

/* ── 14. FAQ ─────────────────────────────────────────── */
.section-faq { background: var(--tg-light-section); }
.faq-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--tg-black);
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--tg-black);
  gap: 16px;
  user-select: none;
}
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--tg-muted);
  border-radius: 1px;
  transition: transform 0.3s ease;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--tg-muted);
  font-size: 15px;
  line-height: 1.8;
}
.faq-answer-inner { padding: 0 0 24px; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── 15. The Edge ────────────────────────────────────── */
.section-edge { background: #ffffff; }
.edge-header { margin-bottom: 72px; }
.section-edge .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tg-muted);
  margin-bottom: 0;
  padding-left: 2vw;
  display: block;
}
.edge-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--tg-black);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.edge-headline-white {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--tg-white);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.edge-rows { display: flex; flex-direction: column; }
.edge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 20px 0 0;
  min-height: 20vh;
  align-items: start;
}
.edge-rows .edge-row:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.edge-row-left { padding-right: 0; padding-left: 40px; }
.edge-row-right { padding-right: 20px; }
.edge-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tg-muted);
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1;
  display: block;
}
.edge-title {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--tg-white);
  line-height: 1.15;
  transform: translateY(-6px);
}
.edge-trigger {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 300;
  color: #868484;
  cursor: pointer;
  gap: 10px;
  text-align: left;
  line-height: 1.4;
  user-select: none;
  margin-top: 3.5vh;
}
.edge-trigger:hover { color: var(--tg-black); }
.edge-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    visibility 0s linear 0.75s;
}
.edge-row.open {
  min-height: 40vh;
}
.edge-row.open .edge-body {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s ease 0.15s,
    visibility 0s linear 0s;
}
.edge-row.open .edge-trigger .faq-icon::after { transform: rotate(90deg); }
.edge-body-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  padding-left: 10px;
  max-width: 92%;
}
.edge-body-inner p {
  font-size: 16px;
  color: var(--tg-muted);
  line-height: 1.65;
  margin: 0 0 8px;
  padding: 0;
  padding-left: 25px;
  text-align: justify;
}
.edge-body-inner p:first-child { padding-top: 10px; }
.edge-body-inner p:last-child { margin-bottom: 10px; }
.edge-body-list {
  list-style: none;
  padding: 10px 0 6px 25px;
  margin: 0;
}
.edge-body-list li {
  font-size: 16px;
  color: var(--tg-muted);
  line-height: 1.65;
  position: relative;
  margin-bottom: 6px;
  text-align: justify;
}
.edge-body-list li::before {
  content: '·';
  position: absolute;
  left: -14px;
  color: var(--tg-black);
  font-size: 1.3rem;
  line-height: 0.85;
}
.edge-body-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tg-black);
  font-weight: bold;
  margin: 18px 0 4px;
  padding-left: 25px;
  display: block;
}
.edge-body-inner .edge-body-label:first-child { margin-top: 10px; }
/* ── Tablet & landscape mobile (≤1024px) — single-column stacked ── */
@media (max-width: 1024px) {
  .edge-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 0;
  }
  .edge-row-left { padding-left: 20px; }
  .edge-row-right { padding-top: 25px; padding-left: 20px; padding-right: 20px; }
  .edge-num { margin-bottom: clamp(10px, 2vw, 18px) !important; }
  .edge-title {
    font-size: clamp(1.4rem, 3.2vw, 1.9rem);
    transform: translateY(0);
  }
  .edge-trigger {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 600;
    gap: 8px;
  }
  .edge-body-inner { max-width: none; }
  .edge-body-inner p { padding-left: 25px; }
  .edge-body-inner p:first-child { padding-top: 12px; }
}

/* ── Narrow portrait mobile (≤600px) — most compact ── */
@media (max-width: 600px) {
  .edge-row { padding: 24px 0; }
  .edge-row-left { padding-left: 16px; }
  .edge-row-right { padding-top: 20px; padding-right: 16px; }
  .edge-num { margin-bottom: clamp(14px, 2vw, 18px) !important; }
  .edge-title { font-size: clamp(1.2rem, 5.5vw, 1.5rem); }
  .edge-trigger {
    font-size: clamp(0.875rem, 4vw, 1rem);
    gap: 8px;
  }
  .edge-body-inner p:first-child { padding-top: 10px; }
}

/* ── 16. Footer CTA ─────────────────────────────────── */
.section-footer-cta {
  height: fit-content;
  padding-block: 140px;
  background: white;
  border-top: 4px solid #737373;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}
.footer-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 300;
  color: var(--tg-black);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
}
.footer-cta-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--tg-muted);
  margin: 0;
}
.footer-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer-cta-btn {
  font-size: 1rem;
  padding: 14px 32px;
  color: black;
  border: none;
  border-bottom: solid 1px black;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  min-width: 160px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── 17. Footer ─────────────────────────────────────── */
.footer {
  background: var(--tg-black);
  border-top: 4px solid #737373;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-wrap { max-width: 260px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--tg-white);
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--tg-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.footer-reg {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--tg-muted);
  letter-spacing: 0.04em;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tg-soft);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 0.875rem;
  color: var(--tg-muted);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--tg-white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--tg-dark-border);
  font-size: 0.78rem;
  color: var(--tg-muted);
}
.footer-bottom-links { display: flex; gap: 24px; }

/* ── 18. Scroll Reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); margin-bottom: 40px; }
.edge-row.reveal.visible { height: max-content; min-height: 14vh; padding-bottom: 2vh; }
.cred-row.reveal.visible { margin-bottom: 0; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 19. Page Hero (inner pages) ────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  background: var(--tg-black);
  border-bottom: 1px solid var(--tg-dark-border);
}
.page-hero-light {
  padding: 160px 0 80px;
  background: var(--tg-light-section);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tg-muted);
  margin-bottom: 20px;
  display: block;
}
.page-headline-dark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--tg-black);
  margin-bottom: 20px;
}
.page-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--tg-white);
  margin-bottom: 20px;
}
.page-subheadline {
  font-size: 1.1rem;
  color: var(--tg-muted);
  line-height: 1.7;
  max-width: 520px;
}
.page-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--tg-dark-border);
}
.page-section-light {
  padding: 80px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: var(--tg-light-section);
}
.page-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--tg-white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.page-section-title-dark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--tg-black);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.page-body {
  font-size: 1rem;
  color: var(--tg-muted);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 20px;
}
.page-body:last-child { margin-bottom: 0; }

/* ── 20. Legal ──────────────────────────────────────── */
.legal-disclaimer-box {
  background: var(--tg-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 3px solid var(--tg-green-accent);
  border-radius: 8px;
  padding: 28px 32px;
  font-size: 0.95rem;
  color: var(--tg-muted);
  line-height: 1.85;
}
.legal-tc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.legal-tc-item {
  padding: 28px;
  background: var(--tg-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
}
.legal-tc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tg-muted);
  margin-bottom: 8px;
  display: block;
}
.legal-tc-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tg-black);
  margin-bottom: 8px;
}

/* ── 20b. About page ─────────────────────────────────── */
.page-hero-light.about-hero { padding: 260px 0 80px; }
.page-section.founder-section {
  padding-block: 150px;
  border-top: 4px solid #737373;
}
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.6fr;
  gap: 56px;
  align-items: center;
}
.about-intro-head .page-headline-dark { margin-bottom: 0; }
@media (max-width: 768px) {
  .about-intro-grid { grid-template-columns: 1fr; }
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.6fr;
  gap: 56px;
}
.founder-photo-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.founder-photo {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 20px;
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}
.founder-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--tg-white);
}
.founder-role {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--tg-muted);
  margin-top: 4px;
}
.founder-question {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--tg-white);
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo-col { align-items: center; text-align: center; }
  .founder-photo { max-width: 200px; }
}

/* ── 21. Performance grid (strategy page) ───────────── */
.perf-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--tg-dark-border);
  border: 1px solid var(--tg-dark-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 48px 0;
}
.perf-cell {
  background: var(--tg-dark-card);
  padding: 32px 24px;
  text-align: center;
}
.perf-num-new {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--tg-white);
  margin-bottom: 8px;
}
.perf-label-new {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tg-muted);
}
.placeholder-card {
  background: var(--tg-dark-card);
  border: 1px solid var(--tg-dark-border);
  border-radius: 16px;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  text-align: center;
  color: var(--tg-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 22. Portal Pages (legacy CSS — kept for auth flow) */
.portal-page {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 48px;
}
.portal-page-inner { width: 100%; max-width: 560px; }
.portal-header { text-align: center; margin-bottom: 40px; }
.portal-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portal-select-card {
  display: flex; flex-direction: column;
  background: var(--layer); border: 1px solid var(--ridge);
  border-radius: 16px; padding: 28px;
  text-decoration: none; transition: all 0.2s ease; cursor: pointer;
}
.portal-select-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.portal-select-cp:hover { border-color: var(--signal); }
.portal-select-st:hover { border-color: var(--pulse); }
.portal-select-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.05em; margin-bottom: 16px;
}
.portal-icon-cp { background: rgba(43,112,232,0.15); color: var(--signal); }
.portal-icon-st { background: rgba(0,200,150,0.12); color: var(--pulse); }
.portal-select-name { font-size: 1.1rem; font-weight: 700; color: var(--fog); margin-bottom: 8px; }
.portal-select-desc { font-size: 0.8rem; color: var(--mist); line-height: 1.65; flex: 1; }
.portal-select-cta { display: flex; align-items: center; font-size: 0.82rem; font-weight: 600; color: var(--signal); margin-top: 20px; }
.portal-select-st .portal-select-cta { color: var(--pulse); }
.login-product-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 40px; padding: 6px 16px; font-size: 0.82rem; font-weight: 600;
}
.login-badge-cp { background: rgba(43,112,232,0.12); color: var(--signal); border: 1px solid rgba(43,112,232,0.3); }
.login-badge-st { background: rgba(0,200,150,0.10); color: var(--pulse); border: 1px solid rgba(0,200,150,0.25); }
.login-card { background: var(--layer); border: 1px solid var(--ridge); border-radius: 16px; padding: 32px; }
.login-card-cp { border-top: 3px solid var(--signal); }
.login-card-st { border-top: 3px solid var(--pulse); }
.login-field { margin-bottom: 20px; }
.login-label {
  display: block; font-size: 0.78rem; font-weight: 600; color: var(--mist);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.login-input {
  width: 100%; background: var(--ink); border: 1px solid var(--ridge);
  color: var(--fog); border-radius: 8px; padding: 11px 14px;
  font-family: inherit; font-size: 0.9rem; outline: none;
  transition: border-color 0.18s ease; box-sizing: border-box;
}
.login-input:focus { border-color: var(--signal); }
.login-card-st .login-input:focus { border-color: var(--pulse); }
.login-input::placeholder { color: var(--mist); }
.login-btn {
  width: 100%; display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 0.9rem; font-weight: 700; border: none;
  border-radius: 8px; padding: 12px 20px; cursor: pointer;
  transition: all 0.18s ease; margin-top: 8px; letter-spacing: 0.02em;
}
.login-btn-cp { background: var(--signal); color: #fff; }
.login-btn-cp:hover { background: #1a5fd6; transform: translateY(-1px); }
.login-btn-st { background: var(--pulse); color: var(--ink); }
.login-btn-st:hover { background: #00b384; transform: translateY(-1px); }
.login-error-msg {
  display: flex; align-items: center; gap: 8px;
  background: rgba(232,82,58,0.08); border: 1px solid rgba(232,82,58,0.25);
  color: var(--red-bias); border-radius: 8px; padding: 10px 14px; font-size: 0.82rem;
}
.portal-welcome {
  display: flex; align-items: center; gap: 16px;
  background: var(--layer); border: 1px solid var(--ridge);
  border-radius: 14px; padding: 20px 24px;
}
.portal-welcome-icon { font-size: 1.8rem; flex-shrink: 0; }
.portal-home-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.portal-home-card {
  display: block; background: var(--layer); border: 1px solid var(--ridge);
  border-radius: 14px; padding: 24px; text-decoration: none; transition: all 0.2s ease;
}
.portal-home-cp:hover { border-color: var(--signal); transform: translateY(-2px); }
.portal-home-st:hover { border-color: var(--pulse); transform: translateY(-2px); }
.portal-home-locked { opacity: 0.6; cursor: default; }
.portal-home-header { display: flex; align-items: center; gap: 14px; }
.portal-home-status {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 40px;
}
.portal-status-live { background: rgba(0,200,150,0.12); color: var(--pulse); }
.portal-status-locked { background: var(--ridge); color: var(--mist); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pulse); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.portal-home-open { display: flex; align-items: center; margin-top: 16px; font-size: 0.82rem; font-weight: 600; color: var(--signal); }
.portal-home-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ridge);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--mist); margin-bottom: 8px; letter-spacing: 0.03em; }
.form-input {
  width: 100%; background: var(--ink); border: 1px solid var(--ridge-bright);
  border-radius: var(--radius); padding: 12px 16px; font-size: 0.9375rem;
  color: var(--white); font-family: inherit; transition: border-color var(--transition); outline: none;
}
.form-input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-dim); }
.form-input::placeholder { color: var(--ghost); }
.alert-error {
  background: rgba(232,82,58,0.1); border: 1px solid rgba(232,82,58,0.3);
  border-radius: var(--radius); padding: 12px 16px; font-size: 0.85rem;
  color: var(--red-bias); margin-bottom: 20px;
}

/* ── 23. Viz bars (products page compat) ────────────── */
.viz-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--signal);
  transition: width 1s ease;
}

/* ── 24. Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .client-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; }
  .product-visual { min-height: 320px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 40px; }
  .benefits-left { position: static; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .legal-tc-grid { grid-template-columns: 1fr; }
  .perf-grid-new { grid-template-columns: 1fr 1fr; }
}

/* ── 25. Accordion grid ──────────────────────────────── */

.accord-grid-section {
  padding-block: 60px;
  background: #ffffff;
}
.accord-grid-section.section-lg { padding-block: 120px; padding-bottom: 60px; }
.accord-grid-section .edge-headline-white {
  color: var(--tg-black);
}
.accord-grid-section .section-eyebrow-light {
  color: var(--tg-muted);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.solution-card {
  min-height: 80vh;
  background: var(--tg-dark-card);
  border: 1px solid var(--tg-dark-border);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-card .edge-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--tg-white);
  line-height: 1.15;
  margin: 0;
  padding-top: 3vh;
  transform: none;
}

.solution-card-subtitle {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--tg-white);
  line-height: 1.15;
  margin: 0;
  margin-top: auto;
  border: solid 1px;
  padding: 6px;
  width: fit-content;
  border-radius: 6px;
  background: #383838;
}

.solution-card-subtitle-top {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--tg-white);
  line-height: 1.15;
  margin: 0;
}

.solution-card-desc {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #aeabab;
  padding-top: 1vh;
  text-align: justify;
}

.solution-card-desc:first-of-type {
  padding-top: 3vh;
}

.solution-card-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-card-logo {
  height: 15vh;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.solution-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.solution-bullets li {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #aeabab;
  text-align: left;
}

.section-headline-dark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--tg-black);
  line-height: 1.15;
  margin: 0;
}

@media (max-width: 809px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 26. Responsive ──────────────────────────────────── */

@media (max-width: 809px) {
  .container { width: min(100% - 32px, 500px); }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .portal-select-grid { grid-template-columns: 1fr; }
.proof-grid { grid-template-columns: repeat(2, 1fr); }
  .product-text { padding: 48px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-subheadline { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.8rem; }
  .hero-ctas { flex-direction: column; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .client-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Blank page placeholder ─────────────────────────── */
.blank-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--tg-light-section);
}
.blank-page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--tg-black);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}
.blank-page-sub {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--tg-muted);
}

/* ── Contact page ────────────────────────────────────── */
.contact-page-header {
  background: var(--tg-black);
  padding: 140px 6vw 60px;
  text-align: center;
}
.contact-page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 300;
  color: var(--tg-white);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 16px;
}
.contact-page-sub {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--tg-muted);
  margin: 0 0 40px;
}
.contact-page-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.contact-tab-link {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tg-muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.contact-tab-link:hover {
  color: var(--tg-white);
  border-color: var(--tg-white);
}
.contact-section {
  background: var(--tg-light-section);
  padding: 100px 0;
  border-top: 1px solid var(--tg-soft-border);
}
.contact-section--alt {
  background: white;
}
.contact-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-section-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tg-muted);
  display: block;
  margin-bottom: 12px;
}
.contact-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--tg-black);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.contact-section-body {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin: 0 0 24px;
}
.contact-section-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-section-list li {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #555;
  padding-left: 20px;
  position: relative;
}
.contact-section-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--tg-muted);
}
.contact-section-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 48px;
}
.contact-cta-btn {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: black;
  text-decoration: none;
  border-bottom: solid 1px black;
  padding-bottom: 4px;
  transition: opacity 0.2s;
}
.contact-cta-btn:hover { opacity: 0.6; }
.contact-cta-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--tg-muted);
  margin: 0;
}

/* ── Demo / Application form ─────────────────────────── */
.demo-page {
  min-height: 100vh;
  background: var(--tg-light-section);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}
.demo-card {
  background: white;
  border: 1px solid var(--tg-soft-border);
  width: 100%;
  max-width: 520px;
  padding: 48px;
}
.demo-card-header {
  margin-bottom: 32px;
}
.demo-card-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--tg-black);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.demo-card-sub {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--tg-muted);
  margin: 0;
}
.demo-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--tg-soft-border);
  margin-bottom: 32px;
}
.demo-tab {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tg-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px 10px 0;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.demo-tab--active {
  color: var(--tg-black);
  border-bottom-color: var(--tg-black);
}
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-form--hidden { display: none; }
.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.demo-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tg-black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.demo-optional {
  font-weight: 400;
  color: var(--tg-muted);
  text-transform: none;
  letter-spacing: 0;
}
.demo-input {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--tg-black);
  background: var(--tg-light-section);
  border: 1px solid var(--tg-soft-border);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.demo-input:focus { border-color: var(--tg-black); }
.demo-select { cursor: pointer; }
.demo-textarea { resize: vertical; min-height: 80px; }
.demo-submit {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  background: var(--tg-black);
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 0;
  margin-top: 8px;
}
.demo-submit:hover { opacity: 0.8; }
.demo-footer-note {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--tg-muted);
  margin: 0;
  text-align: center;
}

/* ── 26. Quote accordion (vertical, toggle expand/collapse) ──── */
.quote-accordion-section { background: var(--tg-light-section); }
.quote-accordion-section.section-lg { padding-block: 125px; }
.quote-accordion-section .section-eyebrow {
  display: flex;
  justify-content: start;
  align-items: start;
  width: inherit;
  max-width: 640px;
  margin: 0 auto;
  margin-bottom: 12vh;
  padding-top: 20px;
  padding-left: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--tg-muted);
  text-align: center;
  text-transform: none;
}
.quote-accordion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
  max-width: 92%;
}
.quote-accordion-item {
  background: #e8e8e8;
  border: solid 1px gainsboro;
  border-radius: 12px;
  padding: 32px 36px;
  padding-bottom: 20px;
  min-height: 25vh;
  width: 70vw;
  max-width: 70vw;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.quote-accordion-item--open {
  cursor: default;
}
.quote-accordion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}
.quote-accordion-logo {
  font-family: system-ui;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1c1c1c;
}
.quote-accordion-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.2s ease;
}
.quote-accordion-toggle:hover { background: rgba(0, 0, 0, 0.1); }
.quote-accordion-plus {
  position: relative;
  width: 12px;
  height: 12px;
}
.quote-accordion-plus::before,
.quote-accordion-plus::after {
  content: '';
  position: absolute;
  background: var(--tg-black);
  border-radius: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.quote-accordion-plus::before { width: 12px; height: 1.5px; }
.quote-accordion-plus::after  { width: 1.5px; height: 12px; transition: opacity 0.2s ease; }
.quote-accordion-item--open .quote-accordion-plus::after { opacity: 0; }

.quote-accordion-quote {
  display: none;
  height: fit-content;
  padding: 2vh 2vw;
  margin: 0;
  color: var(--tg-black);
  border: none;
}
.quote-accordion-quote p {
  letter-spacing: 2.5px;
  text-align: justify;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--tg-dark-border);
}
.quote-accordion-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.quote-accordion-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tg-black);
}
.quote-accordion-pill {
  border: solid 1px #f5f2eb;
  border-radius: 3px;
  padding: 0px 8px;
  background: #ffffff5c;
}
.quote-accordion-role {
  font-family: var(--font-ui);
  padding-top: 5px;
  padding-left: 7px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: black;
}

.quote-accordion-item--open .quote-accordion-quote {
  display: block;
  /* margin-top: 14px; */
  margin-bottom: 5vh;
}

@media (max-width: 809px) {
  .quote-accordion { width: 92%; max-width: none; margin-inline: auto; }
}
@media (max-width: 640px) {
  .quote-accordion-item { padding: 24px 22px; }
}

/* ── 27. S3: sticky left / scrollable right feature list ── */
/* Black variant — styles scoped to this section only, do not extend to white-bg sections */
.feature-list-section {
  height: fit-content;
  background: var(--tg-black);
  padding-block: 150px;
}
.feature-list-section__container {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: start;
}
.feature-list-section__header {
  position: sticky;
  top: 120px;
  align-self: start;
}
.feature-list-section__header .section-headline-dark {
  color: #ffffff;
  font-size: 3rem;
  padding-right: 7vw;
}
.feature-list-section__header .section-eyebrow-light {
  padding-top: 3px;
}
.feature-list-section__scroll-region {
  max-height: none;
  overflow: visible;
}
.feature-card {
  padding-block: 32px;
  border-bottom: 1px solid var(--tg-dark-border);
}
.feature-card:first-child { border-top: none; padding-top: 15px; }
.feature-card:last-child { border-bottom: none; }
.feature-card__title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}
.feature-card__description {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #aeabab;
  min-height: 20vh;
}

@media (max-width: 768px) {
  .feature-list-section__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-list-section__header { position: static; }
  .feature-list-section__scroll-region {
    max-height: none;
    overflow: visible;
  }
  .feature-card__description {
    min-height: 15vh;
  }
}

/* ── 28. Credibility / CTA rows ──────────────────────────── */
.cred-rows-section {
  background: var(--tg-black);
}
.cred-rows-section.section-lg { padding-block: 120px; }
.cred-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  max-width: 92%;
  margin-inline: auto;
  padding-block: 30px;
  min-height: 35vh;
}
.cred-row-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--tg-white);
  line-height: 1.15;
}
.cred-row-desc {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.75;
  color: #aeabab;
  border-top: 1px solid var(--tg-dark-border);
}
.cred-row:last-child .cred-row-desc {
  border-bottom: 1px solid var(--tg-dark-border);
  padding-bottom: 48px;
}
.cred-row-desc p {
  margin: 0 0 16px;
}
.cred-row-desc p:last-child {
  margin-bottom: 0;
}
.cred-row-subheading {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tg-white);
  margin: 24px 0 8px;
}
.cred-row-list {
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .cred-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
