/* ═══════════════════════════════════════════════════════════════
   UNO Online — Site-Wide Styles
   Premium dark theme, responsive, accessible
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.1);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  --accent-red: #ff4757;
  --accent-pink: #ff6b81;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-purple: #8b5cf6;
  --gradient-hero: linear-gradient(135deg, #ff4757 0%, #ff6b81 50%, #f59e0b 100%);
  --gradient-text: linear-gradient(135deg, #ff6b81, #f59e0b);
  --shadow-glow: 0 0 30px rgba(255,71,87,0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-height: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-pink); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ── Accessibility ── */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--accent-red); color: #fff; padding: 8px 24px;
  border-radius: var(--radius-sm); z-index: 10000; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-nav.nav-scrolled {
  background: rgba(10,10,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 4px;
  font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none;
}
.nav-logo .logo-u { color: var(--accent-red); }
.nav-logo .logo-n { color: var(--accent-yellow); }
.nav-logo .logo-o { color: var(--accent-green); }
.nav-logo-text { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; margin-left: 4px; }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s; text-decoration: none;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-cta {
  background: var(--gradient-hero); color: #fff; font-weight: 700;
  padding: 8px 20px; border-radius: var(--radius-sm); font-size: 0.9rem;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(255,71,87,0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,71,87,0.4); color: #fff; }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 1001;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2px; background: #fff;
  position: absolute; left: 0; transition: all 0.3s;
}
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { bottom: 0; }
.nav-hamburger.is-active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
  :root { --nav-height: 56px; }
  .nav-hamburger { display: block; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg-secondary); flex-direction: column; justify-content: center;
    gap: 8px; padding: 24px; transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.5);
  }
  .nav-menu--open { right: 0; }
  .nav-link { font-size: 1.1rem; padding: 14px 20px; width: 100%; text-align: center; }
  .nav-cta { width: 100%; text-align: center; padding: 14px 20px; font-size: 1.1rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
  font-size: 1rem;
}
.btn-hero {
  background: var(--gradient-hero); color: #fff; padding: 16px 36px;
  font-size: 1.15rem; border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(255,71,87,0.35);
}
.btn-hero:hover {
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,71,87,0.45);
  color: #fff;
}
.btn-hero:active { transform: translateY(0); }
.btn-hero--large { padding: 20px 48px; font-size: 1.25rem; }
.btn-hero-secondary {
  background: rgba(255,255,255,0.08); color: var(--text-primary);
  padding: 16px 36px; font-size: 1.15rem; border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.12); transform: translateY(-2px); color: #fff;
}
.btn-outline-sm {
  background: transparent; color: var(--text-primary); padding: 10px 20px;
  border: 1px solid var(--border-medium); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
}
.btn-outline-sm:hover { background: rgba(255,255,255,0.06); border-color: var(--accent-pink); color: #fff; }

/* ── Sections ── */
.section { padding: 100px 0; position: relative; }
.section-title {
  font-size: 2.5rem; font-weight: 800; text-align: center;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center; color: var(--text-secondary); font-size: 1.15rem;
  max-width: 600px; margin: 0 auto 60px;
}
.text-gradient {
  background: var(--gradient-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.hero-shape--1 {
  width: 600px; height: 600px; background: var(--accent-red);
  top: -200px; right: -100px;
  animation: float1 20s ease-in-out infinite;
}
.hero-shape--2 {
  width: 400px; height: 400px; background: var(--accent-blue);
  bottom: -100px; left: -100px;
  animation: float2 25s ease-in-out infinite;
}
.hero-shape--3 {
  width: 300px; height: 300px; background: var(--accent-yellow);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: float3 18s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-40px); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-40%,-55%); } }

.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 36px; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
}

