/* ============================================
   CEREBRO LABS — Landing v3
   Video hero + Knowledge Graph + Character edition
   ============================================ */

/* Screen-reader / crawler only — hidden visually, readable by bots */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --color-bg: #000000;
  --color-bg-alt: #06060e;
  --color-bg-card: #0a0a16;
  --color-surface: #111122;
  --color-border: #1a1a2e;
  --color-border-hover: #2a2a44;
  --color-text: #e8e8f0;
  --color-text-muted: #9898b0;
  --color-text-dim: #7a7a92;
  --color-accent: #6c5ce7;
  --color-accent-light: #a29bfe;
  --color-accent-glow: rgba(108, 92, 231, 0.15);
  --color-green: #00cec9;
  --color-green-dim: rgba(0, 206, 201, 0.12);
  --color-yellow: #ffa502;
  --color-red: #ff6b6b;
  --color-red-dim: rgba(255, 107, 107, 0.1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 1140px;
  --max-width-narrow: 720px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: #fff; }

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

/* ---- LAYOUT ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--color-bg-alt);
}

.section--accent {
  background: linear-gradient(135deg, var(--color-accent-glow), var(--color-bg-alt));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-align: center;
}

.section__subtitle {
  color: var(--color-text-muted);
  text-align: center;
  max-width: 65ch;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.section__mid-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  text-align: center;
  margin: 72px 0 32px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ---- NAV ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav--scrolled {
  border-bottom-color: var(--color-border);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo:hover { color: #fff; }

.nav__logo-img { height: 52px; width: auto; border-radius: 50%; }

.footer__logo-img {
  height: 80px;
  width: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.12));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: #fff; }

.nav__mobile-right {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.2s;
}

/* Language switcher */

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--color-border-hover);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.lang-switch:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  background: var(--color-accent-glow);
}

.lang-switch--mobile {
  display: none;
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm { font-size: 0.85rem; padding: 6px 16px; }
.btn--lg { font-size: 1rem; padding: 14px 32px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: #7c6cf0;
  border-color: #7c6cf0;
  color: #fff;
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-text-muted);
  color: #fff;
}

/* ---- HERO (v3: video left, copy right) ---- */

.hero {
  padding: 140px 0 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.hero__video-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(108, 92, 231, 0.08);
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__video-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20%;
  border-radius: 50%;
}

.hero__right {
  max-width: 560px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent-light);
  background: var(--color-accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.25);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 65ch;
}

.hero__closer {
  font-size: 1.05rem;
  color: var(--color-accent-light);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.hero__note a {
  color: var(--color-accent-light);
}

.hero__code {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-comment { color: var(--color-text-dim); }
.code-keyword { color: var(--color-accent-light); }
.code-string { color: var(--color-green); }
.code-dim { color: var(--color-text-dim); }
.code-green { color: var(--color-green); }
.code-yellow { color: var(--color-yellow); }
.code-red { color: var(--color-red); }

/* ---- KNOWLEDGE GRAPH DIAGRAM ---- */

.kg-diagram {
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.kg-diagram.visible {
  opacity: 1;
  transform: translateY(0);
}

.kg-svg {
  width: 100%;
  height: auto;
}

.kg-edge {
  stroke: rgba(108, 92, 231, 0.3);
  stroke-width: 1.5;
}

.kg-edge--secondary {
  stroke: rgba(108, 92, 231, 0.15);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.kg-node {
  fill: var(--color-bg-alt);
  stroke-width: 1.5;
  transition: all 0.3s;
}

.kg-node--primary {
  stroke: var(--color-accent-light);
  fill: rgba(108, 92, 231, 0.15);
}

.kg-node--function {
  stroke: var(--color-green);
  fill: rgba(0, 206, 201, 0.1);
}

.kg-node--adr {
  stroke: var(--color-yellow);
  fill: rgba(255, 165, 2, 0.1);
}

.kg-node--dep {
  stroke: var(--color-text-dim);
  fill: rgba(92, 92, 114, 0.1);
}

.kg-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-text);
}

.kg-label--small {
  font-size: 9px;
  font-weight: 500;
  fill: var(--color-text-muted);
}

/* ---- HOW IT WORKS INTRO ---- */

.how-intro {
  text-align: center;
  margin-bottom: 16px;
}

.how-intro__headline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.how-intro__subhead {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ---- PROBLEM ---- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.problem-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.problem-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.problem-card:hover::before { opacity: 1; }

.problem-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-red-dim);
  color: var(--color-red);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.problem-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 65ch;
}

/* ---- SOLUTION ---- */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.solution-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-green);
  border-radius: var(--radius-lg);
  padding: 36px 36px 36px 32px;
  transition: all 0.3s;
  position: relative;
}

