/* ===== TOKENS ===== */
:root {
  --bg-primary: #0b0d2c;
  --bg-secondary: #0e1035;
  --bg-elevated: #131740;
  --bg-card: #161a45;
  --bg-card-hover: #1a1f50;
  --bg-surface: #1d2358;
  --bg-input: #0b0d2c;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-interactive: rgba(255, 255, 255, 0.2);

  --text-primary: #e1e9ff;
  --text-secondary: #9eafeb;
  --text-tertiary: #97ade1;
  --text-muted: #a7b5de;

  --accent-green: #512fc9;
  --accent-green-bright: #C4A9ff;
  --accent-green-dim: rgba(81, 47, 201, 0.15);
  --accent-purple: #6b47e0;
  --accent-purple-dim: rgba(107, 71, 224, 0.15);
  --accent-red: #E5484D;
  --accent-red-dim: rgba(229, 72, 77, 0.08);
  --accent-blue: #C4A9ff;

  --font-sans: 'Lato', 'Helvetica Neue', sans-serif;
  --font-mono: 'Ubuntu Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  --max-width: 1280px;
  --section-gap: clamp(3.5rem, 6vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2rem);
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 4rem;
  display: flex;
  align-items: center;
  background: rgba(11, 13, 44, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  position: relative;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-right {
  flex-shrink: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #cadf4c;
  background: transparent;
  border: 1px solid #cadf4c;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.nav-beta-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: #cadf4c;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 150ms;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a.is-active {
  color: #cadf4c;
  border-bottom: 1.5px solid #cadf4c;
  padding-bottom: 2px;
}
#nav-signup-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
  border: none !important;
}

#nav-signup-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, #512fc9 0%, #6a48e0 100%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

#nav-signup-btn.is-hero-hidden {
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#nav-signup-btn.is-hero-hidden::before {
  opacity: 1;
}

#nav-signup-btn.is-hero-hidden:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

#nav-signup-btn.is-hero-hidden:hover::before {
  background: linear-gradient(105deg, #6040d4 0%, #7a58ea 100%);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  padding: 0.5rem 1.25rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
}

.btn-primary:hover {
  background: #E0E0E0;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

#hero-signup-btn {
  padding: 0.875rem 2.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  background: linear-gradient(105deg, #512fc9 0%, #6a48e0 100%);
  color: #fff;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}

#hero-signup-btn:hover {
  background: linear-gradient(105deg, #6040d4 0%, #7a58ea 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  padding: 8rem 0 3rem 0;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, #1e2560 0%, #0b0d2c 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("assets/orbit-backdrop.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(1200px, 120vw);
  opacity: 0.22;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C4A9FF;
  margin-bottom: 2rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0em;
  max-width: 1200px;
  margin: 0 auto 1.75rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 45rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Email form */
.demo-line { opacity: 0; animation: typeIn 0.3s forwards; }
.demo-line:nth-child(1) { animation-delay: 0.3s; }
.demo-line:nth-child(2) { animation-delay: 1s; }
.demo-line:nth-child(3) { animation-delay: 1.5s; }
.demo-line:nth-child(4) { animation-delay: 2.2s; }
.demo-line:nth-child(5) { animation-delay: 2.8s; }
.demo-line:nth-child(6) { animation-delay: 3.3s; }
.demo-line:nth-child(7) { animation-delay: 3.8s; }

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

.demo-comment { color: var(--text-muted); }
.demo-prompt { color: var(--accent-green-bright); }
.demo-cmd { color: var(--text-primary); }
.demo-output { color: var(--accent-blue); }
.demo-time { color: var(--accent-purple); }

/* ===== HERO SNIPPET CAROUSEL ===== */
.hero-snippet-card {
  max-width: 48rem;
  margin: 3rem auto 0;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-default);
  background: #1e2358;
  overflow: hidden;
}

.hero-snippet-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.65rem 1rem;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border-subtle);
}

