/* --- Variables --- */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F1ED;
  --fg: #1A1A18;
  --fg-muted: #6B6B63;
  --fg-faint: #A8A8A0;
  --accent: #1A3A2A;
  --accent-light: #2D5240;
  --highlight: #E8A838;
  --highlight-light: #F5C76B;
  --border: #E0DED8;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(26,26,24,0.06), 0 1px 2px rgba(26,26,24,0.04);
  --shadow-md: 0 4px 12px rgba(26,26,24,0.08), 0 2px 4px rgba(26,26,24,0.04);
  --shadow-lg: 0 16px 40px rgba(26,26,24,0.10), 0 4px 12px rgba(26,26,24,0.06);
}

/* --- Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

/* --- Navbar --- */
.navbar {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 18px;
  font-family: 'DM Sans', sans-serif;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

/* --- Hero --- */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-text { max-width: 480px; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(40px, 5vw, 56px);
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 420px;
}

/* --- Hero Visual --- */
.hero-visual {
  display: flex;
  align-items: center;
  gap: 32px;
}
.chaos-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.chaos-label, .signal-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-bottom: 6px;
}
.chaos-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  box-shadow: var(--shadow-sm);
  animation: pulse-bg 3s ease-in-out infinite;
}
.chaos-icon svg { opacity: 0.6; flex-shrink: 0; }
.chaos-icon.school-1 { animation-delay: 0s; }
.chaos-icon.school-2 { animation-delay: 0.4s; }
.chaos-icon.school-3 { animation-delay: 0.8s; }
.chaos-icon.school-4 { animation-delay: 1.2s; }
.chaos-icon.school-5 { animation-delay: 1.6s; }
.chaos-icon.school-6 { animation-delay: 2.0s; }

@keyframes pulse-bg {
  0%, 100% { background: var(--white); }
  50% { background: #FEF5E6; }
}

.signal-arrow { flex-shrink: 0; }

.signal-column { flex: 1.2; }
.signal-inbox {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.inbox-item:last-child { border-bottom: none; }
.inbox-item:hover { background: var(--bg-alt); }
.inbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-faint);
  margin-top: 5px;
  flex-shrink: 0;
}
.inbox-item.urgent .inbox-dot {
  background: var(--highlight);
  box-shadow: 0 0 0 3px rgba(232,168,56,0.2);
}
.inbox-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 2px;
}
.inbox-meta {
  font-size: 11px;
  color: var(--fg-muted);
}

/* --- Proof --- */
.proof {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.proof-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.proof-stat { text-align: center; }
.proof-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-label {
  font-size: 13px;
  color: var(--fg-muted);
  max-width: 180px;
  line-height: 1.4;
}
.proof-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* --- Features --- */
.features {
  padding: 80px 0;
}
.features-header {
  max-width: 1080px;
  margin: 0 auto 56px;
  padding: 0 32px;
  text-align: center;
}
.features-header h2 {
  font-size: 38px;
  color: var(--accent);
  margin-bottom: 14px;
}
.features-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
}
.features-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 18px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* --- Integrations --- */
.integrations {
  padding: 72px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.integrations-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.integrations-text .section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.integrations-text h2 {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 14px;
}
.integrations-text p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.integrations-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.int-logo {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  box-shadow: var(--shadow-sm);
}
.integrations-more {
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-faint);
}

/* --- Closing --- */
.closing {
  padding: 96px 0;
  text-align: center;
}
.closing-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
}
.closing h2 {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.2;
}
.closing p {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}
.closing-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* --- Footer --- */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
}
.footer-copy {
  font-size: 13px;
  color: var(--fg-faint);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-tagline { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .signal-arrow svg { transform: rotate(90deg); }
  .chaos-column { flex-direction: row; flex-wrap: wrap; }
  .proof-inner {
    flex-direction: column;
    gap: 32px;
  }
  .proof-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .integrations-inner { grid-template-columns: 1fr; gap: 32px; }
  .closing h2 { font-size: 30px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .features-header h2 { font-size: 28px; }
  .closing h2 { font-size: 26px; }
  .closing { padding: 64px 0; }
}