/* The Sparkyard — sparkyard.in
   Palette from the brand lockups: amber #FF9E1B · ember #F4711F · ink #1A1E24 · steel #8A9099 */

:root {
  --amber: #FF9E1B;
  --ember: #F4711F;
  --ink: #1A1E24;
  --steel: #8A9099;

  --night: #14171C;        /* hero / dark sections */
  --night-panel: #1D222A;
  --night-line: #2C333D;
  --night-text: #F5F2EC;
  --night-muted: #A7ADB6;

  /* light-theme section tokens (flipped in dark mode below) */
  --surface: #FAF7F1;
  --surface-card: #FFFFFF;
  --line: #E7E1D6;
  --text: #1A1E24;
  --muted: #5B626C;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --radius: 14px;
  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #181C22;
    --surface-card: #1D222A;
    --line: #2C333D;
    --text: #F5F2EC;
    --muted: #A7ADB6;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 1.05rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 4px 24px rgba(255, 158, 27, 0.35);
}
.btn-primary:hover { background: #FFAC3D; box-shadow: 0 6px 32px rgba(255, 158, 27, 0.45); }

.btn-dark {
  background: var(--ink);
  color: var(--night-text);
}
.btn-dark:hover { background: #272D36; }

.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.9375rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 28, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--night-text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark { width: 2.1rem; height: 2.1rem; color: var(--night-text); }
.brand-word {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.brand-word em { font-style: normal; color: var(--ember); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav > a:not(.btn) {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--night-muted);
  transition: color 0.15s ease;
}
.site-nav > a:not(.btn):hover { color: var(--night-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  background: var(--night-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90rem 42rem at 78% -10%, rgba(255, 158, 27, 0.14), transparent 60%),
    radial-gradient(60rem 30rem at 8% 110%, rgba(244, 113, 31, 0.10), transparent 65%),
    var(--night);
  color: var(--night-text);
  padding-block: clamp(4.5rem, 12vw, 8.5rem);
}

.hero-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero .eyebrow { color: var(--amber); }

.hero h1 {
  font-size: clamp(3.1rem, 11vw, 6.25rem);
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--amber); }

.hero-sub {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--night-muted);
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-alt {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--night-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.hero-alt:hover { color: var(--night-text); }

/* ---------- sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }

.section-light { background: var(--surface); color: var(--text); }

.section-dark {
  background: var(--night);
  color: var(--night-text);
}

/* ---------- why cards ---------- */

.card-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.why-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.9rem;
}

.card-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--ember);
}

.card h3 { font-size: 1.25rem; margin: 0.9rem 0 0.6rem; }
.card p { color: var(--muted); font-size: 0.9875rem; }

/* ---------- missions ---------- */

.mission-grid { grid-template-columns: repeat(4, 1fr); }

.mission {
  display: flex;
  flex-direction: column;
  background: var(--night-panel);
  border: 1px solid var(--night-line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.7rem;
  min-height: 13rem;
}

.chip {
  align-self: flex-start;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.71875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 158, 27, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 1.1rem;
}

.mission h3 {
  font-size: 1.1875rem;
  line-height: 1.18;
  margin-bottom: 0.7rem;
}

.mission-hook {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--night-muted);
  margin-top: auto;
}

.mission-close {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--night-muted);
}
.mission-close::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 2px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 0.9rem;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}

.steps li { display: flex; gap: 1.1rem; align-items: flex-start; }

.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.125rem;
  padding-top: 2px;
}

.steps h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.9875rem; }

/* ---------- pilot band ---------- */

.pilot {
  background: linear-gradient(100deg, var(--amber), var(--ember));
  color: var(--ink);
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.pilot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.pilot-copy {
  max-width: 38rem;
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
}

/* ---------- founder ---------- */

.founder { padding-block: clamp(3.5rem, 8vw, 5.5rem); }

.founder-inner { max-width: 46rem; }

.founder blockquote p {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.5;
  font-weight: 500;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}

.founder blockquote footer {
  font-size: 1rem;
  color: var(--muted);
}
.founder blockquote footer strong { color: var(--text); }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }

.faq-inner { max-width: 46rem; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  font-weight: 600;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--ember);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 0.25rem 1.25rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--night-text);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-badge { width: 3.4rem; height: 3.4rem; border-radius: 12px; margin-bottom: 1rem; }

.footer-word {
  font-family: var(--display);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  line-height: 1.5;
  color: var(--night-muted);
}
.footer-word strong { font-weight: 400; font-size: 1.25rem; letter-spacing: 0.06em; color: var(--night-text); }

.footer-tag {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
}

.footer-links { max-width: 24rem; }

.footer-links > a {
  display: inline-block;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  border: 1px solid rgba(255, 158, 27, 0.5);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  margin-bottom: 1.5rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-links > a:hover { background: var(--amber); color: var(--ink); }

.footer-schools {
  font-size: 0.9rem;
  color: var(--night-muted);
  margin-bottom: 1.25rem;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--steel);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-nav {
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: var(--night);
    border-bottom: 1px solid var(--night-line);
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) {
    width: 100%;
    padding: 0.7rem 0;
    font-size: 1.0625rem;
  }
  .site-nav .btn { margin-top: 0.5rem; }
  .nav-toggle { display: flex; }

  .mission-grid { grid-template-columns: 1fr; }
  .mission { min-height: 0; }
  .mission h3 br { display: none; }

  .pilot-inner { flex-direction: column; align-items: flex-start; }

  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
