/* ========================================================
   CatBridge — Cold Glass Design System
   Linear-inspired: near-black + ice blue + edge-lit glass
   ======================================================== */

/* ── Tokens ──────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --cb-dark-1: #08090a;
  --cb-dark-2: #0e1015;
  --cb-dark-3: #15171c;
  --cb-dark-4: #1c1e24;

  /* Text */
  --cb-text-heading: #e4e5e9;
  --cb-text-body: #b0b3ba;
  --cb-text-muted: #6b6f7b;
  --cb-text-faint: #44474f;
  --cb-text-link: #7cacf8;

  /* Borders */
  --cb-border-subtle: rgba(255, 255, 255, 0.06);
  --cb-border-default: rgba(255, 255, 255, 0.10);
  --cb-border-strong: rgba(255, 255, 255, 0.15);
  --cb-border-glow: rgba(124, 172, 248, 0.20);

  /* Accents */
  --cb-accent-blue: #5b9cf5;
  --cb-accent-blue-hover: #7cacf8;
  --cb-accent-blue-muted: rgba(91, 156, 245, 0.15);
  --cb-accent-blue-glow: rgba(91, 156, 245, 0.25);
  --cb-accent-cyan: #36d1c4;
  --cb-accent-cyan-muted: rgba(54, 209, 196, 0.12);
  --cb-accent-rose: #f76c82;
  --cb-accent-rose-muted: rgba(247, 108, 130, 0.12);
  --cb-accent-violet: #a78bfa;
  --cb-accent-violet-muted: rgba(167, 139, 250, 0.12);

  /* Semantic */
  --cb-success: #34d399;
  --cb-error: #fb7185;
  --cb-info: #5b9cf5;
  --cb-caution: #f76c82;

  /* Typography */
  --cb-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cb-font-kr: 'Noto Sans KR', 'Inter', sans-serif;
  --cb-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Layout */
  --cb-max-w: 1120px;
  --cb-radius: 3px;

  /* Shadows — Linear 3-layer pattern */
  --cb-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05),
               0 1px 1px 0 rgba(0, 0, 0, 0.20),
               0 4px 4px -1px rgba(0, 0, 0, 0.10);
  --cb-shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.08),
                     0 1px 1px 0 rgba(0, 0, 0, 0.20),
                     0 4px 8px -1px rgba(0, 0, 0, 0.15);
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Prevent any child from causing horizontal scroll on mobile */
  overflow-x: hidden;
}

body {
  font-family: var(--cb-font-sans);
  color: var(--cb-text-body);
  background: var(--cb-dark-1);
  line-height: 1.65;
  font-size: 0.9375rem;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: var(--cb-text-link); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cb-accent-blue-hover); }

img { max-width: 100%; height: auto; display: block; }
code {
  font-family: var(--cb-font-mono);
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cb-accent-blue-hover);
  padding: .15em .4em;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Layout ──────────────────────────────────────────── */
.cb-container { max-width: var(--cb-max-w); margin: 0 auto; padding: 0 2rem; }

.cb-section { padding: 5rem 0; }
.cb-section--dark { background: var(--cb-dark-1); color: var(--cb-text-heading); }
.cb-section--dark-2 { background: var(--cb-dark-2); color: var(--cb-text-heading); }

/* Full-page gradient: 4 stops, never lighter than #10121a */
.cb-page-gradient {
  background: linear-gradient(180deg,
    #08090a  0%,
    #08090a  35%,
    #0c0d12  65%,
    #10121a  100%
  );
}
.cb-page-gradient .cb-hero { background: none; }
.cb-page-gradient .cb-section { background: none; }

/* Cards & text on gradient */
.cb-page-gradient .cb-feature__title { color: var(--cb-text-heading); }
.cb-page-gradient .cb-feature__desc { color: var(--cb-text-muted); }
.cb-page-gradient .cb-sh__title { color: var(--cb-text-heading); }
.cb-page-gradient .cb-sh__desc { color: var(--cb-text-muted); }
.cb-page-gradient .cb-sh__label { color: var(--cb-accent-blue); }

