
/* =======================================
   Royal Games – mobile-first theme system
   Light: blue / white / yellow
   Dark: navy / gold / orange
   ======================================= */

:root {
  --color-bg: #f1f5f9;
  --color-bg-soft: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-soft: #f9fafb;
  --color-border-subtle: rgba(148, 163, 184, 0.4);

  --color-primary: #2563eb;      /* Blue accent */
  --color-primary-soft: rgba(37, 99, 235, 0.08);
  --color-accent: #fbbf24;       /* Yellow accent */
  --color-accent-soft: rgba(251, 191, 36, 0.16);

  --color-text: #0f172a;
  --color-text-soft: #64748b;
  --color-text-strong: #020617;

  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Dark theme overrides when .theme-dark is on <html> */

html.theme-dark {
  --color-bg: #050816;
  --color-bg-soft: #020617;
  --color-surface: #0b1120;
  --color-surface-soft: #020617;
  --color-border-subtle: rgba(148, 163, 184, 0.45);

  --color-primary: #fbbf24;
  --color-primary-soft: rgba(251, 191, 36, 0.12);
  --color-accent: #fb923c;
  --color-accent-soft: rgba(251, 146, 60, 0.18);

  --color-text: #e5e7eb;
  --color-text-soft: #9ca3af;
  --color-text-strong: #f9fafb;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
}

/* Global reset / base */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: radial-gradient(circle at top, var(--color-bg-soft) 0, var(--color-bg) 55%, #e5e7eb 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}


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

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

.container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

/* Header (mobile-first) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(14px);
}

html.theme-dark .site-header {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(30, 64, 175, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
}

.brand-tagline {
  font-size: 11px;
  color: var(--color-text-soft);
}

/* Nav */

.nav {
  position: absolute;
  inset-inline: 0;
  top: 56px;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px 12px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

html.theme-dark .nav {
  background: var(--color-surface);
  border-bottom-color: rgba(15, 23, 42, 0.9);
}

.nav-link {
  font-size: 14px;
  color: var(--color-text-soft);
}

.nav-link:hover {
  color: var(--color-text-strong);
}

.site-header.nav-open .nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Header actions */

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(248, 250, 252, 0.9);
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 13px;
}

html.theme-dark .theme-toggle {
  background: rgba(15, 23, 42, 0.9);
}

.theme-icon-sun,
.theme-icon-moon {
  font-size: 13px;
  opacity: 0.5;
}

html.theme-dark .theme-icon-moon {
  opacity: 1;
}

html:not(.theme-dark) .theme-icon-sun {
  opacity: 1;
}

.btn {
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-primary), #60a5fa);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-sm {
  font-size: 13px;
  padding-inline: 14px;
}

.btn-lg {
  font-size: 15px;
  padding: 12px 24px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.45);
  filter: brightness(1.02);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.btn-icon svg {
  vertical-align: middle;
}

.btn-header {
  display: none;
}

/* Nav toggle */

.nav-toggle {
  border: none;
  background: transparent;
  padding: 4px;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
}

/* HERO – mobile-first */

.hero {
  padding: 20px 0 32px;
  background:
    radial-gradient(circle at top left, #e0f2fe 0, transparent 45%),
    radial-gradient(circle at bottom right, #fef9c3 0, transparent 55%);
}

html.theme-dark .hero {
  background:
    radial-gradient(circle at top left, #1f2937 0, transparent 45%),
    radial-gradient(circle at bottom right, #0f172a 0, transparent 55%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-copy h1 {
  font-size: 24px;
  line-height: 1.25;
  margin: 8px 0 10px;
  color: var(--color-text-strong);
}

.hero-copy h1 span {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-primary-soft);
  color: #1d4ed8;
}

.hero-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.hero-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.meta-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
}

html.theme-dark .meta-pill {
  background: rgba(15, 23, 42, 0.96);
}

.meta-label {
  color: var(--color-text-soft);
  margin-right: 4px;
}

.meta-value {
  color: var(--color-text-strong);
  font-weight: 500;
}

.hero-help {
  font-size: 12px;
  color: var(--color-text-soft);
  margin: 0;
}

/* Hero visual */

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

.hero-card {
  position: relative;
  background: var(--color-surface);
  border-radius: 28px;
  padding: 14px 12px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
  max-width: 260px;
}

.hero-image {
  border-radius: 20px;
  width: 100%;
  background: #020617;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-slogan {
  margin: 10px 4px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-soft);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.8;
}

.hero-glow-primary {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0, transparent 60%);
  top: -8px;
  left: 6px;
}

.hero-glow-accent {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0, transparent 60%);
  bottom: -8px;
  right: 4px;
}

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

