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

:root {
  --bg: #0e1117;
  --bg-2: #131820;
  --bg-3: #1a2030;
  --teal: #00d4aa;
  --teal-dim: #00a882;
  --amber: #f59e0b;
  --amber-dim: #d97706;
  --text: #e8edf5;
  --text-muted: #8896ab;
  --text-faint: #4a5568;
  --border: rgba(255,255,255,0.07);
  --border-teal: rgba(0,212,170,0.3);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 12px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
.section-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--text); margin-bottom: 1.2rem; }
.section-sub { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; line-height: 1.7; }
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(14,17,23,0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 22px; height: 22px;
  background: var(--teal);
  border-radius: 6px;
  display: inline-block;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.btn-app {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--teal);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-app:hover { background: var(--teal-dim); }

.btn-primary {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--teal);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-dim); }
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 5% 6rem;
  min-height: 85vh;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,170,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,212,170,0.1);
  border: 1px solid var(--border-teal);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.08;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.3;
  max-width: 80px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === DASHBOARD FRAME === */
.hero-visual { position: relative; z-index: 1; }
.dashboard-frame {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,170,0.08);
  max-width: 520px;
  margin-left: auto;
}
.frame-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.frame-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.frame-body { display: flex; height: 360px; }
.frame-sidebar {
  width: 140px;
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.sidebar-item.active { background: rgba(0,212,170,0.08); color: var(--text); }
.sidebar-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sidebar-dot.teal { background: var(--teal); }
.sidebar-dot.amber { background: var(--amber); }
.sidebar-dot.muted { background: var(--text-faint); }

.frame-main {
  flex: 1;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}
.proj-header { display: flex; align-items: center; justify-content: space-between; }
.proj-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.proj-badge {
  font-size: 0.62rem;
  font-family: var(--font-display);
  background: rgba(0,212,170,0.12);
  color: var(--teal);
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  border: 1px solid var(--border-teal);
}
.filing-progress { display: flex; flex-direction: column; gap: 0.3rem; }
.filing-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.filing-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 99px;
  overflow: visible;
  position: relative;
  width: 100%;
}
.bar-fill { height: 100%; border-radius: 99px; }
.teal-fill { background: var(--teal); }
.amber-fill { background: var(--amber); }
.muted-fill { background: var(--text-faint); }
.bar-check {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--bg-2);
}
.filing-status {
  font-size: 0.62rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.filing-status.green { color: var(--teal); }
.filing-status.amber { color: var(--amber); }
.filing-status.muted { color: var(--text-faint); }
.alert-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  color: var(--amber);
  font-family: var(--font-display);
  margin-top: 0.5rem;
}
.alert-icon {
  width: 16px; height: 16px;
  background: var(--amber);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* === PROBLEM === */
.problem {
  padding: 5rem 5%;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.problem-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
}
.problem-icon {
  width: 36px; height: 36px;
  background: rgba(245,158,11,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.problem-card h3 {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.problem-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* === STATE ADAPTERS === */
.state-adapters { padding: 5rem 5%; }
.state-adapters .section-sub { margin-bottom: 2.5rem; }
.adapter-map {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.map-label {
  font-size: 0.7rem;
  font-family: var(--font-display);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.map-states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.map-state {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  border: 1px solid;
}
.map-state.teal { color: var(--teal); border-color: var(--border-teal); background: rgba(0,212,170,0.06); }
.map-state.amber { color: var(--amber); border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.06); }
.map-state.muted { color: var(--text-faint); border-color: var(--border); }
.map-legend { display: flex; gap: 1.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.legend-item { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-display); }
.legend-item::before { content: '\25A0 '; font-size: 0.6rem; margin-right: 0.3rem; }
.legend-item.teal { color: var(--teal); }
.legend-item.amber { color: var(--amber); }
.legend-item.muted { color: var(--text-faint); }

.adapter-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.adapter-col h4 { font-size: 0.8rem; font-family: var(--font-display); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.adapter-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.adapter-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.adapter-list li::before { content: ''; position: absolute; left: 0; top: 0.55rem; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; }

.lifecycle-step { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.l-step-num { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--teal); width: 24px; flex-shrink: 0; padding-top: 0.1rem; }
.l-step-body { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.l-step-body strong { color: var(--text); font-family: var(--font-display); font-weight: 600; }

/* === WORKFLOW === */
.workflow { padding: 5rem 5%; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.workflow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 3rem; position: relative; }
.wf-step { padding-right: 1.5rem; }
.wf-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0,212,170,0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.wf-content h3 { font-size: 0.95rem; font-family: var(--font-display); font-weight: 600; color: var(--text); margin-bottom: 0.6rem; }
.wf-content p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }
.wf-connector {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 0.5rem;
}

/* === FEATURES === */
.features-section { padding: 5rem 5%; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.feat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feat-card.feat-highlight {
  border-color: var(--border-teal);
  background: linear-gradient(135deg, rgba(0,212,170,0.04) 0%, var(--bg-2) 60%);
}
.feat-label { font-size: 0.68rem; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 0.75rem; }
.feat-card.feat-highlight .feat-label { color: var(--teal); }
.feat-card h3 { font-size: 1rem; font-family: var(--font-display); font-weight: 600; color: var(--text); margin-bottom: 0.75rem; line-height: 1.3; }
.feat-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.feat-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.65rem;
  font-family: var(--font-display);
  background: rgba(0,212,170,0.08);
  color: var(--teal);
  border: 1px solid var(--border-teal);
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
}

/* === MANIFESTO === */
.manifesto { padding: 4rem 5%; background: var(--bg); }
.manifesto-rule { height: 1px; background: var(--border); margin-bottom: 2rem; }
.manifesto-rule:last-child { margin-top: 2rem; margin-bottom: 0; }
.manifesto blockquote {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === CLOSING === */
.closing { padding: 5rem 5% 6rem; text-align: center; }
.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.closing p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.closing-cta { display: flex; justify-content: center; }

/* === FOOTER === */
.footer {
  padding: 2.5rem 5%;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.4rem; font-family: var(--font-display); }
.footer-note { font-size: 0.75rem; color: var(--text-faint); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .dashboard-frame { max-width: 100%; }
  .hero-visual { margin-top: 1rem; }
  .workflow-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .wf-connector { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .adapter-detail { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .hero { padding: 3rem 5% 4rem; min-height: auto; }
  .hero-stats { gap: 1rem; }
  .stat-number { font-size: 1.3rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-tagline { display: none; }
  .hero-headline { font-size: 2.2rem; }
}