/* The Resistance Tech — STEM for boys */
:root {
  --bg: #07131f;
  --surface: #0f2740;
  --surface-2: #123049;
  --ink: #e8f4ff;
  --muted: #94a3b8;
  --green: #10b981;
  --green-bright: #34d399;
  --blue: #0ea5e9;
  --blue-deep: #0284c7;
  --ring: rgba(16, 185, 129, 0.35);
  --radius: 1rem;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(16, 185, 129, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(14, 165, 233, 0.15), transparent),
    var(--bg);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--green-bright); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #022c22;
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.site-header { padding: 1.25rem 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, var(--green), var(--blue-deep));
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: #022c22;
  font-weight: 800;
}

main { flex: 1; }

.hero {
  display: grid;
  gap: 2rem;
  padding: 1.5rem 0 3rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    padding: 2.5rem 0 4rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
h1 span {
  background: linear-gradient(120deg, var(--green-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--blue-deep));
  color: #022c22;
  box-shadow: 0 8px 28px var(--ring);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(148, 163, 184, 0.35);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); }

.coming {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
}

.hero-art {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.cards {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.card p { font-size: 0.95rem; color: var(--muted); }
.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.note {
  background: var(--surface-2);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.note strong { color: var(--ink); }

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

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