/* Light-text section overrides (no longer needed but kept for compat) */
.cb-page-gradient .cb-section--light-text .cb-sh__title { color: var(--cb-text-heading); }
.cb-page-gradient .cb-section--light-text .cb-sh__desc { color: var(--cb-text-muted); }
.cb-page-gradient .cb-section--light-text .cb-sh__label { color: var(--cb-accent-blue); }
.cb-page-gradient .cb-section--light-text .cb-info__title,
.cb-page-gradient .cb-section--light-text p,
.cb-page-gradient .cb-section--light-text li,
.cb-page-gradient .cb-section--light-text td,
.cb-page-gradient .cb-section--light-text th { color: var(--cb-text-body); }
.cb-page-gradient .cb-section--light-text .cb-compare { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.08); }
.cb-page-gradient .cb-section--light-text .cb-info--tip { background: rgba(91, 156, 245, 0.06); }
.cb-page-gradient .cb-section--light-text .cb-info--tip .cb-info__title { color: var(--cb-accent-blue-hover); }
.cb-page-gradient .cb-section--light-text .cb-info--warn { background: rgba(247, 108, 130, 0.06); }
.cb-page-gradient .cb-section--light-text .cb-info--warn .cb-info__title { color: var(--cb-accent-rose); }
.cb-page-gradient .cb-section--light-text .cb-flow { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.06); }
.cb-page-gradient .cb-section--light-text .cb-flow__step { background: rgba(255, 255, 255, 0.04); color: var(--cb-text-muted); border-color: rgba(255, 255, 255, 0.08); }
.cb-page-gradient .cb-section--light-text .cb-flow__step--highlight { background: rgba(91, 156, 245, 0.15); color: var(--cb-accent-blue-hover); border-color: rgba(91, 156, 245, 0.30); }
.cb-page-gradient .cb-section--light-text .cb-flow__arrow { color: rgba(255, 255, 255, 0.12); }
.cb-page-gradient .cb-section--light-text .cb-next-step { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }
.cb-page-gradient .cb-section--light-text .cb-next-step strong { color: var(--cb-text-heading); }

/* ── Navigation ──────────────────────────────────────── */
.cb-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cb-nav__inner {
  max-width: var(--cb-max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  gap: 1rem;
  min-width: 0;
}
.cb-nav__inner > * { flex-shrink: 0; }
.cb-nav__inner > .cb-nav__links { flex-shrink: 1; min-width: 0; }
.cb-nav__logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--cb-text-heading);
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
}
.cb-nav__logo img {
  width: 32px; height: 32px;
  filter: contrast(1.15) brightness(.92) saturate(1.1);
}
.cb-nav__links { display: flex; gap: 1.75rem; list-style: none; }
.cb-nav__links a {
  color: var(--cb-text-muted); font-size: .8125rem; font-weight: 500;
  transition: color .15s;
}
.cb-nav__links a:hover,
.cb-nav__links a.is-active { color: var(--cb-text-heading); }
.cb-nav__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: 3px;
  background: var(--cb-accent-blue); color: #fff;
  font-size: .8125rem; font-weight: 600;
  transition: background .15s;
}
.cb-nav__cta:hover { background: var(--cb-accent-blue-hover); color: #fff; }

/* Mobile nav toggle */
.cb-nav__toggle {
  display: none; background: none; border: none; color: var(--cb-text-heading);
  cursor: pointer; padding: .25rem;
}
.cb-nav__toggle svg { width: 24px; height: 24px; }

/* ── Hero ─────────────────────────────────────────────── */
.cb-hero {
  background: transparent;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(91, 156, 245, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cb-hero__logo {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  filter: contrast(1.15) brightness(.92) saturate(1.1);
}
.cb-hero__badge {
  display: inline-block; margin-bottom: 1.25rem;
  padding: .25rem .75rem; border-radius: 3px;
  background: rgba(91, 156, 245, 0.10);
  border: 1px solid rgba(91, 156, 245, 0.20);
  color: var(--cb-accent-blue-hover);
  font-size: .6875rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
.cb-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: -.04em;
  line-height: 1.08; color: var(--cb-text-heading);
  max-width: 720px; margin: 0 auto .75rem;
}
.cb-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #7cacf8, #5b9cf5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cb-hero__sub {
  font-size: 1.0625rem; color: var(--cb-text-muted);
  max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.cb-hero__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────── */
.cb-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: 3px;
  font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .15s;
}
.cb-btn--primary {
  background: var(--cb-accent-blue); color: #fff;
  box-shadow: 0 0 16px rgba(91, 156, 245, 0.25);
}
.cb-btn--primary:hover {
  background: var(--cb-accent-blue-hover); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(91, 156, 245, 0.35);
}
.cb-btn--ghost {
  background: transparent; color: var(--cb-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cb-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cb-text-heading);
  border-color: rgba(255, 255, 255, 0.18);
}
.cb-btn--outline {
  background: transparent; color: var(--cb-accent-blue);
  border: 1px solid rgba(91, 156, 245, 0.30);
}
.cb-btn--outline:hover {
  background: rgba(91, 156, 245, 0.08);
  color: var(--cb-accent-blue-hover);
  border-color: rgba(91, 156, 245, 0.45);
}
.cb-btn--dark {
  background: var(--cb-dark-2); color: #fff;
}
.cb-btn--dark:hover { background: var(--cb-dark-3); color: #fff; }

/* ── Section Headers ─────────────────────────────────── */
.cb-sh { text-align: center; margin-bottom: 3rem; }
.cb-sh__label {
  display: inline-block; margin-bottom: .75rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cb-accent-blue);
}
.cb-sh__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: -.025em;
  color: var(--cb-text-heading); line-height: 1.2;
}
.cb-sh__desc {
  margin-top: .75rem; font-size: 1.0625rem;
  color: var(--cb-text-muted); max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ── Feature Grid ────────────────────────────────────── */
.cb-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--cb-radius);
  overflow: hidden;
}
.cb-feature {
  background: var(--cb-dark-2);
  padding: 2rem;
  transition: background .15s ease;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  border-radius: 0;
}
.cb-feature:hover {
  background: rgba(91, 156, 245, 0.06);
  box-shadow: inset 0 0 0 1px rgba(91, 156, 245, 0.12);
  color: inherit;
}
.cb-feature__icon {
  width: 32px; height: 32px; border-radius: var(--cb-radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .875rem; font-size: .875rem;
  background: rgba(91, 156, 245, 0.10);
  color: var(--cb-accent-blue);
  border: 1px solid rgba(91, 156, 245, 0.18);
}
.cb-feature__title {
  font-size: .9375rem; font-weight: 700;
  color: var(--cb-text-heading); margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.cb-feature__desc {
  font-size: .8125rem; color: var(--cb-text-muted);
  line-height: 1.6; flex: 1;
}
.cb-feature__tag {
  margin-top: .75rem; font-size: .6875rem; font-weight: 600;
  color: var(--cb-accent-blue); text-transform: uppercase; letter-spacing: .05em;
}

/* ── Glass Panel (base) ───────────────────────────────── */
.cb-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--cb-radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--cb-shadow);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cb-glass:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--cb-shadow-hover);
}

