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

:root {
  --bg: #0b1628;
  --bg2: #0f1e36;
  --bg-card: #132040;
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --amber-glow: rgba(245,158,11,0.25);
  --fg: #f0ebe0;
  --fg2: #b8b0a4;
  --fg3: #7a7268;
  --border: rgba(240,235,224,0.08);
  --radius: 12px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(11,22,40,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg);
  letter-spacing: 0.01em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg3);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 48px 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left { position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg2);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  width: fit-content;
}

.hero-stat { padding: 0 20px; }
.hero-stat:first-child { padding-left: 0; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

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

/* ===== DASHBOARD MOCK ===== */
.dashboard-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.08);
  position: relative;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dot.red { background: #ff5f57; }
.dash-dot.yellow { background: #febc2e; }
.dash-dot.green { background: #28c840; }

.dash-title {
  font-size: 0.72rem;
  color: var(--fg3);
  margin-left: 8px;
  font-weight: 500;
}

.dash-feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  animation: feed-in 0.4s ease-out;
}

.feed-item--new {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.05);
}

@keyframes feed-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-icon { flex-shrink: 0; }

.feed-body { flex: 1; min-width: 0; }

.feed-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-meta {
  font-size: 0.68rem;
  color: var(--fg3);
  margin-top: 2px;
}

.feed-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--amber-dim);
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-badge--done { background: rgba(34,197,94,0.12); color: #22c55e; }
.feed-badge--missed { background: rgba(245,158,11,0.12); color: var(--amber); }

.dash-pulse {
  position: absolute;
  bottom: 56px;
  right: 20px;
  width: 48px;
  height: 48px;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0.3;
  animation: ripple 2s ease-out infinite;
}

.pulse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber);
}

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.dash-live {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #22c55e;
}

.dash-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.dash-counter {
  font-size: 0.68rem;
  color: var(--fg3);
}

/* ===== STATS BAR ===== */
.statsbar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 48px;
}

.statsbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.statsbar-item {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}

.statsbar-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.statsbar-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.statsbar-label {
  font-size: 0.8rem;
  color: var(--fg2);
  line-height: 1.5;
}

/* ===== HOW IT WORKS ===== */
.hiw {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 56px;
  max-width: 580px;
}

.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hiw-step {
  flex: 1;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.hiw-connector {
  width: 48px;
  flex-shrink: 0;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--amber), var(--border));
  margin-top: 56px;
  position: relative;
}

.hiw-connector::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(245,158,11,0.15);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 12px;
  font-weight: 400;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--fg2);
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  background: var(--bg2);
  padding: 96px 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.1), 0 8px 32px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--amber-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 10px;
  font-weight: 400;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--fg2);
  line-height: 1.7;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 120px 48px;
  background: var(--bg);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--fg);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  position: relative;
}

.manifesto-quote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--amber);
  position: absolute;
  top: -30px;
  left: -30px;
  font-family: var(--font-display);
  line-height: 1;
  opacity: 0.3;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg2);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== CLOSING ===== */
.closing {
  padding: 96px 48px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner { max-width: 700px; margin: 0 auto; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--fg);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.15;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 48px;
}

.closing-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.closing-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  flex: 1;
  font-size: 0.85rem;
  color: var(--fg2);
  font-weight: 500;
  border-right: 1px solid var(--border);
}

.closing-item:last-child { border-right: none; }

.closing-icon { color: var(--amber); flex-shrink: 0; }

.closing-note {
  font-size: 0.8rem;
  color: var(--fg3);
  font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 48px 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner { max-width: 600px; margin: 0 auto; text-align: center; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg3);
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hiw-steps { flex-direction: column; }
  .hiw-connector { display: none; }
  .hiw-step { border-radius: 0; border-left: none; border-right: none; }
  .hiw-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .hiw-step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .statsbar-inner { flex-direction: column; gap: 24px; }
  .statsbar-sep { display: none; }
  .closing-stack { flex-direction: column; }
  .closing-item { border-right: none; border-bottom: 1px solid var(--border); }
  .closing-item:last-child { border-bottom: none; }
  .nav { padding: 16px 24px; }
  .hero { padding: 56px 24px 48px; }
  .hiw, .features, .manifesto, .closing, .footer { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats-row { flex-direction: column; width: 100%; }
  .hero-stat-divider { width: 100%; height: 1px; }
  .hero-stat { padding: 12px 0; text-align: center; }
  .statsbar { padding: 28px 24px; }
  .statsbar-item { padding: 0; }
}