/* ══════════════════════════════════════════════════════════════
   RippleCheck V5 — White / Light Premium Theme
   Clean white sci-fi look with thin borders
   ══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens — Light Theme ─── */
:root {
  color-scheme: dark;

  /* Surfaces — pure black */
  --bg-canvas: #000000;
  --bg-elevated: #0f1115;
  --bg-overlay: #161b22;
  --bg-hover: #1e2229;

  /* Borders */
  --border-default: #23272e;
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: #3d424d;

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --text-subtle: #6e7681;

  /* Accent - Neon Green */
  --accent: #00E599;
  --accent-hover: #00ffa8;
  --accent-pressed: #00b377;
  --accent-tint: rgba(0, 229, 153, 0.1);
  --accent-tint-strong: rgba(0, 229, 153, 0.2);
  --accent-fg-on-solid: #0a0a0a;

  /* Risk colors */
  --safe-fg: #3fb950;
  --safe-bg: rgba(63, 185, 80, 0.08);
  --safe-border: rgba(63, 185, 80, 0.22);
  --safe-glow: rgba(63, 185, 80, 0.12);

  --moderate-fg: #e3b341;
  --moderate-bg: rgba(227, 179, 65, 0.08);
  --moderate-border: rgba(227, 179, 65, 0.22);
  --moderate-glow: rgba(227, 179, 65, 0.12);

  --high-fg: #f85149;
  --high-bg: rgba(248, 81, 73, 0.08);
  --high-border: rgba(248, 81, 73, 0.24);
  --high-glow: rgba(248, 81, 73, 0.12);

  --neutral-fg: #8b949e;
  --neutral-bg: rgba(139, 148, 158, 0.08);
  --neutral-border: rgba(139, 148, 158, 0.22);

  /* Typography */
  --font-ui: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, 'Roboto Mono', Consolas, monospace;

  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 15px;
  --fs-xl: 18px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(255,255,255,0.02) inset, 0 12px 28px -14px rgba(0,0,0,0.55);
  --shadow-header: inset 0 -1px 0 rgba(255,255,255,0.04);
  --shadow-accent-glow: 0 0 0 1px rgba(56,189,248,0.3), 0 8px 24px -8px rgba(56,189,248,0.12);
}

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

body {
  font-family: var(--font-ui);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: var(--fs-md);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
a { color: inherit; text-decoration: none; }

code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* ─── Ambient Background — Neon Matrix Effect ─── */
.ambient-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background: 
    repeating-linear-gradient(90deg, 
      rgba(0, 229, 153, 0.05) 0px, rgba(0, 229, 153, 0.05) 1px, 
      transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, 
      rgba(0, 229, 153, 0.15) 0px, rgba(0, 229, 153, 0.15) 2px, 
      transparent 2px, transparent 12px),
    repeating-linear-gradient(90deg, 
      rgba(0, 229, 153, 0.08) 0px, rgba(0, 229, 153, 0.08) 4px, 
      transparent 4px, transparent 24px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
  opacity: 0.8;
}
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: -3;
  background: black;
}

/* ─── Navigation ─── */
.nav {
  position: sticky; top: 0; z-index: 200;
  padding: var(--sp-3) 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 250ms ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.nav-logo-img { height: 28px; width: auto; display: block; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.brand-tagline { font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 0.02em; }
.nav-right { display: flex; align-items: center; gap: var(--sp-5); }
.nav-link { color: var(--text-muted); font-size: var(--fs-md); font-weight: 500; transition: color 120ms; }
.nav-link:hover { color: var(--text-primary); }
.nav-gh { display: flex; align-items: center; gap: 6px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px var(--sp-3); border-radius: var(--r-md);
  border: 1px solid transparent; font-family: inherit;
  font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
  transition: background 120ms, border-color 120ms, transform 80ms, box-shadow 120ms;
}
.btn:active { transform: translateY(0.5px); }
.btn-primary { background: var(--text-primary); color: var(--bg-canvas); border-color: var(--text-primary); }
.btn-primary:hover { background: #1c2027; border-color: #1c2027; }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15,17,21,0.15); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border-default); }
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text-primary); }
.btn.lg { padding: 10px var(--sp-5); font-size: var(--fs-md); border-radius: var(--r-lg); }
.btn.sm { padding: 4px 10px; font-size: var(--fs-xs); }
/* Download/doc CTAs are real links now — keep them looking like buttons. */
a.btn, a.neon-btn { text-decoration: none; }
a.neon-btn { display: inline-flex; align-items: center; justify-content: center; }

/* ─── Connection Pill ─── */
.conn-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 5px var(--sp-3); border: 1px solid var(--border-default);
  border-radius: var(--r-pill); background: var(--bg-elevated);
  font-size: var(--fs-sm); color: var(--text-muted);
  transition: background 250ms, border-color 250ms, color 250ms;
}
.conn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-subtle); box-shadow: 0 0 0 3px rgba(156,163,175,0.12);
}
.conn-pill[data-state="watching"] { color: var(--safe-fg); background: var(--safe-bg); border-color: var(--safe-border); }
.conn-pill[data-state="watching"] .conn-dot { background: var(--safe-fg); box-shadow: 0 0 0 3px var(--safe-glow); animation: dot-pulse 2.2s ease-in-out infinite; }
.conn-pill[data-state="scanning"] { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-tint-strong); }
.conn-pill[data-state="scanning"] .conn-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-strong); animation: dot-scan 700ms ease-in-out infinite alternate; }

@keyframes dot-pulse {
  0%,100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes dot-scan {
  from { transform: scale(1); }
  to { transform: scale(1.35); }
}

/* ─── Hero ─── */
.hero { padding: 80px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.hero-pill { margin-bottom: var(--sp-5); }
.hero-text h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; margin-bottom: var(--sp-5); color: var(--text-primary); animation: fade-in-up 0.6s ease 0.1s backwards; }
.hero-accent { color: var(--text-muted); }
.hero-sub {
    color: #a3aab3;
    font-size: 1.15rem;
    line-height: 1.65;
    font-weight: 400;
    margin-bottom: var(--sp-8);
    max-width: 480px;
    animation: fade-in-up 0.6s ease 0.2s backwards;
}
.hero-btns { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-8); animation: fade-in-up 0.6s ease 0.3s backwards; }
.hero-logos { display: flex; flex-direction: column; gap: var(--sp-2); animation: fade-in-up 0.6s ease 0.4s backwards; }
.hero-logos-label {
    font-size: 11px;
    font-weight: 700;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2px;
}
.logo-row { display: flex; align-items: center; gap: var(--sp-5); }
.platform-logo { height: 26px; width: auto; opacity: 0.5; transition: opacity 0.3s, transform 0.3s; }
.platform-logo:hover { opacity: 1; transform: translateY(-2px); }
.vscode-svg { height: 24px; width: 24px; }

/* ─── App Windows (code windows) — Dark inside, white page ─── */
.app-window {
  background: #0f1115;
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.app-window-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px var(--sp-4);
  background: #0c0d11;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.window-title {
  margin-left: auto; font-size: var(--fs-sm); color: #6e7681;
  font-family: var(--font-mono); display: flex; align-items: center; gap: 6px;
}
.bar-app-icon { height: 14px; width: 14px; border-radius: 3px; }
.header-conn { margin-left: auto; font-size: var(--fs-xs); padding: 3px 8px; }