/* ── Comparison Table (Data Table) ──────────────────── */
.cb-compare {
  border-radius: var(--cb-radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cb-compare table { width: 100%; border-collapse: collapse; }
.cb-compare th {
  padding: .6rem 1rem; text-align: left;
  font-size: .6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--cb-text-faint);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.cb-compare td {
  padding: .65rem 1rem; text-align: left;
  font-size: .8125rem;
  color: var(--cb-text-body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cb-compare tr:last-child td { border-bottom: none; }
.cb-compare tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  transition: background .1s ease;
}
.cb-compare td strong { color: var(--cb-text-heading); }
.cb-compare .col-highlight { background: rgba(255, 255, 255, 0.02); }
.cb-compare .checkmark { color: var(--cb-success); font-weight: 700; }
.cb-compare .cross { color: var(--cb-error); font-weight: 700; }

/* ── Flow Diagram ────────────────────────────────────── */
.cb-flow {
  display: flex; align-items: center; justify-content: center;
  gap: .35rem; flex-wrap: wrap;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--cb-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cb-flow__step {
  padding: .4rem .85rem; border-radius: var(--cb-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: .8125rem; font-weight: 500;
  color: var(--cb-text-muted);
  white-space: nowrap; font-family: var(--cb-font-mono);
}
.cb-flow__step--highlight {
  background: rgba(91, 156, 245, 0.15);
  border-color: rgba(91, 156, 245, 0.30);
  color: var(--cb-accent-blue-hover);
  font-weight: 700;
  font-family: var(--cb-font-sans);
}
.cb-flow__arrow { color: rgba(255, 255, 255, 0.12); font-size: .75rem; user-select: none; }

/* ── Info Cards ──────────────────────────────────────── */
.cb-info {
  display: flex;
  border-radius: var(--cb-radius);
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: .8125rem; line-height: 1.65;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--cb-text-muted);
  border-radius: 0 var(--cb-radius) var(--cb-radius) 0;
  padding: .875rem 1.25rem;
  flex-direction: column;
  color: var(--cb-text-body);
}
.cb-info__title {
  font-weight: 600; margin-bottom: .3rem;
  font-size: .6875rem;
  letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.4;
  color: var(--cb-text-body);
}

/* Tip variant */
.cb-info--tip {
  border-left-color: var(--cb-accent-blue);
  background: rgba(91, 156, 245, 0.06);
  border-color: rgba(91, 156, 245, 0.10);
  border-left-color: var(--cb-accent-blue);
}
.cb-info--tip .cb-info__title { color: var(--cb-accent-blue-hover); }

/* Warn variant */
.cb-info--warn {
  border-left-color: var(--cb-accent-rose);
  background: rgba(247, 108, 130, 0.06);
  border-color: rgba(247, 108, 130, 0.10);
  border-left-color: var(--cb-accent-rose);
}
.cb-info--warn .cb-info__title { color: var(--cb-accent-rose); }

/* Note variant (default) */
.cb-info--note {
  border-left-color: var(--cb-text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--cb-text-muted);
}
.cb-info--note .cb-info__title { color: var(--cb-text-body); }

/* ── CTA Banner ──────────────────────────────────────── */
.cb-cta-banner {
  text-align: center; padding: 4rem 2rem;
  background: none;
}
.cb-cta-banner__title {
  font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem;
  letter-spacing: -.02em;
  color: var(--cb-text-heading);
}
.cb-cta-banner__desc {
  color: var(--cb-text-muted); margin-bottom: 2rem;
  font-size: 1rem;
}
.cb-cta-banner__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────── */
.cb-footer {
  background: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0; text-align: center;
  font-size: .8125rem; color: var(--cb-text-faint);
}
.cb-footer a { color: var(--cb-text-muted); transition: color .15s; }
.cb-footer a:hover { color: var(--cb-text-body); }
.cb-footer__links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: .75rem; flex-wrap: wrap; }
.cb-footer__credit {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .35rem;
}
.cb-footer__credit strong {
  color: rgba(124,172,248,.9);
  font-weight: 600;
}

/* ── Subpage Layout ──────────────────────────────────── */
.cb-subpage-gradient {
  background: linear-gradient(180deg,
    #08090a  0%,
    #08090a  25%,
    #0c0d12  60%,
    #10121a  100%
  );
}
.cb-subpage-gradient .cb-page-hero { background: none; }
.cb-page-hero {
  background: transparent;
  padding: 4rem 0 3rem; text-align: center;
}
.cb-page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--cb-text-heading);
  line-height: 1.12;
}
.cb-page-hero__sub {
  margin-top: .75rem; font-size: 1.0625rem;
  color: var(--cb-text-muted); max-width: 600px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

.cb-content {
  max-width: 780px; margin: 0 auto;
  padding: 3rem 2rem 5rem;
  color: var(--cb-text-body);
}
.cb-content h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em;
  color: var(--cb-text-heading); margin: 3rem 0 1rem;
  padding-top: 1rem;
  line-height: 1.2;
}
.cb-content h2:first-child { margin-top: 0; padding-top: 0; }
.cb-content h3 {
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em;
  color: var(--cb-text-heading); margin: 2rem 0 .75rem;
  line-height: 1.3;
}
.cb-content p { margin-bottom: 1rem; color: var(--cb-text-body); }
.cb-content ul, .cb-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.cb-content li { margin-bottom: .35rem; color: var(--cb-text-body); }
.cb-content strong { color: var(--cb-text-heading); }
.cb-content a { color: var(--cb-text-link); }
.cb-content a:hover { color: var(--cb-accent-blue-hover); }
.cb-content code {
  background: rgba(255, 255, 255, 0.08); color: var(--cb-accent-blue-hover);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cb-content figure { margin: 1.5rem 0; }
.cb-content figure img {
  border-radius: 3px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.cb-content figcaption {
  font-size: .8125rem; color: var(--cb-text-faint);
  text-align: center; margin-top: .5rem;
}

/* ── Breadcrumb ──────────────────────────────────────── */
.cb-breadcrumb {
  list-style: none; display: flex; gap: .4rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  color: var(--cb-text-muted);
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.cb-breadcrumb a { color: var(--cb-text-muted); }
.cb-breadcrumb a:hover { color: var(--cb-text-heading); }
.cb-breadcrumb li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }

/* ── Screenshot Grid ─────────────────────────────────── */
.cb-shots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.cb-shots figure {
  margin: 0; background: var(--cb-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 3px;
  padding: .75rem; display: flex; flex-direction: column; gap: .5rem;
}
.cb-shots img {
  width: 100%; border-radius: 3px;
  cursor: zoom-in; transition: opacity .15s;
}
.cb-shots img:hover { opacity: .85; }
.cb-shots figcaption {
  font-size: .75rem; color: var(--cb-text-muted);
  text-align: center; line-height: 1.5;
}

/* ── Side-by-Side Compare ────────────────────────────── */
.cb-compare-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0;
}
.cb-compare-pair figure {
  margin: 0; background: var(--cb-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px; padding: .75rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.cb-compare-pair img { width: 100%; border-radius: 3px; }
.cb-compare-pair figcaption { font-size: .75rem; color: var(--cb-text-muted); text-align: center; }
.cb-engine-label {
  font-size: .8125rem; font-weight: 700; text-align: center;
  padding: .35rem .75rem; border-radius: 3px;
}
.cb-engine-label--google { background: var(--cb-dark-3); color: var(--cb-text-muted); }
.cb-engine-label--gemini { background: linear-gradient(90deg, #5b9cf5, #7cacf8); color: #fff; }

/* ── Mode Compare ────────────────────────────────────── */
.cb-mode-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.25rem 0; }
.cb-mode-compare > div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px; padding: 1rem 1.25rem;
}
.cb-mode-compare h3 {
  margin: 0 0 .5rem; font-size: .6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.cb-mode-compare p { margin: .25rem 0; font-size: .8125rem; color: var(--cb-text-muted); }
.cb-mode-compare .mode-fast h3 { color: rgba(91, 156, 245, 0.60); }
.cb-mode-compare .mode-slow h3 { color: rgba(167, 139, 250, 0.60); }

/* ── Can/Cannot Grid ─────────────────────────────────── */
.cb-can-cannot { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.25rem 0; }
.cb-can-cannot > div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px; padding: 1rem 1.25rem;
}
.cb-can-cannot ul { margin: 0; padding-left: 1.15rem; font-size: .8125rem; line-height: 1.7; color: var(--cb-text-muted); }
.cb-can-cannot h3 {
  margin: 0 0 .5rem; font-size: .6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.cb-can-cannot .can { border-left: 3px solid var(--cb-accent-cyan); }
.cb-can-cannot .can h3 { color: rgba(54, 209, 196, 0.60); }
.cb-can-cannot .cannot { border-left: 3px solid var(--cb-accent-rose); }
.cb-can-cannot .cannot h3 { color: rgba(247, 108, 130, 0.60); }

/* ── Next Steps ──────────────────────────────────────── */
.cb-next-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.cb-next-step {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none; color: inherit;
  transition: background .15s ease, border-color .15s ease;
  box-shadow: var(--cb-shadow);
}
.cb-next-step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: inherit;
}
.cb-next-step strong { display: block; font-size: .875rem; color: var(--cb-text-heading); }
.cb-next-step span { font-size: .75rem; color: var(--cb-text-muted); }
.cb-next-step__arrow { font-size: 1rem; color: rgba(255, 255, 255, 0.15); flex-shrink: 0; margin-left: 1rem; }

/* ── Lightbox ────────────────────────────────────────── */
.cb-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: none; align-items: center; justify-content: center;
  padding: 2rem; cursor: zoom-out;
  animation: cb-fade .2s ease;
}
.cb-lightbox.is-open { display: flex; }
.cb-lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 3px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.cb-lightbox__close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cb-lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }
@keyframes cb-fade { from { opacity: 0 } to { opacity: 1 } }

/* ── Language Toggle ──────────────────────────────────── */
/* Default: English visible, Korean hidden */
body [lang="ko"] { display: none !important; }
body.lang-ko [lang="en"] { display: none !important; }
body.lang-ko [lang="ko"] { display: revert !important; }
/* Block-level elements need block display when visible */
body.lang-ko p[lang="ko"],
body.lang-ko div[lang="ko"],
body.lang-ko li[lang="ko"],
body.lang-ko h1[lang="ko"],
body.lang-ko h2[lang="ko"],
body.lang-ko h3[lang="ko"],
body.lang-ko ol[lang="ko"],
body.lang-ko ul[lang="ko"],
body.lang-ko section[lang="ko"],
body.lang-ko figcaption[lang="ko"] { display: block !important; }
body.lang-ko ul.cb-breadcrumb[lang="ko"] { display: flex !important; }
body.lang-ko span[lang="ko"] { display: inline !important; }
body.lang-ko tr[lang="ko"] { display: table-row !important; }
body.lang-ko td[lang="ko"],
body.lang-ko th[lang="ko"] { display: table-cell !important; }
body.lang-ko a[lang="ko"] { display: inline-flex !important; }
body.lang-ko a.cb-feature[lang="ko"],
body.lang-ko a.cb-next-step[lang="ko"],
body.lang-ko div.cb-feature[lang="ko"] { display: flex !important; }
body.lang-ko div.cb-next-steps[lang="ko"] { display: grid !important; }
body.lang-ko div.cb-activity-grid[lang="ko"] { display: grid !important; }

/* Toggle button in nav */
.cb-lang-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--cb-text-muted); font-size: .75rem; font-weight: 600;
  cursor: pointer; transition: all .15s; letter-spacing: .02em;
  margin-right: .5rem;
}
.cb-lang-toggle:hover { background: rgba(255, 255, 255, 0.10); color: var(--cb-text-heading); }
.cb-lang-toggle .lang-active { color: #fff; }
.cb-lang-toggle .lang-sep { opacity: .4; }

/* ── Activity Card (inline styles replacement) ──────── */
.cb-activity-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--cb-accent-blue);
  border-radius: 0 3px 3px 0;
  padding: .85rem 1rem;
}
.cb-activity-card strong {
  display: block; font-size: .875rem;
  color: var(--cb-accent-blue);
}
.cb-activity-card p {
  margin: .25rem 0 0; font-size: .8125rem;
  color: var(--cb-text-muted);
}