.snippet-tabs {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.snippet-tab {
  background: transparent;
  border: none;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: color 150ms, background 150ms;
  white-space: nowrap;
}

.snippet-tab:hover { color: var(--text-secondary); }

.snippet-tab.is-active {
  color: #cadf4c;
  background: rgba(224, 246, 123, 0.08);
}

.hero-snippet-body {
  position: relative;
  min-height: 220px;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.snippet-panel {
  position: absolute;
  inset: 1.25rem 1.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.snippet-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.snippet-panel pre {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.snippet-caption {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
}

.cli-line { display: block; }
.cli-line-out { color: var(--accent-blue); font-size: 0.8125rem; }
.cli-cursor {
  display: inline-block;
  width: 0.45em;
  height: 0.9em;
  background: var(--accent-green-bright);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  padding: 1.4rem 0 1.4rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.social-proof-label {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.mobile-only { display: none; }
.not-mobile { display: unset; }
.social-proof-tagline {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-weight: 500;
}

.social-proof-label img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1) sepia(1) hue-rotate(187deg) saturate(0.5) brightness(0.77);
  opacity: 1;
}

.social-proof-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.proof-stat svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-tertiary); }
.proof-stat strong { color: var(--text-primary); }
.proof-stat a:hover { text-decoration: underline; }

/* ===== SECTIONS SHARED ===== */
.section {
  padding: var(--section-gap) 0;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  border: none;
}

/* ===== NUTSHELL PILLS ===== */
.nutshell-pills {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.nutshell-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.nutshell-pill .pill-icon {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}
.nutshell-pill .pill-icon svg {
  width: 14px;
  height: 14px;
  stroke: #bb81fc;
}

/* ===== NUTSHELL ===== */
.nutshell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.nutshell-features {
  list-style: none;
  margin-top: 1.5rem;
}

.nutshell-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.nutshell-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #cadf4c;
  margin-top: 2px;
}

.nutshell-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-block { text-align: center; }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.stat-number span {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Architecture diagram - responsive HTML rebuild */
.arch-diagram {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.ad-client-row {
  display: flex;
  justify-content: center;
}

.ad-client {
  background: #161a45;
  border: 1.5px solid rgb(88 71 146 / 85%);
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: #dde3f5;
}

.ad-pipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.05rem 0;
}

.ad-pipe-line {
  width: 1px;
  height: 32px;
  background: #5a6fa0;
}

.ad-pipe-arrow {
  color: #5a6fa0;
  font-size: 0.7rem;
  line-height: 1;
}

.ad-pipe-cmd {
  font-family: "Ubuntu Mono", monospace;
  font-size: 0.85rem;
  color: #cadf4c;
  letter-spacing: 0.04em;
}

.ad-layer {
  border: 1px solid rgb(88 71 146 / 85%);
  border-radius: 10px;
  overflow: hidden;
}

.ad-layer-header {
  background: #161a45;
  border-bottom: 1px solid rgba(107, 71, 224, 0.18);
  padding: 0.45rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bdc9f3;
}

.ad-cloud-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.65rem;
}

.ad-cell {
  background: #161a45;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  color: #dde3f5;
  text-align: center;
}

.ad-proxy {
  text-align: center;
  padding: 0.25rem 0.5rem 0.5rem;
  font-size: 0.7rem;
  color: #9eafeb;
}

.ad-vm-cells {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem;
}

.ad-vm-cell {
  width: 65%;
  background: #161a45;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  color: #dde3f5;
  text-align: center;
}

/* Fan-out tree connector + services */
.ad-tree {
  position: relative;
  padding-top: 56px;
}

/* Trunk: single line from VM box to horizontal bar */
.ad-tree::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 28px;
  background: #5a6fa0;
}

/* Horizontal bar spanning the three service column centers */
.ad-tree::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc((100% - 1rem) / 6);
  right: calc((100% - 1rem) / 6);
  height: 1px;
  background: #5a6fa0;
}

.ad-services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ad-service {
  position: relative;
  background: #161a45;
  border: 1px solid rgb(88 71 146 / 85%);
  border-radius: 5px;
  padding: 0.4rem 0.35rem;
  font-size: 0.72rem;
  color: #dde3f5;
  text-align: center;
}

