/* =========================================
   XICO GAMES — Global Stylesheet
   Design: dark space theme, violet × cyan
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  --bg:           #080C18;
  --bg-card:      #0F1528;
  --bg-nav:       rgba(8, 12, 24, 0.92);
  --purple:       #7C3AED;
  --purple-light: #9D64F5;
  --cyan:         #00C8F0;
  --cyan-soft:    rgba(0, 200, 240, 0.15);
  --glow-purple:  rgba(124, 58, 237, 0.35);
  --glow-cyan:    rgba(0, 200, 240, 0.25);
  --text:         #EEF2FF;
  --text-muted:   #8896B3;
  --border:       rgba(255, 255, 255, 0.07);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --nav-h:        68px;
}

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

/* ── Utility ── */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 200, 240, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { color: var(--purple-light); }
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text) !important;
  background: var(--purple);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--purple-light) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover, .nav-drawer a.active { color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  text-align: center;
}
.hero-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.22) 0%,
    rgba(0, 200, 240, 0.1) 45%,
    transparent 70%
  );
  filter: blur(60px);
  animation: orbPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes orbPulse {
  from { transform: translate(-50%, -55%) scale(1); opacity: 0.8; }
  to   { transform: translate(-50%, -55%) scale(1.15); opacity: 1; }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 3rem 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); color: var(--text); }

/* ── Stats strip ── */
.stats {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

/* ── Section titles ── */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.section-sub { color: var(--text-muted); max-width: 500px; margin-inline: auto; }

/* ── Games grid ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(124, 58, 237, 0.35);
}
.game-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.game-card:nth-child(1) .game-thumb { background: linear-gradient(135deg, #1a0533, #3b0b6b); }
.game-card:nth-child(2) .game-thumb { background: linear-gradient(135deg, #001a2e, #003d5c); }
.game-card:nth-child(3) .game-thumb { background: linear-gradient(135deg, #0d1f0d, #0d3b1f); }
.game-thumb img { border-radius: 16px; width: 96px; height: 96px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.game-body { padding: 1.4rem; }
.game-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.game-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; line-height: 1.6; }
.game-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.tag.cyan { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(0, 200, 240, 0.3); }

/* ── About section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .section-title { text-align: left; }
.about-text .badge { display: inline-block; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.values-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.value-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.value-text h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.value-text p { font-size: 0.87rem; margin-bottom: 0; }
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.about-card:nth-child(1) { grid-column: span 2; }
.about-card .big-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Contact section ── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover { border-color: rgba(124, 58, 237, 0.4); background: rgba(124, 58, 237, 0.06); color: var(--text); }
.contact-link-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238896B3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.btn-full { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }
#form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ── Privacy policy ── */
.policy-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  border-bottom: 1px solid var(--border);
}
.policy-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.policy-meta { color: var(--text-muted); font-size: 0.9rem; }
.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3.5rem 0 5rem;
}
.policy-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.policy-toc h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.policy-toc a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-left: 2px solid var(--border);
  padding-left: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}
.policy-toc a:hover { color: var(--text); border-color: var(--purple); }
.policy-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.policy-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.policy-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
}
.policy-content p { color: var(--text-muted); margin-bottom: 1rem; }
.policy-content ul { margin: 0.75rem 0 1rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.policy-content ul li {
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.95rem;
}
.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple-light);
}
.policy-content a { font-weight: 500; }
.policy-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.policy-highlight p { margin-bottom: 0; font-size: 0.95rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 220px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--text); }

/* ── Page headers (contact, privacy intro) ── */
.page-header {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-header p { color: var(--text-muted); max-width: 480px; margin-inline: auto; font-size: 1.05rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .policy-layout { grid-template-columns: 1fr; gap: 2rem; }
  .policy-toc { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .contact-form-card { padding: 1.5rem; }
  .hero-orb { width: 400px; height: 400px; }
}

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
