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

:root {
  --ink: #0f172a;
  --ink-mid: #1e293b;
  --ink-light: #334155;
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --off-white: #f8fafc;
  --cream: #f1f5f9;
  --border: #e2e8f0;
  --text-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: 'Syne', system-ui, sans-serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

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

.section-headline {
  margin-bottom: 3.5rem;
}

/* === NAV === */
.nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(248,250,252,0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}

/* === HERO === */
.hero {
  padding: 6rem 2rem 5rem;
  background: var(--ink);
  color: white;
}

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

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.hero-headline {
  color: white;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--amber);
  font-weight: 500;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* === DASHBOARD CARD === */
.dashboard-card {
  background: #1a2744;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dashboard-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.dashboard-period {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

.status-items { display: flex; flex-direction: column; gap: 0.75rem; }

.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-amber .status-dot { background: #f59e0b; }
.status-red .status-dot { background: #ef4444; }
.status-green .status-dot { background: #22c55e; }

.status-info { flex: 1; }

.status-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
}

.status-detail {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.15rem;
}

.status-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-badge.amber { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-badge.red { background: rgba(239,68,68,0.15); color: #f87171; }
.status-badge.green { background: rgba(34,197,94,0.15); color: #4ade80; }

/* === HOW IT WORKS === */
.howitworks {
  padding: 7rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.step { padding: 0 1.5rem; }

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.6rem; }

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  width: 1px;
  height: 100px;
  background: var(--border);
  align-self: center;
  margin-top: 1.5rem;
}

/* === CATEGORIES === */
.categories {
  background: var(--cream);
  padding: 7rem 2rem;
}

.categories .section-headline { max-width: 1100px; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }
.categories .section-label { max-width: 1100px; margin-left: auto; margin-right: auto; }

.category-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.08);
}

.category-icon {
  width: 52px;
  height: 52px;
  background: var(--amber-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.category-card h3 { margin-bottom: 1rem; }

.category-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.category-card li {
  font-size: 0.875rem;
  color: var(--ink-light);
  padding-left: 1.25rem;
  position: relative;
}

.category-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

/* === DOCUMENTS === */
.documents { background: var(--ink); color: white; padding: 7rem 2rem; }

.doc-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.doc-text .section-label { color: var(--amber); }
.doc-text h2 { color: white; margin-bottom: 1.25rem; }
.doc-text p { color: rgba(255,255,255,0.55); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }

.doc-list { display: flex; flex-direction: column; gap: 0.875rem; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.doc-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Document mock */
.doc-mock {
  background: #1a2744;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.doc-mock-header {
  background: rgba(255,255,255,0.04);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.doc-mock-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.doc-mock-tag {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--amber-dim);
  color: var(--amber);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-mock-body { padding: 1.5rem; }

.doc-mock-line {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.doc-mock-line.w80 { width: 80%; }
.doc-mock-line.w60 { width: 60%; }
.doc-mock-line.w90 { width: 90%; }
.doc-mock-line.w40 { width: 40%; }
.doc-mock-line.w70 { width: 70%; }
.doc-mock-line.w85 { width: 85%; }
.doc-mock-line.w55 { width: 55%; }
.doc-mock-line.w75 { width: 75%; }

.doc-mock-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 1rem 0; }

.doc-mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.15);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* === CLOSING === */
.closing {
  padding: 7rem 2rem;
  background: var(--cream);
  text-align: center;
}

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

.closing-stat {
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.closing-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}

.closing-headline { margin-bottom: 1.25rem; }

.closing-sub {
  font-size: 1.05rem;
  color: var(--ink-light);
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  background: var(--ink);
  padding: 3rem 2rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 0.75rem;
}

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-dashboard { order: -1; }
  .doc-content { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .step-connector { display: none; }
  .category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .howitworks { padding: 4rem 1.5rem; }
  .categories { padding: 4rem 1.5rem; }
  .documents { padding: 4rem 1.5rem; }
  .closing { padding: 4rem 1.5rem; }
  .closing-stat { font-size: 3.5rem; }
  .steps { grid-template-columns: 1fr; }
  .status-item { padding: 0.6rem 0.75rem; }
}