/* ── Hero Shot ───────────────────────────────────────── */
.cb-hero-shot {
  max-width: 780px;
  margin: 0 auto;
  border-radius: var(--cb-radius);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05),
              0 1px 1px 0 rgba(0,0,0,0.20),
              0 8px 24px -4px rgba(0,0,0,0.40);
}
.cb-hero-shot figcaption {
  font-size: 0.8125rem;
  color: var(--cb-text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* ── Utility ────────────────────────────────────────── */
.cb-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

/* ── Activity Grid ──────────────────────────────────── */
.cb-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* ── Solo Shot (single screenshot in content) ────────── */
.cb-shot-solo {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.cb-shot-solo img {
  max-width: 480px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  display: block;
  margin: 0 auto;
}
.cb-shot-solo figcaption {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  text-align: center;
  line-height: 1.5;
}

/* ── Hero Showcase Pair (landing) ────────────────────── */
.cb-shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}
.cb-shot-pair__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cb-shot-pair__item img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02);
  display: block;
}
.cb-shot-pair__item figcaption {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  line-height: 1.5;
}
.cb-shot-pair__item figcaption strong {
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

/* ── Option Grid (3-tier pricing cards) ─────────────── */
.cb-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1.5rem 0;
}
.cb-option {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.cb-option--accent {
  background: rgba(96,165,250,.04);
  border-color: rgba(96,165,250,.2);
}
.cb-option__tag {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.cb-option--accent .cb-option__tag {
  color: rgba(147,197,253,.9);
}
.cb-option__title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  letter-spacing: -.01em;
}
.cb-option p {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  flex: 1;
}
.cb-option__meta {
  font-size: .6875rem;
  color: rgba(255,255,255,.35);
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: .25rem;
}

/* ── Hero-sized Solo Shot (Meet the App) ────────────── */
.cb-shot-hero {
  margin: 2rem auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.cb-shot-hero img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03);
  display: block;
}
.cb-shot-hero figcaption {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  line-height: 1.5;
}

