:root {
  --uno-red: #ED1C24;
  --uno-blue: #0072BC;
  --uno-yellow: #FFDE00;
  --uno-green: #00A651;
  --uno-dark: #12141D;
  --uno-ink: #1A1D29;
  --uno-muted: #5A6075;
  --uno-bg: #FFFFFF;
  --uno-alt-bg: #F6F7FB;
  --uno-surface: #FFFFFF;
  --uno-border: #E5E7EF;
  --uno-nav-bg: rgba(255, 255, 255, 0.86);
  --uno-code-bg: #F1F2F7;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 12px 32px rgba(18, 20, 29, 0.07);
  --shadow-card: 0 18px 36px rgba(18, 20, 29, 0.22);
}

[data-theme="dark"] {
  --uno-ink: #F5F6FA;
  --uno-muted: #A4AAC0;
  --uno-bg: #0A0B10;
  --uno-alt-bg: #11131C;
  --uno-surface: #171A26;
  --uno-border: #262A3B;
  --uno-nav-bg: rgba(10, 11, 16, 0.85);
  --uno-code-bg: #232738;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--uno-bg);
  color: var(--uno-ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, .brand, .uno-card .center-symbol, .uno-card .corner, .mini-card .center-symbol, .mini-card .corner {
  font-family: 'Fredoka', system-ui, sans-serif;
}

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Decorative Background Orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.13;
}

[data-theme="dark"] .orb {
  opacity: 0.18;
}

.orb-red { width: 420px; height: 420px; background: var(--uno-red); top: -120px; left: -100px; }
.orb-blue { width: 380px; height: 380px; background: var(--uno-blue); top: 180px; right: -120px; }
.orb-yellow { width: 320px; height: 320px; background: var(--uno-yellow); bottom: 15%; left: 10%; opacity: 0.16; }
.orb-green { width: 360px; height: 360px; background: var(--uno-green); bottom: -100px; right: 8%; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--uno-nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--uno-border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--uno-red);
  color: var(--uno-yellow);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  transform: rotate(-6deg);
  box-shadow: 0 4px 0 #9E0B10;
  border: 2px solid #FFFFFF;
}

.brand-badge.sm {
  font-size: 0.95rem;
  padding: 2px 9px;
  border-radius: 9px;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--uno-muted);
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--uno-border);
  background: var(--uno-surface);
  color: var(--uno-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--uno-blue);
  transform: translateY(-1px);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
  color: var(--uno-yellow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--uno-ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--uno-red);
  color: #FFFFFF;
  box-shadow: 0 6px 0 #B30F15, 0 12px 24px rgba(237, 28, 36, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #B30F15, 0 16px 28px rgba(237, 28, 36, 0.32);
}

.btn-outline {
  background: var(--uno-surface);
  color: var(--uno-ink);
  border-color: var(--uno-border);
  box-shadow: 0 4px 12px rgba(18, 20, 29, 0.05);
}

.btn-outline:hover {
  border-color: var(--uno-blue);
  color: var(--uno-blue);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--uno-dark);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(18, 20, 29, 0.28);
}

.btn-dark:hover {
  transform: translateY(-2px);
  background: #232738;
}

