@font-face {
  font-family: 'Onder';
  src: url('/fonts/onder-regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --card: #0f0f0f;
  --border: rgba(255, 255, 255, 0.1);
  --ember: #c43a26;
  --ember-light: #e35a3f;
  --text: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.64);
  --text-faint: rgba(245, 245, 245, 0.38);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: 'Onder', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-light);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 6, 5, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Onder', sans-serif;
  letter-spacing: 0.04em;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img { flex-shrink: 0; }

.brand img { border-radius: 50%; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto 0 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember-light), var(--ember));
  color: #fff;
  box-shadow: 0 8px 28px rgba(196, 58, 38, 0.35);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(196, 58, 38, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(242, 236, 233, 0.25);
}

.btn-ghost:hover { border-color: var(--ember-light); color: var(--ember-light); }

.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-width: 0;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 90px;
  overflow: hidden;
  text-align: center;
  background: #050505;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background: url('/img/hero-bg.png') no-repeat center top / cover;
  animation: hero-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(-1%, -1.5%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-pulse {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(480px 380px at 50% 68%, rgba(220, 220, 225, 0.12), transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pulse { animation: none; }
}

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(10, 6, 5, 0), var(--bg-alt));
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 3; min-width: 0; max-width: 920px; width: 100%; }

.hero-emblem {
  margin: 0 auto 22px;
  border-radius: 50%;
  opacity: 0.92;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.35;
  margin-bottom: 24px;
}

.hero-rule {
  width: 64px;
  height: 2px;
  margin: 0 auto 24px;
  background: var(--ember);
}

.lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-stat {
  margin: 0;
  font-size: 14px;
  color: var(--text-faint);
}

.hero-stat strong { color: var(--ember-light); font-size: 16px; }

/* ---------- sections ---------- */

.section {
  scroll-margin-top: 84px;
  border-top: 1px solid var(--border);
  padding: 84px 24px;
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin-bottom: 40px;
}

/* ---------- discord widget ---------- */

.widget-wrap {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.widget-wrap iframe { display: block; border: 0; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}

.step {
  position: relative;
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--ember);
}

.step-n {
  display: block;
  font-family: 'Onder', sans-serif;
  font-size: 30px;
  color: var(--ember-light);
  opacity: 0.55;
  margin-bottom: 6px;
}

.step h3 {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: none;
  overflow-wrap: break-word;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 48px;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links a { text-decoration: none; color: var(--ember-light); }
.footer-links a:hover { text-decoration: underline; }
.footer-links .dot { color: var(--text-faint); }

.copyright {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-faint);
}

.disclaimer {
  margin: 0 auto;
  max-width: 640px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }
  .brand { font-size: 14px; }
  .hero { padding: 64px 16px; min-height: auto; }
  .section { padding: 56px 16px; }
  .steps { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

@media (max-width: 400px) {
  .site-header { padding: 12px; gap: 8px; }
  .brand { font-size: 12px; gap: 6px; }
  .brand img { width: 24px; height: 24px; }
  .btn-sm { padding: 8px 12px; font-size: 12px; }
}