/* ── Shot note (caption under showcases) ────────────── */
.cb-shot-note {
  max-width: 720px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.cb-shot-note strong { color: rgba(255,255,255,.75); font-weight: 600; }

/* ── Quad Showcase (2x2 promo grid) ──────────────────── */
.cb-shot-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}
.cb-shot-quad__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.cb-shot-quad__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02);
  display: block;
  background: rgba(0,0,0,.3);
}
.cb-shot-quad__item figcaption {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  line-height: 1.5;
}
.cb-shot-quad__item figcaption strong {
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

/* ── Language Chat Grid (6 screenshots) ─────────────── */
.cb-chat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.cb-chat-grid figure {
  margin: 0;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.cb-chat-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  display: block;
}
.cb-chat-grid figcaption {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-align: center;
  line-height: 1.5;
}
.cb-chat-grid figcaption strong {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  display: block;
  margin-bottom: .1rem;
}

/* ── Paired Screenshots (side-by-side with label) ────── */
.cb-shot-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.cb-shot-side figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.cb-shot-side img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  display: block;
}
.cb-shot-side figcaption {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* ── Download Card (big, obvious) ────────────────────── */
.cb-download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.cb-dl-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
  position: relative;
}
.cb-dl-card:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.cb-dl-card--primary {
  background: linear-gradient(140deg, rgba(91,156,245,.12), rgba(91,156,245,.04));
  border-color: rgba(91,156,245,.35);
}
.cb-dl-card--primary:hover {
  background: linear-gradient(140deg, rgba(91,156,245,.18), rgba(91,156,245,.06));
  border-color: rgba(91,156,245,.55);
}
.cb-dl-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(247,108,130,.95);
  background: rgba(247,108,130,.1);
  border: 1px solid rgba(247,108,130,.3);
  padding: .2rem .55rem;
  border-radius: 999px;
  width: fit-content;
}
.cb-dl-card--primary .cb-dl-card__badge {
  color: rgba(91,156,245,.95);
  background: rgba(91,156,245,.12);
  border-color: rgba(91,156,245,.4);
}
.cb-dl-card__step {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.cb-dl-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cb-dl-card__title .arrow { color: rgba(91,156,245,.7); transition: transform .15s; }
.cb-dl-card:hover .cb-dl-card__title .arrow { transform: translateX(3px); }
.cb-dl-card__desc {
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
  flex: 1;
}
.cb-dl-card__file {
  font-family: var(--cb-font-mono, ui-monospace, monospace);
  font-size: .75rem;
  color: rgba(91,156,245,.8);
  background: rgba(91,156,245,.08);
  border: 1px solid rgba(91,156,245,.18);
  padding: .3rem .55rem;
  border-radius: 4px;
  width: fit-content;
}
.cb-dl-card__source {
  font-size: .6875rem;
  color: rgba(255,255,255,.35);
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: .25rem;
}

/* ── Lightbox ────────────────────────────────────────── */
.cb-lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 6, 8, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .2s ease;
}
.cb-lightbox.is-open {
  display: flex;
  opacity: 1;
}
.cb-lightbox__img {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  object-fit: contain;
  display: block;
  cursor: default;
}
.cb-lightbox__caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: .5rem 1rem;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  color: rgba(255,255,255,.85);
  font-size: .8125rem;
  text-align: center;
  pointer-events: none;
}
.cb-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.cb-lightbox__close:hover {
  background: rgba(255,255,255,.15);
  transform: scale(1.05);
}
/* Make zoomable images look interactive */
.cb-shot-hero img,
.cb-shot-quad__item img,
.cb-shot-pair__item img,
.cb-shot-solo img,
.cb-chat-grid img,
.cb-shot-side img,
.cb-compare-pair img {
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cb-shot-hero img:hover,
.cb-shot-quad__item img:hover,
.cb-shot-pair__item img:hover,
.cb-shot-solo img:hover,
.cb-chat-grid img:hover,
.cb-shot-side img:hover,
.cb-compare-pair img:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(124,172,248,.25);
}
@media (max-width: 768px) {
  .cb-lightbox { padding: 1rem; }
  .cb-lightbox__close { top: .75rem; right: .75rem; width: 36px; height: 36px; }
  .cb-lightbox__caption { font-size: .75rem; bottom: .75rem; }
}

