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

:root {
  --bg:        #0d0f14;
  --surface:   #1e2533;
  --surface2:  #252d3d;
  --border:    #2d3548;
  --amber:     #f5a623;
  --amber-dim: #b87a14;
  --text:      #e8eaf0;
  --muted:     #8b9ab5;
  --green:     #4ade80;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --max-w:     1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
  color: var(--text); letter-spacing: 0.05em;
}
.nav-logo-os { color: var(--amber); margin-left: 3px; }
.nav-tagline { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); }

/* =====================
   TYPOGRAPHY HELPERS
   ===================== */
.section-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 80px 24px;
}
.section-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--amber); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.section-heading {
  font-family: var(--font-mono); font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--text); line-height: 1.15;
  margin-bottom: 20px;
}
.section-body { font-size: 1.05rem; color: var(--muted); max-width: 580px; line-height: 1.7; }

/* =====================
   HERO
   ===================== */
.hero { padding: 80px 24px 100px; }
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--amber); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 24px; display: block;
}
.hero-headline {
  font-family: var(--font-mono); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.05; color: var(--text);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.1rem; color: var(--muted); line-height: 1.75; max-width: 520px;
}
.hero-sidebar { display: flex; flex-direction: column; gap: 24px; }
.hero-score-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px 24px; text-align: center;
}
.hero-score-label {
  display: block; font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-score-num {
  display: block; font-family: var(--font-mono); font-size: 5rem;
  font-weight: 700; color: var(--amber); line-height: 1;
}
.hero-score-sub {
  display: block; font-size: 0.8rem; color: var(--green); margin-top: 8px;
  font-family: var(--font-mono);
}
.hero-stats { display: flex; flex-direction: column; gap: 0; }
.hero-stat {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
}
.hero-stat:last-child { border-bottom: none; }
.hero-stat-val { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.hero-stat-key { font-size: 0.82rem; color: var(--muted); }

/* =====================
   LOOP
   ===================== */
.loop-section { background: var(--surface); }
.loop-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 48px; }
.loop-step { background: var(--surface); padding: 32px 28px; }
.loop-step-num { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--amber); letter-spacing: 0.1em; margin-bottom: 16px; }
.loop-step h3 { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.loop-step p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* =====================
   FEATURES
   ===================== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-top: 48px;
}
.feature-card {
  background: var(--bg); padding: 32px 28px; transition: background 0.2s;
}
.feature-card:hover { background: var(--surface); }
.feature-icon { color: var(--amber); margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* =====================
   CASS
   ===================== */
.cass-section { background: var(--surface); }
.cass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cass-desc { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 32px; }
.cass-points { display: flex; flex-direction: column; gap: 20px; }
.cass-point { display: flex; gap: 14px; align-items: flex-start; }
.cass-point-icon { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.cass-point p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.cass-ui {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; font-size: 0.85rem;
}
.cass-ui-header {
  padding: 12px 16px; background: var(--surface2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.cass-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.cass-ui-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.cass-message-row { padding: 12px 16px; display: flex; flex-direction: column; }
.cass-msg-user { align-items: flex-end; }
.cass-msg-assistant { align-items: flex-start; }
.cass-msg-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 12px; line-height: 1.5; font-size: 0.85rem;
}
.cass-msg-user .cass-msg-bubble { background: var(--amber); color: #0d0f14; font-weight: 500; }
.cass-msg-bot { background: var(--surface2); color: var(--text); border-bottom-left-radius: 4px; }

/* =====================
   TIERS
   ===================== */
.tiers-section { background: var(--bg); }
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tier-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 32px 28px;
}
.tier-active { border-color: var(--amber); }
.tier-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tier-name { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.tier-badge { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber); color: #0d0f14; padding: 4px 8px; border-radius: 4px; }
.tier-badge-soon { background: var(--surface2); color: var(--muted); }
.tier-price { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tier-per { font-size: 1rem; font-weight: 400; color: var(--muted); }
.tier-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 24px; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tier-features li { font-size: 0.88rem; color: var(--muted); display: flex; gap: 8px; }
.tier-features li::before { content: '—'; color: var(--amber); font-family: var(--font-mono); flex-shrink: 0; }
.tiers-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 32px; font-family: var(--font-mono); }

/* =====================
   MANIFESTO
   ===================== */
.manifesto-section { background: var(--surface); }
.manifesto-inner { max-width: 720px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.manifesto-quote-mark { font-family: var(--font-mono); font-size: 8rem; color: var(--amber); line-height: 0.5; margin-bottom: 24px; }
.manifesto-text { font-family: var(--font-mono); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; color: var(--text); line-height: 1.5; margin-bottom: 24px; }
.manifesto-attr { font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); margin-bottom: 48px; }
.manifesto-divider { width: 60px; height: 1px; background: var(--border); margin: 0 auto 48px; }
.manifesto-closing { font-size: 1rem; color: var(--muted); line-height: 1.75; }

/* =====================
   FOOTER
   ===================== */
.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 48px 24px; text-align: center; }
.footer-logo { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.footer-logo-os { color: var(--amber); }
.footer-tagline { font-size: 0.82rem; color: var(--muted); margin-bottom: 24px; }
.footer-tagline a { color: var(--amber); text-decoration: none; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--border); font-family: var(--font-mono); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .loop-steps { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .cass-grid { grid-template-columns: 1fr; gap: 40px; }
  .tiers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .loop-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 1.5rem; }
  .hero-headline { font-size: 2.2rem; }
  .nav-tagline { display: none; }
}