:root {
  --black: #08090b;
  --panel: #111318;
  --panel-2: #181b21;
  --red: #e21d2b;
  --red-dark: #8e0b14;
  --silver: #d9dde3;
  --muted: #a6abb5;
  --white: #ffffff;
  --gold: #ffc857;
  --green: #38c172;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(226,29,43,.18), transparent 31rem),
    linear-gradient(180deg, #07080a, #101217 50%, #08090b);
  color: var(--silver);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: white; color: black; padding: .7rem 1rem; }

.demo-banner {
  background: linear-gradient(90deg, #760912, #e21d2b, #760912);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.25);
  font-size: .92rem;
}
.demo-banner .container {
  display: flex; gap: .7rem; align-items: center; justify-content: center;
  min-height: 48px; text-align: center; padding-block: .55rem;
}
.demo-banner strong { text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,11,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 190px; }
.brand-mark {
  width: 50px; height: 50px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--red); box-shadow: 0 0 22px rgba(226,29,43,.35);
}
.brand-text strong { display: block; color: white; font-size: 1.2rem; letter-spacing: .06em; }
.brand-text span { display: block; color: var(--muted); font-size: .72rem; }
.menu-toggle {
  display: none; border: 1px solid #454a55; color: white; background: #17191f;
  padding: .55rem .75rem; border-radius: .45rem;
}
.site-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a, .nav-parent > button {
  display: inline-flex; align-items: center; gap: .3rem; border: 0; text-decoration: none;
  background: transparent; color: #e6e8ec; font: inherit; padding: .72rem .68rem; border-radius: .45rem;
}
.site-nav a:hover, .site-nav a:focus-visible, .nav-parent > button:hover, .nav-parent > button:focus-visible {
  color: white; background: rgba(226,29,43,.18);
}
.nav-main-link { padding-right: .2rem !important; }
.nav-parent > button { padding-left: .1rem; cursor: pointer; }
.nav-parent > button::after { content: "▾"; font-size: .72rem; }
.submenu {
  display: none !important; position: absolute; top: calc(100% + .4rem); left: 0; width: 250px;
  flex-direction: column; align-items: stretch !important; padding: .45rem !important;
  background: #15171c; border: 1px solid #343842; border-radius: .65rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.48);
}
.submenu a { display: flex; width: 100%; padding: .65rem .72rem; font-size: .92rem; }
.nav-parent:hover .submenu, .nav-parent:focus-within .submenu, .nav-parent.submenu-open .submenu { display: flex !important; }

.hero { padding: clamp(3rem, 8vw, 7rem) 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eyebrow { color: #ff5a66; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
h1, h2, h3 { color: white; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: .5rem 0 1.1rem; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 .8rem; }
h3 { margin-top: 0; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #c4c8d0; max-width: 760px; }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .45rem;
  border: 1px solid transparent; border-radius: .48rem; padding: .78rem 1.05rem;
  font-weight: 750; text-decoration: none; cursor: pointer; font: inherit;
}
.button-primary { color: white; background: linear-gradient(135deg, var(--red), #a60e19); box-shadow: 0 10px 25px rgba(226,29,43,.2); }
.button-secondary { color: white; background: #252932; border-color: #404651; }
.button-ghost { color: #e8eaee; background: transparent; border-color: #4a4f5a; }
.button-danger { color: white; background: #8e0b14; }
.button:hover { filter: brightness(1.12); transform: translateY(-1px); }

.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: rgba(226,29,43,.34); filter: blur(70px);
}
.hero-logo {
  position: relative; display: block; width: min(100%, 570px); margin-inline: auto;
  border-radius: 1.2rem; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 35px 80px rgba(0,0,0,.55);
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-dark { background: rgba(0,0,0,.22); border-block: 1px solid rgba(255,255,255,.06); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.8rem; }
.section-head p { max-width: 650px; color: var(--muted); margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: linear-gradient(145deg, rgba(31,34,42,.94), rgba(17,19,24,.95));
  border: 1px solid rgba(255,255,255,.09); border-radius: .8rem; padding: 1.35rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.card p:last-child { margin-bottom: 0; }
.card-label { color: #ff6e78; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.feature-card { border-top: 3px solid var(--red); }
.date-box {
  display: inline-flex; flex-direction: column; min-width: 72px; text-align: center;
  border: 1px solid #424752; border-radius: .55rem; overflow: hidden;
}
.date-box strong { background: var(--red); color: white; padding: .15rem .5rem; }
.date-box span { font-size: 1.35rem; color: white; padding: .25rem .5rem; }
.event-card { display: flex; gap: 1rem; align-items: flex-start; }
.event-card h3 { margin-bottom: .35rem; }
.muted { color: var(--muted); }
.repeater-card strong { color: white; }
.status { display: inline-flex; align-items: center; gap: .35rem; color: #8ff0b4; font-size: .84rem; font-weight: 700; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.callout {
  background: linear-gradient(120deg, #97101a, #df1b29 60%, #760912);
  border-radius: 1rem; padding: clamp(1.5rem, 4vw, 3rem); color: white;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.callout h2 { margin-bottom: .35rem; }

.page-hero { padding: 4rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.resource-list { list-style: none; margin: 0; padding: 0; }
.resource-list li { border-bottom: 1px solid rgba(255,255,255,.08); }
.resource-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; text-decoration: none; }
.resource-list a::after { content: "↗"; color: #ff6e78; }
.resource-list a:hover { color: white; }

.form-card { max-width: 760px; }
label { display: block; color: #f3f4f6; font-weight: 700; margin-bottom: .35rem; }
input, textarea, select {
  width: 100%; border: 1px solid #414651; background: #0d0f13; color: white;
  border-radius: .45rem; padding: .78rem .85rem; font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(226,29,43,.65); border-color: var(--red); }
.form-row { margin-bottom: 1rem; }
.checkbox-row { display: flex; gap: .7rem; align-items: flex-start; }
.checkbox-row input { width: auto; margin-top: .35rem; }
.checkbox-row label { font-weight: 500; color: #c9cdd5; }
.honeypot { position: absolute !important; left: -9999px !important; }
.flash { padding: .9rem 1rem; border-radius: .5rem; margin: 1rem 0; }
.flash-success { background: rgba(56,193,114,.16); border: 1px solid rgba(56,193,114,.5); color: #b8f4cf; }
.flash-error { background: rgba(226,29,43,.16); border: 1px solid rgba(226,29,43,.5); color: #ffbdc2; }
.privacy-note { font-size: .9rem; color: #b8bdc6; border-left: 3px solid var(--gold); padding-left: .85rem; }

.site-footer { padding: 3rem 0 2rem; border-top: 1px solid rgba(255,255,255,.08); background: #060709; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 2rem; }
.footer-title { color: white; font-weight: 800; }
.footer-links { list-style: none; padding: 0; margin: .7rem 0 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.3rem; color: #848a95; font-size: .85rem; }

.admin-shell { min-height: 100vh; background: #090a0d; }
.admin-header { background: #111318; border-bottom: 1px solid #2e323b; }
.admin-header .container { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-main { padding: 2.5rem 0 5rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.admin-nav a { text-decoration: none; padding: .55rem .75rem; background: #1b1e25; border: 1px solid #353a45; border-radius: .4rem; }
.admin-section { scroll-margin-top: 1rem; margin-bottom: 1.5rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.nav-edit-row { grid-template-columns: 1fr 1fr 1.4fr auto; margin-bottom: .6rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid #363a43; vertical-align: top; }
th { color: white; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.inline-form { display: inline; }
.login-wrap { width: min(calc(100% - 2rem), 520px); margin: 8vh auto; }
.small { font-size: .85rem; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0c0d11; border-bottom: 1px solid #343842; padding: 1rem; max-height: 75vh; overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { display: block; }
  .site-nav a { width: calc(100% - 42px); }
  .nav-parent > button { width: 38px; justify-content: center; }
  .nav-parent { display: flex; flex-wrap: wrap; }
  .submenu { position: static; width: 100%; box-shadow: none; margin: .3rem 0 .5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-logo { width: min(100%, 500px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-edit-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .demo-banner .container { align-items: flex-start; text-align: left; }
  .brand-text span { display: none; }
  .grid-2, .grid-3, .admin-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head, .callout { align-items: flex-start; flex-direction: column; }
  .event-card { flex-direction: column; }
  .nav-edit-row { grid-template-columns: 1fr; padding-bottom: 1rem; border-bottom: 1px solid #3a3e47; }
}