/* ── KR Font Stack & Word Break ──────────────────────── */
body.lang-ko { font-family: var(--cb-font-kr); }

/* Korean wraps at character boundaries by default which produces ugly
   breaks mid-word (e.g. "됩" + newline + "니다"). keep-all forces breaks
   at word/space boundaries, and overflow-wrap: anywhere lets long tokens
   (URLs, code) still break when they have to. */
[lang="ko"] {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
/* Don't break inside code/URL spans */
[lang="ko"] code,
[lang="ko"] a code {
  word-break: normal;
  overflow-wrap: normal;
}
/* English: prevent long tokens from overflowing but keep natural word wrap */
[lang="en"] {
  overflow-wrap: break-word;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .cb-container { padding: 0 1.1rem; }
  .cb-features { grid-template-columns: 1fr; }
  .cb-option-grid { grid-template-columns: 1fr; }
  .cb-shot-pair { grid-template-columns: 1fr; }
  .cb-shot-quad { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .cb-shot-quad__item figcaption { font-size: .6875rem; }
  .cb-chat-grid { grid-template-columns: 1fr; gap: .85rem; }
  .cb-shot-side { grid-template-columns: 1fr; gap: 1rem; }
  .cb-download-cards { grid-template-columns: 1fr; gap: .75rem; }
  .cb-dl-card { padding: 1.1rem 1.15rem 1.25rem; }
  .cb-compare-pair, .cb-mode-compare, .cb-can-cannot { grid-template-columns: 1fr; }
  .cb-hero { padding: 3rem 0 2.5rem; }
  .cb-section { padding: 2.75rem 0; }
  .cb-section .cb-sh { margin-bottom: 1.5rem; }
  .cb-content { padding: 2rem 1.1rem 3rem; }
  .cb-shot-hero { margin-top: 1.5rem; }

  /* Nav: hide links, show hamburger, fix spacing */
  .cb-nav__inner {
    padding: 0 .75rem;
    gap: .35rem;
    height: 54px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .cb-nav__logo { margin-right: auto; }  /* pushes everything else to the right */
  .cb-nav__links { display: none; }
  .cb-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .cb-nav__toggle svg { width: 22px; height: 22px; }
  .cb-nav__logo { font-size: .875rem; gap: .35rem; min-width: 0; }
  .cb-nav__logo img { width: 24px; height: 24px; flex-shrink: 0; }
  .cb-lang-toggle { font-size: .6875rem; padding: .2rem .45rem; margin: 0; flex-shrink: 0; }
  /* Hide header download CTA on mobile — hero/banner download buttons remain */
  .cb-nav__cta { display: none; }

  /* Mobile nav drawer when hamburger is open */
  .cb-nav__links.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: rgba(8,9,10,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: .75rem 1rem 1rem;
    gap: .25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
    list-style: none; margin: 0;
    z-index: 100;
  }
  .cb-nav__links.is-open li a {
    display: block;
    padding: .75rem .85rem;
    border-radius: 6px;
    font-size: .9375rem;
    color: rgba(255,255,255,.85);
  }
  .cb-nav__links.is-open li a:hover,
  .cb-nav__links.is-open li a.is-active {
    background: rgba(255,255,255,.05);
    color: #fff;
  }

  /* Tables: horizontal scroll */
  .cb-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cb-compare table { min-width: 480px; }

  /* Hero screenshot: full width, no overflow */
  .cb-hero-shot { width: 100%; max-width: 100%; border-radius: 8px; }

  /* Flow diagram */
  .cb-flow { flex-direction: column; gap: .25rem; }
  .cb-flow__arrow { transform: rotate(90deg); }

  /* Hero title size — override clamp() with explicit mobile size */
  .cb-hero__title {
    font-size: 1.625rem !important;
    line-height: 1.15;
    max-width: 100%;
    padding: 0 .5rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .cb-hero__sub { font-size: .9375rem; padding: 0 .75rem; max-width: 100%; }
  .cb-hero__actions { padding: 0 .75rem; }
  .cb-hero__actions .cb-btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
  .cb-page-hero__title { font-size: 1.5rem; word-break: keep-all; }
  .cb-page-hero__sub { font-size: .9375rem; word-break: keep-all; }

  /* Section headers scale down */
  .cb-sh__title { font-size: 1.4rem; word-break: keep-all; }
  .cb-sh__desc { font-size: .9375rem; word-break: keep-all; }
}

@media (max-width: 380px) {
  .cb-hero__title { font-size: 1.4rem !important; }
  .cb-sh__title { font-size: 1.25rem; }
  .cb-nav__logo { font-size: .8125rem; }
  .cb-nav__logo img { width: 22px; height: 22px; }
  .cb-nav__inner { padding: 0 .7rem; gap: .3rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cb-features { grid-template-columns: repeat(2, 1fr); }
  .cb-shot-quad { grid-template-columns: repeat(2, 1fr); }
  .cb-chat-grid { grid-template-columns: repeat(2, 1fr); }
  .cb-download-cards { grid-template-columns: 1fr; }
}
