/* ============================================================================
   NexusEdge Community Edition — Landing Page Styles
   Layered on top of AxonML tokens (assets/tokens.css)
   ============================================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--primary-light); color: var(--text-primary); }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow-teal {
  color: var(--primary-dark);
}
.eyebrow-terracotta {
  color: var(--terracotta-bold);
}

.section {
  padding: 96px 0;
  position: relative;
}
.section-tight { padding: 64px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 249, 246, 0.95);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Jim Nightshade", cursive;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.nav-brand img { width: 28px; height: 28px; }
.nav-brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--primary-ultra);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-teal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s var(--ease-default);
}
.nav-link:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.2s var(--ease-default);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: #1a1715;
  color: #D4A08A;
  box-shadow: 0 2px 8px rgba(26,23,21,0.15);
}
.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,23,21,0.2);
}
.btn-secondary {
  background: #FDF5F0;
  color: #1a1715;
  border: 1px solid #F5D6C6;
}
.btn-secondary:hover {
  border-color: #D4A08A;
  background: #FAE8DD;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.btn-large { padding: 14px 24px; font-size: 15px; border-radius: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .tag {
  background: var(--primary-ultra);
  color: var(--primary-dark);
  border: 1px solid var(--border-teal);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 800;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-install {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px 10px 16px;
  max-width: 520px;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.hero-install .prompt { color: var(--text-muted); }
.hero-install code { background: transparent; padding: 0; color: var(--text-primary); flex: 1; overflow: hidden; text-overflow: ellipsis; }
.hero-install button {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: all 0.15s var(--ease-default);
}
.hero-install button:hover { background: var(--bg-primary); color: var(--text-primary); border-color: var(--border-strong); }
.hero-install button.copied { background: var(--success-bg); color: var(--success); border-color: var(--success); }

/* Hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
}
.hero-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-badges-float {
  position: absolute;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-badges-float .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-bg);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.hero-badges-float .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.hero-badges-float .value { font-weight: 600; color: var(--text-primary); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.05); }
}

/* trust strip */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(255, 255, 255, 0.4);
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.trust-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-badge .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  overflow: hidden;
  transition: all 0.25s var(--ease-default);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.25s var(--ease-default);
}
.feature-card:hover {
  border-color: var(--border-teal);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }
.feature-card.terracotta::before { background: var(--terracotta-bold); }
.feature-card.terracotta:hover { border-color: var(--terracotta-light); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-ultra);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border-teal);
}
.feature-card.terracotta .feature-icon {
  background: rgba(224, 122, 95, 0.1);
  color: var(--terracotta-bold);
  border-color: var(--terracotta-light);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}
.feature-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* ============================================================
   HARDWARE
   ============================================================ */
