:root {
  --bg: #0a0a0b;
  --bg-2: #101013;
  --panel: #141418;
  --line: #232329;
  --text: #e8e6e1;
  --muted: #8b8a90;
  --accent: #c8a24a;
  --accent-soft: rgba(200, 162, 74, 0.14);
  --accent-glow: rgba(200, 162, 74, 0.35);
  --radius: 10px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }

.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 800; font-size: 15px; letter-spacing: 0.5px;
  background: var(--accent-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.brand:hover .brand-mark { box-shadow: 0 0 22px var(--accent-glow); transform: translateY(-1px); }

.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.3px; }
.brand-name em { font-style: normal; color: var(--accent); font-weight: 500; }
.brand-name.small { font-size: 14px; }

.site-nav { display: flex; gap: 6px; }

.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.site-nav a.active { color: var(--accent); background: var(--accent-soft); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }

.hero-glow {
  position: absolute; top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 62%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}

.hero-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 96px 32px 80px;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 3px;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.accent { color: var(--accent); }

.lede {
  color: var(--muted);
  font-size: 17px; max-width: 46ch;
  margin-top: 20px;
}

.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-solid {
  background: var(--accent); color: #0a0a0b;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* hero figure */
.hero-figure { position: relative; display: grid; place-items: center; }

.hero-figure img {
  width: min(340px, 70%);
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7));
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.figure-ring {
  position: absolute;
  width: min(400px, 84%); aspect-ratio: 1;
  border: 1px solid rgba(200, 162, 74, 0.22);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}
.figure-ring::before {
  content: "";
  position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- events strip ---------- */
.events-strip {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 32px 96px;
}

.strip-card {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  transition: border-color 0.3s ease;
}
.strip-card:hover { border-color: rgba(200, 162, 74, 0.4); }

.strip-card h2 { font-size: 34px; letter-spacing: -0.5px; margin-bottom: 12px; }

.strip-empty { position: relative; display: grid; place-items: center; min-height: 220px; }

.ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: pulse-ring 3.4s ease-out infinite;
}
.ring-1 { width: 130px; height: 130px; }
.ring-2 { width: 130px; height: 130px; animation-delay: 1.7s; }

@keyframes pulse-ring {
  0% { transform: scale(0.75); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

.ring-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
  animation: breathe 3.4s ease-in-out infinite;
}

/* ---------- pages ---------- */
.page-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: 88px 32px 40px;
}
.page-head h1 { font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -1px; }
.page-head .lede { margin-top: 14px; }

.page-body {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 32px 96px;
  display: grid; gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: rgba(200, 162, 74, 0.35); transform: translateY(-2px); }

.card h2 { font-size: 24px; margin-bottom: 16px; }
.card h2 .num { color: var(--accent); margin-right: 10px; font-variant-numeric: tabular-nums; }
.card h3 { font-size: 17px; color: var(--accent); margin: 22px 0 10px; font-weight: 600; }

.card p { color: var(--muted); margin-bottom: 10px; }
.card p strong { color: var(--text); font-weight: 600; }

.card ul { list-style: none; }
.card ol.general-rules { list-style: none; counter-reset: gr; }
.card ol.general-rules li {
  color: var(--muted);
  padding: 12px 0 12px 44px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  counter-increment: gr;
}
.card ol.general-rules li::before {
  content: counter(gr, decimal-leading-zero);
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  top: 16px;
}
.card ol.general-rules li:last-child { border-bottom: none; }
.card li {
  color: var(--muted);
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.card li:last-child { border-bottom: none; }
.card li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent);
}

.points-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 14px;
}
.point-cell {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.point-cell .pts { font-size: 26px; font-weight: 800; color: var(--accent); }
.point-cell .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- forms ---------- */
.contact {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 32px 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.panel h2 { font-size: 26px; margin-bottom: 24px; }

.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }

.field label { font-size: 13px; color: var(--muted); font-weight: 500; }

.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select { appearance: none; }

.grid-form .btn { justify-self: start; margin-top: 6px; }

.form-success {
  display: none;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 600;
  margin-top: 16px;
  animation: rise 0.5s ease both;
}
.grid-form.sent .form-success { display: block; }
.grid-form.sent .field, .grid-form.sent .btn { display: none; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 32px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-footer a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.25s ease; }
.site-footer a:hover { color: var(--accent); }

/* ---------- reveal animations ---------- */
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

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

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; text-align: center; }
  .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-figure { order: -1; margin-top: 8px; }
  .strip-card { grid-template-columns: 1fr; padding: 32px; }
  .strip-empty { min-height: 160px; }
  .contact { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr; }
  .site-header { padding: 14px 18px; }
  .site-nav a { padding: 8px 9px; font-size: 13px; }
  .page-head, .events-strip, .contact { padding-left: 18px; padding-right: 18px; }
}