/* Stems: short lines from horizontal bar down to each service box */
.ad-service::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 28px;
  background: #5a6fa0;
}

/* Mobile: stack cloud cells and services vertically */
@media (max-width: 560px) {
  .ad-cloud-cells {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .ad-cell {
    width: 65%;
  }

  .ad-service {
    justify-self: center;
    width: fit-content;
    white-space: nowrap;
  }
}

/* ===== ARCHITECTURE DEEP-DIVE STYLES ===== */
.arch2 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
}

/* Developer initiator */
.arch2-dev-row {
  display: flex;
  justify-content: center;
}

.arch2-dev-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-soft);
  border: 1px solid rgba(107, 71, 224, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.8rem;
}

.arch2-dev-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.arch2-dev-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.arch2-dev-cmd {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(156, 64, 255, 0.08);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(156, 64, 255, 0.2);
  display: inline-block;
}

/* Connecting pipe */
.arch2-pipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0;
  gap: 0.1rem;
}

.arch2-pipe-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(107, 71, 224, 0.35), rgba(156, 64, 255, 0.6));
}

.arch2-pipe-arrow {
  color: rgba(156, 64, 255, 0.7);
  font-size: 0.7rem;
  line-height: 1;
}

.arch2-pipe-label {
  font-size: 0.66rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Layer frames */
.arch2-layer {
  border: 1px solid rgba(107, 71, 224, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.arch2-layer--cloud {
  border-color: rgba(107, 71, 224, 0.5);
}

.arch2-layer--beam {
  border-color: rgba(156, 64, 255, 0.55);
  box-shadow: 0 0 50px rgba(107, 71, 224, 0.14);
}

/* Layer header bar */
.arch2-layer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(107, 71, 224, 0.1);
  border-bottom: 1px solid rgba(107, 71, 224, 0.18);
}

.arch2-layer-header svg {
  color: #a78bfa;
  flex-shrink: 0;
}

.arch2-layer-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C4A9FF;
}

.arch2-layer-badge--beam {
  color: var(--accent);
}

.arch2-layer--beam .arch2-layer-header {
  background: rgba(156, 64, 255, 0.1);
  border-bottom-color: rgba(156, 64, 255, 0.2);
}

.arch2-layer--beam .arch2-layer-header svg {
  color: var(--accent);
}

/* Cell grid */
.arch2-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 1rem;
}

.arch2-cells--4 {
  grid-template-columns: repeat(4, 1fr);
}

.arch2-cell {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
}

.arch2-cell-icon {
  color: #a78bfa;
  margin-bottom: 0.45rem;
}

.arch2-cell-icon--beam {
  color: var(--accent);
}

.arch2-cell-title {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.arch2-cell-desc {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.arch2-cell-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin: 0.3rem 0 0.2rem;
}

/* Layer footer note */
.arch2-layer-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.arch2-layer-note svg {
  color: #a78bfa;
  flex-shrink: 0;
}

/* Bottom two-column: beam + services */
.arch2-bottom {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1rem;
}

/* Services panel */
.arch2-services {
  border: 1px solid rgba(107, 71, 224, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.arch2-services-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(107, 71, 224, 0.07);
  border-bottom: 1px solid rgba(107, 71, 224, 0.14);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.arch2-services-header svg {
  flex-shrink: 0;
}

.arch2-service {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.arch2-service:last-child {
  border-bottom: none;
}

.arch2-service-icon {
  color: var(--muted);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.arch2-service-name {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.arch2-service-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 960px) {
  .arch2-cells--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .arch2-bottom {
    grid-template-columns: 1fr;
  }

  .arch2-cells {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch2-dev-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}

@media (max-width: 560px) {
  .arch2-cells,
  .arch2-cells--4 {
    grid-template-columns: 1fr;
  }
}

/* ===== ARCHITECTURE SECTION OVERRIDES ===== */
#architecture {
  --accent: #9c40ff;
  --muted: #8a9ec8;
  --bg-soft: #13173a;
  --mono: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 10px;
  --radius-md: 14px;
  padding-top: 0;
}

#architecture .section-title {
  font-size: unset;
  font-weight: unset;
  line-height: unset;
  letter-spacing: unset;
  text-align: left;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

#architecture .arch2-pipe-label {
  color: #cadf4c;
  font-size: 0.8rem;
}

#architecture .arch2-pipe-arrow {
  color: #5a6fa0;
}

#architecture .arch2-pipe-line {
  background: #5a6fa0;
}

#architecture .arch2-dev-card {
  border: 1px solid rgb(88 71 146 / 85%);
  background: #161a45;
}

#architecture .arch2-layer-header,
#architecture .arch2-services-header {
  background: #161a45;
  color: var(--text-secondary);
}