/* Belt */

.belt {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--color-surface-soft);
}

html.theme-dark .belt {
  background: rgba(15, 23, 42, 0.98);
}

.belt-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 10px;
  font-size: 11px;
}

.metric-label {
  color: var(--color-text-soft);
  margin-right: 4px;
}

.metric-value {
  color: var(--color-text-strong);
  font-weight: 500;
}

/* Sections */

.section {
  padding: 32px 0;
}

.section.alt {
  background: var(--color-bg-soft);
}

html.theme-dark .section.alt {
  background: var(--color-bg-soft);
}

.section-header {
  text-align: left;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--color-text-strong);
}

.section-header h2 span {
  color: var(--color-primary);
}

.section-header p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* Cards & grids */

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  border-color: rgba(37, 99, 235, 0.4);
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--color-text-strong);
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* Markets */

.markets-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.markets-column {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
}

.markets-heading {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-text-strong);
}

.market-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-market {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  font-size: 12px;
  color: #1d4ed8;
}

.pill-soft {
  background: var(--color-accent-soft);
  color: #92400e;
}

/* Rate card */

.rate-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 8px 10px;
}

.rate-table thead {
  background: #eff6ff;
}

html.theme-dark .rate-table thead {
  background: rgba(15, 23, 42, 0.9);
}

.rate-table th {
  font-weight: 600;
  font-size: 12px;
  color: var(--color-text-soft);
  border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}

.rate-table tbody tr:nth-child(odd) {
  background: #f9fafb;
}

.rate-table tbody tr:nth-child(even) {
  background: #e5edf9;
}

html.theme-dark .rate-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.75);
}

html.theme-dark .rate-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.6);
}

.rate-table td {
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

html.theme-dark .rate-table td {
  border-bottom-color: rgba(31, 41, 55, 0.8);
}

.rate-note ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.rate-note li + li {
  margin-top: 4px;
}

/* FAQ */

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

.faq-item {
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.faq-item.faq-open {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.faq-question {
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-strong);
}

.faq-icon {
  font-weight: 600;
  font-size: 17px;
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 14px 10px;
  font-size: 13px;
  color: var(--color-text-soft);
  animation: faqFade 0.18s ease;
}

@keyframes faqFade {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(203, 213, 225, 0.9);
  margin-top: 8px;
}

html.theme-dark .site-footer {
  background: radial-gradient(circle at top, #020617 0, #000 80%);
  border-top-color: rgba(15, 23, 42, 0.95);
}

.footer-inner {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 15%, #eff6ff 0, var(--color-primary) 40%, #1d4ed8 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.6);
}

.footer-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-strong);
}

.footer-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-soft);
}

.footer-links a {
  color: inherit;
}

.footer-bottom {
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

.footer-bottom-inner {
  padding: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-soft);
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-disclaimer {
  font-size: 11px;
}

/* Larger screens */

@media (min-width: 720px) {
  .header-inner {
    padding-block: 10px;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-toggle {
    display: none;
  }

  .btn-header {
    display: inline-flex;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-btn {
    width: auto;
    align-self: flex-start;
  }

  .belt-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
  }

  .section-header {
    text-align: center;
    margin-bottom: 22px;
  }

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

  .markets-layout {
    flex-direction: row;
  }

  .rate-layout {
    flex-direction: row;
  }

  .rate-layout > .card {
    flex: 1;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 30px 0 40px;
  }

  .hero-inner {
    gap: 40px;
  }

  .card {
    padding-inline: 18px;
  }
}
