:root { --maxw: 1060px; }

[data-theme="light"] {
  --bg: #F3F4F3;
  --bg-soft: #EBEEEC;
  --surface: #FFFFFF;
  --surface-2: #EBEEEC;
  --text: #2E3538;
  --muted: #616C72;
  --heading: #24313A;
  --border: #DCDFDE;
  --border-strong: #A8B1B3;
  --accent: #A2701F;
  --accent-fill: #C89135;
  --accent-fill-hover: #B57E24;
  --on-accent: #241A05;
  --accent-soft: rgba(162, 112, 31, 0.10);
  --band: #24313A;
  --band-2: #32424E;
  --band-text: #E9EDEE;
  --shadow: 0 10px 30px rgba(36, 49, 58, 0.12);
  --header-bg: #24313A;
  --header-text: #E9EDEE;
  --header-muted: #B9C2C6;
}

[data-theme="dark"] {
  --bg: #14191D;
  --bg-soft: #10151A;
  --surface: #1C2329;
  --surface-2: #232B32;
  --text: #D5DBDE;
  --muted: #93A0A6;
  --heading: #EEF2F3;
  --border: #2C363D;
  --border-strong: #46545C;
  --accent: #D9A44B;
  --accent-fill: #C89135;
  --accent-fill-hover: #D9A44B;
  --on-accent: #241A05;
  --accent-soft: rgba(217, 164, 75, 0.12);
  --band: #10151A;
  --band-2: #1C2731;
  --band-text: #E9EDEE;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --header-bg: #1A2228;
  --header-text: #E9EDEE;
  --header-muted: #93A0A6;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .wm {
  font-family: "Source Serif 4", Cambria, Georgia, serif;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: normal;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }

.eyebrow {
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; font-family: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 15.5px;
  cursor: pointer; border: none; transition: all .18s ease; white-space: nowrap;
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-fill-hover); transform: translateY(-1px); box-shadow: 0 6px 18px var(--accent-soft); }
.btn-ghost { background: var(--surface); color: var(--heading); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header (slate, solid in both themes) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(233, 237, 238, .12);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.site-header .brand, .site-header .wm { color: var(--header-text); }
.brand { display: flex; align-items: center; gap: 10px; }
.wm { font-size: 21px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--header-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--header-text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-btn, .hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(233, 237, 238, .3); background: transparent;
  color: var(--header-muted); cursor: pointer; transition: all .18s;
}
.theme-btn:hover, .hamburger:hover { color: var(--header-text); border-color: var(--header-text); }
[data-theme="light"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: none; }
.hamburger { display: none; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; padding: 96px 0 84px; overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, var(--accent-soft), transparent 60%);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--muted); font-weight: 600; font-size: 13.5px; margin-bottom: 26px;
}
.hero h1 { max-width: 850px; margin: 0 auto 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 0 auto 14px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------- Feature section ---------- */
.feature .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature .lead { margin-bottom: 24px; }
.checks { display: flex; flex-direction: column; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checks li svg { flex: none; color: var(--accent); margin-top: 3px; }
.feat-media { display: flex; flex-direction: column; gap: 20px; }

/* Product vignette (shared frame) */
.vignette { display: flex; align-items: center; justify-content: center; padding: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.roadmap-note { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* GameDay mini-vignette — fixed GameDay colors, does NOT follow the Campus theme */
.v-gdc { background: #0B0F16; border-color: #35455C; }
.gdc-mini { width: 280px; text-align: center; padding: 10px 0; }
.gdc-mini-brand { font-family: "Public Sans", sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; color: #F4F7FB; }
.gdc-mini-brand em, .gdc-mini-h em { font-style: normal; color: #FFB224; }
.gdc-mini-h { font-family: "Arial Narrow", "Bahnschrift", sans-serif; font-weight: 800; font-size: 1.5rem; color: #F4F7FB; margin: 10px 0 16px; }
.gdc-mini-stats { display: flex; border: 1px solid #35455C; border-radius: 8px; background: #0E1420; overflow: hidden; }
.gdc-mini-stats > div { flex: 1; padding: 10px 4px; border-right: 1px solid #1F2937; }
.gdc-mini-stats > div:last-child { border-right: 0; }
.gdc-mini-stats b { display: block; color: #FFB224; font-variant-numeric: tabular-nums; }
.gdc-mini-stats span { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8D9BAD; }

/* ---------- Story / suite grid ---------- */
.suite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .icon-tile { margin-bottom: 16px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 17px; margin-bottom: 18px; }
.form-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card form label:has(textarea),
.form-card form button,
.form-card form p#formStatus {
  grid-column: 1 / -1;
}
.form-card label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--heading);
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
}
.form-card input, .form-card textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--heading);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-card input:focus, .form-card textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .btn { margin-top: 4px; }
#formStatus { font-size: 14.5px; font-weight: 600; color: var(--accent); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
footer { background: var(--band); color: rgba(233, 237, 238, .65); padding: 54px 0 0; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.foot-brand .wm { color: var(--band-text); margin-top: 10px; display: block; }
.foot-brand p { font-size: 14px; max-width: 340px; margin-top: 10px; }
.foot-col h4 { color: var(--band-text); font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: .04em; }
.foot-col a { display: block; color: rgba(233, 237, 238, .65); font-size: 14.5px; margin-bottom: 9px; }
.foot-col a:hover { color: var(--band-text); }
.foot-bottom { border-top: 1px solid rgba(233, 237, 238, .12); padding: 20px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Legal pages (privacy) ---------- */
.legal { max-width: 72ch; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal h4 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal ul { list-style: disc; margin: 0 0 16px 22px; }
.legal li { margin-bottom: 6px; }
.legal li ul { margin-top: 6px; }
.legal section { padding: 0; margin: 0; }
.legal a { color: var(--accent); word-break: break-word; }

/* ---------- Reveal animation ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn-primary { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-nav {
    display: none; flex-direction: column; gap: 4px; padding: 10px 24px 18px;
    border-top: 1px solid rgba(233, 237, 238, .12); background: var(--header-bg);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 10px 0; color: var(--header-text); font-weight: 600; font-size: 16px; }
  .suite-grid { grid-template-columns: 1fr 1fr; }
  .feature .container, .contact .container { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .suite-grid { grid-template-columns: 1fr; }
  .form-card form { grid-template-columns: 1fr; }
  .form-card form label:has(textarea), .form-card form button, .form-card form p#formStatus { grid-column: auto; }
  section { padding: 64px 0; }
  .header-demo { display: none; }
  .header-actions { gap: 8px; }
}
@media (max-width: 500px) {
  .header-cta { padding: 10px 16px; font-size: 14px; }
  .site-header .container:has(.header-cta) .brand .wm { display: none; }
}
@media (max-width: 380px) {
  .brand .wm { display: none; }
}
