/* DoubleU Casino — faithful redesign stylesheet
   Tokens copied from design_system.css_variables */
:root {
  --bg: #ffffff;
  --surface: #dbd4ec;
  --surface-2: #d2cbe1;
  --border: #1398ff;
  --text: #666666;
  --muted: #8f88a3;
  --accent: #1398ff;
  --accent-2: #240075;
  --on-accent: #ffffff;
  --radius: 16px;
  --radius-lg: 18px;
  --radius-btn: 4px;
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --container: 1120px;
  --gradient-hero: linear-gradient(180deg, #4c17e4 0%, #240075 80%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-2);
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.5px; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent-2); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-btn) 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  height: var(--header-h);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-2);
}
.brand span {
  font-family: var(--font-heading); font-weight: 800; color: var(--accent-2);
  font-size: 1.1rem; letter-spacing: -0.3px;
}
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--text); font-weight: 400; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus { color: var(--accent-2); border-bottom-color: var(--accent); }
.site-header .header-cta { display: none; }
.nav-toggle {
  border: 0; background: none; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--accent-2); margin: 5px 0;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 2px; background: #fff; border-top: 1px solid #eee;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 20px; color: var(--text); border-bottom: 1px solid #f2f2f2; font-size: 15px;
}
.mobile-nav .btn { margin: 14px 20px 20px; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .site-header .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(19,152,255,.35);
}
.btn-primary:hover { background: #1081d9; border-color: #1081d9; transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface-2); color: var(--text); border-color: var(--surface-2);
}
.btn-secondary:hover { background: #c3bad6; }
.btn-outline {
  background: transparent; color: #ffffff; border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Hero */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #ffffff;
  overflow: hidden;
  padding: 64px 0 72px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0,201,255,.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(127,255,3,.16), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { color: #ffffff; margin-bottom: 14px; }
.hero-desc { color: rgba(255,255,255,.88); font-size: 17px; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div { min-width: 90px; }
.hero-stats strong {
  display: block; font-family: var(--font-heading); font-size: 1.5rem; color: #fff;
}
.hero-stats span { font-size: 12.5px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }
.hero-art {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(2px);
}
.hero-art img { border-radius: var(--radius); margin: 0 auto 18px; width: 96px; height: 96px; }
.hero-art h3 { color: #fff; text-align: center; margin-bottom: 6px; }
.hero-art p { color: rgba(255,255,255,.75); text-align: center; font-size: 14px; margin-bottom: 18px; }
.hero-art-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag-chip {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
}

/* Sections */
section { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-head p { color: var(--text); }
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px;
}

/* Specs table */
.specs-wrap {
  background: #fff; border: 1px solid var(--surface-2); border-radius: var(--radius);
  overflow: hidden;
}
table.specs { width: 100%; border-collapse: collapse; }
table.specs tr { border-bottom: 1px solid #f0edf6; }
table.specs tr:last-child { border-bottom: 0; }
table.specs th, table.specs td {
  text-align: left; padding: 16px 22px; font-size: 15px; vertical-align: top;
}
table.specs th {
  width: 38%; color: var(--accent-2); font-family: var(--font-heading); font-weight: 700; font-size: 14.5px;
  background: #fbfaff;
}
table.specs tr:nth-child(odd) td, table.specs tr:nth-child(odd) th { background: #fbfaff; }

/* Feature / demo cards */
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: repeat(2,1fr); } }

.card {
  background: #fff; border: 1px solid var(--surface-2); border-radius: var(--radius);
  padding: 26px 22px;
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--accent-2); font-weight: 800; font-family: var(--font-heading);
}
.card h3 { margin-bottom: 6px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-row {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--surface-2);
  border-radius: var(--radius); padding: 18px 20px;
}
.feature-row .num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-2); color: #fff; font-family: var(--font-heading); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.feature-row h3 { margin-bottom: 4px; font-size: 1.02rem; }
.feature-row p { margin-bottom: 0; font-size: 14.5px; }

/* Demo teaser */
.demo-box {
  background: var(--accent-2); border-radius: var(--radius-lg); color: #fff;
  padding: 40px 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.demo-box h2 { color: #fff; margin-bottom: 8px; }
.demo-box p { color: rgba(255,255,255,.82); margin-bottom: 0; max-width: 480px; }
.demo-box .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
.faq-item {
  border: 1px solid var(--surface-2); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-heading);
  font-weight: 700; color: var(--accent-2); font-size: 15.5px; position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 22px 20px; font-size: 15px; color: var(--text); }

/* Demo pseudo-loader */
.demo-loader-widget {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 44px 32px; text-align: center; max-width: 480px; margin: 0 auto;
}
.demo-loader-icon {
  border-radius: var(--radius); margin: 0 auto 18px; display: block;
  animation: demoPulse 1.4s ease-in-out infinite;
}
.demo-loader-text {
  color: var(--accent-2); font-weight: 600; font-size: 14.5px; margin-bottom: 18px;
}
.demo-progress-track {
  max-width: 280px; margin: 0 auto; height: 10px; background: var(--surface-2);
  border-radius: 999px; overflow: hidden;
}
.demo-progress-bar {
  height: 100%; width: 0%; background: var(--accent); border-radius: 999px;
  transition: width .25s ease-out;
}
.demo-ready {
  display: none; text-align: center; max-width: 480px; margin: 0 auto;
}
.demo-ready.is-visible { display: block; animation: demoFadeUp .4s ease; }
.demo-ready p {
  color: var(--accent-2); font-family: var(--font-heading); font-weight: 700;
  font-size: 1.05rem; margin-bottom: 16px;
}
@keyframes demoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes demoFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-loader-icon { animation: none; }
  .demo-ready.is-visible { animation: none; }
}

/* Platform / play cards */
.platform-card {
  background: #fff; border: 1px solid var(--surface-2); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center;
  height: 100%;
}
.platform-card img.badge { height: 40px; width: auto; }
.platform-card h3 { margin-bottom: 0; }
.platform-card p { font-size: 14px; margin-bottom: 0; }
.platform-card .btn { margin-top: auto; }
.grid-3 { align-items: stretch; }

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 620px; }
.contact-form label { font-weight: 600; color: var(--accent-2); font-size: 14px; display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--surface-2); border-radius: var(--radius-btn);
  font-family: var(--font-body); font-size: 15px; background: #fbfaff;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); }

/* Legal pages */
.legal-content h2 { margin-top: 1.6em; }
.legal-content ul { padding-left: 1.2em; }
.legal-content { max-width: 760px; margin: 0 auto; }

/* Sticky mobile CTA */
.mobile-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 1px solid #eee; padding: 10px 16px;
  display: flex; box-shadow: 0 -6px 18px rgba(0,0,0,.06);
}
@media (min-width: 900px) { .mobile-sticky { display: none; } }
body { padding-bottom: 72px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-2); }

/* Page intro */
.page-hero {
  background: var(--surface); padding: 46px 0;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--text); max-width: 680px; }

/* Trust logos + footer */
.site-footer { background: var(--accent-2); color: rgba(255,255,255,.82); padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand span { font-family: var(--font-heading); font-weight: 800; color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-note { font-size: 13px; color: rgba(255,255,255,.6); max-width: 640px; }
.trust-logos { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.trust-logos img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.6);
}

/* 404 */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-family: var(--font-heading); font-size: 5rem; color: var(--accent); margin-bottom: 0; }