.solution-card:hover {
  border-color: var(--color-green);
  border-left-color: var(--color-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 206, 201, 0.08);
}

.solution-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-green-dim);
  color: var(--color-green);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.solution-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 65ch;
}

/* ---- FLOW ---- */

.flow {
  max-width: 620px;
  margin: 48px auto 0;
}

.flow__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: all 0.3s;
}

.flow__step:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.flow__step-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.flow__icon {
  width: 22px;
  height: 22px;
}

.flow__step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: #fff;
}

.flow__step-content p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 65ch;
}

.flow__connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
  margin-left: 40px;
  border-radius: 1px;
}

.flow__footnote {
  text-align: center;
  color: var(--color-text-dim);
  font-size: 0.88rem;
  margin-top: 36px;
}

/* ---- COMPARISON TABLE ---- */

.table-wrapper {
  overflow-x: auto;
  margin-top: 48px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  color: var(--color-text-muted);
}

.comparison-table td.highlight,
.comparison-table th.highlight {
  color: var(--color-green);
  font-weight: 600;
  background: var(--color-green-dim);
}

/* ---- DEEP DIVE ---- */

.deepdive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.deepdive-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.deepdive-card:hover {
  border-color: var(--color-accent);
  border-top-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--color-accent-glow);
}

.deepdive-card__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.deepdive-card__icon {
  width: 28px;
  height: 28px;
}

.deepdive-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-accent-light);
  background: var(--color-accent-glow);
  padding: 2px 8px;
  border-radius: 4px;
}

.deepdive-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 65ch;
}

.deepdive-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.deepdive-card li {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.deepdive-card li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.85rem;
}

.deepdive-card__detail {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 8px;
  margin-bottom: 0;
}

/* ---- DEEP DIVE EXAMPLE ---- */

.deepdive-example {
  margin-top: 56px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.deepdive-example h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dim);
  margin-bottom: 16px;
  text-align: center;
}

/* ---- TECH LOGOS ---- */

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 56px;
  padding: 32px 0;
}

.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.tech-logo:hover { opacity: 1; }

.tech-logo svg,
.tech-logo img {
  width: 44px;
  height: 44px;
}

.tech-logo span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-dim);
}

/* ---- FAQ ---- */

.faq-list {
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-text-dim);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  color: var(--color-text-muted);
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- WAITLIST FORM ---- */

.waitlist-form {
  margin-top: 36px;
}

.waitlist-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.waitlist-form__row--full {
  grid-template-columns: 1fr;
}

.waitlist-form__input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.waitlist-form__input:focus { border-color: var(--color-accent); }
.waitlist-form__input::placeholder { color: var(--color-text-dim); }

.waitlist-form__input option {
  background: var(--color-bg);
  color: var(--color-text);
}

.waitlist-form button { margin-top: 8px; }

.waitlist-form__disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: 12px;
}

.waitlist-success {
  text-align: center;
  padding: 40px 0;
}

.waitlist-success h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--color-green);
}

.waitlist-success p {
  color: var(--color-text-muted);
}

/* ---- FOOTER ---- */

.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 40px;
}

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

