:root {
  --sand: #e8d4a8;
  --sand-deep: #c4a574;
  --ocean: #0b4f6c;
  --ocean-deep: #07384d;
  --sky: #7ec8e3;
  --foam: #f7f3ea;
  --ink: #1a2a32;
  --accent: #e85d04;
  --accent-hover: #d00000;
  --ok: #2a9d8f;
  --warn: #e9c46a;
  --fail: #9b2226;
  --radius: 4px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(7, 56, 77, 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(1200px 600px at 10% -10%, rgba(126, 200, 227, 0.45), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 212, 168, 0.55), transparent 55%),
    linear-gradient(180deg, #d8eef7 0%, var(--foam) 42%, #efe4cb 100%);
  line-height: 1.5;
}

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

a {
  color: var(--ocean);
}

.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: 36px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 79, 108, 0.2);
  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:
    linear-gradient(180deg, rgba(7, 56, 77, 0.15) 0%, rgba(7, 56, 77, 0.55) 48%, rgba(7, 56, 77, 0.88) 100%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(232, 212, 168, 0.55), transparent 70%),
    repeating-linear-gradient(
      -12deg,
      rgba(255, 255, 255, 0.04) 0 2px,
      transparent 2px 10px
    ),
    linear-gradient(135deg, #1b6b8a 0%, #0b4f6c 40%, #c4a574 100%);
  animation: tide 14s ease-in-out infinite alternate;
}

@keyframes tide {
  from {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
  to {
    filter: saturate(1.08) brightness(1.05);
    transform: scale(1.03);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--foam);
  padding: 2.5rem 1.25rem 3rem;
  max-width: 40rem;
  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: 800;
  font-size: clamp(2.4rem, 9vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}

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

.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(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.35);
}

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

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

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

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

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section p.lede {
  margin: 0 0 1.5rem;
  color: rgba(26, 42, 50, 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(11, 79, 108, 0.12);
}

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

.panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 79, 108, 0.12);
  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(11, 79, 108, 0.25);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.field .hint {
  font-size: 0.85rem;
  color: rgba(26, 42, 50, 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: #e6f6f3;
  color: var(--ok);
}

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

.code-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--ocean-deep);
  background: linear-gradient(180deg, #fff, var(--sand));
  border: 2px dashed var(--ocean);
  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(26, 42, 50, 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(11, 79, 108, 0.15);
  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(11, 79, 108, 0.12);
  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(11, 79, 108, 0.08);
  vertical-align: top;
}

th {
  background: rgba(11, 79, 108, 0.06);
  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: #e6f6f3;
  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.35rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

@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 {
    height: 44px;
  }
}
