/* ==========================================================================
   Nexus Landing Page — Main Stylesheet
   BEM naming convention: block__element--modifier
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-ui:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:  ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, monospace;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Backgrounds */
  --bg-0: #08080a;
  --bg-1: #0e0e11;
  --bg-2: #13131a;
  --bg-3: #1c1c25;

  /* Foregrounds */
  --fg-0: #ffffff;
  --fg-1: #e4e4e7;
  --fg-2: #a1a1aa;
  --fg-3: #71717a;
  --fg-4: #52525b;

  /* Borders */
  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.20);

  /* Accent — purple */
  --accent:      #a78bfa;
  --accent-2:    #8b5cf6;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-text: #c4b5fd;

  /* Accent variants */
  --accent-cyan:  #22d3ee;
  --accent-amber: #f59e0b;
  --accent-green: #22c55e;
  --accent-red:   #f87171;
  --accent-mobile: #6366f1;
  --accent-vision: #d97706;

  /* Status */
  --status-running: #22c55e;
  --status-waiting: #eab308;
  --status-idle:    #6b7280;
  --status-error:   #f87171;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background-color: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* --------------------------------------------------------------------------
   3. Utility classes
   -------------------------------------------------------------------------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

.glow-text {
  background: linear-gradient(180deg, #ffffff 30%, #71717a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Navigation (nav)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line-1);
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav__logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--fg-0);
}

.nav__links {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 8px;
}

.nav__link {
  padding: 5px 11px;
  font-size: 12.5px;
  color: var(--fg-2);
  background: transparent;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 450;
  transition: background 0.15s, color 0.15s;
}

.nav__link--active {
  color: var(--fg-0);
  background: var(--bg-3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--line-2);
  font-weight: 500;
}

.nav__spacer {
  flex: 1;
}

.nav__aux-link {
  font-size: 12.5px;
  color: var(--fg-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__cta {
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--fg-0);
  color: var(--bg-0);
  border-radius: 7px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  padding: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.lang-toggle__btn {
  padding: 3px 7px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--fg-3);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-toggle__btn--active {
  background: var(--bg-3);
  color: var(--fg-0);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* Mobile hamburger (JS-toggled) */
.nav__mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--fg-1);
}

/* --------------------------------------------------------------------------
   5. Section (section)
   -------------------------------------------------------------------------- */
.section {
  padding: 100px 32px;
  border-top: 1px solid var(--line-1);
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section--bg-0 { background: var(--bg-0); }
.section--bg-1 { background: var(--bg-1); }

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 100px 32px 80px;
  overflow: hidden;
}

.hero--desktop,
.hero--sandbox {
  padding: 80px 32px 60px;
}

.hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.18), transparent 60%);
  pointer-events: none;
}

.hero__glow--cyan {
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.12), transparent 60%);
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero__center {
  text-align: center;
  margin-bottom: 56px;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--fg-2);
}

.hero__badge-label {
  padding: 2px 7px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 999px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.hero__title {
  margin: 32px auto 0;
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -3.2px;
  font-weight: 500;
  max-width: 1000px;
  text-wrap: balance;
  font-family: var(--font-ui);
}

.hero__title--product {
  margin: 16px 0 0;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -2.4px;
  font-weight: 500;
  text-wrap: balance;
  font-family: var(--font-ui);
}

.hero__serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
  letter-spacing: -1px;
}

.hero__lead {
  margin: 28px auto 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 620px;
  text-wrap: pretty;
}

.hero__lead--product {
  margin: 16px 0 0;
  font-size: 17px;
  max-width: 640px;
}

