/* ═══════════════════════════════════════════
   codeOps — style.css
   Aesthetic: Dark precision tech / editorial
   Fonts: Syne (display) + DM Sans (body) + DM Mono (code)
═══════════════════════════════════════════ */

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

:root {
  /* Core palette */
  --bg:          #060812;
  --bg-2:        #0a0f1e;
  --bg-3:        #0f1628;
  --surface:     #111827;
  --surface-2:   #1a2236;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);

  /* Brand */
  --cyan:        #00D4FF;
  --blue:        #0066FF;
  --blue-mid:    #3B82F6;
  --cyan-dim:    rgba(0,212,255,0.15);
  --blue-dim:    rgba(0,102,255,0.15);

  /* Text */
  --text-1:      #F0F4FF;
  --text-2:      #9BA8C4;
  --text-3:      #5A6785;

  /* Model colors */
  --opus-bg:     rgba(167,139,250,0.15);
  --opus-fg:     #a78bfa;
  --sonnet-bg:   rgba(52,211,153,0.15);
  --sonnet-fg:   #34d399;
  --haiku-bg:    rgba(251,191,36,0.15);
  --haiku-fg:    #fbbf24;

  /* Misc */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(0,212,255,0.12);

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --transition:   0.2s ease;
  --transition-md: 0.35s cubic-bezier(0.4,0,0.2,1);

  --max-w: 1200px;
  --section-pad: 100px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND EFFECTS ─────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── SCROLLBAR ──────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── LAYOUT HELPERS ─────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
  position: relative;
  z-index: 1;
}

/* ── TYPOGRAPHY UTILS ───────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 5px 12px;
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  background: rgba(0,212,255,0.06);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
  margin: 20px 0 18px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.title-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}
.btn-primary:hover::before { background: rgba(255,255,255,0.1); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,212,255,0.3); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-2);
  text-decoration: none;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-ghost:hover { color: var(--text-1); background: var(--surface); }

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.btn-nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition-md);
}
.nav.scrolled {
  background: rgba(6,8,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { border-radius: 9px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
}
.logo-accent {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-1); background: var(--surface); }

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: var(--transition-md);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  padding: 160px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,102,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 100px;
  background: rgba(0,212,255,0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Hero Terminal */
.hero-terminal {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.term-dots { display: flex; gap: 6px; }
.td {
  width: 12px; height: 12px; border-radius: 50%;
}
.td.red    { background: #FF5F57; }
.td.yellow { background: #FFBD2E; }
.td.green  { background: #28CA41; }

.term-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.term-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #28CA41;
}

.term-body {
  padding: 20px 22px;
  min-height: 180px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.term-prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-prompt { color: var(--cyan); }
.t-cmd { color: var(--text-1); }
.t-cursor {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.term-output { margin-top: 8px; color: var(--text-2); }
.term-output .t-success { color: var(--sonnet-fg); }
.term-output .t-info    { color: var(--cyan); }
.term-output .t-warn    { color: var(--haiku-fg); }
.term-output .t-dim     { color: var(--text-3); }
.term-output .t-line    { display: block; }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── STATS BAR ──────────────────────────── */
.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0,212,255,0.04) 0%, rgba(0,102,255,0.04) 100%);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 48px;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── CAPABILITIES ───────────────────────── */
.capabilities {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(10,15,30,0.6) 50%, transparent 100%);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cap-card {
  background: var(--bg-2);
  padding: 28px 24px;
  transition: var(--transition-md);
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), transparent);
  opacity: 0;
  transition: var(--transition-md);
}
.cap-card:hover { background: var(--bg-3); }
.cap-card:hover::before { opacity: 1; }

.cap-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cyan-dim), var(--blue-dim));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--cyan);
  transition: var(--transition);
}
.cap-card:hover .cap-icon-wrap {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,102,255,0.2));
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.cap-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.cap-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── DASHBOARD MODULES ──────────────────── */
.dashboard-section {
  position: relative;
  z-index: 1;
}

.module-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}
.module-row:last-child { border-bottom: none; margin-bottom: 0; }
.module-row.reverse { direction: rtl; }
.module-row.reverse > * { direction: ltr; }

.module-tag-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.module-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.module-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 4px 10px;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  background: rgba(0,212,255,0.06);
}

.module-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
  line-height: 1.25;
}
.module-info p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.module-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}
.module-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 12px;
}

/* Widget Cards */
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.wc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.wc-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.wc-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 100px;
}
.wc-badge.live {
  color: #28CA41;
  background: rgba(40,202,65,0.1);
  border: 1px solid rgba(40,202,65,0.2);
}