#architecture .arch2-layer-header svg,
#architecture .arch2-services-header svg {
  color: var(--text-secondary);
}

#architecture .arch2-layer-badge {
  color: #bdc9f3;
}

#architecture .arch2-layer {
  border: 1px solid rgba(187, 129, 252, 0.3);
}

#architecture .arch2-layer--cloud {
  border: 1px solid rgb(88 71 146 / 85%);
}

#architecture .arch2-layer--beam {
  border: 1px solid rgb(88 71 146 / 85%);
}

#architecture .arch2-services {
  border: 1px solid rgb(88 71 146 / 85%);
}

#architecture .arch2-cell-desc {
  color: var(--text-secondary);
}

#architecture .arch2-service-desc {
  color: var(--text-secondary);
}

#architecture .arch2-cell-icon,
#architecture .arch2-cell-icon--beam {
  color: #bb81fc;
}

#architecture .arch2-layer-note {
  color: var(--text-secondary);
}

#architecture .arch2-layer-note svg {
  color: #bb81fc;
}


#architecture .arch2-dev-cmd {
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#architecture .section-title h3 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}

#architecture .section-title p {
  color: var(--text-secondary);
}

#why,
#scenarios {
  scroll-margin-top: 4rem;
}

/* ===== WHY CARDS ===== */
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.why-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 200ms;
}

.why-card:hover {
  border-color: var(--border-default);
}

.why-card-icon {
  color: #bb81fc;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.why-card-icon svg {
  width: 20px;
  height: 20px;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SCENARIOS ===== */
.scenario {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.scenario:last-child { border-bottom: none; }

.scenario-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #C4A9FF;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.scenario h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.scenario p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Code blocks */
.code-block {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: #1e2358;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.25);
}

.code-block-dots { display: flex; gap: 5px; }

.code-block-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.code-block-dot:nth-child(1) { background: #E5484D; }
.code-block-dot:nth-child(2) { background: #F5A623; }
.code-block-dot:nth-child(3) { background: #cadf4c; }

.copy-btn {
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 150ms;
  font-weight: 500;
}

.copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.copy-btn.copied {
  color: var(--accent-green-bright);
  border-color: var(--accent-green);
}

.code-block pre {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
}

/* ===== SECURE GRID ===== */
.secure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.secure-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 200ms;
}

.secure-card:hover {
  border-color: var(--border-default);
}

.secure-card-icon {
  color: #bb81fc;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.secure-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: #bb81fc;
}

.secure-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.secure-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 4rem 0 2rem;
  text-align: center;
  position: relative;
  scroll-margin-top: 4rem;
}

.final-cta-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #0e1129, #1f2b70);
  padding: 4rem 2rem;
  overflow: hidden;
}

#cta-signup-btn {
  border-radius: 9999px;
}

.final-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(107, 71, 224, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.final-cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.waitlist-count {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 1.25rem;
}

.waitlist-count .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent-green-bright);
  animation: pulse 2s ease-in-out infinite;
}

.post-signup-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-sub {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
  max-width: 16rem;
  line-height: 1.5;
}