.hero__cta {
  margin-top: 36px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__cta--left {
  justify-content: flex-start;
  margin-top: 28px;
}

.hero__pills {
  margin-top: 28px;
  display: inline-flex;
  gap: 22px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--fg-3);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__pill-dot {
  /* colored inline via data attribute */
}

.hero__mockup {
  animation: float-up 0.8s ease-out 0.2s both;
}

.hero__logo-strip {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px dashed var(--line-1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-4);
  flex-wrap: wrap;
}

.hero__logo-strip-label {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero__logo-strip-agent {
  color: var(--fg-2);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Eyebrow label
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow--cyan   { color: var(--accent-cyan); }
.eyebrow--amber  { color: var(--accent-amber); }
.eyebrow--red    { color: var(--accent-red); }
.eyebrow--green  { color: var(--accent-green); }

/* --------------------------------------------------------------------------
   8. Headline & Lead
   -------------------------------------------------------------------------- */
.headline {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 500;
  color: var(--fg-0);
  font-family: var(--font-ui);
  text-wrap: balance;
}

.headline--56 { font-size: 56px; }
.headline--52 { font-size: 52px; }
.headline--48 { font-size: 48px; }
.headline--44 { font-size: 44px; }
.headline--42 { font-size: 42px; }
.headline--36 { font-size: 36px; }

.lead {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 640px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   9. Button / Link (btn)
   -------------------------------------------------------------------------- */
.btn {
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-0);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.8; }

.btn--primary {
  background: var(--fg-0);
  color: var(--bg-0);
  border-color: var(--fg-0);
}

/* --------------------------------------------------------------------------
   10. Card (card)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
}

.card__accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   11. Feature card (feature)
   -------------------------------------------------------------------------- */
.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-0);
  letter-spacing: -0.2px;
  margin: 0;
}

.feature__body {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Grid layouts (grid)
   -------------------------------------------------------------------------- */
.grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid--split-60 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid--split-56 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid--problem  { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid--sandbox-arch { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.grid--arch { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.grid--keyboard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid--together { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid--feature-row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.grid--sb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.grid--waitlist { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }

/* --------------------------------------------------------------------------
   13. Problem section cards (problem-item)
   -------------------------------------------------------------------------- */
.problem-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 10px;
}

.problem-item__icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(248, 113, 113, 0.12);
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-0);
  margin: 0 0 4px;
}

.problem-item__body {
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Stat card (stat-card)
   -------------------------------------------------------------------------- */
.stat-card {
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  font-family: var(--font-mono);
}

.stat-card__label {
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 9.5px;
  font-weight: 600;
}

.stat-card__value {
  color: var(--fg-0);
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
}

.stat-card__sub {
  color: var(--fg-3);
  font-size: 10px;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   15. Credential item (cred-item)
   -------------------------------------------------------------------------- */
.cred-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.cred-item__key {
  color: var(--fg-1);
  flex: 1;
}

.cred-item__scope {
  color: var(--fg-3);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   16. Keyboard shortcut row (kbd-row)
   -------------------------------------------------------------------------- */
.kbd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 8px;
}

.kbd-row__key {
  padding: 4px 9px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-0);
  font-weight: 500;
  min-width: 76px;
  text-align: center;
}

.kbd-row__label {
  font-size: 13px;
  color: var(--fg-1);
}

/* --------------------------------------------------------------------------
   17. Code block (code-block)
   -------------------------------------------------------------------------- */
.code-block {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}

.code-block__titlebar {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-3);
  background: var(--bg-2);
}

.code-block__dots {
  display: flex;
  gap: 6px;
}

.code-block__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.code-block__filename {
  font-size: 10.5px;
  letter-spacing: 0.3px;
}

.code-block__pre {
  margin: 0;
  padding: 16px;
  color: var(--fg-1);
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
}

.code-block__line { display: block; }
.code-block__line--comment { color: var(--fg-4); }
.code-block__line--key { color: var(--accent-text); }
.code-block__line--profile { color: var(--accent-cyan); }
.code-block__line--cmd { color: var(--accent-green); }
.code-block__line--success { color: var(--status-running); }

/* --------------------------------------------------------------------------
   18. Policy log ticker (policy-log)
   -------------------------------------------------------------------------- */
.policy-log {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  position: relative;
  max-height: 240px;
}

.policy-log__header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  font-size: 10.5px;
}

.policy-log__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-running);
  animation: pulse 1.4s ease-in-out infinite;
}

