/*
  styles.css
  - Semantic, mobile-first CSS with dark theme
  - Detailed comments per block; use CSS custom properties

  Color system is variable-driven to enable dark theme via [data-theme="dark"]
*/

/* Core variables (light theme defaults) */
:root {
  --color-bg: #0f1115;
  --color-surface: #151923;
  --color-elev: #1a2030;
  --color-text: #e7ecf3;
  --color-text-muted: #b7c0cf;
  --color-primary: #5b8cff;
  --color-primary-contrast: #0b1220;
  --color-border: #2a3244;
  --color-accent: #21c07a;
  --shadow-1: 0 2px 12px rgba(0,0,0,.25);

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --gap: 16px;
  --gap-lg: 24px;
  --gap-xl: 40px;

  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Dark theme toggle using data attribute on html/body root */
[data-theme="dark"] {
  /* Same as root since design is dark-first, but kept for clarity */
}

/* Global reset with accessibility-minded defaults */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { top: 8px; }

/* Container utility: centers content and controls width */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* Page wrapper with mobile lock behavior */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/*
  Header: brand left, actions right. On mobile, a simple row.
*/
.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(0deg, rgba(15,17,21,0.6), rgba(15,17,21,0.95));
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 12px;
}
.logo img { display: block; height: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  line-height: 1;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  font-weight: 600;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-primary); color: #0b1220; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--secondary { background: var(--color-elev); color: var(--color-text); border-color: var(--color-border); }
.btn--secondary:hover { border-color: #3a4560; }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: rgba(255,255,255,0.04); }

/* Hero banner block */
.hero { position: relative; }
.hero__media { position: relative; }
.hero__media img, .hero__media source { width: 100%; height: auto; display: block; }
.hero__content {
  position: relative;
  padding-block: var(--gap-xl);
}
.hero__overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(520px, 86%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(12px, 3vw, 24px);
  background: linear-gradient(90deg, rgba(15,17,21,0.88), rgba(15,17,21,0.58) 60%, rgba(15,17,21,0) 100%);
}
.overlay__title { font-size: clamp(1.2rem, 2.4vw, 1.8rem); margin: 0; }
.overlay__desc { margin: 0 0 6px; color: var(--color-text-muted); }
.eyebrow { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; opacity: .9; margin: 0; color: var(--color-text-muted); }

/* Bottom center CTA on hero banner */
.hero__cta-bottom {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 92%);
}

/* CTA card styles to match screenshot */
.hero__cta-card {
  background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.78));
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  padding: 24px 26px;
  width: 100%;
}
.hero__cta-title {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  margin: 0 0 10px;
}
.hero__cta-sub { margin: 0 0 10px; color: var(--color-text-muted); }

/* Button variants for CTA */
.btn--success { background: #21c07a; color: #05140e; }
.btn--success:hover { filter: brightness(1.08); }
.btn--dark { background: rgba(255,255,255,0.06); color: var(--color-text); border-color: var(--color-border); }
.btn--dark:hover { background: rgba(255,255,255,0.1); }
.lead { color: var(--color-text-muted); margin-block: 8px 16px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
/* Center CTA buttons inside the banner card on web */
.hero__cta-card .cta { justify-content: center; }

/* Text with inline icon */
.text-with-icon { display: inline-flex; align-items: center; gap: 8px; }
.icon { width: 18px; height: 18px; flex: 0 0 18px; color: var(--color-accent); }

/* Main layout */
.site-main { flex: 1 1 auto; }
.section { padding-block: var(--gap-xl); }
.section--cta { background: var(--color-elev); box-shadow: var(--shadow-1) inset; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 10px; }
h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
h4 { font-size: 1rem; color: var(--color-text-muted); }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px 20px; }

/* Data tables: responsive via wrapper with overflow + mobile transform */
.table-responsive {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table thead th {
  background: linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
  text-align: left;
}
.data-table tbody tr:nth-child(2n) td { background: rgba(255,255,255,0.02); }

/* Mobile table adaptation: stack rows as cards with row header labeling */
@media screen and (max-width: 720px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table th { display: block; width: 100%; }
  .data-table tr { border-bottom: 1px solid var(--color-border); }
  .data-table tbody tr { background: transparent; }
  .data-table tbody th { color: var(--color-text); font-weight: 600; border: 0; padding-bottom: 4px; }
  .data-table tbody td { padding-top: 0; }
}

/* Slots gallery */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); padding: 0; list-style: none; }
.slots img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--color-border); background: #0c0f14; }
@media screen and (min-width: 640px) { .slots { grid-template-columns: repeat(3, 1fr); } }
@media screen and (min-width: 960px) { .slots { grid-template-columns: repeat(5, 1fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; justify-content: space-between; padding-block: 20px; }
.footer__brand p { margin: 6px 0 0; color: var(--color-text-muted); }
.pay { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pay img { display: block; filter: saturate(0.9); }

/* Disclosure (FAQ) styling */
details { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); padding: 10px 14px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details[open] { background: var(--color-elev); }

/* Focus states */
:where(a, button, [role="button"]) { outline: none; }
:where(a, button, [role="button"]):focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 6px; }

/* Mobile scrolling: allow natural page scroll with momentum */
@media screen and (max-width: 767px) {
  .page { -webkit-overflow-scrolling: touch; }
}

/* Prevent horizontal movement on mobile */
@media screen and (max-width: 767px) {
  html, body { overflow-x: hidden; width: 100%; position: relative; overscroll-behavior-x: none; touch-action: pan-y; }
  .page { overflow-x: hidden; }
}