/* Hero */
.hero {
  padding: 64px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--uno-surface);
  border: 1px solid var(--uno-border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--uno-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--uno-green);
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.uno-gradient-text {
  background: linear-gradient(135deg, var(--uno-red) 0%, #FF6B00 45%, var(--uno-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--uno-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--uno-surface);
  border: 1px solid var(--uno-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.stat-item strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.35rem;
  color: var(--uno-ink);
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--uno-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--uno-border);
}

/* Interactive Card Fan */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-stage {
  position: relative;
  width: 340px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uno-card {
  position: absolute;
  width: 156px;
  height: 232px;
  border-radius: 20px;
  border: 7px solid #FFFFFF;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  user-select: none;
  cursor: pointer;
  transform-origin: bottom center;
  transform: rotate(calc((var(--i) - 2) * 11deg)) translateX(calc((var(--i) - 2) * 28px));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), z-index 0.1s;
}

.uno-card:hover,
.uno-card.active {
  transform: rotate(calc((var(--i) - 2) * 7deg)) translateX(calc((var(--i) - 2) * 32px)) translateY(-28px) scale(1.07);
  z-index: 20;
}

.card-red { background: var(--uno-red); }
.card-blue { background: var(--uno-blue); }
.card-yellow { background: var(--uno-yellow); color: #1A1D29; }
.card-green { background: var(--uno-green); }
.card-wild { background: #1A1D29; }

.uno-card .corner,
.mini-card .corner {
  position: absolute;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.uno-card .corner.top { top: 10px; left: 12px; }
.uno-card .corner.bottom { bottom: 10px; right: 12px; transform: rotate(180deg); }

.uno-card .card-oval {
  width: 112px;
  height: 158px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.12);
}

.card-yellow .card-oval {
  border-color: #1A1D29;
  background: rgba(255, 255, 255, 0.35);
}

.uno-card .center-symbol {
  font-size: 3.3rem;
  font-weight: 700;
  transform: rotate(-22deg);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.wild-grid {
  width: 68px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: rotate(-22deg);
  border: 3px solid #FFFFFF;
}

.w-red { background: var(--uno-red); }
.w-blue { background: var(--uno-blue); }
.w-yellow { background: var(--uno-yellow); }
.w-green { background: var(--uno-green); }

.stage-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--uno-muted);
}

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

.section-alt {
  background: var(--uno-alt-bg);
  border-top: 1px solid var(--uno-border);
  border-bottom: 1px solid var(--uno-border);
  transition: background-color 0.25s ease;
}

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

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.tag-blue { background: rgba(0, 114, 188, 0.14); color: #2D9CDB; }
.tag-yellow { background: rgba(255, 222, 0, 0.25); color: #B88D00; }
.tag-green { background: rgba(0, 166, 81, 0.15); color: #00A651; }
.tag-red { background: rgba(237, 28, 36, 0.14); color: var(--uno-red); }

[data-theme="dark"] .tag-yellow { color: var(--uno-yellow); }

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--uno-muted);
  font-size: 1.05rem;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--uno-surface);
  border: 1px solid var(--uno-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border-top: 5px solid transparent;
  transition: transform 0.2s ease, background-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.accent-red { border-top-color: var(--uno-red); }
.accent-blue { border-top-color: var(--uno-blue); }
.accent-yellow { border-top-color: var(--uno-yellow); }
.accent-green { border-top-color: var(--uno-green); }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--uno-muted);
  font-size: 0.94rem;
}

/* Card Guide */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--uno-border);
  background: var(--uno-surface);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--uno-muted);
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--uno-red);
  color: #FFFFFF;
  border-color: var(--uno-red);
}

.cards-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.showcase-item {
  background: var(--uno-surface);
  border: 1px solid var(--uno-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-soft);
}

.showcase-item.hidden {
  display: none;
}

.mini-card {
  flex-shrink: 0;
  position: relative;
  width: 78px;
  height: 114px;
  border-radius: 12px;
  border: 4px solid #FFFFFF;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.mini-card .corner { font-size: 0.72rem; }
.mini-card .corner.top { top: 5px; left: 6px; }
.mini-card .corner.bottom { bottom: 5px; right: 6px; transform: rotate(180deg); }

.mini-card .card-oval {
  width: 54px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(20deg);
}

.mini-card .center-symbol {
  font-size: 1.55rem;
  font-weight: 700;
  transform: rotate(-20deg);
}

.mini-card .wild-grid {
  width: 36px;
  height: 48px;
  border-width: 2px;
}

.showcase-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.showcase-info p {
  font-size: 0.9rem;
  color: var(--uno-muted);
}

/* How to Play */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--uno-surface);
  border: 1px solid var(--uno-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}

.num-red { background: var(--uno-red); }
.num-blue { background: var(--uno-blue); }
.num-yellow { background: var(--uno-yellow); color: #1A1D29; }

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.step-card p {
  color: var(--uno-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq-container {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--uno-surface);
  border: 1px solid var(--uno-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--uno-ink);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--uno-blue);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--uno-red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--uno-muted);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  padding: 72px 0;
}

.cta-box {
  background: linear-gradient(125deg, var(--uno-red) 0%, #FF5E1A 50%, var(--uno-yellow) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #FFFFFF;
  box-shadow: 0 20px 44px rgba(237, 28, 36, 0.24);
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 6px;
}

.cta-content p {
  font-size: 1.05rem;
  opacity: 0.95;
}

/* Footer */
.footer {
  border-top: 1px solid var(--uno-border);
  padding: 32px 0;
  background: var(--uno-surface);
  transition: background-color 0.25s ease;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--uno-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--uno-muted);
}

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

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 16, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  position: relative;
  background: var(--uno-surface);
  border: 1px solid var(--uno-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--uno-muted);
}

.modal-card h3 {
  margin: 18px 0 10px;
  font-size: 1.4rem;
}

.modal-card p {
  color: var(--uno-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-card code {
  background: var(--uno-code-bg);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--uno-surface);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--uno-border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .card-stage {
    transform: scale(0.86);
  }
}