.policy-log__scroll {
  padding: 8px 14px;
  animation: ticker-scroll 12s linear infinite;
}

.policy-log__row {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  color: var(--fg-2);
}

.policy-log__time { color: var(--fg-4); width: 60px; flex-shrink: 0; }
.policy-log__verb { font-weight: 600; width: 50px; text-transform: uppercase; font-size: 10px; flex-shrink: 0; }
.policy-log__verb--allow  { color: var(--status-running); }
.policy-log__verb--deny   { color: var(--status-error); }
.policy-log__verb--ask    { color: var(--status-waiting); }
.policy-log__key  { color: var(--fg-3); width: 110px; flex-shrink: 0; }
.policy-log__val  { color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------------------------------------------------------
   19. Hero mockup (mockup) — static version of the animated mockup
   -------------------------------------------------------------------------- */
.mockup {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: var(--font-ui);
}

.mockup__titlebar {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-2);
}

.mockup__dots {
  display: flex;
  gap: 7px;
}

.mockup__dot { width: 11px; height: 11px; border-radius: 50%; }

.mockup__title-text {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}

.mockup__body {
  display: flex;
  height: 380px;
}

.mockup__sidebar {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--line-1);
  background: var(--bg-1);
  padding: 10px 8px;
}

.mockup__sidebar-label {
  font-size: 9.5px;
  color: var(--fg-4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 8px 8px;
  font-weight: 600;
}

.mockup__session {
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup__session--active { background: var(--accent-soft); }

.mockup__session-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup__session-dot--running {
  background: var(--status-running);
  box-shadow: 0 0 8px var(--status-running);
  animation: pulse 1.6s ease-in-out infinite;
}

.mockup__session-dot--waiting { background: var(--status-waiting); }
.mockup__session-dot--idle    { background: var(--status-idle); }

.mockup__session-name {
  font-size: 11.5px;
  color: var(--fg-1);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup__session-name--active { color: var(--accent-text); }

.mockup__session-branch {
  font-size: 9.5px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mockup__tabbar {
  height: 30px;
  display: flex;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-2);
  align-items: stretch;
  padding-left: 8px;
}

.mockup__tab {
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--fg-3);
  border-right: 1px solid var(--line-1);
  font-family: var(--font-mono);
}

.mockup__tab--active {
  color: var(--fg-0);
  background: var(--bg-1);
}

.mockup__terminal {
  flex: 1;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  overflow: hidden;
  background: var(--bg-1);
}

.mockup__status-bar {
  height: 24px;
  border-top: 1px solid var(--line-1);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  background: var(--bg-2);
}

/* Screenshot display */
.mockup__screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   20. Sandbox Architecture SVG placeholder (arch-diagram)
   -------------------------------------------------------------------------- */
.arch-diagram {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   21. "Together" section step cards (step-card)
   -------------------------------------------------------------------------- */
.step-card {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.step-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.step-card__title {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.3px;
}

.step-card__body {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
}

.step-card__accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}

/* --------------------------------------------------------------------------
   22. Waitlist form (waitlist)
   -------------------------------------------------------------------------- */
.waitlist {
  display: flex;
  gap: 8px;
  max-width: 460px;
  width: 100%;
}

.waitlist__input {
  flex: 1;
  padding: 12px 14px;
  font-size: 13.5px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--fg-0);
  outline: none;
  font-family: inherit;
}

.waitlist__input:focus {
  border-color: var(--accent);
}

.waitlist__submit {
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--fg-0);
  color: var(--bg-0);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.waitlist__success {
  flex: 1;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-text);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  display: none;
}

/* --------------------------------------------------------------------------
   23. CTA Section (cta)
   -------------------------------------------------------------------------- */
.cta-box {
  padding: 64px 48px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), transparent 70%), var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-box--centered {
  text-align: center;
  grid-template-columns: 1fr;
  gap: 0;
}

