/* Detroit Automation Academy — rebrand v1
   Palette: Midnight #0C1116 · Forge #E85D1A · Amber #FFB000 · Concrete #9AA0A6 · Paper #F5F2EA
   Type: Space Grotesk (display) · Inter (body) */

:root {
  --midnight: #0C1116;
  --midnight-2: #11171d;
  --card: #131a21;
  --forge: #E85D1A;
  --forge-deep: #c74e14;
  --amber: #FFB000;
  --concrete: #9AA0A6;
  --paper: #F5F2EA;
  --line: rgba(245, 242, 234, 0.09);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--midnight);
  color: var(--paper);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-word {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); font-weight: 700; margin: 0.4em 0 0.6em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4em; }

.accent { color: var(--forge); }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--midnight-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--forge);
  margin-bottom: 12px;
}

.prose { max-width: 720px; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--amber); }
.prose h3 { margin: 1.8em 0 0.6em; }
.prose ul { margin: 0.8em 0 1.2em 1.25em; }
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--forge); }
.prose em { color: var(--concrete); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(12, 17, 22, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; }
.brand-word { font-weight: 700; font-size: 1.02rem; }
.brand-word em { font-style: normal; color: var(--forge); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--concrete); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  color: var(--midnight) !important;
  background: var(--forge);
  padding: 9px 20px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 24px 70px;
  text-align: center;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(232, 93, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 93, 26, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, transparent 40%, var(--midnight) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-mark { width: 132px; height: 132px; border-radius: 26px; margin-bottom: 26px; box-shadow: 0 0 80px rgba(232, 93, 26, 0.35); }
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.8rem;
  color: var(--concrete); margin-bottom: 18px;
}
.hero h1 { margin-bottom: 22px; }
.lede { font-size: 1.2rem; color: var(--concrete); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 30px; border-radius: 999px; font-size: 1rem;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forge); color: var(--midnight); }
.btn-primary:hover { background: var(--amber); }
.btn-ghost { border: 1px solid var(--line); color: var(--paper); background: rgba(245,242,234,0.03); }
.btn-ghost:hover { border-color: var(--forge); color: var(--forge); }

.hero-stats {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
  margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line);
  max-width: 820px; margin-left: auto; margin-right: auto;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--forge); }
.stat-label { color: var(--concrete); font-size: 0.9rem; }

/* ---------- Principles / cards ---------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 44px; }
.principle {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.principle h3 { color: var(--amber); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--forge); transform: translateY(-3px); }
.card-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  color: var(--forge); font-size: 0.85rem; letter-spacing: 0.18em; margin-bottom: 12px;
}
.card p { color: var(--concrete); font-size: 0.97rem; }

/* ---------- Trajectory ---------- */
.trajectory { list-style: none; margin-top: 40px; display: grid; gap: 16px; }
.phase {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 28px 28px 32px;
  overflow: hidden;
}
.phase::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--forge), var(--amber));
}
.phase-tag {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--amber);
}
.phase h3 { margin: 8px 0 6px; font-size: 1.4rem; }
.phase p { color: var(--concrete); max-width: 640px; }

.signal-cta { margin-top: 40px; text-align: left; }
.fine { color: var(--concrete); font-size: 0.9rem; margin-top: 12px; }

/* ---------- Partners ---------- */
.partner-list {
  list-style: none; margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.partner-list li {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.02rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 24px;
  color: var(--paper); background: rgba(245,242,234,0.02);
  transition: border-color 0.2s, color 0.2s;
}
.partner-list li:hover { border-color: var(--forge); color: var(--forge); }

/* ---------- Support ---------- */
.support-wrap .cards { margin-bottom: 40px; }
.support-cta { text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--midnight-2); }
.footer-inner { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 10px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-line { color: var(--forge); font-weight: 600; margin-bottom: 8px; }
.footer-fine { color: var(--concrete); font-size: 0.85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--midnight-2); border-bottom: 1px solid var(--line);
    display: none; padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav-links a:first-child { border-top: 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .hero { padding: 72px 20px 54px; }
  .hero-stats { gap: 32px; }
}
