:root {
  --bg-deep: #060911;
  --bg-panel: rgba(12, 18, 32, 0.88);
  --bg-card: rgba(15, 23, 42, 0.82);
  --border-subtle: rgba(71, 145, 219, 0.28);
  --text-main: #e6f0ff;
  --text-muted: #93acc9;

  --cyan: #3bf5ff;
  --gold: #ffd24a;
  --crimson: #ff3b5c;
  --green: #38e582;

  --font-display: "Orbitron", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 17, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(59, 245, 255, 0.45);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
}

.realm-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 229, 130, 0.1);
  border: 1px solid rgba(56, 229, 130, 0.35);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero_bg.png") center/cover no-repeat;
  opacity: 0.34;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(59, 245, 255, 0.12), transparent 55%),
              linear-gradient(180deg, rgba(6, 9, 17, 0.65) 0%, var(--bg-deep) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(59, 245, 255, 0.12);
  border: 1px solid rgba(59, 245, 255, 0.35);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), #7ab8ff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(59, 245, 255, 0.45);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--cyan);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(147, 172, 201, 0.18);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Registration Card */
.register-card {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(59, 245, 255, 0.35);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.card-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.card-header p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid rgba(147, 172, 201, 0.25);
  background: rgba(6, 10, 19, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--cyan);
}

.faction-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.faction-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border-radius: 7px;
  border: 1px solid rgba(147, 172, 201, 0.25);
  background: rgba(6, 10, 19, 0.75);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.faction-opt input {
  position: absolute;
  opacity: 0;
}

.faction-opt.svel:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(59, 245, 255, 0.14);
  color: var(--cyan);
}

.faction-opt.order:has(input:checked) {
  border-color: var(--gold);
  background: rgba(255, 210, 74, 0.14);
  color: var(--gold);
}

.faction-opt.legion:has(input:checked) {
  border-color: var(--crimson);
  background: rgba(255, 59, 92, 0.14);
  color: var(--crimson);
}

.form-feedback {
  min-height: 20px;
  font-size: 0.84rem;
  text-align: center;
}

.form-feedback.ok {
  color: var(--green);
}

.form-feedback.err {
  color: var(--crimson);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: rgba(12, 18, 32, 0.45);
  border-top: 1px solid rgba(147, 172, 201, 0.1);
  border-bottom: 1px solid rgba(147, 172, 201, 0.1);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

/* Factions Grid */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.faction-card:hover {
  transform: translateY(-4px);
}

.card-svel { border-top: 3px solid var(--cyan); }
.card-order { border-top: 3px solid var(--gold); }
.card-legion { border-top: 3px solid var(--crimson); }

.faction-emblem {
  font-size: 2rem;
  margin-bottom: 12px;
}

.faction-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.card-svel h3 { color: var(--cyan); }
.card-order h3 { color: var(--gold); }
.card-legion h3 { color: var(--crimson); }

.faction-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.faction-card p {
  font-size: 0.92rem;
  color: #c5d6ed;
  margin-bottom: 16px;
}

.faction-perks {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}

.feat-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-box h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Download Banner */
.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 245, 255, 0.38);
  border-radius: 14px;
  padding: 36px;
}

.download-info h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.download-info p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.server-address-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 9, 17, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
}

.server-address-bar code {
  color: var(--cyan);
  font-weight: 700;
}

.btn-copy {
  background: rgba(59, 245, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(59, 245, 255, 0.4);
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.sys-req {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(147, 172, 201, 0.15);
  padding: 28px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .factions-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .download-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-actions {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