.cta-box--cyan {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent 70%), var(--bg-1);
}

.cta-box__fine-print {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  line-height: 1.6;
}

.cta-box__stats {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}

.cta-box__waitlist-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-box__waitlist-center {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   24. Footer (footer)
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line-1);
  padding: 56px 32px 32px;
  background: var(--bg-0);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand-text {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 280px;
}

.footer__status {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
}

.footer__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-running);
  box-shadow: 0 0 6px var(--status-running);
  flex-shrink: 0;
}

.footer__col-heading {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__link {
  font-size: 12.5px;
  color: var(--fg-1);
  text-decoration: none;
  display: block;
  margin-bottom: 9px;
}

.footer__link:hover { color: var(--fg-0); }

.footer__bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
}

.footer__bottom-spacer { flex: 1; }

/* --------------------------------------------------------------------------
   25. SVG Icons (inline-icon)
   -------------------------------------------------------------------------- */
.inline-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   26. Mode cards (mode-card) — sandbox page
   -------------------------------------------------------------------------- */
.mode-card {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

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

.mode-card__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.3px;
}

.mode-card__badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.mode-card__badge--local {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.mode-card__badge--sandbox {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
}

.mode-card__spacer { flex: 1; }

.mode-card__body {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0 0 16px;
}

.mode-card__list-item {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--fg-2);
  margin-bottom: 8px;
}

.mode-card__check {
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   27. Sandbox Diagram (arch-svg) — drawn with SVG inline
   -------------------------------------------------------------------------- */
.arch-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   28. Hot-Reload card mini
   -------------------------------------------------------------------------- */
.hot-reload-card {
  padding: 22px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
}

.hot-reload-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hot-reload-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-0);
}

.hot-reload-card__spacer { flex: 1; }

.hot-reload-card__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--status-running);
  padding: 2px 7px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 999px;
}

