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

:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #F0EEE9;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --accent: #0D9488;
  --accent-dark: #0F766E;
  --critical: #DC2626;
  --warning: #D97706;
  --healthy: #16A34A;
  --border: #E5E2DB;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,243,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

.hero-eyebrow { margin-bottom: 24px; }

.eyebrow-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(13,148,136,0.08);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(13,148,136,0.2);
}

.hero-headline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* Hero visual: account grid */
.hero-visual {
  max-width: 620px;
}

.account-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.account-card {
  background: var(--surface);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.healthy { background: var(--healthy); }
.warning { background: var(--warning); }
.critical { background: var(--critical); box-shadow: 0 0 0 4px rgba(220,38,38,0.15); }

.account-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.account-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.account-score {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 2px;
}

.account-score.healthy { color: var(--healthy); }
.account-score.warning { color: var(--warning); }
.account-score.critical { color: var(--critical); }

.account-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.account-critical .account-status {
  color: var(--critical);
  font-weight: 600;
}

.hero-annotation {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.annotation-icon { font-size: 1rem; }

/* ===== HOW IT WORKS ===== */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

.how-header {
  max-width: 1120px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}

.how-steps {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 48px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s;
}

.feature-card:hover { background: var(--surface-2); }

.feature-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== DASHBOARD PREVIEW ===== */
.dashboard-preview {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

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

.dashboard-text .section-heading { margin-bottom: 16px; }
.dashboard-text .section-sub { margin-bottom: 24px; }

.dashboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
}

/* Mockup window */
.mockup-window {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.mockup-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 8px;
}

.mockup-body { padding: 20px; }

.mock-section { margin-bottom: 20px; }
.mock-section:last-child { margin-bottom: 0; }

.mock-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mock-metrics { display: flex; gap: 24px; }

.mock-metric { display: flex; flex-direction: column; gap: 2px; }

.metric-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mock-rows { display: flex; flex-direction: column; gap: 8px; }

.mock-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 0.8rem;
}

.row-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.row-tag.risk { background: rgba(220,38,38,0.1); color: var(--critical); }
.row-tag.expand { background: rgba(13,148,136,0.1); color: var(--accent); }
.row-tag.ok { background: rgba(22,163,74,0.1); color: var(--healthy); }

.row-text { color: var(--text-muted); line-height: 1.4; }

/* ===== PRICING ===== */
.pricing {
  padding: 80px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.pricing-header { margin-bottom: 48px; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: transform 0.15s;
}

.pricing-card:hover { transform: translateY(-2px); }

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.plan-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* ===== CLOSING ===== */
.closing {
  background: var(--text);
  padding: 96px 24px;
}

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

.closing-headline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 20px;
}

.closing-statement {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

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

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 48px 24px 40px; }
  .how-steps { grid-template-columns: 1fr; }
  .dashboard-inner { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.5rem; }
  .account-card { padding: 12px 16px; }
}
