/* ============================================================
   HyperVeil Servers — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:         #080c12;
  --bg2:        #0d1220;
  --surface:    #111827;
  --surface2:   #1a2438;
  --border:     rgba(99, 179, 237, 0.12);
  --border2:    rgba(99, 179, 237, 0.22);

  --cyan:       #38bdf8;
  --cyan-dim:   #0ea5e9;
  --violet:     #818cf8;
  --violet-dim: #6366f1;
  --green:      #34d399;
  --amber:      #fbbf24;
  --red:        #f87171;

  --text:       #e2e8f0;
  --text-muted: #64748b;
  --text-dim:   #94a3b8;

  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;

  --radius:     10px;
  --radius-lg:  18px;
  --glow-cyan:  0 0 40px rgba(56, 189, 248, 0.18);
  --glow-violet:0 0 40px rgba(129, 140, 248, 0.18);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-stretch: normal;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ── Noise texture overlay ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 12, 18, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo .logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}
.nav-logo span { color: var(--text); }
.nav-logo span em { font-style: normal; color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--cyan); }

.nav-cta {
  padding: 0.45rem 1.1rem !important;
  background: var(--cyan) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  border-radius: 7px !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; background: var(--cyan) !important; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dim); border-radius: 2px;
  transition: 0.2s;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 40%, rgba(56, 189, 248, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 70%, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat-item { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 0 0 rgba(56,189,248,0);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(56,189,248,0.35); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--surface2); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }

/* ── Section ────────────────────────────────────────────── */
section { padding: 100px 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 500px;
  font-weight: 300;
}

/* ── Features Grid ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3.5rem;
}
.feature-card {
  background: var(--bg2);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
  position: relative;
}
.feature-card:hover { background: var(--surface); }
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.875rem; color: var(--text-dim); line-height: 1.65; }

/* ── Games ──────────────────────────────────────────────── */
.games-section { background: var(--bg2); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.game-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.game-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.game-card:hover::before { transform: scaleX(1); }
.game-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.game-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.game-card p { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 1.25rem; }
.game-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.2rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.tag-soon { color: var(--amber); border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.06); }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--bg2);
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card.popular {
  border-color: var(--cyan);
  background: linear-gradient(160deg, rgba(56,189,248,0.05) 0%, var(--bg2) 60%);
}
.popular-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 8px 8px;
}
.pricing-name { font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.pricing-price {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.4rem; }
.pricing-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.pricing-desc { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 1.5rem; min-height: 2.5rem; }
.pricing-features { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pricing-features li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem; color: var(--text-dim);
}
.pricing-features li::before {
  content: '';
  width: 16px; height: 16px; flex-shrink: 0;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%2334d399' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section { background: var(--bg2); }
.faq-list { margin-top: 3rem; max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  gap: 1rem;
}
.faq-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--cyan);
  transition: transform 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.25rem; }
.faq-answer a { color: var(--cyan); }
.faq-answer a:hover { text-decoration: underline; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-section {
  padding: 80px 2rem;
  background: linear-gradient(135deg, rgba(56,189,248,0.06) 0%, rgba(129,140,248,0.06) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.cta-section p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 2rem; font-weight: 300; }
.cta-section .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  padding: 3.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.65; max-width: 240px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--text-muted); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--text-dim); }

/* ── Blog ───────────────────────────────────────────────── */
.blog-hero {
  padding: 140px 2rem 60px;
  text-align: center;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(56,189,248,0.1);
  color: var(--cyan);
  border: 1px solid rgba(56,189,248,0.18);
  width: fit-content;
}
.blog-card h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.blog-card p { font-size: 0.875rem; color: var(--text-dim); flex: 1; }
.blog-meta { font-size: 0.78rem; color: var(--text-muted); }
.blog-read { font-size: 0.875rem; color: var(--cyan); font-weight: 500; display: flex; align-items: center; gap: 0.3rem; }
.blog-read:hover { text-decoration: underline; }

/* ── Legal pages ────────────────────────────────────────── */
.legal-hero { padding: 140px 2rem 40px; }
.legal-body { padding: 0 2rem 80px; }
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--text);
}
.legal-content p, .legal-content li {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.legal-content ul { padding-left: 1.25rem; list-style: disc; }
.legal-content a { color: var(--cyan); }

/* ── Status badge ───────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid, .games-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(8,12,18,0.97);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    backdrop-filter: blur(16px);
  }
  .nav-mobile-toggle { display: flex; }
  .features-grid, .games-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}