/* ─── Pulse Strip (heartbeat — stays dark inside code windows) ─── */
.pulse-strip {
  position: relative; height: 26px; flex-shrink: 0;
  background: #121317; border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.pulse-strip-line {
  position: absolute; inset: 0;
  background-color: #3fb950; opacity: 0.85;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20160%2026'%3E%3Cpath%20d='M0,13%20L64,13%20L70,3%20L76,23%20L82,13%20L88,13%20L160,13'%20fill='none'%20stroke='white'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20160%2026'%3E%3Cpath%20d='M0,13%20L64,13%20L70,3%20L76,23%20L82,13%20L88,13%20L160,13'%20fill='none'%20stroke='white'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 160px 100%; mask-size: 160px 100%;
  animation: pulse-scroll 2.6s linear infinite;
  transition: background-color 900ms ease, opacity 900ms ease;
}
.pulse-strip-line.is-alert { background-color: #f85149; opacity: 1; }

@keyframes pulse-scroll {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to   { -webkit-mask-position: -160px 0; mask-position: -160px 0; }
}

/* ─── Code Body (stays dark — code is always on dark bg) ─── */
.code-body {
  padding: var(--sp-4); font-family: var(--font-mono);
  font-size: var(--fs-sm); line-height: 1.7; color: #e8e8ed;
  overflow-x: auto; background: #0f1115;
}
.code-body-static { max-height: 500px; overflow-y: auto; }
.code-body-static::-webkit-scrollbar { width: 8px; }
.code-body-static::-webkit-scrollbar-track { background: transparent; }
.code-body-static::-webkit-scrollbar-thumb { background: #2a2e37; border-radius: var(--r-pill); border: 2px solid #0f1115; }
.code-body-static::-webkit-scrollbar-thumb:hover { background: #3a3f4a; }
.code-pre { margin: 0; padding: 0; white-space: pre; font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }

/* Syntax colors (on dark code bg) */
.c-prompt { color: #38bdf8; }
.c-cmd { color: #fff; font-weight: 600; }
.c-accent { color: #38bdf8; font-weight: 600; }
.c-muted { color: #6e7681; }
.c-safe { color: #3fb950; }
.c-moderate { color: #e3b341; }
.c-high { color: #f85149; font-weight: 600; }
.c-high-u { color: #f85149; text-decoration: underline; }
.c-high-inline { color: #f85149; font-size: var(--fs-xs); font-style: italic; }
.c-kw { color: #c792ea; }
.c-str { color: #c3e88d; }
.c-fn { color: #82aaff; }
.c-num { color: #f78c6c; }
.c-err-underline { color: #f85149; text-decoration: wavy underline #f85149; text-underline-offset: 3px; }
.ln { color: #6e7681; user-select: none; display: inline-block; width: 20px; text-align: right; margin-right: 14px; }

/* Risk chips inline (hero — on dark bg) */
.impact-name-inline { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border-radius: var(--r-sm); }
.impact-name-inline.high { background: rgba(248,81,73,0.15); color: #f85149; border: 1px solid rgba(248,81,73,0.3); }
.risk-chip-inline { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: var(--r-sm); }
.risk-chip-inline.high { background: rgba(248,81,73,0.15); color: #f85149; border: 1px solid rgba(248,81,73,0.3); }

/* Hero animation */
.hero-visual { position: relative; }
.hero-visual .code-body { max-height: 520px; overflow-y: auto; }
.hero-visual .code-body::-webkit-scrollbar { width: 6px; }
.hero-visual .code-body::-webkit-scrollbar-track { background: transparent; }
.hero-visual .code-body::-webkit-scrollbar-thumb { background: #2a2e37; border-radius: var(--r-pill); }

.code-line {
  margin-bottom: 2px; min-height: 1.4em;
  opacity: 0; animation: line-in 0.3s ease forwards;
}
.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.3s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }
.code-line:nth-child(5) { animation-delay: 1.0s; }
.code-line:nth-child(6) { animation-delay: 1.2s; }
.code-line:nth-child(7) { animation-delay: 1.4s; }
.code-line:nth-child(8) { animation-delay: 1.6s; }
.code-line:nth-child(9) { animation-delay: 1.8s; }
.code-line:nth-child(10) { animation-delay: 2.0s; }
.code-line:nth-child(11) { animation-delay: 2.2s; }
.code-line:nth-child(12) { animation-delay: 2.5s; }
.code-line:nth-child(13) { animation-delay: 2.8s; }
.code-line:nth-child(14) { animation-delay: 3.0s; }
.code-line:nth-child(15) { animation-delay: 3.2s; }
.code-line:nth-child(16) { animation-delay: 3.4s; }
.code-line:nth-child(17) { animation-delay: 3.6s; }
.code-line:nth-child(18) { animation-delay: 3.8s; }
.code-line:nth-child(19) { animation-delay: 4.0s; }
.code-line:nth-child(20) { animation-delay: 4.2s; }
.anim-err { animation-delay: 5.0s !important; }
.anim-err:nth-child(n+22) { animation-delay: 5.2s !important; }
.anim-err:nth-child(n+23) { animation-delay: 5.4s !important; }
.anim-err:nth-child(n+24) { animation-delay: 5.6s !important; }
.anim-err:nth-child(n+25) { animation-delay: 5.8s !important; }
.anim-err:nth-child(n+26) { animation-delay: 6.0s !important; }
.anim-err:nth-child(n+27) { animation-delay: 6.2s !important; }
.anim-err:nth-child(n+28) { animation-delay: 6.4s !important; }
.anim-err:nth-child(n+29) { animation-delay: 6.6s !important; }
.anim-fix { animation-delay: 7.5s !important; }
.anim-fix:nth-child(n+31) { animation-delay: 7.8s !important; }
.anim-fix:nth-child(n+32) { animation-delay: 8.1s !important; }
.anim-fix:nth-child(n+33) { animation-delay: 8.4s !important; }
.anim-fix:nth-child(n+34) { animation-delay: 8.7s !important; }

@keyframes line-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Sections ─── */
.section { padding: 120px 0; }
.section-elevated { background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.section-head { text-align: center; margin-bottom: 72px; }
.section-head h2 { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: var(--sp-4); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 600px; margin: 0 auto; }
.section-head .conn-pill { margin-bottom: var(--sp-4); }



/* ─── Features Grid — Neon-style Clean Layout ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.feat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.02) inset;
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.feat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,170,0.1);
}
.feat-card:hover::before {
  opacity: 1;
}
.feat-icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 20px;
  color: #00FFAA; background: rgba(0, 255, 170, 0.08);
  border: none;
  box-shadow: none;
  transition: none;
}
.feat-card:hover .feat-icon-box {
  background: rgba(0, 255, 170, 0.08);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.feat-icon-box.safe { color: var(--safe-fg); background: rgba(63,185,80,0.08); border: none; }
.feat-title, .feat-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: #fff;
  display: block;
}
.feat-desc, .feat-card p {
  color: #8b949e;
  font-size: 0.95rem;
  line-height: 1.6;
  display: block;
  margin: 0;
}
.feat-card p code {
  color: #c9d1d9;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ─── Scroll Reveal ─── */
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--border-subtle); padding: 60px 0 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo-img { height: 28px; width: auto; margin-bottom: var(--sp-2); }
.footer-name { font-size: var(--fs-lg); font-weight: 600; }
.footer-tagline { color: var(--text-subtle); font-size: var(--fs-sm); }
.footer-cols { display: flex; gap: 80px; }
.footer-col h5 { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-4); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; color: var(--text-subtle); margin-bottom: 10px; font-size: var(--fs-sm); transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { text-align: center; padding: var(--sp-5) 0; border-top: 1px solid var(--border-subtle); color: var(--text-subtle); font-size: var(--fs-sm); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 2.5rem; }
  .split-view { grid-template-columns: 1fr; gap: var(--sp-4); }

  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .rc-sidebar { display: none; }
  .nav-right .nav-link { display: none; }
  .rc-header-center { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .hero-text h1 { font-size: 2rem; }
  .section-head h2 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .section { padding: 80px 0; }
  .rc-header-bar { flex-wrap: wrap; gap: 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  .code-line { opacity: 1; animation: none; }
  .pulse-strip-line { animation: none; }
  .conn-dot { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   EXACT APP REPLICA — Pixel-perfect match to real RippleCheck
   ══════════════════════════════════════════════════════════════ */

.app-replica { margin-top: -20px; }
.app-fullscreen { border-radius: var(--r-lg); overflow: hidden; }

/* ─── RC Header Bar (the real app's top bar) ─── */
.rc-header-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: #0c0d11;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rc-header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rc-header-logo { height: 22px; width: auto; }
.rc-header-brand { display: flex; flex-direction: column; line-height: 1.1; }
.rc-header-name { font-size: 13px; font-weight: 600; color: #f5f5f5; }
.rc-header-sub { font-size: 10px; color: #8b949e; }

.rc-header-center {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.rc-path-bar {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: #1e2229; border: 1px solid #2f353e;
  font-family: var(--font-mono); font-size: 12px; color: #c9d1d9;
  white-space: nowrap;
}
.rc-path-bar svg { color: #8b949e; flex-shrink: 0; }

.rc-header-btn {
  padding: 5px 12px; border-radius: var(--r-md);
  border: 1px solid #2f353e; background: #1e2229;
  color: #c9d1d9; font-family: inherit; font-size: 12px;
  font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background 120ms, border-color 120ms;
}
.rc-header-btn:hover { background: #2a2e37; border-color: #3d424d; }
.rc-header-btn.primary {
  background: #38bdf8; color: #0a0a0a; border-color: #38bdf8;
}
.rc-header-btn.primary:hover { background: #7dd3fc; }

.rc-header-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; white-space: nowrap;
}
.rc-header-badge.unknown {
  background: rgba(227,179,65,0.1); border: 1px solid rgba(227,179,65,0.25);
  color: #e3b341;
}
.rc-badge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(227,179,65,0.2); font-size: 10px; font-weight: 700;
}

/* Header conn pill overrides for app replica */
.rc-header-bar .header-conn { font-size: 12px; padding: 4px 10px; }

/* ─── RC App Body ─── */
.rc-app-body { display: flex; min-height: 520px; }

/* ─── RC Sidebar (exact from real app screenshot) ─── */
.rc-sidebar {
  width: 190px; flex-shrink: 0; display: flex; flex-direction: column;
  background: #0c0d11; border-right: 1px solid rgba(255,255,255,0.06);
}
.rc-sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: var(--r-md);
  border: 1px solid transparent; background: transparent;
  color: #8b949e; font-family: inherit; font-size: 13px;
  font-weight: 500; text-align: left; cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.sidebar-nav-item:hover { color: #f5f5f5; background: #1e2229; }
.sidebar-nav-item.active, .sidebar-nav-item[aria-current="page"] {
  color: #38bdf8; background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.2);
}

.rc-sidebar-stack { padding: 12px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 8px; }
.sidebar-stack-folder { display: flex; align-items: center; gap: 6px; color: #c9d1d9; }
.sidebar-stack-folder svg { color: #8b949e; }
.stack-folder-name { font-family: var(--font-mono); font-size: 12px; color: #c9d1d9; }
.sidebar-stack-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 3px; border-radius: var(--r-pill);
  border: 1px solid #23272e; background: #121317;
  font-size: 11px; color: #c9d1d9; white-space: nowrap;
}
.stack-ver { color: #6e7681; font-family: var(--font-mono); }
.monogram { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; flex-shrink: 0; }
.monogram-sm { width: 18px; height: 18px; border-radius: 4px; font-size: 9px; }

/* Sidebar user section */
.rc-sidebar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-avatar-img { width: 24px; height: 24px; border-radius: 50%; }
.sidebar-user-name { font-size: 12px; color: #c9d1d9; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-settings-btn {
  width: 28px; height: 28px; border-radius: var(--r-md);
  border: 1px solid transparent; background: transparent;
  color: #6e7681; cursor: pointer; display: grid; place-items: center;
  transition: color 120ms, background 120ms;
}
.sidebar-settings-btn:hover { color: #f5f5f5; background: #1e2229; }

/* ─── RC Main Content ─── */
.rc-main-content {
  flex: 1; padding: 20px 24px; overflow-y: auto;
  background: #0f1115; display: flex; flex-direction: column; gap: 16px;
}

/* Detail Level Tabs (exact from screenshot) */
.rc-detail-tabs {
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: var(--r-md); border: 1px solid #23272e;
  background: #121317; align-self: flex-start;
}
.detail-tab {
  appearance: none; border: 0; background: transparent;
  color: #8b949e; font: inherit; font-size: 12px;
  padding: 5px 14px; border-radius: var(--r-sm);
  cursor: pointer; transition: background 120ms, color 120ms;
}
.detail-tab:hover { color: #f5f5f5; background: #1e2229; }
.detail-tab.active-tab { color: #38bdf8; background: rgba(56,189,248,0.1); }

/* ─── AI Summary Card (violet gradient — from real app) ─── */
.ai-summary-card {
  position: relative; padding: 16px 20px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.04));
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.12);
}
.ai-summary-card::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
  background: #7c3aed; border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.ai-summary-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #7c3aed; color: #fff; font-size: 9px; font-weight: 700;
  letter-spacing: 0.03em; flex-shrink: 0;
}
.ai-badge.sm { width: 18px; height: 18px; font-size: 8px; }
.ai-summary-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #b794f6; }
.ai-summary-meta { margin-left: auto; font-size: 12px; color: #8b949e; font-family: var(--font-mono); }
.ai-summary-text { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #f5f5f5; }
.ai-summary-file-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-md);
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}
.file-chip-path { font-family: var(--font-mono); color: #c9d1d9; font-weight: 500; }
.file-chip-desc { color: #6e7681; }

/* ─── Entry Card (from real app screenshot) ─── */
.rc-entry-card {
  background: #121317; border: 1px solid #23272e;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 12px 28px -14px rgba(0,0,0,0.55);
}
.rc-entry-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #191c21;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.rc-entry-title { display: flex; align-items: center; gap: 8px; color: #3fb950; font-size: 13px; font-weight: 600; }
.rc-entry-title svg { color: #3fb950; }
.rc-entry-count { color: #3fb950; }
.rc-entry-pills { display: flex; gap: 8px; margin-left: auto; }
.risk-dot-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 2px 8px; border-radius: var(--r-pill);
}
.risk-dot-pill.moderate { color: #e3b341; }
.risk-dot-pill.safe { color: #3fb950; }
.risk-dot-sm { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rc-entry-time { font-family: var(--font-mono); font-size: 12px; color: #6e7681; white-space: nowrap; }

/* AI Analysis Block (inside entry card) */
.ai-analysis-block {
  padding: 14px 16px; margin: 12px 16px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--r-md);
  background: rgba(124, 58, 237, 0.04);
}
.ai-analysis-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ai-analysis-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #b794f6; }
.ai-analysis-from { font-size: 11px; color: #6e7681; margin-left: 4px; }
.ai-analysis-text { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: #c9d1d9; }
.ai-analysis-file-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-md);
  background: rgba(63, 185, 80, 0.08); border: 1px solid rgba(63, 185, 80, 0.2);
  font-size: 12px; margin-bottom: 10px;
}
.copy-fix-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-md);
  border: 1px solid #2f353e; background: #1e2229;
  color: #c9d1d9; font-family: inherit; font-size: 12px;
  font-weight: 500; cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.copy-fix-btn:hover { background: #2a2e37; border-color: #3d424d; color: #f5f5f5; }
.copy-fix-btn svg { color: #8b949e; }

/* ─── Impact Rows (exact from app screenshot) ─── */
.rc-impact-list { display: flex; flex-direction: column; }
.rc-impact-row {
  display: flex; gap: 12px; padding: 14px 16px;
  border-top: 1px solid #191c21;
  transition: background 120ms;
}
.rc-impact-row:hover { background: rgba(255,255,255,0.015); }
.rc-impact-icon { flex-shrink: 0; padding-top: 1px; }
.rc-impact-icon.safe svg { color: #3fb950; }
.rc-impact-icon.moderate svg { color: #e3b341; }
.rc-impact-icon.high svg { color: #f85149; }
.rc-impact-content { flex: 1; min-width: 0; }
.rc-impact-text { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: #c9d1d9; }
.rc-impact-row.moderate .rc-impact-text { color: #e3b341; }
.rc-impact-actions { display: flex; gap: 8px; }
.mark-reviewed-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid #23272e; background: #121317;
  color: #8b949e; font-family: inherit; font-size: 11px;
  cursor: pointer; transition: background 120ms, border-color 120ms, color 120ms;
}
.mark-reviewed-btn:hover { background: #1e2229; border-color: #2f353e; color: #c9d1d9; }
.mark-reviewed-btn svg { color: #6e7681; }

.rc-impact-file-ref {
  display: inline-flex; margin-top: 4px;
}
.file-ref-path {
  font-family: var(--font-mono); font-size: 12px;
  padding: 3px 10px; border-radius: var(--r-md);
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06);
  color: #8b949e;
}

/* ─── Platform Bar (exact from app screenshot) ─── */
.platform-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 30px;
  background: #121317; border-top: 1px solid #191c21;
  font-size: 11px; color: #8b949e;
}
.platform-bar-label { color: #6e7681; letter-spacing: 0.03em; text-transform: uppercase; font-size: 10px; font-weight: 500; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 2px; border-radius: var(--r-pill);
  border: 1px solid #23272e; background: transparent;
  color: #8b949e; white-space: nowrap; font-size: 11px;
}
.platform-badge.connected { color: #f5f5f5; border-color: #2f353e; background: #0a0a0a; }
.platform-badge.muted { border-style: dashed; color: #6e7681; }
.platform-badge.muted .monogram { opacity: 0.5; }

/* ─── Desktop Mockup (Format 3 mini) ─── */
.dt-body { display: flex; min-height: 180px; background: #0f1115; }
.dt-sidebar { width: 100px; background: #121317; border-right: 1px solid #191c21; padding: 10px 0; }
.dt-item { padding: 7px 12px; font-size: 12px; color: #8b949e; }
.dt-item.active { background: rgba(56,189,248,0.1); color: #38bdf8; }
.dt-main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dt-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: var(--r-md);
  border: 1px solid #23272e; background: #121317;
  font-size: 12px; color: #c9d1d9;
}
.dt-card.safe { border-left: 3px solid #3fb950; }
.dt-card.moderate { border-left: 3px solid #e3b341; }
.dt-risk { font-size: 11px; color: #8b949e; }
/* ═══════════════════════════════════════════
   HERO APP REPLICA ANIMATION STATES
   ═══════════════════════════════════════════ */

.hero-app-replica {
    transition: all 0.3s ease;
}

/* Base states hidden by default where needed */
.hero-app-replica .anim-skeleton-bars,
.hero-app-replica .anim-analysis-text,
.hero-app-replica .anim-analysis-chip,
.hero-app-replica .anim-fix-btn,
.hero-app-replica .anim-gen-btn,
.hero-app-replica #animSessionCard,
.hero-app-replica .anim-file-chip {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* STATE 1: Analyzing */
.hero-app-replica.state-1 .anim-analysis-text,
.hero-app-replica.state-1 .anim-analysis-chip,
.hero-app-replica.state-1 .anim-fix-btn,
.hero-app-replica.state-1 .anim-gen-btn,
.hero-app-replica.state-1 #animSessionCard,
.hero-app-replica.state-1 .anim-file-chip {
    display: none !important;
}

.hero-app-replica.state-1 .anim-skeleton-bars {
    display: flex !important;
    animation: pulse-skeleton 1.5s infinite;
}

@keyframes pulse-skeleton {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* STATE 2: Warning Found */
.hero-app-replica.state-2 .anim-skeleton-bars,
.hero-app-replica.state-2 .anim-fix-btn,
.hero-app-replica.state-2 #animSessionCard {
    display: none !important;
}

.hero-app-replica.state-2 .anim-analysis-text,
.hero-app-replica.state-2 .anim-analysis-chip,
.hero-app-replica.state-2 .anim-gen-btn,
.hero-app-replica.state-2 .anim-file-chip {
    display: flex !important;
    animation: fade-in-up 0.4s ease forwards;
}
.hero-app-replica.state-2 .anim-analysis-text {
    display: block !important;
}

/* STATE 3: Session Summary & Fix Ready */
.hero-app-replica.state-3 .anim-skeleton-bars,
.hero-app-replica.state-3 .anim-gen-btn,
.hero-app-replica.state-3 #animImpactRowMod,
.hero-app-replica.state-3 .rc-impact-row.safe {
    display: none !important; /* Hide impact rows in state 3 as per screenshot */
}

.hero-app-replica.state-3 .anim-analysis-text,
.hero-app-replica.state-3 .anim-analysis-chip,
.hero-app-replica.state-3 .anim-file-chip,
.hero-app-replica.state-3 .anim-fix-btn,
.hero-app-replica.state-3 #animSessionCard {
    display: flex !important;
    animation: fade-in-up 0.4s ease forwards;
}
.hero-app-replica.state-3 .anim-analysis-text,
.hero-app-replica.state-3 #animSessionCard {
    display: block !important;
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Ensure the hero visual container fits the new app replica properly */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px; /* Give it some space */
    margin: 0 auto;
}

.hero-app-replica {
    width: 100%;
    transform: scale(0.75);
    transform-origin: center right;
}

@media (max-width: 992px) {
    .hero-app-replica {
        transform: scale(0.75);
        transform-origin: top center;
    }
}

/* ═══════════════════════════════════════════
   PREMIUM HERO REDESIGN (Vercel Style)
   ═══════════════════════════════════════════ */

.premium-hero {
    position: relative;
    padding: 80px 0 0; /* Reduced top padding to pull app up */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000; /* Pure black */
}

/* Background Grids and Orbs */
.hero-bg-lights {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-glow-orb {
    position: absolute;
    width: 600px;
    height: 750px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: floatOrb 20s infinite alternate ease-in-out;
}
.hero-glow-orb.orb-1 {
    background: #38bdf8;
    top: -200px;
    left: -200px;
}
.hero-glow-orb.orb-2 {
    background: #7c3aed;
    bottom: 20%;
    right: -200px;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

.hero-bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 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: 60px 60px;
    background-position: center top;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}

.hero-content-stacked {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Text Center */
.hero-text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Premium Badge */
.premium-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.premium-badge-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0% { opacity: 0.5; box-shadow: 0 0 5px #38bdf8; }
    50% { opacity: 1; box-shadow: 0 0 15px #38bdf8; }
    100% { opacity: 0.5; box-shadow: 0 0 5px #38bdf8; }
}

/* Typography Overhauls */
.hero-title-premium {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 24px;
    text-wrap: balance;
}
.hero-accent-premium {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #a78bfa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 4s linear infinite;
}
@keyframes textShine {
    to { background-position: 200% center; }
}
.hero-sub-premium {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #9ca3af;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 40px;
    font-weight: 400;
    text-wrap: balance;
}

/* Premium Buttons */
.hero-btns-premium {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    height: 52px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    overflow: hidden;
}
.btn-premium.primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 14px 0 rgba(255,255,255,0.15);
}
.btn-premium.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 6px 20px 0 rgba(255,255,255,0.25);
}
.btn-premium.ghost {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-premium.ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
.btn-text {
    position: relative;
    z-index: 2;
}

/* Hero Logos Section */
.hero-logos-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.hero-logos-label-premium {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.logo-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.logo-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}
.logo-card img, .logo-card svg {
    height: 20px;
    width: auto;
    transition: all 0.3s ease;
}
.logo-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.logo-card:hover img, .logo-card:hover svg {
    filter: grayscale(0%) opacity(1);
}

/* Centerpiece Mockup (Overlapping) */
.hero-visual-premium {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    perspective: 1000px;
}
.hero-mockup-frame {
    position: relative;
    width: 1400px;
    max-width: 98vw;
    border-radius: var(--r-lg);
    background: #000;
    padding: 1px; /* for glass border */
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 0 0 1px rgba(0,0,0,1), 0 40px 80px -20px rgba(0,0,0,1), 0 0 60px rgba(124, 58, 237, 0.25);
    transform: rotateX(5deg) translateY(0);
    animation: floatMockup 6s ease-in-out infinite;
    transform-style: preserve-3d;
}
.hero-mockup-frame::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.hero-mockup-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

@keyframes floatMockup {
    0%, 100% { transform: rotateX(5deg) translateY(0); }
    50% { transform: rotateX(5deg) translateY(-15px); }
}

/* Override existing replica styles for the new massive frame */
.hero-visual-premium .hero-app-replica {
    transform: scale(1) !important;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border: none;
    border-radius: calc(var(--r-lg) - 1px);
}

/* ════════════ NEON REDESIGN STYLES ════════════ */
.neon-hero-container {
    padding-top: 120px;
    padding-bottom: 60px;
    z-index: 2;
    position: relative;
}
.neon-hero-container::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%; right: -10%; bottom: -20%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 170, 0.12), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.12), transparent 50%);
    z-index: -1;
    animation: backgroundOrbs 10s infinite alternate ease-in-out;
    pointer-events: none;
}
@keyframes backgroundOrbs {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    50% { transform: scale(1.1) translate(3%, 5%); opacity: 1; }
    100% { transform: scale(1) translate(-3%, -5%); opacity: 0.6; }
}
.neon-hero-text {
    max-width: 800px;
    margin-bottom: 80px;
}
.neon-tag {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.neon-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 40px;
}
.neon-title strong {
    font-weight: 600;
}
.neon-title .light-title {
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-muted);
}
.neon-subtitle {
    position: relative;
    font-size: 17px;
    line-height: 1.6;
    color: #fff;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    max-width: 90%;
    animation: textGlowPulse 4s infinite alternate;
}
@keyframes textGlowPulse {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); opacity: 0.85; }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.6); opacity: 1; }
}
.neon-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(0, 255, 170, 0.15), transparent 70%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
    animation: lightPulse 3s infinite alternate ease-in-out;
}
@keyframes lightPulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.neon-btns {
    display: flex;
    gap: 16px;
}
.neon-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}
.neon-btn.primary {
    background: #fff;
    color: #000;
}
.neon-btn.primary:hover {
    background: #e0e0e0;
}
.neon-btn.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.neon-btn.ghost:hover {
    border-color: #fff;
}
/* Premium Workflow Redesign */
.premium-workflow-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.premium-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.animated-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.radial-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.03) 0%, transparent 50%);
}

.premium-timeline {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 30px;
}
.timeline-line {
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.1);
}
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, #00FFAA);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
    /* GSAP handles width transition */
}
.timeline-progress::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00FFAA;
    box-shadow: 0 0 20px 6px rgba(0, 255, 170, 0.4);
}
.timeline-dot {
    position: absolute;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    transition: all 0.6s ease;
}
.timeline-dot.start { left: -2px; }
.timeline-dot.end { right: -2px; }

.premium-section-heading {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}
.heading-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 40px;
    background: rgba(255,255,255,0.02);
}
.heading-title {
    font-size: 40px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.heading-desc {
    font-size: 16px;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 30px;
    text-align: center;
}
.step-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}
.step-label.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.premium-feature-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.15;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}
.premium-feature-card.visible {
    opacity: 0.3;
    transform: translateY(0);
}
.premium-feature-card.active {
    opacity: 1;
    border-color: rgba(0, 255, 170, 0.4);
    box-shadow: 0 20px 40px rgba(0, 255, 170, 0.05), inset 0 0 20px rgba(0, 255, 170, 0.02);
    transform: translateY(-8px);
}
.premium-feature-card.faded {
    opacity: 0.2;
    transform: translateY(0);
    filter: grayscale(80%);
}
.premium-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 170, 0.6);
    box-shadow: 0 30px 60px rgba(0, 255, 170, 0.1);
}
.glass-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.premium-feature-card h4 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}
.premium-feature-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #999;
    flex-grow: 1;
}
.neon-feature-mockup {
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #fff;
    margin-top: 20px;
}
.live-analysis-badge {
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #00FFAA;
    margin-top: 20px;
    align-self: flex-start;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00FFAA;
    box-shadow: 0 0 8px #00FFAA;
}

.premium-quote-section {
    max-width: 1000px;
    margin: 100px auto 40px;
    text-align: center;
    position: relative;
}
.quote-brackets {
    position: relative;
    padding: 60px 50px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 255, 170, 0.4);
}
.bracket.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.bracket.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bracket.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bracket.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.quote-content h2 {
    font-size: 34px;
    color: #fff;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 16px;
}
.quote-sub {
    font-size: 20px;
    color: #999;
    margin-bottom: 0;
    line-height: 1.6;
}
.italic-muted {
    font-style: italic;
    color: #bbb;
}
.highlight-green {
    color: #00FFAA;
    font-weight: 500;
}
.quote-box {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
}
.quote-box p {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.premium-integrations {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.integrations-label {
    font-size: 14px;
    color: #888;
}
.integration-pills {
    display: flex;
    gap: 12px;
}
.glass-pill {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #aaa;
    transition: all 0.3s ease;
    cursor: pointer;
}
.glass-pill img, .glass-pill svg, .glass-pill span {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    transition: all 0.3s ease;
}
.glass-pill:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.glass-pill:hover img, .glass-pill:hover svg, .glass-pill:hover span {
    opacity: 1;
}

/* Platform Section */
.neon-platform-section {
    background: #000;
    padding-top: 60px;
    padding-bottom: 120px;
}
.neon-logos-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 0 var(--sp-6) 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.n-logo {
    height: 24px;
    filter: none;
}
.neon-platform-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
}
.neon-main-content {
    min-width: 0;
}
.neon-side-nav {
    list-style: none;
    position: sticky;
    top: 120px;
}
.neon-side-nav li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.neon-side-nav li.active {
    color: #fff;
}
.neon-side-nav li .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.neon-huge-text {
    font-size: clamp(2rem, 3.5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 500;
    margin-bottom: 60px;
}
.neon-huge-text .white { color: #fff; }
.neon-huge-text .grey { color: var(--text-muted); }

/* ════════════ HERO AI WIDGET ════════════ */
.neon-hero-split {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-ai-widget {
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-bottom: 40px;
    border-radius: 12px;
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    overflow: hidden;
}
.hero-ai-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-ai-widget-icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}
.hero-ai-widget-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}
.hero-ai-widget-body {
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
}
.ai-line {
    margin-bottom: 8px;
}
.ai-cmd { color: #fff; }
.ai-accent { color: var(--accent); }

.ai-assign-modal {
    position: relative;
    margin: 0 auto 10px;
    width: calc(100% - 40px);
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
    overflow: hidden;
}
.ai-assign-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #888;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ai-assign-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    max-height: 250px;
    overflow-y: auto;
}
.ai-assign-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    transition: all 0.2s;
}
.ai-assign-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.ai-assign-item.selected {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.ai-assign-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-assign-avatar {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}
.ai-assign-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #888;
}
.ai-check {
    color: var(--accent);
    opacity: 0;
    animation: fadeInCheck 0.5s forwards;
}
.ai-check-1 { animation-delay: 1s; }
.ai-check-2 { animation-delay: 2s; }
.ai-check-3 { animation-delay: 3s; }
.ai-check-4 { animation-delay: 4s; }

@keyframes fadeInCheck {
    to { opacity: 1; }
}

.ai-final-text {
    opacity: 0;
    padding: 16px 20px 24px 20px;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 255, 170, 0.4);
    line-height: 1.5;
    animation: blurReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 4.5s;
}
@keyframes blurReveal {
    0% { 
        opacity: 0; 
        filter: blur(10px);
        transform: translateY(10px) scale(0.95);
    }
    100% { 
        opacity: 1; 
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

/* ─── Feature Rows (white page context) ─── */
.feature-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; margin-bottom: 100px; }
.feature-row.reverse { grid-template-columns: 1.1fr 1fr; }
.feature-row.reverse .feature-info { order: 2; }
.feature-row.reverse .feature-graphic { order: 1; }
.feat-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: var(--sp-3); }
.feature-info h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: var(--sp-4); letter-spacing: -0.02em; }
.feature-info p { color: var(--text-muted); font-size: var(--fs-md); margin-bottom: var(--sp-5); line-height: 1.7; }
.tag-badge { font-size: var(--fs-xs); background: var(--accent-tint); color: var(--accent); padding: 2px 8px; border-radius: var(--r-sm); font-weight: 500; vertical-align: middle; }
.check-list { list-style: none; }
.check-list li { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: var(--fs-md); color: var(--text-primary); }
.check-list li::before { content: "✓"; color: var(--safe-fg); font-weight: 700; flex-shrink: 0; }

/* Mini terminal (dark — code is always dark) */
.app-window.mini { font-size: var(--fs-sm); }
.mini-code { padding: var(--sp-4); font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.8; margin: 0; color: #e8e8ed; white-space: pre; background: #0f1115; }

/* Desktop mockup (dark inside, Format 3) */
.dt-body { display: flex; min-height: 180px; background: #0f1115; }
.dt-sidebar { width: 100px; background: #121317; border-right: 1px solid #191c21; padding: var(--sp-3) 0; }
.dt-item { padding: 6px var(--sp-3); font-size: var(--fs-sm); color: #8b949e; }
.dt-item.active { background: rgba(56,189,248,0.1); color: #38bdf8; }
.dt-main { flex: 1; padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.compact-sm { font-size: var(--fs-sm); }

@media (max-width: 1024px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: var(--sp-8); }
  .feature-row.reverse .feature-info { order: 0; }
  .feature-row.reverse .feature-graphic { order: 0; }
}

/* ─── Timeline Steps Above Line ─── */
.timeline-steps-above {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 16px;
    text-align: center;
    position: relative;
    z-index: 10;
}
.step-label-above {
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0;
    transition: all 0.6s ease;
    
    /* Circle styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Center it inside the grid cell */
    justify-self: center;
}
.step-label-above.active {
    color: #000;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
}

/* Override faded state to be brighter so it's highlighted from the start */
.premium-feature-card.faded {
    opacity: 0.7 !important;
    filter: none !important;
}

/* Also ensure neon-platform-grid looks good outside the header */
section.neon-platform-grid {
    padding: 120px 0;
}

/* ═══════════════════ HOW IT WORKS — Premium Redesign ═══════════════════ */
.hiw-section {
    padding: 120px 0 80px;
    position: relative;
}
.hiw-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,170,0.3), transparent);
}

.hiw-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}
.hiw-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00FFAA;
    margin-bottom: 20px;
    padding: 6px 16px;
    border: 1px solid rgba(0,255,170,0.15);
    border-radius: 100px;
    background: rgba(0,255,170,0.05);
}
.hiw-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00FFAA;
    box-shadow: 0 0 8px rgba(0,255,170,0.5);
    animation: dot-pulse 2.2s ease-in-out infinite;
}
.hiw-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}
.hiw-subtitle {
    font-size: 1.125rem;
    color: #8b949e;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Flow Rows */
.hiw-flow {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}
.hiw-flow-reverse {
    grid-template-columns: 1.2fr 1fr;
}
.hiw-flow-reverse .hiw-flow-info { order: 2; }
.hiw-flow-reverse .hiw-flow-graphic { order: 1; }

.hiw-flow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: #000;
    background: #00FFAA;
    box-shadow: 0 0 24px rgba(0,255,170,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    margin-bottom: 24px;
}
.hiw-flow-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
}
.hiw-flow-desc {
    font-size: 1.05rem;
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 24px;
}
.hiw-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hiw-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #c9d1d9;
}
.hiw-checklist li::before {
    content: '✓';
    color: #00FFAA;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,255,170,0.08);
    border: 1px solid rgba(0,255,170,0.2);
}

/* Terminal / Code Block */
.hiw-terminal {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    background: #0a0a0a;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03),
        0 8px 40px rgba(0,0,0,0.5),
        0 0 80px rgba(0,255,170,0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.hiw-terminal:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(0,255,170,0.1),
        0 16px 60px rgba(0,0,0,0.6),
        0 0 100px rgba(0,255,170,0.08);
}
.hiw-terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hiw-terminal-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.hiw-terminal-bar .dot-red { background: #ff5f57; }
.hiw-terminal-bar .dot-yellow { background: #febc2e; }
.hiw-terminal-bar .dot-green { background: #28c840; }
.hiw-terminal-title {
    margin-left: auto;
    font-size: 12px;
    color: #6e7681;
    font-family: var(--font-sans);
}
.hiw-terminal-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #c9d1d9;
    min-height: 280px;
}
.hiw-terminal-body .code-line {
    padding: 1px 0;
}

/* VS Code MCP Banner */
.hiw-mcp-banner {
    margin-top: 28px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    animation: mcp-glow 3s ease-in-out infinite alternate;
}
@keyframes mcp-glow {
    0% { box-shadow: 0 0 0 rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.15); }
}
.hiw-mcp-badge {
    background: #7c3aed;
    color: #fff;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.hiw-mcp-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    margin-bottom: 4px;
}
.hiw-mcp-desc {
    color: #c9d1d9;
    font-size: 12px;
    font-family: var(--font-sans);
    margin-bottom: 10px;
    line-height: 1.5;
}
.hiw-mcp-desc code {
    color: #a78bfa;
    background: rgba(124,58,237,0.15);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
}
.hiw-mcp-fix-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}
.hiw-mcp-fix-btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

/* ═══════════════════ FORMATS — Premium Redesign ═══════════════════ */
.formats-section {
    padding: 100px 0 80px;
    position: relative;
}
.formats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,170,0.2), transparent);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.format-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.format-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,170,0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.format-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(0,255,170,0.12);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,255,170,0.06);
}
.format-card:hover::before {
    opacity: 1;
}
.format-number {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: #00FFAA;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0,255,170,0.08);
    border: 1px solid rgba(0,255,170,0.2);
}
.format-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.format-desc {
    font-size: 0.95rem;
    color: #8b949e;
    line-height: 1.65;
    margin-bottom: 20px;
}
.format-platform-badge {
    font-size: 0.6em;
    background: rgba(0,255,170,0.08);
    color: #00FFAA;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    vertical-align: middle;
}
.format-card .hiw-checklist {
    margin-bottom: 24px;
}
.format-card .hiw-checklist li {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.format-card .hiw-checklist li::before {
    width: 18px;
    height: 18px;
    font-size: 11px;
}

.format-code-preview {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
}
.format-code-preview pre {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.7;
    color: #c9d1d9;
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

/* Desktop App Preview inside Format 03 */
.format-app-preview {
    display: flex;
    min-height: 130px;
}
.format-app-sidebar {
    width: 80px;
    background: #0f1115;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 10px 0;
}
.format-app-item {
    padding: 6px 10px;
    font-size: 11px;
    color: #6e7681;
    cursor: pointer;
    transition: all 0.2s;
}
.format-app-item.active {
    background: rgba(56,189,248,0.08);
    color: #38bdf8;
}
.format-app-main {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.format-app-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #c9d1d9;
}
.format-app-row.moderate {
    background: rgba(227,179,65,0.06);
    border: 1px solid rgba(227,179,65,0.12);
}
.format-app-row.safe {
    background: rgba(63,185,80,0.04);
    border: 1px solid rgba(63,185,80,0.1);
}
.format-risk {
    font-size: 11px;
    color: #8b949e;
}

/* ═══════════════════ FEATURES — Premium Redesign ═══════════════════ */
.features-section {
    padding: 100px 0 80px;
    position: relative;
}
.features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,170,0.2), transparent);
}

/* Responsive */
@media (max-width: 1024px) {
    .hiw-flow, .hiw-flow-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hiw-flow-reverse .hiw-flow-info { order: 0; }
    .hiw-flow-reverse .hiw-flow-graphic { order: 0; }
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hiw-title {
        font-size: 2.2rem;
    }
}
@media (max-width: 768px) {
    .hiw-title {
        font-size: 1.8rem;
    }
    .hiw-flow-title {
        font-size: 1.5rem;
    }
}

/* API Key Animation Sequence */
.anim-line { opacity: 0; animation: fade-in-line 0.1s forwards; }
@keyframes fade-in-line { to { opacity: 1; } }

.anim-line-1 { animation-delay: 0.5s; }
.anim-line-2 { animation-delay: 1.5s; }
.anim-line-3 { animation-delay: 1.6s; }
.anim-line-4 { animation-delay: 2.5s; }
.anim-line-5 { animation-delay: 3.0s; }
.anim-line-6 { animation-delay: 3.5s; }
.anim-line-7 { animation-delay: 3.6s; }
.anim-line-8 { animation-delay: 4.5s; }
.anim-line-9 { animation-delay: 5.0s; }
.anim-line-10 { animation-delay: 6.5s; }
.anim-line-11 { animation-delay: 7.5s; }

/* Format Best Badge */
.format-best-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(90deg, #00FFAA, #00b377);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,255,170,0.3);
    z-index: 10;
}
.format-card {
    position: relative;
}

/* ═══════════════════ CINEMATIC DEMO CSS ═══════════════════ */
.cinematic-section {
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(0,255,170,0.03) 0%, transparent 60%);
}
.cinematic-stage {
  position: relative;
  width: 100%;
  max-width: 1040px;
  height: 520px;
  margin: 60px auto 0;
  perspective: 1200px;
}

/* SCENE 1 & 2: App Mockup */
.cinema-app-mockup.shift-left {
  width: 580px; /* shrinks */
  left: 0;
  transform: translate(0, -50%);
}
.cinema-app-mockup {
  position: absolute;
  width: 700px; /* starts wide */
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 420px;
  background: rgba(15, 17, 21, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.cinema-app-header {
  height: 40px;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cinema-app-header .app-title {
  color: #8b949e;
  font-size: 0.8rem;
  margin-left: 20px;
  flex: 1;
}
.cinema-app-header .app-status {
  color: #3fb950;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pulse-dot {
  width: 6px; height: 6px;
  background: #3fb950;
  border-radius: 50%;
  box-shadow: 0 0 8px #3fb950;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.cinema-app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* File Tree */
.cinema-file-tree {
  width: 240px;
  background: rgba(0,0,0,0.2);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 16px;
  font-size: 0.85rem;
  color: #8b949e;
}
.tree-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px; border-radius: 6px;
  margin-bottom: 2px;
}
.indent-1 { padding-left: 20px; }
.indent-2 { padding-left: 36px; }
.tree-item.active { background: rgba(88,166,255,0.1); color: #58a6ff; }

/* Main View */
.cinema-app-main-view {
  flex: 1;
  position: relative;
  padding: 16px;
}
.cinema-log-stream {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #c9d1d9;
  line-height: 1.6;
}

/* SCENE 2: Warning Popup */
.cinema-warning-popup {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 380px;
  z-index: 50;
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05) inset;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}
.cinema-warning-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
  pointer-events: auto;
}
.warning-icon-wrapper {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(227,179,65,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.warning-content h4 { color: #fff; margin: 0 0 8px 0; font-size: 1rem; }
.warning-content p { color: #c9d1d9; margin: 0 0 8px 0; font-size: 0.9rem; }
.warning-content .sub-text { color: #8b949e; font-size: 0.85rem; }

.warning-actions {
  display: flex; gap: 12px; margin-top: 24px;
}
.btn-dismiss {
  flex: 1;
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  color: #c9d1d9; border-radius: 6px; padding: 10px; cursor: pointer;
}
.btn-generate {
  flex: 2;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e1e1e1; font-weight: 500; border-radius: 8px; padding: 12px;
  font-size: 0.85rem;
  animation: pulse-pop-simple 2s infinite;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s ease;
}
.btn-generate:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; transform: translateY(-1px); }

@keyframes pulse-pop-simple {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.05); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 4px rgba(255,255,255,0.02); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* SCENE 3 & 4: Terminal Processor */
.cinema-terminal {
  position: absolute;
  top: 50%; right: 0; left: auto;
  transform: translateY(-50%) translateX(100px);
  width: 420px;
  min-height: auto; min-height: 420px; padding-bottom: 24px;
  height: auto;
  padding-bottom: 24px;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.cinema-terminal.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.cinema-term-body {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #8b949e;
  display: flex; flex-direction: column; gap: 8px;
}
.t-line { opacity: 0; transform: translateY(5px); }

.t-success-block {
  margin-top: 16px;
  padding: 16px;
  background: rgba(63,185,80,0.05);
  border: 1px solid rgba(63,185,80,0.2);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
}
.s-row { color: #fff; margin-bottom: 8px; }

.btn-copy-prompt {
  width: 100%;
  margin-top: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; border-radius: 6px; padding: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s ease;
}
.btn-copy-prompt.copied {
  background: #3fb950;
  border-color: #3fb950;
  color: #000;
}

/* SCENE 5: VS Code Integration */
.cinema-vscode {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 1000px;
  height: 750px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}
.cinema-vscode.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.vscode-sidebar {
  width: 300px;
  border-right: 1px solid #333;
  background: #252526;
  padding: 16px;
  display: flex; flex-direction: column;
}
.vscode-editor {
  flex: 1;
  background: #1e1e1e;
  display: flex; flex-direction: column;
  position: relative;
}
.editor-header {
  height: 36px; background: #2d2d2d;
  display: flex; align-items: center; padding: 0 16px;
  font-size: 0.85rem; color: #969696; gap: 8px;
}
.editor-body {
  padding: 24px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
}
.code-line { padding: 2px 24px; display: flex; }
.line-num { width: 40px; color: #6e7681; text-align: right; margin-right: 16px; user-select: none; }

/* Chat Bubbles */
.chat-msg { margin-bottom: 24px; opacity: 0; transform: translateY(10px); }
.msg-header { font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.user-msg .msg-body {
  background: #2d2d2d; padding: 14px 16px; border-radius: 8px;
  font-size: 0.9rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #e1e1e1; line-height: 1.5; border: 1px solid rgba(255,255,255,0.05);
}
.ai-msg .msg-body {
  background: rgba(167,139,250,0.05); padding: 14px 16px; border-radius: 8px;
  border: 1px solid rgba(167,139,250,0.2);
  font-size: 0.9rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #e1e1e1; line-height: 1.5; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Animations */
.fade-in-up { animation: fade-in-up 0.4s forwards; }
@keyframes fade-in-up { to { opacity: 1; transform: translateY(0); } }

.cinema-final-success {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: flex; flex-direction: column; align-items: center;
  background: rgba(22, 24, 29, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1) inset;
  padding: 40px 60px; border-radius: 16px;
  opacity: 0; pointer-events: none;
  transition: all 0.5s ease;
}
.cinema-final-success.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.final-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,255,170,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}


@keyframes pulse-pop {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(0,255,170,0.4), 0 0 0 1px rgba(0,255,170,0.6) inset; }
  50% { transform: scale(1.03); box-shadow: 0 10px 25px rgba(255,255,255,0.4), 0 1px 0 rgba(255,255,255,1) inset, 0 0 20px rgba(255,255,255,0.3); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(0,255,170,0.4), 0 0 0 1px rgba(0,255,170,0.6) inset; }
}


/* ═══════════════════ MOBILE RESPONSIVE FIXES ═══════════════════ */
@media (max-width: 768px) {
  /* Global */
  .container { width: 92%; padding: 0 16px; }
  h1 { font-size: 2.8rem !important; line-height: 1.1; }
  h2 { font-size: 2.2rem !important; line-height: 1.2; }
  p { font-size: 1rem !important; }

  /* Hero Section */
  .hero { padding: 80px 0 40px; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-terminal { width: 100%; border-radius: 8px; font-size: 12px; overflow-x: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; justify-content: center; margin-bottom: 12px; }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Cinematic Stage - Scale it down */
  .cinematic-section {
    padding: 60px 0;
    overflow: hidden;
  }
  .cinematic-stage {
    transform: scale(0.35);
    transform-origin: top center;
    height: 220px !important;
    margin-top: 20px !important;
  }

  /* CTA Section */
  .cta-section h2 { font-size: 2.8rem !important; margin-bottom: 30px !important; }
  .cta-section div[style*="display: flex"] { flex-direction: column; gap: 12px; }
  .cta-section a { width: 100%; box-sizing: border-box; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px !important;
  }
  .footer-brand { margin-bottom: 20px; }
  .footer-cols {
    flex-direction: column !important;
    gap: 30px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 16px;
    align-items: flex-start !important;
  }
}


@media (max-width: 768px) {
  /* Prevent any horizontal overflow */
  body, html { overflow-x: hidden; width: 100%; }
  
  /* Hide desktop app downloads from navbar on phones */
  .nav-downloads { display: none !important; }
  
  /* Make sure all media behaves */
  img, svg, video { max-width: 100%; height: auto; }
  
  /* Ensure container doesn't push out */
  .container { max-width: 100vw !important; box-sizing: border-box; }
}
