:root {
  --bg: #070910;
  --panel: #111522;
  --panel-soft: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.12);
  --text: #f4f5fb;
  --muted: #989caf;
  --gold: #d8b66c;
  --blue: #27a8ff;
  --purple: #9d4edd;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(39,168,255,.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(157,78,221,.16), transparent 30%),
    var(--bg);
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 74px;
  padding: 12px clamp(18px,4vw,64px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,16,.86);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: .16em;
}
.brand-mark {
  color: #67c9ff;
  filter: drop-shadow(0 0 12px rgba(39,168,255,.8));
}
.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .84rem;
}
.site-nav a:hover,
.site-nav a.active {
  color: white;
  background: rgba(255,255,255,.07);
}

.primary-btn,
.ghost-btn {
  min-height: 44px;
  padding: 11px 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-btn {
  border: 1px solid #f0d594;
  color: #171109;
  font-weight: 900;
  background: linear-gradient(135deg,#f2dda7,#a97825);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(213,174,89,.22);
}
.ghost-btn {
  border: 1px solid var(--line);
  color: white;
  background: rgba(255,255,255,.04);
}
.large { min-height: 52px; padding-inline: 25px; }

.hero {
  min-height: 720px;
  padding: 82px clamp(22px,7vw,110px);
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(340px,.95fr);
  align-items: center;
  gap: 60px;
  overflow: hidden;
}
.eyebrow {
  margin: 0;
  color: #7acfff;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 {
  margin: 20px 0 28px;
  font-size: clamp(3.4rem,8vw,7.6rem);
  line-height: .88;
  letter-spacing: -.055em;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px #e7c97d;
}
.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stats {
  margin-top: 46px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.stats div { display: grid; gap: 5px; }
.stats strong { color: white; font-size: 1.65rem; }
.stats span { color: var(--muted); font-size: .82rem; }

.hero-visual {
  position: relative;
  width: min(100%,560px);
  aspect-ratio: 1;
  margin: auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 30deg,#1aa7ff,#6d24c7,#e0b35e,#1aa7ff);
  filter: blur(38px);
  opacity: .45;
}
.gateway-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}
.ring-one { inset: 4%; transform: rotate(22deg); }
.ring-two { inset: 17%; transform: rotate(-30deg); }
.gateway-core {
  width: 39%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30% 70% 54% 46%;
  color: white;
  font-size: clamp(4rem,9vw,7rem);
  font-weight: 1000;
  background: linear-gradient(145deg,#10295d,#771e91 55%,#20112f);
  box-shadow: inset 0 0 45px rgba(255,255,255,.12), 0 0 70px rgba(53,151,255,.3);
  transform: rotate(45deg);
}
.gateway-label {
  position: absolute;
  bottom: 3%;
  min-width: 180px;
  padding: 12px 18px;
  display: grid;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7,9,16,.82);
  backdrop-filter: blur(12px);
}
.gateway-label strong { color: var(--gold); font-size: 1.25rem; }
.gateway-label span { color: var(--muted); font-size: .72rem; }

.section { padding: 88px clamp(22px,7vw,110px); }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem,4vw,4rem);
}
.section-heading > p:last-child {
  color: var(--muted);
  line-height: 1.8;
}
.feature-section {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.feature-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.feature-card,
.security-grid article,
.realm {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
}
.feature-card { transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216,182,108,.5);
}
.feature-card > span,
.security-grid strong {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 1000;
}
.feature-card h3,
.security-grid h3,
.realm h3 { margin: 16px 0 8px; }
.feature-card p,
.security-grid p,
.realm p { margin: 0; color: var(--muted); line-height: 1.75; }

.realm-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}
.realm > span { font-size: 2.3rem; }
.realm.mythic { box-shadow: inset 0 0 50px rgba(216,182,108,.08); }
.realm.technora { box-shadow: inset 0 0 50px rgba(39,168,255,.09); }
.realm.shadow { box-shadow: inset 0 0 50px rgba(157,78,221,.11); }
.realm.rift { box-shadow: inset 0 0 50px rgba(60,202,226,.1); }

footer {
  padding: 28px clamp(22px,7vw,110px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto auto; }
  .site-nav { grid-column: 1 / -1; order: 3; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .hero-visual { width: min(88vw,480px); }
  .realm-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .site-header { display: flex; flex-wrap: wrap; }
  .site-nav { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .header-cta { display: none; }
  .feature-grid,.security-grid,.realm-grid { grid-template-columns: 1fr; }
  .stats { gap: 20px; justify-content: space-between; }
  footer { flex-direction: column; }
}
