/* Martin Casino — Design System */
:root {
  --bg: #0c0e17;
  --bg-header: #090b12;
  --bg-footer: #090b12;
  --bg-card: #141926;
  --bg-surf: #1b2234;
  --bg-surf2: #242e47;

  --accent: #ff9f00;
  --accent2: #3b51f1;
  --accent-gold: #ffcc00;
  --neon: #2b66ff;
  --success: #10b981;

  --text: #ffffff;
  --text-light: #ffffff;
  --text2: #8a94a6;

  --border: rgba(138, 148, 166, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.8);

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-gold); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 20px;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #101018 !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 20px rgba(255, 159, 0, 0.28);
  white-space: nowrap;
}
.play-btn:hover {
  background: var(--accent-gold);
  color: #101018 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 159, 0, 0.4);
}
.play-btn::after { content: '→'; font-size: 16px; }

.burger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.burger-btn span,
.burger-btn span::before,
.burger-btn span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.burger-btn span::before,
.burger-btn span::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger-btn span::before { top: -6px; }
.burger-btn span::after { top: 6px; }

.mobile-menu {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px 24px 28px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: grid; gap: 4px; }
.mobile-menu a {
  display: block;
  color: var(--text);
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surf);
}
.mobile-menu a:hover { background: var(--bg-surf2); color: var(--text); }
.mobile-menu a.active { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  padding: 8px 14px;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.06);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-gold);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  color: var(--text);
}
h1 .accent { color: var(--accent); }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
  color: var(--text);
}
h2::before {
  content: '';
  display: inline-block;
  width: 22px; height: 3px;
  background: var(--accent);
  margin-right: 14px;
  vertical-align: middle;
  border-radius: 2px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 28px 0 12px;
  color: var(--text);
}
h3 .num {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 8px;
}

p { margin: 0 0 16px; color: #d5dae6; }
p strong { color: var(--text); font-weight: 600; }

.hero-lead {
  font-size: 1.05rem;
  color: #c5ccdb;
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-ctas .play-btn { padding: 14px 26px; font-size: 15px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  padding: 13px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  background: var(--bg-surf);
  transition: background .15s ease, border-color .15s ease;
}
.btn-secondary:hover { background: var(--bg-surf2); border-color: rgba(59,81,241,0.5); color: var(--text); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,14,23,0) 55%, rgba(12,14,23,0.85) 100%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(9, 11, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.hero-badge .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-gold);
}
.hero-badge .lbl {
  font-size: 12px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Hero stat strip */
.hero-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.hero-stats > div {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
}
.hero-stats .lbl {
  font-size: 12px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

/* ---------- Content sections ---------- */
main { padding-bottom: 64px; }
section.content-section { padding: 8px 0; }
.content-section p { max-width: 78ch; }
.content-section ul,
.content-section ol {
  margin: 8px 0 20px 22px;
  color: #d5dae6;
}
.content-section li { margin-bottom: 8px; }
.content-section ul li::marker { color: var(--accent); }
.content-section ol li::marker { color: var(--accent); font-weight: 700; }

.content-section a { color: var(--accent); border-bottom: 1px dashed rgba(255,159,0,0.4); }
.content-section a:hover { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 28px;
  background: var(--bg-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
table th, table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}
table th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text2);
  background: var(--bg-surf);
}
table tr:last-child td { border-bottom: 0; }
table td:first-child { color: var(--text); font-weight: 500; }

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 22px;
  width: 32px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text2); font-size: 14px; }
.card .card-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 6px;
}

/* Info callout */
.callout {
  background: linear-gradient(135deg, rgba(59,81,241,0.12), rgba(255,159,0,0.06));
  border: 1px solid rgba(59,81,241,0.35);
  border-left: 3px solid var(--accent2);
  padding: 20px 22px;
  border-radius: var(--radius);
  margin: 22px 0;
}
.callout strong { color: var(--accent-gold); }

/* Section image */
.section-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 24px 0 28px;
  box-shadow: var(--shadow);
}
.section-image img { width: 100%; height: auto; }

/* CTA block */
.cta-block {
  margin: 40px 0 24px;
  padding: 40px 32px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surf) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,159,0,0.18), transparent 65%);
}
.cta-block h2 { margin-top: 0; }
.cta-block h2::before { display: none; }
.cta-block p { max-width: 560px; margin: 0 auto 22px; color: var(--text2); }

/* FAQ */
.faq { margin: 32px 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: rgba(255,159,0,0.4); }
.faq-item .answer {
  padding: 0 22px 20px;
  color: #d5dae6;
}
.faq-item .answer p { margin-bottom: 10px; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--text2);
}
.breadcrumbs a { color: var(--text2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; color: var(--border); }

/* Page header */
.page-hero {
  padding: 48px 0 20px;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { margin-top: 0; margin-bottom: 14px; }
.page-hero .lead {
  font-size: 1.05rem;
  color: #c5ccdb;
  max-width: 720px;
}
.page-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 28px 0 12px;
  box-shadow: var(--shadow);
  max-height: 340px;
}
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.error-page .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}
.error-page h1 { margin: 8px 0 12px; }
.error-page p { color: var(--text2); max-width: 460px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-brand .logo-img { height: 36px; }
.footer-brand p {
  margin-top: 14px;
  color: var(--text2);
  font-size: 14px;
  max-width: 380px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.footer-nav a {
  color: var(--text2);
  padding: 6px 0;
  font-size: 14px;
}
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--text2);
  font-size: 13px;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.age-badge .n {
  background: #d63b3b;
  color: #fff;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(2) { border-right: 0; }
  .hero-stats > div:nth-child(1),
  .hero-stats > div:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .header-inner { padding: 14px 20px; gap: 12px; }
  .main-nav { display: none; }
  .burger-btn { display: inline-flex; }
  .play-btn { padding: 10px 16px; font-size: 13px; }

  .container { padding: 0 20px; }
  .hero { padding: 40px 0 24px; }
  .hero-badge { left: 14px; bottom: 14px; padding: 10px 12px; }
  .hero-badge .val { font-size: 1rem; }
  .cta-block { padding: 30px 20px; }
  .page-hero { padding: 32px 0 12px; }
  .page-hero-image { max-height: 220px; }
  h2 { margin: 32px 0 12px; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .hero-stats > div:last-child { border-bottom: 0; }
  table th, table td { padding: 12px 14px; font-size: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
