/* ==========================================================
   magiSTREAK — site stylesheet
   Palette is taken from the logo: black, brushed silver, gold.
   ========================================================== */

:root {
  --black: #050505;
  --ink: #101012;          /* card surface */
  --ink-2: #17171a;        /* raised surface / inputs */
  --line: #26262b;         /* hairlines */
  --silver: #c7cad0;       /* secondary text, matches "magi" */
  --text: #ecebe6;
  --muted: #8d9098;
  --gold: #e6b34a;         /* primary accent, matches "STREAK" */
  --gold-deep: #b8841f;
  --gold-soft: rgba(230, 179, 74, 0.14);
  --graphite: #131417;     /* alternate section background */
  --accent2: #4f8fd6;      /* secondary accent (steel blue): structure, markers, focus, glows */
  --accent2-soft: rgba(79, 143, 214, 0.18);
  --shadow: 0 18px 40px -12px rgba(0,0,0,.75), 0 4px 10px rgba(0,0,0,.45);
  --danger: #ff7b6b;       /* validation */
  --radius: 14px;
  --radius-sm: 8px;
  --measure: 62ch;
  --wrap: 1120px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: #fff;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }
p.lede { font-size: 1.2rem; color: var(--silver); }
strong { color: #fff; font-weight: 600; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--accent2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: #1a1200; }
.btn-gold:hover { background: #f0c25e; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent2); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,5,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--silver); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent2); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-links .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; color: #1a1200; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 42px; border-radius: var(--radius-sm); cursor: pointer; font-size: 1.2rem;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 84px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line); padding: 0.5rem 24px 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { margin: 0; }
  .nav-links a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: 0.75rem; text-align: center; display: inline-flex; justify-content: center; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--graphite); }
.section-alt .card, .section-alt .band { background: var(--ink-2); }
.section-head { margin-bottom: 2.25rem; }
.section-head h2::before, .split h2::before, .form-page h1::before {
  content: ""; display: block; width: 44px; height: 3px; background: var(--accent2); border-radius: 2px; margin-bottom: 1.1rem;
}
.section-head p { color: var(--silver); }
@media (max-width: 760px) { .section { padding: 56px 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}
/* the single flourish on the site: a gold streak echoing the logo swoosh */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% 10%, rgba(230,179,74,.20), transparent 70%),
    radial-gradient(45% 40% at 5% 95%, rgba(79,143,214,.16), transparent 70%),
    linear-gradient(115deg, transparent 58%, rgba(230,179,74,.06) 60%, transparent 63%);
}
.hero .wrap { position: relative; }
.hero-logo { width: min(360px, 70vw); height: auto; margin-bottom: 2.5rem; }
.hero h1 { max-width: 20ch; }
.hero p.lede { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 3.5rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hero-facts div { background: var(--ink); padding: 1.1rem 1.25rem; }
.hero-facts { box-shadow: var(--shadow); border-top: 3px solid var(--accent2); }
.hero-facts b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; font-weight: 600; }
.hero-facts span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) {
  .hero { padding: 56px 0; }
  .hero-facts { grid-template-columns: 1fr; }
}

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-top-color: #34353b;   /* light catches the top edge */
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.form-card, .band, .modal-box { box-shadow: var(--shadow); border-top-color: #34353b; }
.card h3 { margin-bottom: 0.6rem; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--silver); font-size: 0.97rem; }
.card li { margin-bottom: 0.3em; }
.card .card-kicker {
  width: 36px; height: 3px; background: var(--accent2); border-radius: 2px; margin-bottom: 1.1rem;
}

.card-roles ul { list-style: none; padding: 0; }
.card-roles li { padding: 0.45rem 0; border-top: 1px solid var(--line); color: var(--text); }
.card-roles li:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Call-out band ---------- */
.band {
  background: linear-gradient(180deg, var(--ink) 0%, var(--black) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-left: 4px solid var(--accent2);
  padding: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.band h2 { margin: 0 0 .3em; }
.band p { margin: 0; color: var(--silver); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 32px; background: var(--graphite); border-top: 3px solid var(--accent2); color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-logo img { height: 46px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--silver); }
.footer-note { margin-top: 1.5rem; }

/* ---------- Forms ---------- */
.form-page { padding: 64px 0 96px; background: var(--graphite); }
.form-page .form-card, .form-page .card { background: var(--ink-2); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .form-aside { order: -1; } }

.form-card {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem;
}
@media (max-width: 600px) { .form-card { padding: 1.4rem; } }

.field { margin-bottom: 1.35rem; }
.field label, .field .label {
  display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--text);
}
.field .hint { font-size: 0.86rem; color: var(--muted); margin: 0.35rem 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field-row .field { display: flex; flex-direction: column; }
.field-row .field label { margin-top: auto; }

input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color .15s ease;
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c7cad0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}
select option, select optgroup { background: var(--ink-2); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px var(--accent2-soft); }
input[disabled], select[disabled] { opacity: .5; cursor: not-allowed; }
.is-invalid { border-color: var(--danger) !important; }
.error { color: var(--danger); font-size: 0.86rem; margin-top: 0.35rem; min-height: 1.1em; }

/* file drop zone */
.dropzone {
  position: relative; border: 1px dashed #3a3a40; border-radius: var(--radius-sm);
  background: var(--ink); padding: 1.4rem; text-align: center; color: var(--silver); font-size: 0.95rem;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone.is-over { border-color: var(--accent2); background: var(--accent2-soft); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone .file-name { display: block; margin-top: .4rem; color: #fff; font-weight: 500; }
.dropzone .file-name:empty { display: none; }

/* checkbox rows */
.check {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  padding: 1rem 1.1rem; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.check input[type="checkbox"] { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--accent2); cursor: pointer; }
.check b { display: block; color: #fff; font-weight: 600; margin-bottom: 0.2rem; }
.check span { color: var(--silver); font-size: 0.93rem; }
.check p { margin: 0; }

.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* aside on the apply page */
.form-aside .card { margin-bottom: 1rem; }
.form-aside .card p { font-size: 0.95rem; color: var(--silver); margin-bottom: 0.6em; }
.form-aside .card ul { color: var(--silver); font-size: 0.95rem; }

/* success state */
.success { text-align: left; }
.success .ref {
  display: inline-block; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.06em;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(230,179,74,.35);
  border-radius: var(--radius-sm); padding: 0.5rem 1rem; margin: 0.5rem 0 1rem;
}
[hidden] { display: none !important; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.7); }
.modal-box { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 520px; width: 100%; }
.modal-box h3 { margin-bottom: 0.75rem; }
.modal-box p { color: var(--silver); font-size: 0.97rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ---------- Prose pages (privacy) ---------- */
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--silver); }
.prose .form-card { margin-top: 1.5rem; }