.section-hardware { background: var(--bg-primary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hardware-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hardware-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}
.hardware-visual {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hardware-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.hardware-card .sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.hardware-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 8px;
  font-size: 13px;
}
.spec-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-value {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ============================================================
   BENCHMARKS
   ============================================================ */
.benchmark-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.benchmark-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.benchmark-card .stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.benchmark-card .stripe-teal { background: var(--primary); }
.benchmark-card .stripe-terracotta { background: var(--terracotta-bold); }
.benchmark-card .header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.benchmark-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.benchmark-card .arch {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.benchmark-card .params {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.benchmark-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.bench-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bench-stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.bench-stat .value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.bench-stat .value .unit {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}
.benchmark-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benchmark-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.benchmark-bar .name {
  width: 80px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.benchmark-bar .track {
  flex: 1;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.benchmark-bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #f97316 0%, #14b8a6 100%);
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.benchmark-bar.terracotta .fill {
  background: linear-gradient(90deg, #14b8a6 0%, #f97316 100%);
}
.benchmark-bar .num {
  width: 70px;
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* ============================================================
   QUICK-START / CODE
   ============================================================ */
.quickstart-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.quickstart-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s var(--ease-default);
}
.quickstart-step:hover {
  background: var(--bg-primary);
  border-color: var(--border);
}
.quickstart-step.active {
  background: var(--bg-primary);
  border-color: var(--border-teal);
  box-shadow: var(--shadow-sm);
}
.quickstart-step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.15s var(--ease-default);
}
.quickstart-step.active .num {
  background: var(--primary);
  color: white;
}
.quickstart-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
}
.quickstart-step p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.code-window {
  background: #1a1d23;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  font-family: var(--font-mono);
  border: 1px solid #2a2d33;
}
.code-window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #2d2d2d;
  border-bottom: 1px solid #3a3d44;
}
.code-window-chrome .dots {
  display: flex;
  gap: 4px;
  margin-left: auto;
  order: 2;
}
.code-window-chrome .dot {
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: transparent;
  border: 1px solid #6b7280;
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  color: #6b7280;
}
.code-window-chrome .dot:nth-child(1)::after { content: '\2013'; }
.code-window-chrome .dot:nth-child(2)::after { content: '\25A1'; }
.code-window-chrome .dot:nth-child(3)::after { content: '\00D7'; }
.code-window-chrome .filename {
  font-size: 11px;
  color: #5eead4;
  letter-spacing: 0.02em;
  flex: 1;
  order: 1;
}
.code-window-tabs {
  display: flex;
  gap: 0;
  padding: 0 12px;
  background: #14171c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-tab {
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.15s var(--ease-default);
  letter-spacing: 0.02em;
}
.code-tab:hover { color: #d1d5db; }
.code-tab.active {
  color: #5eead4;
  border-bottom-color: var(--primary);
}
.code-window pre {
  margin: 0;
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #d1d5db;
  overflow-x: auto;
  min-height: 280px;
}
.code-window .tok-comment { color: #6b7280; font-style: italic; }
.code-window .tok-keyword { color: #c084fc; }
.code-window .tok-string { color: #5eead4; }
.code-window .tok-fn { color: #fbbf24; }
.code-window .tok-prop { color: #93c5fd; }
.code-window .tok-num { color: #f97316; }
.code-window .tok-prompt { color: #5eead4; user-select: none; }
.code-window .tok-comment-l { color: #6b7280; }

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.arch-stack {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
.arch-layer {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  position: relative;
}
.arch-layer .layer-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.arch-layer .layer-name .badge-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.arch-layer .layer-name strong {
  font-size: 14px;
  font-weight: 600;
}
.arch-layer .components {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.arch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.arch-pill.teal {
  background: var(--primary-ultra);
  color: var(--primary-dark);
  border-color: var(--border-teal);
}
.arch-pill.terracotta {
  background: rgba(224, 122, 95, 0.08);
  color: var(--terracotta-bold);
  border-color: var(--terracotta-light);
}
.arch-pill.muted {
  color: var(--text-muted);
}
.arch-layer .tech {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.arch-divider {
  display: flex;
  justify-content: center;
  color: var(--border-strong);
  font-size: 10px;
  line-height: 1;
  height: 8px;
}

/* ============================================================
   USE CASES
   ============================================================ */
.section-usecase { background: var(--bg-cream-light); border-top: 1px solid var(--border-cream); border-bottom: 1px solid var(--border-cream); }
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.usecase-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s var(--ease-default);
}
.usecase-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.usecase-card .iconbox {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-ultra);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-teal);
}
.usecase-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.usecase-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   COMMUNITY
   ============================================================ */
.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.community-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.community-card.dark {
  background: linear-gradient(135deg, #14171c 0%, #1a1d23 100%);
  color: white;
  border-color: #2a2f37;
}
.community-card .platform-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.community-card.dark .platform-mark { color: #5eead4; }
.community-card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.community-card p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
  color: var(--text-secondary);
}
.community-card.dark p { color: #9ca3af; }
.community-stats {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  margin: 16px 0;
  border-top: 1px solid var(--border);
}
.community-card.dark .community-stats { border-top-color: #2a2f37; }
.community-stat .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.community-card.dark .community-stat .num { color: white; }
.community-stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-card);
}
.pricing-card.featured::before {
  content: "Recommended";
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--primary);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.pricing-card .tier {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.pricing-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-card .price .amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pricing-card .price .period {
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-card .summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
}
.pricing-card .divider { height: 1px; background: var(--border); margin: 4px 0; }
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
}
.pricing-card ul li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}
.pricing-card ul li .check {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}
.pricing-card ul li.dim { color: var(--text-muted); }
.pricing-card ul li.dim .check { color: var(--border-strong); }
.pricing-card ul li .pro-tag {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--terracotta-bold);
  background: rgba(224, 122, 95, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.pricing-card .cta { margin-top: auto; padding-top: 8px; }
.pricing-card .cta .btn { width: 100%; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  padding: 22px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s var(--ease-default);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-tertiary); }
.faq-item summary .chev {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease-default);
}
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--primary); }
.faq-item .body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.faq-item .body code {
  background: var(--bg-slate);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--text-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #14171c;
  color: #9ca3af;
  padding: 72px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .nav-brand { color: white; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0 24px;
  max-width: 320px;
  color: #9ca3af;
}
.footer-newsletter {
  display: flex;
  gap: 8px;
  max-width: 320px;
}
.footer-newsletter input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}
.footer-newsletter input:focus { outline: none; border-color: var(--primary); }
.footer-newsletter button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d1d5db;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 13.5px;
  color: #9ca3af;
  transition: color 0.15s var(--ease-default);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .legal {
  display: flex;
  gap: 20px;
}
.footer-bottom .legal a:hover { color: #d1d5db; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.node-pulse {
  animation: node-pulse 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes node-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}
.edge-flow {
  stroke-dasharray: 4 6;
  animation: edge-flow 8s linear infinite;
}
@keyframes edge-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -80; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
}
.reveal.in {
  animation: fade-up 0.7s var(--ease-default) forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hardware-grid { grid-template-columns: 1fr; }
  .benchmark-layout { grid-template-columns: 1fr; }
  .quickstart-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
}

/* tablet / large mobile */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 34px; letter-spacing: -0.015em; }
  .section-head p { font-size: 15.5px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 24px; min-height: 0; }
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}

/* phone — flagship Android (393-412) + iPhone (375-430) */
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 20px; }
  .nav-inner { padding: 0 20px; height: 60px; }
  .nav-brand { font-size: 15px; gap: 8px; }
  .nav-brand img { width: 24px; height: 24px; }
  .nav-brand-sub { font-size: 10px; padding: 2px 6px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn { padding: 9px 14px; font-size: 13px; }

  .hero { padding: 32px 0 64px; }
  .hero-grid { gap: 32px; }
  .hero-eyebrow { font-size: 11px; padding: 5px 10px 5px 5px; margin-bottom: 20px; }
  .hero-eyebrow .tag { font-size: 9px; padding: 2px 6px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 48px); margin-bottom: 18px; }
  .hero-lede { font-size: 16px; margin-bottom: 24px; }
  .hero-ctas { gap: 10px; margin-bottom: 24px; }
  .hero-ctas .btn { flex: 1; min-width: 0; }
  .btn-large { padding: 12px 18px; font-size: 14px; }
  .hero-install { padding: 8px 10px 8px 14px; font-size: 12px; gap: 8px; }
  .hero-install code { font-size: 11.5px; }
  .hero-install button { padding: 5px 8px; font-size: 10px; }

  .hero-visual { max-width: 340px; }
  .hero-badges-float { padding: 8px 12px; font-size: 11px; }
  .hero-badges-float .label { font-size: 9px; }
  .hero-badges-float .value { font-size: 12px; }
  /* keep floats inside the visual on small screens */
  .hero-visual .hero-badges-float:nth-of-type(1) { top: 2% !important; left: 0 !important; }
  .hero-visual .hero-badges-float:nth-of-type(2) { bottom: 6% !important; right: 0 !important; }
  .hero-visual .hero-badges-float:nth-of-type(3) { display: none; }

  .trust-strip { padding: 18px 0; }
  .trust-strip-inner { gap: 14px; justify-content: flex-start; }
  .trust-badges { gap: 14px 18px; }
  .trust-badge { font-size: 11px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 28px; line-height: 1.1; }
  .section-head p { font-size: 15px; line-height: 1.55; }

  .feature-card { padding: 22px; gap: 12px; }
  .feature-card h3 { font-size: 17px; }
  .feature-card p { font-size: 13.5px; }
  .feature-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }

  .hardware-card { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .hardware-visual { width: 88px; height: 88px; }
  .hardware-card h3 { font-size: 20px; }
  .hardware-specs { grid-template-columns: 1fr 1fr; gap: 10px 14px; }

  .benchmark-card { padding: 24px; }
  .benchmark-card h3 { font-size: 20px; }
  .benchmark-card .header { flex-wrap: wrap; gap: 12px; }
  .benchmark-numbers { gap: 16px; margin-bottom: 20px; }
  .bench-stat .value { font-size: 30px; }
  .bench-stat .value .unit { font-size: 12px; }
  .benchmark-bar { font-size: 11px; gap: 10px; }
  .benchmark-bar .name { width: 60px; font-size: 11px; }
  .benchmark-bar .num { width: 56px; font-size: 11px; }

  .code-window-tabs { overflow-x: auto; }
  .code-tab { padding: 9px 10px; font-size: 11px; white-space: nowrap; }
  .code-window pre { padding: 16px 18px; font-size: 11.5px; line-height: 1.65; min-height: 240px; }
  .code-window-chrome .filename { font-size: 10px; }
  .quickstart-step { padding: 14px; }
  .quickstart-step h4 { font-size: 14px; }
  .quickstart-step p { font-size: 12.5px; }

  .arch-layer { grid-template-columns: 1fr; gap: 12px; padding: 18px 20px; }
  .arch-layer .layer-name { justify-content: flex-start; }
  .arch-layer .tech { font-size: 10px; }
  .arch-pill { font-size: 10.5px; padding: 4px 8px; }

  .usecase-grid { grid-template-columns: 1fr; }
  .usecase-card { padding: 20px; }
  .usecase-card h4 { font-size: 15px; }
  .usecase-card p { font-size: 12.5px; }

  .community-card { padding: 28px; }
  .community-card h3 { font-size: 22px; }
  .community-card p { font-size: 14px; }
  .community-stats { gap: 20px; flex-wrap: wrap; padding: 16px 0; }
  .community-stat .num { font-size: 22px; }
  .community-stat .lbl { font-size: 10px; }

  .pricing-card { padding: 26px; }
  .pricing-card h3 { font-size: 20px; }
  .pricing-card .price .amount { font-size: 34px; }
  .pricing-card.featured::before { right: 16px; font-size: 9px; padding: 3px 8px; }

  .faq-item summary { padding: 18px 20px; font-size: 15px; gap: 12px; }
  .faq-item .body { padding: 0 20px 20px; font-size: 14px; }

  .footer { padding: 56px 0 24px; margin-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { font-size: 13px; margin: 12px 0 16px; }
  .footer-newsletter input { font-size: 13px; padding: 9px 12px; }
  .footer-newsletter button { padding: 9px 14px; font-size: 12px; }
  .footer-col h5 { font-size: 10.5px; margin-bottom: 12px; }
  .footer-col a { font-size: 13px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 11.5px; }
}

/* tighter for iPhone Mini / small Android */
@media (max-width: 380px) {
  .container, .container-wide { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .hero h1 { font-size: 36px; }
  .hero-lede { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .section-head h2 { font-size: 26px; }
  .hardware-specs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-badges { gap: 12px 16px; }
}

/* ============ Auth Modal — matches app login page exactly ============ */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0,168,168,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(72,175,221,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0,168,168,0.03) 0%, transparent 70%),
    rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-close {
  position: absolute; top: 14px; right: 18px; background: none; border: none;
  color: #8B6F5E; font-size: 22px; cursor: pointer; line-height: 1;
}
.auth-close:hover { color: #2D2A26; }
.login-card {
  background: rgba(255,255,255,0.92); border-radius: 16px;
  padding: 40px 40px 32px; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  text-align: center; backdrop-filter: blur(8px);
}
.login-logo { margin-bottom: 16px; }
.login-logo-img { width: 96px; height: 96px; object-fit: contain; }
.login-title {
  font-family: "Jim Nightshade", cursive; font-size: 32px; font-weight: 400;
  color: #2D2A26; margin: 0 0 8px; letter-spacing: 0.01em;
}
.login-hailo-logo { margin-bottom: 6px; }
.login-subtitle {
  font-size: 12px; color: #8B6F5E; font-weight: 600;
  margin: 0 0 24px; letter-spacing: 0.06em; text-transform: uppercase;
}
.login-error {
  background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2);
  color: #dc2626; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-bottom: 16px; text-align: left;
}
.login-field { text-align: left; margin-bottom: 14px; }
.login-field label {
  display: block; font-size: 11px; font-weight: 600; color: #8B6F5E;
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.05em;
}
.login-field input {
  width: 100%; padding: 11px 14px; border: 1px solid #E8DDD4;
  border-radius: 8px; background: #FAFAF8; color: #2D2A26;
  font-size: 14px; outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.login-field input:focus { border-color: #00A8A8; }
.login-field input::placeholder { color: #A8998C; }
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 40px; }
.password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #8B6F5E; cursor: pointer; font-size: 16px;
}
.login-mode-toggle {
  display: flex; gap: 0; margin-bottom: 18px; border: 1px solid #E8DDD4; border-radius: 8px; overflow: hidden;
}
.login-mode-toggle .mode-btn {
  flex: 1; padding: 8px; font-size: 12px; font-weight: 600; border: none;
  background: #FAFAF8; color: #8B6F5E; cursor: pointer; transition: all 0.15s;
}
.login-mode-toggle .mode-btn.active { background: #00A8A8; color: #fff; }
.login-button {
  width: 100%; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.login-button:disabled { opacity: 0.5; cursor: not-allowed; }
.login-btn-email { background: #00A8A8; color: #fff; margin-bottom: 0; }
.login-btn-email:hover:not(:disabled) { background: #008C8C; }
.login-btn-google {
  background: #fff; color: #2D2A26; border: 1px solid #E8DDD4; margin-top: 0;
}
.login-btn-google:hover:not(:disabled) { background: #FAFAF8; }
.login-btn-icon { display: flex; align-items: center; }
.login-btn-icon svg { height: 16px; width: auto; }
.login-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #A8998C; font-size: 12px;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: #E8DDD4; }
.auth-toggle { text-align: center; margin-top: 18px; font-size: 13px; color: #8B6F5E; }
.auth-toggle button { background: none; border: none; color: #00A8A8; cursor: pointer; font-weight: 600; font-size: 13px; }
.auth-toggle button:hover { text-decoration: underline; }
.hailo-onboard-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hailo-onboard-chip.inactive { background: #FAF0EB; color: #C0582B; }
.hailo-onboard-chip.active { background: #E0F7F7; color: #00A8A8; }
.hailo-onboard-icon { display: flex; align-items: center; }
.login-footer { margin: 16px 0 0; font-size: 11px; color: #A8998C; }

/* ============ Hero Stats (replaces neural animation) ============ */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px;
}
.hero-stat-card {
  background: var(--bg-secondary, #f8f7f5); border: 1px solid var(--border, #e5e0db);
  border-radius: 12px; padding: 20px 16px; text-align: center;
}
.hero-stat-value {
  font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700;
  color: var(--primary, #14b8a6); line-height: 1.1;
}
.hero-stat-label {
  font-size: 12px; color: var(--text-muted, #8B6F5E); margin-top: 6px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ============ Hailo Powered Badge ============ */
.hailo-powered-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 8px;
  background: #f0f9ff; border: 1px solid #e0f0fa;
  text-decoration: none; transition: all 0.15s;
}
.hailo-powered-badge:hover { background: #e0f4ff; border-color: #48AFDD; }
.hailo-powered-label { font-size: 11px; color: #4A4540; font-weight: 500; }
.hailo-powered-logo { height: 14px; width: auto; }
.hailo-case-study { font-size: 10px; color: #48AFDD; font-weight: 600; letter-spacing: 0.02em; }

.benchmark-bar.cpu-bar .fill {
  background: #1a1715 !important;
  background-image: none !important;
}