.footer__brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer__company { margin-top: 4px; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links .footer__heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.footer__links a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer__links a:hover { color: #fff; }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer__bottom p {
  color: var(--color-text-dim);
  font-size: 0.82rem;
}

.footer__creator {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 8px;
}

/* ---- MOBILE STICKY CTA ---- */

.mobile-sticky-cta {
  display: none;
  transition: transform 0.3s ease;
}

.mobile-sticky-cta.hidden {
  transform: translateY(100%);
}

/* ---- SCROLL ANIMATIONS ---- */

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in:nth-child(2) { transition-delay: 0.08s; }
.animate-in:nth-child(3) { transition-delay: 0.16s; }
.animate-in:nth-child(4) { transition-delay: 0.24s; }
.animate-in:nth-child(5) { transition-delay: 0.32s; }
.animate-in:nth-child(6) { transition-delay: 0.40s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .section { padding: 48px 0; }

  /* Reduce typography on mobile */
  .section__title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section__subtitle { font-size: 0.92rem; margin-bottom: 32px; }
  .section__mid-title { font-size: 1.2rem; margin: 48px 0 24px; }

  .nav__links { display: none; }
  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    gap: 16px;
  }

  .nav__links .lang-switch { display: none; }
  .nav__mobile-right { display: flex; }
  .nav__mobile-toggle { display: flex; }
  .lang-switch--mobile { display: inline-flex; }

  .hero { padding-top: 96px; padding-bottom: 32px; }

  .hero__split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Mobile: logo instead of video */
  .hero__left {
    order: -1;
    align-items: center;
    text-align: center;
  }

  .hero__video-container { display: none; }
  .hero__tagline { display: none; }

  .hero__left::after {
    content: '';
    display: block;
    width: 180px;
    height: 180px;
    background: url('assets/logo.webp') center/contain no-repeat;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(108, 92, 231, 0.15));
  }

  .hero__right {
    max-width: 100%;
    text-align: center;
  }

  .hero__badge { margin-bottom: 20px; font-size: 0.72rem; }

  .hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: 0.92rem;
  }

  .hero__closer {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .hero__cta {
    flex-direction: column;
    justify-content: center;
  }
  .hero__cta .btn { width: 100%; padding: 12px 24px; font-size: 0.92rem; }
  .hero__note { text-align: center; font-size: 0.8rem; }

  /* How intro mobile */
  .how-intro__headline { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .how-intro__subhead { font-size: 0.88rem; }

  /* Cards tighter on mobile */
  .problem-card { padding: 24px; }
  .problem-card h3 { font-size: 1rem; }
  .problem-card p { font-size: 0.88rem; }

  .solution-card { padding: 28px 24px 28px 24px; }
  .solution-card h3 { font-size: 1.05rem; }
  .solution-card p { font-size: 0.88rem; }

  .deepdive-card { padding: 24px; }
  .deepdive-card h3 { font-size: 0.95rem; }
  .deepdive-card p { font-size: 0.85rem; }
  .deepdive-card li { font-size: 0.82rem; }

  .flow__step { padding: 18px 20px; gap: 14px; }
  .flow__step-number { width: 36px; height: 36px; }
  .flow__icon { width: 18px; height: 18px; }
  .flow__step-content h4 { font-size: 0.95rem; }
  .flow__step-content p { font-size: 0.82rem; }
  .flow__connector { height: 14px; margin-left: 34px; }

  .problem-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .deepdive-grid { grid-template-columns: 1fr; }

  .waitlist-form__row { grid-template-columns: 1fr; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .comparison-table { font-size: 0.78rem; }
  .comparison-table th,
  .comparison-table td { padding: 8px 10px; }

  /* FAQ mobile */
  .faq-item summary { font-size: 0.92rem; }
  .faq-item p { font-size: 0.85rem; }

  /* Code block mobile */
  .hero__code { padding: 18px 16px; font-size: 0.78rem; }
  .deepdive-example h3 { font-size: 0.88rem; }

  /* Mobile sticky CTA */
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
  }

  .mobile-sticky-cta .btn {
    font-size: 0.88rem;
    padding: 11px 20px;
  }


  /* KG diagram */
  .kg-diagram {
    margin: 0 -12px;
  }

  /* Tech logos smaller */
  .tech-logos { gap: 24px; margin-top: 32px; }
  .tech-logo svg, .tech-logo img { width: 32px; height: 32px; }
  .tech-logo span { font-size: 0.62rem; }
}

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

  .hero__left::after {
    width: 150px;
    height: 150px;
  }

  .hero__title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }

  .faq-item summary { font-size: 0.85rem; }
  .faq-item p { font-size: 0.8rem; }

  .problem-card { padding: 20px; }
  .solution-card { padding: 22px 20px; }
}

/* ============================================
   MOBILE / DESKTOP VISIBILITY UTILITIES
   ============================================ */
.show-on-mobile { display: none; }

@media (max-width: 768px) {
  .show-on-mobile          { display: block; }
  .show-on-mobile.problem-grid { display: grid; }
  .hide-on-mobile          { display: none !important; }

  .mob-closing {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.75;
    font-style: italic;
    padding: 0 8px;
  }
}