/* ── Social Proof Bar ── */
.proof-bar {
  background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle); padding: 32px 0;
}
.proof-bar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.proof-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.proof-icon { font-size: 1.5rem; }
.proof-number { font-size: 2rem; font-weight: 800; color: #fff; }
.proof-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
@media (max-width: 600px) {
  .proof-bar-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── Features Grid ── */
.features { background: var(--bg-primary); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 32px; transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-card);
  background: var(--bg-card-hover);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ── How It Works ── */
.how-it-works { background: var(--bg-secondary); }
.steps {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  max-width: 900px; margin: 0 auto;
}
.step {
  flex: 1; text-align: center; padding: 0 24px; position: relative;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(255,71,87,0.3);
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.9rem; }
.step-connector {
  width: 60px; min-width: 40px; height: 2px; background: var(--border-medium);
  margin-top: 27px; flex-shrink: 0;
}
.steps-cta { text-align: center; margin-top: 48px; }
@media (max-width: 600px) {
  .steps { flex-direction: column; align-items: center; gap: 24px; }
  .step-connector { width: 2px; height: 30px; margin: 0; }
}

/* ── Game Modes ── */
.game-modes { background: var(--bg-primary); }
.modes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.mode-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 36px; text-align: center;
  position: relative; transition: transform 0.25s, box-shadow 0.25s;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.mode-card--hot { border-color: rgba(255,71,87,0.3); }
.mode-badge {
  position: absolute; top: -10px; right: 20px;
  background: var(--accent-red); color: #fff; font-size: 0.75rem;
  font-weight: 700; padding: 4px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.mode-icon { font-size: 3rem; margin-bottom: 16px; }
.mode-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.mode-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }
@media (max-width: 600px) { .modes-grid { grid-template-columns: 1fr; } }

/* ── Big Multiplayer (USP) ── */
.big-multiplayer {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(255,71,87,0.08));
  border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.big-mp-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.big-mp-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-purple);
  margin-bottom: 12px;
}
.big-mp-text h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; text-align: left; letter-spacing: -0.02em; }
.big-mp-desc { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 24px; line-height: 1.6; }
.big-mp-list { list-style: none; margin-bottom: 32px; }
.big-mp-list li {
  padding: 8px 0; font-size: 1.05rem; color: var(--text-secondary);
}
.big-mp-visual { display: flex; align-items: center; justify-content: center; }
.big-mp-card-fan { position: relative; width: 280px; height: 360px; }
.fan-card {
  position: absolute; width: 120px; height: 180px; border-radius: var(--radius-md);
  top: 50%; left: 50%; transform-origin: bottom center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.fan-card--1 { background: #ff4757; transform: translate(-50%, -100%) rotate(-24deg); }
.fan-card--2 { background: #3b82f6; transform: translate(-50%, -100%) rotate(-12deg); }
.fan-card--3 { background: #10b981; transform: translate(-50%, -100%) rotate(0deg); }
.fan-card--4 { background: #f59e0b; transform: translate(-50%, -100%) rotate(12deg); }
.fan-card--5 { background: #8b5cf6; transform: translate(-50%, -100%) rotate(24deg); }
@media (max-width: 768px) {
  .big-mp-content { grid-template-columns: 1fr; text-align: center; }
  .big-mp-text h2 { text-align: center; font-size: 2rem; }
  .big-mp-visual { display: none; }
}

/* ── Devices ── */
.devices { background: var(--bg-primary); }
.devices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.device-card {
  text-align: center; padding: 32px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); transition: transform 0.25s;
}
.device-card:hover { transform: translateY(-4px); }
.device-icon { font-size: 3rem; margin-bottom: 12px; }
.device-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.device-card p { color: var(--text-secondary); font-size: 0.9rem; }
.devices-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.device-stat { color: var(--text-secondary); font-size: 1rem; }
.device-stat strong { color: var(--accent-green); }
@media (max-width: 600px) { .devices-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-section { background: var(--bg-secondary); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-question {
  padding: 20px 0; font-size: 1.1rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--text-primary); transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-pink); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-question::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 0 20px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.faq-more { text-align: center; margin-top: 40px; }

/* ── Final CTA ── */
.final-cta {
  background: linear-gradient(135deg, rgba(255,71,87,0.12), rgba(245,158,11,0.08));
  text-align: center;
}
.final-cta h2 { font-size: 2.8rem; font-weight: 900; margin-bottom: 12px; letter-spacing: -0.02em; }
.final-cta p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 32px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none;
  margin-bottom: 12px;
}
.footer-brand .footer-logo .logo-u { color: var(--accent-red); }
.footer-brand .footer-logo .logo-n { color: var(--accent-yellow); }
.footer-brand .footer-logo .logo-o { color: var(--accent-green); }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border-subtle); padding-top: 24px;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }
.footer-love { color: var(--text-muted); font-size: 0.8rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Content Pages (rules, about, etc.) ── */
.content-page { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 80px; }
.content-page .container { max-width: 800px; }
.content-page h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.content-page .page-subtitle { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 40px; }
.content-page h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; color: var(--text-primary); }
.content-page h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 12px; }
.content-page p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.content-page ul, .content-page ol { color: var(--text-secondary); margin-bottom: 16px; padding-left: 24px; }
.content-page li { margin-bottom: 8px; line-height: 1.6; }
.content-page strong { color: var(--text-primary); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-pink); }
.breadcrumbs .sep { color: var(--text-muted); }

/* CTA Banner (in-content) */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,71,87,0.1), rgba(245,158,11,0.05));
  border: 1px solid rgba(255,71,87,0.15);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
  margin: 40px 0;
}
.cta-banner h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 16px; }
