:root {
  --teal: #0d8a8a;
  --teal-deep: #066666;
  --teal-bright: #1ab3b3;
  --yellow: #f5c518;
  --yellow-soft: #ffe566;
  --red: #e31c23;
  --red-deep: #b01419;
  --green: #2f9e44;
  --green-soft: #51cf66;
  --ink: #0f2a2a;
  --foam: #f4fffb;
  --surface: rgba(255, 255, 255, 0.88);
  --ok: #2f9e44;
  --warn: #c49200;
  --fail: #b01419;
  --radius: 4px;
  --font-display: "Teko", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(6, 102, 102, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(245, 197, 24, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(47, 158, 68, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 30%, rgba(227, 28, 35, 0.1), transparent 50%),
    linear-gradient(180deg, #d8f5f3 0%, var(--foam) 45%, #e8f7f0 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-deep);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 2;
}

.sponsor-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sponsor-row img,
.logo-fallback {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-slice-up {
  height: 48px;
}

.logo-fallback {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(13, 138, 138, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-fallback[hidden] {
  display: none !important;
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: var(--teal-deep);
  background-image:
    linear-gradient(180deg, rgba(6, 102, 102, 0.2) 0%, rgba(6, 102, 102, 0.55) 45%, rgba(6, 102, 102, 0.92) 100%),
    url("/assets/sunburst.svg");
  background-size: cover, 140% 140%;
  background-position: center, center;
  animation: sunburst-spin 28s linear infinite, sunburst-pulse 10s ease-in-out infinite alternate;
}

@keyframes sunburst-spin {
  from {
    background-position: center, center;
  }
  to {
    background-position: center, calc(50% + 12px) calc(50% + 8px);
  }
}

@keyframes sunburst-pulse {
  from {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
  to {
    filter: saturate(1.12) brightness(1.06);
    transform: scale(1.04);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--foam);
  padding: 2.5rem 1.25rem 3rem;
  max-width: 42rem;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  text-wrap: balance;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 4.5vw, 2.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 0.85rem;
  animation: rise 1s ease-out 0.08s both;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  max-width: 28rem;
  opacity: 0.95;
}

.hero-lead .slogan {
  display: block;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--yellow-soft);
  font-style: italic;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.1s ease-out 0.15s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(227, 28, 35, 0.35);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: var(--teal);
  color: #fff;
}

.section {
  padding: 3rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.section p.lede {
  margin: 0 0 1.5rem;
  color: rgba(15, 42, 42, 0.78);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.meta-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(13, 138, 138, 0.15);
}

.meta-list strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 138, 138, 0.14);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(13, 138, 138, 0.28);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.field .hint {
  font-size: 0.85rem;
  color: rgba(15, 42, 42, 0.65);
}

.field .error {
  color: var(--fail);
  font-size: 0.85rem;
  font-weight: 600;
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.checkbox input {
  margin-top: 0.3rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-error {
  background: #fde8e8;
  color: var(--fail);
}

.alert-ok {
  background: #e6f8ea;
  color: var(--ok);
}

.alert-warn {
  background: #fff6db;
  color: #7a5a00;
}

.code-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  letter-spacing: 0.06em;
  color: var(--teal-deep);
  background: linear-gradient(180deg, #fff, var(--yellow-soft));
  border: 2px dashed var(--teal);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  animation: pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: rgba(15, 42, 42, 0.7);
  font-size: 0.95rem;
}

.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.stat {
  background: #fff;
  border: 1px solid rgba(13, 138, 138, 0.18);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  min-width: 7rem;
}

.stat b {
  display: block;
  font-size: 1.4rem;
  font-family: var(--font-display);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  align-items: end;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid rgba(13, 138, 138, 0.14);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(13, 138, 138, 0.1);
  vertical-align: top;
}

th {
  background: rgba(13, 138, 138, 0.08);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pending {
  background: #fff6db;
  color: #7a5a00;
}

.badge-paid {
  background: #e6f8ea;
  color: var(--ok);
}

.badge-failed {
  background: #fde8e8;
  color: var(--fail);
}

.draft-banner {
  background: #fff6db;
  color: #7a5a00;
  padding: 0.65rem 1rem;
  font-weight: 700;
  text-align: center;
}

/* Honeypot — visually hidden, still in the DOM for bots */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-note {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 28rem;
}

.badge-test {
  background: #e8e0ff;
  color: #4c1d95;
  margin-left: 0.25rem;
}

.row-test {
  background: rgba(232, 224, 255, 0.35);
}

.admin-section {
  margin: 2rem 0 1.5rem;
}

.admin-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.terms-draft-note {
  background: #fff6db;
  border: 1px solid rgba(196, 146, 0, 0.35);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: #7a5a00;
}

@media (min-width: 720px) {
  .site-header,
  .hero-content,
  .section,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .sponsor-row img,
  .logo-slice-up {
    height: 56px;
  }
}
