:root {
  /* Amber/Gold Color Palette */
  --bg: #0A0A0A;
  --bg-soft: #111827;
  --surface: rgba(31, 41, 55, 0.6);
  --surface-glass: rgba(255, 255, 255, 0.05);
  --text: #F3F4F6;
  --text-muted: #9CA3AF;
  --line: rgba(255, 255, 255, 0.1);
  --line-glass: rgba(255, 255, 255, 0.15);

  /* Primary - Amber/Gold */
  --accent: #F59E0B;
  --accent-hover: #FBBF24;
  --accent-dark: #D97706;
  --accent-darker: #B45309;
  --accent-light: #FEF3C7;

  /* Secondary - Deep Charcoal */
  --secondary: #1F2937;
  --secondary-dark: #111827;

  /* Status Colors */
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  /* Effects */
  --glow: 0 0 40px rgba(245, 158, 11, 0.3);
  --glow-strong: 0 0 60px rgba(245, 158, 11, 0.5);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 10px 15px -3px rgba(0, 0, 0, 0.3);

  /* Spacing */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  background: linear-gradient(135deg, #0A0A0A 0%, #111827 50%, #0A0A0A 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* Ambient Background Effects */
.background-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.orb-one {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.orb-two {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-darker) 100%);
  right: -150px;
  bottom: -150px;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Glassmorphism */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-glass);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 32px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-family: "Archivo Black", sans-serif;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg);
  font-size: 1.1rem;
  box-shadow: var(--glow);
  transition: all 0.3s ease;
}

.brand:hover .brand-mark {
  box-shadow: var(--glow-strong);
  transform: rotate(5deg);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 0.3s ease;
}

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

.main-nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  position: relative;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg);
  box-shadow: var(--glow);
}

.btn-primary:hover {
  box-shadow: var(--glow-strong);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

/* Main Content */
main {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-bottom: 100px;
}

section {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  position: relative;
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 60px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(217, 119, 6, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  margin: 24px 0 12px;
  font-family: "Archivo Black", sans-serif;
  line-height: 1.15;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  position: relative;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Stats Grid */
.stats-grid {
  position: relative;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stats-grid article {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
}

.stats-grid article:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-4px);
}

.stats-grid span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-grid p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Section Headings */
.section-head h2,
.how-it-works h2 {
  margin: 0 0 10px;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: 0.3px;
  font-size: 2rem;
}

.section-head p,
.how-it-works p {
  margin: 0;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 20px;
  transition: all 0.4s ease;
}

.timeline article:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.timeline span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}

.timeline p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Arena Grid */
.arena-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

.arena-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: 24px;
  transition: all 0.3s ease;
}

.arena-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
}

.arena-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.arena-card header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.arena-card header span {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.15);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.battle-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.battle-lanes div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(10, 10, 10, 0.6);
  transition: all 0.3s ease;
}

.battle-lanes div:hover {
  border-color: rgba(245, 158, 11, 0.2);
}

.battle-lanes h4 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.95rem;
}

.battle-lanes p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.arena-card footer {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Forms */
.form-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  background: rgba(31, 41, 55, 0.8);
}

.status-line {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Table */
.table-wrap {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--surface);
}

thead {
  background: rgba(245, 158, 11, 0.08);
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(245, 158, 11, 0.06);
}

/* Register Form */
.register-form {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.register-form .checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.register-form .checkbox input {
  width: auto;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.register-form button,
.register-form .status-line,
.register-form .checkbox,
.register-form .form-actions {
  grid-column: 1 / -1;
}

.register-form .form-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.register-form .form-actions button {
  flex: 1;
}

.register-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--text-muted);
  box-shadow: none;
}

.test-result {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.test-result.success {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-hover);
}

.test-result.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.test-result .test-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.85;
}

.owner-key-box {
  margin-top: 20px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.08) 100%);
  border-radius: var(--radius-md);
  padding: 20px;
}

.owner-key-box h3 {
  margin-top: 0;
  color: var(--accent);
}

.owner-key-box p {
  color: var(--text-muted);
  margin: 8px 0;
}

.owner-key-box code {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 16px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent-hover);
  background: rgba(10, 10, 10, 0.6);
  border-radius: var(--radius-sm);
  word-break: break-all;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 20px;
  }

  .main-nav {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .register-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero {
    padding: 32px 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