.footer h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 150ms;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-certs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .why-cards, .secure-grid {
    grid-template-columns: 1fr;
  }

  .nutshell-grid, .scenario {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .nav .container { padding: 0 clamp(1rem, 2.67vw, 1.33rem); }
  .nav-logo img { height: 32px !important; }
  #nav-signup-btn { color: var(--bg-primary); }
  #nav-signup-btn.is-hero-hidden { color: var(--bg-primary); box-shadow: none; }
  #nav-signup-btn.is-hero-hidden::before { opacity: 0; }
  #nav-signup-btn.is-snippet-reached { color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
  #nav-signup-btn.is-snippet-reached::before { opacity: 1; }
  #nav-signup-btn.is-snippet-reached:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
  #nav-signup-btn.is-snippet-reached:hover::before { background: linear-gradient(105deg, #6040d4 0%, #7a58ea 100%); }
  .hero { padding: 7rem 0 4rem; }
  .hero h1 { font-size: 40px; line-height: 1.25; margin: 2.25rem auto 1.75rem; }
  .hero-eyebrow { margin-bottom: 1rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .nutshell-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .nutshell-pills { align-items: center; justify-content: center; }
  .hero-snippet-header { overflow-x: auto; }
  .snippet-panel pre { overflow-x: auto; }
  .proof-stat { align-items: center; }
  .proof-stat:nth-child(3) { align-items: flex-start; }
  .proof-stat .proof-text { flex-wrap: wrap; }
  .social-proof-stats { gap: 1rem; flex-direction: column; align-items: center; }
  .social-proof-label { justify-content: center; }
  .social-proof-tagline { text-align: center; }
  .mobile-only { display: inline; }
  .not-mobile { display: none; }
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.65);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  background: #1f2569;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-default);
  padding: 2rem;
  width: min(520px, 90vw);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.modal-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.modal-lead {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-tertiary);
  line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

/* ===== MARKETO FORM OVERRIDES (modal-card) ===== */
.modal-card .mktoForm {
  width: 100% !important;
  font-family: inherit !important;
}

.modal-card .mktoForm .mktoFormRow,
.modal-card .mktoForm .mktoFieldDescriptor {
  width: 100% !important;
}

.modal-card .mktoForm .mktoFieldWrap {
  width: 100% !important;
  position: relative !important;
  padding-bottom: 1rem !important;
}

.modal-card .mktoForm label.mktoLabel {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.2rem !important;
  width: auto !important;
  padding-bottom: 1rem !important;
}

.modal-card .mktoForm label.mktoLabel .mktoAsterix {
  float: none !important;
  color: #f87171 !important;
  margin-left: 0 !important;
  order: 1 !important;
}

.modal-card .mktoForm input[type="email"],
.modal-card .mktoForm input[type="text"] {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: 0.6rem !important;
  color: var(--text-primary) !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  padding: 0.65rem 0.9rem !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 200ms ease, background 200ms ease !important;
}

.modal-card .mktoForm input[type="email"]:focus,
.modal-card .mktoForm input[type="text"]:focus {
  border-color: #6a48e0 !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

.modal-card .mktoForm input[type="email"]::placeholder,
.modal-card .mktoForm input[type="text"]::placeholder {
  color: var(--text-tertiary) !important;
}

.modal-card .mktoForm .mktoButtonWrap {
  margin: 0 !important;
}

.modal-card .mktoForm .mktoButton {
  width: 100% !important;
  background: linear-gradient(105deg, #6040d4 0%, #7a58ea 100%) !important;
  background-image: linear-gradient(105deg, #6040d4 0%, #7a58ea 100%) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 0.6rem !important;
  padding: 0.7rem 1.25rem !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: box-shadow 200ms ease, background 200ms ease !important;
  margin-top: 0.75rem !important;
}

.modal-card .mktoForm .mktoButton:hover {
  background: linear-gradient(105deg, #7050de 0%, #8a68f2 100%) !important;
  background-image: linear-gradient(105deg, #7050de 0%, #8a68f2 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.modal-card .mktoForm .mktoError {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  margin-top: -1rem !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.modal-card .mktoForm .mktoErrorArrow {
  display: none !important;
}

.modal-card .mktoForm .mktoErrorMsg {
  display: block !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #f87171 !important;
  font-size: 0.78rem !important;
  font-family: inherit !important;
  padding: 0 !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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