/* Session Table */
.session-table { padding: 8px 0; }
.st-head {
  display: grid;
  grid-template-columns: 1fr 1fr 80px 70px 90px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.st-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px 70px 90px;
  padding: 9px 18px;
  align-items: center;
  font-size: 13px;
  transition: var(--transition);
}
.st-row:hover { background: var(--surface-2); }
.st-user { color: var(--text-1); font-weight: 500; }
.st-host { color: var(--text-2); font-family: var(--font-mono); font-size: 12px; }
.st-cost { color: var(--text-1); font-family: var(--font-mono); font-size: 12px; }

/* Model Badges */
.mbadge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.mbadge.opus    { background: var(--opus-bg);   color: var(--opus-fg); }
.mbadge.sonnet  { background: var(--sonnet-bg); color: var(--sonnet-fg); }
.mbadge.haiku   { background: var(--haiku-bg);  color: var(--haiku-fg); }

/* Status Badges */
.sbadge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.sbadge.active   { background: rgba(40,202,65,0.12); color: #28CA41; border: 1px solid rgba(40,202,65,0.25); }
.sbadge.detached { background: rgba(251,191,36,0.12); color: var(--haiku-fg); border: 1px solid rgba(251,191,36,0.25); }

/* User List */
.user-list { padding: 8px 0; }
.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  transition: var(--transition);
}
.user-item:hover { background: var(--surface-2); }

.ui-avatar {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.ui-avatar.superuser { background: linear-gradient(135deg, var(--cyan-dim), var(--blue-dim)); color: var(--cyan); border: 1px solid rgba(0,212,255,0.3); }
.ui-avatar.manager   { background: rgba(167,139,250,0.15); color: var(--opus-fg); border: 1px solid rgba(167,139,250,0.3); }
.ui-avatar.user      { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-2); }

.ui-info { flex: 1; }
.ui-info strong { display: block; font-size: 13px; color: var(--text-1); }
.ui-info small  { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

.ui-budget {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  padding: 3px 8px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.ui-budget.unlimited { color: var(--sonnet-fg); background: var(--sonnet-bg); }
.ui-budget.warn      { color: var(--haiku-fg); background: var(--haiku-bg); }

/* Cost Summary */
.cost-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-metric {
  background: var(--bg-3);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
}
.cs-label {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.cost-models { padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.cm-row {}
.cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.cm-spend {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.cm-bar-wrap {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.cm-bar {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 2px;
  transition: width 1s ease 0.5s;
}

/* ── TERMINAL SECTION ───────────────────── */
.terminal-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(0,15,40,0.4) 50%, transparent 100%);
}

.term-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.tf-card {
  background: var(--bg-2);
  padding: 28px 24px;
  transition: var(--transition-md);
}
.tf-card:hover { background: var(--bg-3); }

.tf-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 14px;
}
.tf-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.tf-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── ARCHITECTURE ───────────────────────── */
.arch-section { position: relative; z-index: 1; }

.arch-flows {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 60px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.af-card {
  flex: 1;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.af-card:last-child { border-right: none; }
.af-card:hover { background: var(--surface-2); }

.af-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--text-3);
  display: none;
}

.af-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cyan-dim), var(--blue-dim));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 14px;
}
.af-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.af-path {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  margin-bottom: 4px;
}
.af-desc { font-size: 12px; color: var(--text-3); }

/* Tech Stack */
.tech-stack h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
  margin-bottom: 20px;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tech-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px;
  transition: var(--transition);
}
.tech-pill:hover { border-color: var(--cyan); background: var(--surface-2); }
.tech-pill strong { color: var(--cyan); font-weight: 600; }
.tech-pill span   { color: var(--text-2); }

/* ── BUDGET SECTION ─────────────────────── */
.budget-section { position: relative; z-index: 1; }

.budget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
}

.budget-card {
  background: var(--bg-2);
  padding: 28px 22px;
  position: relative;
  transition: var(--transition-md);
}
.budget-card:hover { background: var(--bg-3); }
.budget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  opacity: 0;
  transition: var(--transition);
}
.budget-card:hover::before { opacity: 1; }

.budget-tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding: 4px 10px;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  background: rgba(0,212,255,0.06);
  margin-bottom: 12px;
}
.budget-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.enforcement-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.enforce-card {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: var(--transition);
}
.enforce-card:hover { border-color: var(--border-2); transform: translateY(-2px); }

