/* Sero Games — global styles */
:root {
  --bg: #0a0b14;
  --bg-alt: #0f1122;
  --surface: #12142a;
  --surface-alt: #171a35;
  --text: #eef0fb;
  --text-dim: #a6acc8;
  --cyan: #35e0ff;
  --magenta: #ff3ec9;
  --green: #9dff4d;
  --purple: #7c5cff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background glow accents */
body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(124, 92, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(53, 224, 255, 0.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 62, 201, 0.10), transparent 45%);
  background-attachment: fixed;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 20, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border), 0 4px 18px rgba(53, 224, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #06111a;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 60%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 0 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #06111a;
  box-shadow: 0 8px 24px rgba(53, 224, 255, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(53, 224, 255, 0.35); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
}

.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats div span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 20px 60px rgba(124, 92, 255, 0.35));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- Section shared ---------- */
.section {
  padding: 90px 0;
}

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

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 224, 255, 0.4);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(53, 224, 255, 0.18), rgba(124, 92, 255, 0.18));
  border: 1px solid var(--border);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Game showcase strip ---------- */
.game-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(53, 224, 255, 0.25), transparent 60%);
}

.game-tile span {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.game-tile.coming::after {
  content: "Coming Soon";
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--green);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-grid h2 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); margin: 0 0 18px; font-weight: 800; }
.about-grid p { color: var(--text-dim); margin: 0 0 16px; }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.checklist li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.about-panel .row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.about-panel .row:last-child { border-bottom: none; }
.about-panel .row span:first-child { color: var(--text-dim); }
.about-panel .row span:last-child { font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, rgba(53,224,255,0.12), rgba(255,62,201,0.10));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
}

.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; font-weight: 800; }
.cta-banner p { color: var(--text-dim); margin: 0 0 28px; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(53,224,255,0.18), rgba(124,92,255,0.18));
  border: 1px solid var(--border);
  flex: none;
}

.contact-card h3 { margin: 0 0 6px; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; word-break: break-word; }
.contact-card a { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand img { width: 150px; margin-bottom: 16px; opacity: 0.95; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 320px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--text); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Legal / policy page ---------- */
.legal {
  padding: 64px 0 100px;
}

.legal .container { max-width: 860px; }

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 10px;
  font-weight: 800;
}

.legal-header p { color: var(--text-dim); margin: 0; }

.legal-body h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
  font-weight: 700;
  color: var(--text);
}

.legal-body h2 .num {
  color: var(--cyan);
  margin-right: 10px;
}

.legal-body h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
  color: var(--text);
}

.legal-body p, .legal-body li {
  color: var(--text-dim);
  font-size: 0.98rem;
}

.legal-body ul, .legal-body ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-body a { color: var(--cyan); }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 0.92rem;
}

.legal-body th, .legal-body td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.legal-body th {
  color: var(--text);
  background: var(--surface);
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.legal-toc ol {
  columns: 2;
  gap: 24px;
  margin: 0;
  padding-left: 20px;
}

.legal-toc a { color: var(--text); font-size: 0.92rem; }
.legal-toc a:hover { color: var(--cyan); }

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 320px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .legal-toc ol { columns: 1; }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; }
}
