@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;700;800&display=swap');

:root {
  --blue:    #1a7fff;
  --blue-dim: rgba(26,127,255,0.12);
  --text:    #deeeff;
  --muted:   #3d6080;
  --surface: rgba(8, 20, 50, 0.55);
  --border:  rgba(26, 127, 255, 0.14);
  --mono: 'Space Mono', 'Courier New', monospace;
  --sans: 'Syne', 'Segoe UI', sans-serif;
}

/* ── SCROLL GRADIENT ─────────────────────────────── */
html {
  min-height: 100%;
  background: linear-gradient(
    to bottom,
    #0e2d6a 0%,
    #091d48 20%,
    #060f2a 50%,
    #030a1a 80%,
    #010509 100%
  );
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* ── GRID OVERLAY ────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,127,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,127,255,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 14, 36, 0.88);
  backdrop-filter: blur(14px);
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-decoration: none;
}
.logo span { color: var(--text); }

nav ul { list-style: none; display: flex; gap: 2.5rem; }

nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--text); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  background: var(--blue);
  color: #000 !important;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* scanline */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  opacity: 0.5;
  animation: scan 5s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { top: 0;    opacity: 0.5; }
  100% { top: 100%; opacity: 0; }
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s forwards 0.2s;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s forwards 0.4s;
}
.hero h1 .hl { color: var(--blue); }

.hero-sub {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.9;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.6s forwards 0.8s;
  overflow: visible;
}

.realm-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.7rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s forwards 0.75s;
}
.realm-label { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.realm-code  { color: var(--blue); font-weight: 700; letter-spacing: 0.06em; }
.realm-copy  { background: var(--blue); border: none; color: #000; font-size: 0.7rem; font-weight: 700; font-family: var(--mono); padding: 0.28rem 0.65rem; cursor: pointer; transition: opacity 0.2s; }
.realm-copy:hover { opacity: 0.8; }

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

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--blue);
  color: #000;
  position: relative;
  transition: transform 0.15s;
  overflow: visible;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translate(-2px, -2px); }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--blue);
  transform: translate(4px, 4px);
  transition: transform 0.15s;
  pointer-events: none;
}
.btn-primary:hover::after { transform: translate(6px, 6px); }

.btn-secondary {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-secondary:hover { color: var(--text); }

/* ── TICKER ──────────────────────────────────────── */
.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  overflow: hidden;
  background: rgba(6, 14, 36, 0.5);
}
.ticker-inner {
  display: flex;
  gap: 4rem;
  animation: ticker 24s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-item span { color: var(--blue); margin-right: 0.4rem; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── LAYOUT ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
section { position: relative; z-index: 1; padding: 8rem 3rem; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--blue);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4rem;
  max-width: 600px;
}

/* ── FEATURE GRID (ERRORAI style) ────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.feature {
  background: rgba(6, 14, 36, 0.6);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
}
.feature:hover { background: rgba(10, 24, 60, 0.8); }
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--blue);
  transition: height 0.3s;
}
.feature:hover::before { height: 100%; }
.feature-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--blue);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature p  { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); line-height: 1.8; }

/* ── PERKS TABLE ─────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 2px solid var(--blue); background: rgba(6,14,36,0.7); }
thead th {
  padding: 1rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: left;
}
thead th:not(:first-child):not(:nth-child(2)) { text-align: center; }

tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:hover { background: rgba(26,127,255,0.06); }
tbody td { padding: 1.1rem 1.5rem; font-family: var(--mono); font-size: 0.85rem; vertical-align: middle; }
tbody td:not(:first-child):not(:nth-child(2)) { text-align: center; }

.rank-iron     { color: #a8b8c8; font-weight: 700; font-size: 1rem; }
.rank-gold     { color: #fbbf24; font-weight: 700; font-size: 1rem; }
.rank-diamond  { color: #5bc8f5; font-weight: 700; font-size: 1rem; }
.rank-amethyst { color: #c084fc; font-weight: 700; font-size: 1rem; }
.price { color: var(--blue); font-weight: 700; font-size: 1.1rem; font-family: var(--sans); letter-spacing: 0; }
.check { color: #4ade80; font-size: 1.1rem; }
.cross { color: var(--muted); font-size: 1.1rem; }

/* ── SHOP LIST ───────────────────────────────────── */
.shop-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.shop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  background: rgba(6,14,36,0.6);
  transition: background 0.2s;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.shop-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--blue);
  transition: height 0.3s;
}
.shop-item:hover { background: rgba(10,24,60,0.8); }
.shop-item:hover::before { height: 100%; }
.shop-item h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.shop-item p  { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.shop-price { font-size: 2rem; font-weight: 800; color: var(--blue); font-family: var(--sans); white-space: nowrap; letter-spacing: -0.03em; line-height: 1; }
.shop-right { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* ── CTA SECTION ─────────────────────────────────── */
.cta-section {
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  padding: 8rem 3rem;
}
.cta-section h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; }
.cta-section p  { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 3rem; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); }
footer a { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); transition: color 0.2s; }
footer a:hover { color: var(--blue); }

/* ── PAGE HEADER ─────────────────────────────────── */
.page-header {
  position: relative;
  z-index: 1;
  padding: 10rem 3rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(6,14,36,0.95); border: 1px solid var(--border);
  color: var(--text); padding: 0.6rem 1.25rem;
  font-family: var(--mono); font-size: 0.8rem;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; }
  .hero, section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  .cta-section { padding: 5rem 1.5rem; }
  .page-header { padding: 8rem 1.5rem 2rem; }
}