.ec-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.enforce-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.enforce-card.warn  .ec-label { color: var(--haiku-fg); }
.enforce-card.soft  .ec-label { color: var(--blue-mid); }
.enforce-card.hard  .ec-label { color: #f87171; }

.enforce-card.warn  { border-left: 3px solid var(--haiku-fg); }
.enforce-card.soft  { border-left: 3px solid var(--blue-mid); }
.enforce-card.hard  { border-left: 3px solid #f87171; }

.ec-dot {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.enforce-card.warn .ec-dot  { background: var(--haiku-fg); box-shadow: 0 0 8px var(--haiku-fg); }
.enforce-card.soft .ec-dot  { background: var(--blue-mid); box-shadow: 0 0 8px var(--blue-mid); }
.enforce-card.hard .ec-dot  { background: #f87171; box-shadow: 0 0 8px #f87171; }

/* ── SECURITY ───────────────────────────── */
.security-section { position: relative; z-index: 1; }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sec-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition-md);
}
.sec-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

.sec-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cyan-dim), var(--blue-dim));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 14px;
  transition: var(--transition);
}
.sec-card:hover .sec-icon { box-shadow: 0 0 20px rgba(0,212,255,0.2); }

.sec-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.sec-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

/* ── PRICING ────────────────────────────── */
.pricing-section { position: relative; z-index: 1; }

.pricing-table {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
}

.pt-head, .pt-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 14px 20px;
  align-items: center;
}
.pt-head {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.pt-row {
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-1);
  transition: var(--transition);
}
.pt-row:last-child { border-bottom: none; }
.pt-row:hover { background: var(--surface-2); }
.pt-row > span:not(:first-child) {
  font-family: var(--font-mono);
  color: var(--text-2);
}

.thresholds h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
  margin-bottom: 20px;
}
.thresh-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.thresh-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 40px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  min-width: 150px;
}
.thresh-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.thresh-label {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ── QUICKSTART ─────────────────────────── */
.quickstart-section { position: relative; z-index: 1; }

.qs-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  min-width: 200px;
  text-align: center;
  transition: var(--transition);
}
.qs-step:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); }

.qs-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.qs-step code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-1);
  background: var(--bg-3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  word-break: break-all;
}
.qs-step p { font-size: 13px; color: var(--text-3); }

.qs-arrow {
  font-size: 20px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ── FAQ ────────────────────────────────── */
.faq-section { position: relative; z-index: 1; }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item { background: var(--bg-2); }
.faq-item:hover { background: var(--bg-3); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  gap: 12px;
  transition: var(--transition);
}
.faq-q:hover { color: var(--cyan); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-md);
  color: var(--text-3);
}
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--cyan); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-a.open { max-height: 200px; }
.faq-a p {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── CTA SECTION ────────────────────────── */
.cta-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0,102,255,0.2) 0%, rgba(0,212,255,0.1) 40%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.15;
  margin-bottom: 18px;
}
.cta-inner p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cta-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-pills span {
  font-size: 13px;
  color: var(--text-3);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
}

/* ── FOOTER ─────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-3); text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: var(--cyan); }

/* ── SCROLL ANIMATIONS ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1) var(--delay, 0ms),
              transform 0.65s cubic-bezier(0.4,0,0.2,1) var(--delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-flows { flex-wrap: wrap; }
  .af-card { flex: 1 1 calc(50% - 1px); }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6,8,18,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 8px;
    align-items: flex-start;
    z-index: 99;
  }
  .nav-links.open .nav-link {
    font-size: 18px;
    padding: 10px 0;
    width: 100%;
  }
  .nav-links.open + .nav-actions {
    display: flex;
    position: fixed;
    bottom: 32px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
  }

  .module-row, .module-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .term-features-grid { grid-template-columns: repeat(2, 1fr); }
  .budget-grid { grid-template-columns: repeat(2, 1fr); }
  .enforcement-row { grid-template-columns: 1fr; }

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

  .stats-inner { gap: 0; }
  .stat-item { padding: 20px 24px; }
  .stat-divider { display: none; }

  .qs-steps { flex-direction: column; align-items: stretch; }
  .qs-arrow { transform: rotate(90deg); align-self: center; }
  .qs-step { min-width: unset; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px; }

  .hero { padding: 130px 20px 60px; }
  .hero-title { letter-spacing: -0.01em; }

  .cap-grid { grid-template-columns: 1fr; }
  .term-features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .budget-grid { grid-template-columns: 1fr; }

  .pt-head, .pt-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .pt-head span:nth-child(4),
  .pt-head span:nth-child(5),
  .pt-row  span:nth-child(4),
  .pt-row  span:nth-child(5) { display: none; }

  .thresh-row { flex-direction: column; align-items: center; }
  .thresh-card { width: 100%; max-width: 280px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .arch-flows { flex-direction: column; }
  .af-card { flex: 1; }

  .stats-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-divider { display: none; }
}
