/* ─── Nerd Buddy Landing Site Design System (Interactive Dual-Peer Simulation & Checklist Enhanced) ─── */

:root {
  --bg-base: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-hover: #141b2c;
  --bg-glass: rgba(14, 19, 31, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
}

/* Ambient Glows */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.bg-glow-1 {
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

.bg-glow-2 {
  top: 700px;
  right: 10%;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Lucide Icon Sizes */
.icon-brand { width: 22px; height: 22px; color: #818cf8; }
.icon-feature { width: 26px; height: 26px; color: #818cf8; }
.icon-lg { width: 22px; height: 22px; }
.icon-md { width: 18px; height: 18px; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }
.icon-xxs { width: 12px; height: 12px; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #111622;
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Regional Status Bar */
.regional-status-bar {
  background: rgba(14, 19, 31, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 0;
}

.regional-status-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.geo-region-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #c7d2fe;
}

.geo-live-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
}

.geo-latency-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.geo-divider {
  color: var(--text-dim);
}

.lang-selector-wrapper {
  margin-left: auto;
}

.lang-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a5b4fc;
  font-weight: 600;
  margin-bottom: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 24px;
  border-radius: var(--radius-md);
}

.btn-lg-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lg-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-main-text {
  font-size: 15px;
  font-weight: 700;
}

.btn-subtext {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}

.btn-micro {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-micro:hover {
  background: rgba(99, 102, 241, 0.35);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  min-width: 0;
  flex-shrink: 0;
}

.brand-icon-wrapper {
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-beta {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  transition: all 0.2s ease;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ffffff;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #c7d2fe;
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Platforms Bar */
.platforms-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.platforms-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.platforms-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.platform-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* Dual-Peer Interactive Sandbox Section */
.dual-demo-section {
  padding: 60px 0 80px;
}

.dual-demo-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: rgba(14, 19, 31, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.mock-browser-card {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}

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

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.card-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tutor-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.audience-badge {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.card-url {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.card-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #34d399;
  font-weight: 600;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.mock-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Code Editor Area */
.code-editor-area {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  position: relative;
  cursor: crosshair;
  min-height: 160px;
  user-select: none;
}

.code-header-bar {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.hint-text {
  color: #f59e0b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.code-content div { line-height: 1.5; }
.code-content .indent { padding-left: 14px; }
.code-content .indent-2 { padding-left: 28px; }
.code-content .indent-3 { padding-left: 42px; }

.c-kw { color: #f43f5e; font-weight: 600; }
.c-fn { color: #38bdf8; }
.c-var { color: #facc15; }

/* Local and Remote Laser Pointer Elements */
.local-laser-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px #ef4444;
  opacity: 0;
  transition: opacity 0.15s ease;
  transform: translate(-50%, -50%);
}

.remote-laser-pointer {
  position: absolute;
  top: 50%;
  left: 45%;
  pointer-events: none;
  transition: all 0.05s ease-out;
}

.remote-dot {
  width: 12px;
  height: 12px;
  background: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #ef4444;
}

.remote-tag {
  position: absolute;
  top: 14px;
  left: 0;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Mesh Wire Visualizer */
.mesh-wire-visualizer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 10px;
}

.wire-pulse {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1 0%, #06b6d4 100%);
  position: relative;
  animation: pulseWire 2s infinite;
}

.wire-label {
  font-size: 9px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  margin-top: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@keyframes pulseWire {
  0% { opacity: 0.4; }
  50% { opacity: 1; box-shadow: 0 0 12px #06b6d4; }
  100% { opacity: 0.4; }
}

/* Mini Chat Pane */
.mini-chat-pane {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.stage-alert-pill {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mini-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 100px;
  overflow-y: auto;
  font-size: 11px;
}

.chat-bubble {
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 90%;
  line-height: 1.4;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.chat-bubble.received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.bubble-nick { font-weight: 700; color: #a5b4fc; margin-right: 4px; }
.ack-mark { color: #38bdf8; font-size: 9px; margin-left: 4px; }

.mini-chat-input-box {
  display: flex;
  gap: 6px;
}

.mini-chat-input-box input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
}

.mini-chat-input-box input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.btn-send-mini {
  background: var(--accent-primary);
  border: none;
  color: #fff;
  padding: 0 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sections Global */
.features-section,
.sandbox-section,
.architecture-section,
.install-section,
.faq-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Sandbox Simulator */
.sandbox-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.sandbox-header {
  margin-bottom: 20px;
}

.sandbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
}

.sandbox-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.sandbox-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
}

.sandbox-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.sandbox-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.result-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.result-box.result-highlight {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.result-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.result-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.code-font {
  font-family: var(--font-mono);
  color: #38bdf8;
}

.sandbox-spoiler-demo {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.demo-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.demo-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.spoiler-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.spoiler-text {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.spoiler-pill.revealed .spoiler-text {
  filter: blur(0);
}

/* Architecture Section */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.arch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.arch-icon {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.arch-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.arch-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive Checklist Setup Progress */
.setup-progress-wrapper {
  max-width: 600px;
  margin: 0 auto 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.setup-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.setup-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.setup-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s ease;
}

.step-card.completed {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.04);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--accent-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #10b981;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.code-snippet {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(99, 102, 241, 0.3);
}

.badge-success {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* CTA Banner */
.cta-section {
  padding: 60px 0;
}

.cta-container {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a5b4fc;
  font-weight: 600;
  margin-bottom: 12px;
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.cta-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #040609;
  padding: 60px 0 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

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

.col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Comparison Section */
.comparison-section {
  padding: 80px 0;
}

.comparison-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.4);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table .highlight-header {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-left: 2px solid var(--accent-primary);
  border-right: 2px solid var(--accent-primary);
}

.comparison-table .highlight-cell {
  background: rgba(99, 102, 241, 0.06);
  border-left: 2px solid rgba(99, 102, 241, 0.3);
  border-right: 2px solid rgba(99, 102, 241, 0.3);
  font-weight: 700;
  color: #fff;
}

.td-feature strong {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 2px;
}

.td-feature span {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
}

.icon-check {
  color: #10b981;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

.icon-cross {
  color: #ef4444;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

.icon-neutral {
  color: #f59e0b;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ─── Whiteboard Studio & Diary Section Styling ─── */
.whiteboard-studio-section {
  padding: 80px 0;
  position: relative;
}

.studio-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(20px);
}

.studio-header {
  display: flex;
  align-items: center;
  justifyContent: space-between;
  padding: 12px 18px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.studio-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.studio-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.studio-workspace {
  position: relative;
  background: #090d16;
}

.studio-toolbar {
  display: flex;
  align-items: center;
  justifyContent: space-between;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
}

.tool-btn-group {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.wb-demo-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wb-demo-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

.wb-demo-btn.active {
  background: rgba(99, 102, 241, 0.35);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.wb-color-picker {
  display: flex;
  gap: 4px;
  align-items: center;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s;
}

.color-swatch.active {
  transform: scale(1.25);
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px currentColor;
}

.studio-canvas-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

#landing-wb-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.canvas-watermark-hint {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Diary Demo Layout */
.diary-demo-container {
  display: flex;
  min-height: 380px;
  background: #090d16;
}

.diary-demo-sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.6);
  border-right: 1px solid var(--border-subtle);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.diary-book-pill {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.diary-entries-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.diary-entry-card {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.diary-entry-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.diary-entry-card.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  border-left: 3px solid #6366f1;
}

.diary-entry-date {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.diary-entry-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diary-entry-tags {
  font-size: 10px;
  color: #818cf8;
}

.diary-demo-editor {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diary-editor-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.diary-title-input {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
  margin-bottom: 6px;
}

.diary-meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}

.diary-mood-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.diary-problem-link {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.diary-textarea {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  outline: none;
  resize: none;
}

.diary-footer-actions {
  display: flex;
  align-items: center;
  justifyContent: space-between;
  padding-top: 8px;
}

.diary-storage-tag {
  font-size: 11px;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .dual-demo-container {
    grid-template-columns: 1fr;
  }
  .mesh-wire-visualizer {
    transform: rotate(90deg);
    margin: 20px 0;
  }
  .diary-demo-container {
    flex-direction: column;
  }
  .diary-demo-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 700px) {
  .dual-demo-section {
    padding-top: 40px;
  }

  .dual-demo-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .mock-browser-card {
    min-width: 0;
  }

  .mock-card-header {
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .card-user-info {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .card-url {
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .mock-card-body {
    gap: 10px;
  }

  .code-editor-area {
    font-size: 10px;
    min-height: 140px;
  }

  .mini-chat-pane {
    padding: 8px;
  }

  .chat-bubble {
    max-width: 95%;
    font-size: 10px;
  }

  .mini-chat-input-box {
    flex-wrap: wrap;
  }

  .mini-chat-input-box input {
    min-width: 0;
    width: 100%;
  }

  .btn-send-mini {
    width: 100%;
    min-height: 32px;
  }

  .mesh-wire-visualizer {
    width: 100%;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-title { font-size: 42px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(10, 13, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
    z-index: 20;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 4px 0;
    font-size: 13px;
  }

  .nav-toggle { display: block; }
  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .nav-container {
    min-height: 64px;
    gap: 8px;
  }

  .nav-brand {
    font-size: 18px;
    gap: 8px;
  }

  .brand-icon-wrapper {
    width: 28px;
    height: 28px;
  }

  .badge-beta {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    padding-inline: 12px;
  }

  .nav-actions .btn span {
    font-size: 12px;
  }

  .nav-actions .btn-download-trigger {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav-container {
    gap: 8px;
  }

  .nav-brand {
    font-size: 17px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn {
    padding: 8px 10px;
  }

  .nav-actions .btn .icon-sm,
  .nav-actions .btn .icon-svg {
    width: 13px;
    height: 13px;
  }

  .nav-toggle {
    margin-left: 2px;
  }

  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .hero-cta-group { flex-direction: column; }
  .btn-lg { width: 100%; }
  .sandbox-input-row { flex-direction: column; }
}