.hot-reload-card__body {
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   29. Arch stat grid (arch-stats)
   -------------------------------------------------------------------------- */
.arch-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.arch-stat {
  padding: 18px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.arch-stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.arch-stat__value {
  font-size: 28px;
  font-weight: 500;
  color: var(--fg-0);
  margin-top: 6px;
  font-family: var(--font-mono);
  letter-spacing: -0.6px;
}

.arch-stat__sub {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 2px;
}

.arch-stat__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}

/* --------------------------------------------------------------------------
   30. Keyframe animations
   -------------------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes float-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ticker-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* --------------------------------------------------------------------------
   31. Responsive — Tablet (768–1023px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero__title { font-size: 64px; }
  .hero__title--product { font-size: 48px; }
  .hero__split { grid-template-columns: 1fr; gap: 40px; }
  .grid--split-60 { grid-template-columns: 1fr; gap: 40px; }
  .grid--split-56 { grid-template-columns: 1fr; gap: 40px; }
  .grid--problem  { grid-template-columns: 1fr; gap: 40px; }
  .grid--sandbox-arch { grid-template-columns: 1fr; }
  .grid--arch { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--together { grid-template-columns: repeat(2, 1fr); }
  .grid--feature-row2 { grid-template-columns: 1fr; }
  .grid--sb-modes { grid-template-columns: 1fr; }
  .grid--waitlist { grid-template-columns: 1fr; gap: 40px; }
  .cta-box { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* --------------------------------------------------------------------------
   32. Responsive — Mobile (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nav {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav__links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav__mobile-toggle { display: flex; align-items: center; }

  .nav__aux-link,
  .nav__cta,
  .lang-toggle {
    display: none;
  }

  .nav--open .nav__aux-link,
  .nav--open .nav__cta,
  .nav--open .lang-toggle {
    display: inline-flex;
  }

  .section { padding: 60px 16px; }
  .hero { padding: 60px 16px 48px; }
  .hero--desktop,
  .hero--sandbox { padding: 60px 16px 48px; }

  .hero__title { font-size: 44px; letter-spacing: -2px; }
  .hero__title--product { font-size: 36px; letter-spacing: -1.5px; }
  .hero__lead,
  .hero__lead--product { font-size: 15px; }

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--split-60,
  .grid--split-56,
  .grid--problem,
  .grid--sandbox-arch,
  .grid--arch,
  .grid--together,
  .grid--feature-row2,
  .grid--sb-modes,
  .grid--waitlist {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid--keyboard { grid-template-columns: 1fr; gap: 8px; }

  .cta-box {
    padding: 32px 24px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .headline--56 { font-size: 36px; }
  .headline--52 { font-size: 34px; }
  .headline--48 { font-size: 32px; }
  .headline--44 { font-size: 30px; }
  .headline--42 { font-size: 30px; }
  .headline--36 { font-size: 26px; }

  .mockup__body { height: auto; flex-direction: column; }
  .mockup__sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--line-1); }

  .waitlist { flex-direction: column; }
  .waitlist__submit { justify-content: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-wrap: wrap; }
}
}

/* ==========================================================================
   33. Color-variant helpers (replaces all inline style= color attributes)
   ========================================================================== */

/* Status dot colors (used in hero pills) */
.dot--running  { color: var(--status-running); }
.dot--accent   { color: var(--accent-text); }
.dot--cyan     { color: var(--accent-cyan); }
.dot--amber    { color: var(--accent-amber); }
.dot--green    { color: var(--accent-green); }
.dot--fg4      { color: var(--fg-4); }

/* macOS traffic-light dots */
.mockup__dot--red    { background: #ff5f57; }
.mockup__dot--yellow { background: #febc2e; }
.mockup__dot--green  { background: #28c840; }
.code-block__dot--red    { background: #ff5f57; }
.code-block__dot--yellow { background: #febc2e; }
.code-block__dot--green  { background: #28c840; }

/* Feature icon-wrap color variants */
.feature__icon-wrap--purple {
  background: rgba(167, 139, 250, 0.14);
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.30);
}
.feature__icon-wrap--cyan {
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.30);
}
.feature__icon-wrap--amber {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.30);
}
.feature__icon-wrap--green {
  background: rgba(34, 197, 94, 0.14);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.30);
}
.feature__icon-wrap--red {
  background: rgba(248, 113, 113, 0.14);
  color: var(--accent-red);
  border: 1px solid rgba(248, 113, 113, 0.30);
}

/* Step card accent bar colors */
.step-card__accent-bar--purple { background: var(--accent); }
.step-card__accent-bar--cyan   { background: var(--accent-cyan); }
.step-card__accent-bar--amber  { background: var(--accent-amber); }

/* Step card number colors */
.step-card__num--purple { color: var(--accent); }
.step-card__num--cyan   { color: var(--accent-cyan); }
.step-card__num--amber  { color: var(--accent-amber); }

/* Arch stat bar colors */
.arch-stat__bar--cyan   { background: var(--accent-cyan); }
.arch-stat__bar--purple { background: var(--accent); }
.arch-stat__bar--amber  { background: var(--accent-amber); }
.arch-stat__bar--green  { background: var(--accent-green); }

/* Mode card accent bars */
.mode-card__accent-bar--purple { background: var(--accent); }
.mode-card__accent-bar--cyan   { background: var(--accent-cyan); }

/* ==========================================================================
   34. Layout helpers (replaces common inline structural styles)
   ========================================================================== */

/* Section header with flex space-between + bottom margin */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-header__copy { max-width: 640px; }

/* Centered text block */
.text-center { text-align: center; }

/* Headline top spacing (used after eyebrow) */
.headline--spaced { margin-top: 16px; }
.headline--spaced-lg { margin-top: 32px; }

/* Lead centered + auto margins */
.lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Card with extra padding (28px vs default 22px) */
.card--pad-28 { padding: 28px; }
.card--pad-22 { padding: 22px; }

/* Together section center wrapper */
.together__header {
  text-align: center;
  margin-bottom: 56px;
}

/* Glow background overlay for together section */
.section--glow-center {
  position: relative;
  overflow: hidden;
}

.section--glow-center__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.10), transparent 60%);
  pointer-events: none;
}

.section__inner--relative { position: relative; }

/* Arch diagram section: scrollable stats value font-size override */
.arch-stat__value--sm { font-size: 18px; }

/* Stat grid (3-col inside card) */
.stat-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Gallery caption */
.gallery__caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}

/* Gallery image */
.gallery__img {
  border-radius: 12px;
  border: 1px solid var(--line-1);
  width: 100%;
  height: auto;
}

/* Problem list container */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Policy log caption */
.policy-log__caption {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  text-align: center;
}

/* Inline code text for footer status */
.footer__status-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* Sandbox arch card inner */
.arch-diagram-wrapper { margin-top: 16px; }

/* Sandbox ticker wrapper */
.sandbox-ticker-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card with ticker */
.card--ticker { padding: 22px; }

/* Ticker section inner */
.ticker-section-inner { margin-top: 14px; }

/* Feature grid top-spaced */
.grid--4--mt { margin-top: 20px; }

/* Waitlist section border */
.section--waitlist { border-top: 1px solid var(--line-1); }

/* Waitlist CTA centered */
.waitlist-center-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* CTA box fine print */
.cta-box__fine-print--mt { margin-top: 18px; }

/* Hero pills left-aligned (product pages) */
.hero__pills--left {
  justify-content: flex-start;
  margin-top: 24px;
}

/* Eyebrow centered (for together section) */
.eyebrow--center { justify-content: center; }

/* Code block list text (fg-4 color) */
.text-fg4 { color: var(--fg-4); }

/* ==========================================================================
   35. Remaining specific helpers
   ========================================================================== */

/* Card section heading (used inside card rows) */
.card__heading {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.4px;
}

.card__body-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* Stat grid (3-col inside Tauri card) */
.stat-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Policy log caption */
.policy-log__caption {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  text-align: center;
}

/* Grid-3 with top margin */
.grid--3--mt { margin-top: 48px; }

/* Gallery image + caption */
.gallery__img {
  border-radius: 12px;
  border: 1px solid var(--line-1);
  width: 100%;
  height: auto;
}

.gallery__caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}

/* Hero screenshot (desktop page) */
.hero__screenshot {
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  width: 100%;
  height: auto;
}

/* CTA box padding variants */
.cta-box--pad-56 { padding: 56px 48px; }

/* Eyebrow with bottom margin */
.eyebrow--center-mb {
  justify-content: center;
  margin-bottom: 16px;
}

/* CTA fine-print top margin */
.cta-box__fine-print--top { margin-top: 18px; }

/* Headline gallery spacing */
.headline--gallery {
  margin-top: 16px;
  margin-bottom: 40px;
}

/* Arch stat value small (arm64+x86 label) */
.arch-stat__value--xs { font-size: 18px; }

/* Code block line accent */
.code-block__line--accent { color: var(--accent-text); }

/* Waitlist center (desktop CTA) */
.cta-box--desktop {
  padding: 56px 48px;
  text-align: center;
}

/* ==========================================================================
   Mobile & Vision accent classes
   ========================================================================== */

/* Eyebrow color variants */
.eyebrow--mobile { color: var(--accent-mobile); }
.eyebrow--vision { color: var(--accent-vision); }

/* Feature icon-wrap color variants */
.feature__icon-wrap--mobile {
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-mobile);
  border: 1px solid rgba(99, 102, 241, 0.30);
}
.feature__icon-wrap--vision {
  background: rgba(217, 119, 6, 0.14);
  color: var(--accent-vision);
  border: 1px solid rgba(217, 119, 6, 0.30);
}
