/* ========================================================
   Martin Casino — Design System
   ======================================================== */

:root {
  /* Backgrounds / surfaces */
  --bg: #0c0e17;
  --bg-header: #090b12;
  --bg-footer: #090b12;
  --bg-card: #141926;
  --bg-surf: #1b2234;
  --bg-surf2: #242e47;

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

  /* Text */
  --text: #ffffff;
  --text-light: #ffffff;
  --text2: #8a94a6;

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

  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;

  --container: 1200px;

  --ff: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(59,81,241,0.10), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(255,159,0,0.06), transparent 60%);
  background-attachment: fixed;
}

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 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 40px 0 16px; position: relative; padding-left: 16px; }
h2::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-gold));
}
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 28px 0 12px; color: var(--accent-gold); }

p { margin-bottom: 14px; color: #d7dbe4; }
strong { color: #fff; font-weight: 700; }

ul, ol { margin: 14px 0 20px 22px; color: #d7dbe4; }
li { margin-bottom: 8px; }
ul li::marker { color: var(--accent); }
ol li::marker { color: var(--accent-gold); font-weight: 700; }

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

.nav-menu {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background .2s ease, color .2s ease;
  font-size: 15px;
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--bg-surf);
  color: var(--accent-gold);
}

.play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  background: linear-gradient(180deg, var(--accent), #ff8a00);
  color: #1a1200 !important;
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(255,159,0,0.35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.play-btn:hover { transform: translateY(-2px); filter: brightness(1.05); color: #1a1200 !important; }

.burger-btn {
  display: none;
  width: 42px; height: 42px;
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  padding: 0;
}
.burger-btn span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 20px 20px; }
.mobile-menu li { margin: 0; }
.mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { background: var(--bg-surf); color: var(--accent-gold); }

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 40px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero-lead {
  font-size: 1.1rem;
  color: #cdd2de;
  margin-bottom: 26px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--accent), #ff8a00);
  color: #1a1200 !important;
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 26px rgba(255,159,0,0.4);
  transition: transform .15s ease, filter .2s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); color: #1a1200 !important; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  background: transparent;
  color: var(--text) !important;
  font-weight: 700;
  border: 1.5px solid var(--accent2);
  border-radius: var(--radius-sm);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background .2s ease, color .2s ease;
}
.btn-secondary:hover { background: var(--accent2); color: var(--text) !important; }

.hero-stats {
  display: flex; gap: 22px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--text2); font-size: 14px;
}
.hero-stats span strong { color: var(--accent-gold); font-size: 1.15rem; display: block; }

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-image img { width: 100%; height: auto; display: block; }

/* ---------- Sections ---------- */
.section { padding: 24px 0; }
.section-tight { padding: 12px 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.info-block {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.info-block h3 { margin-top: 0; }

/* ---------- Table ---------- */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
th {
  background: var(--bg-surf);
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
td strong { color: var(--text); }

/* ---------- Bonus / feature grids ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.feature {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
  color: #1a1200;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}
.feature h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--text); }
.feature p { font-size: 14px; color: var(--text2); margin: 0; }

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}
.game-card {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--accent2); background: var(--bg-surf2); }
.game-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent2), var(--neon));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
}
.game-card:nth-child(2n) .game-thumb { background: linear-gradient(135deg, var(--accent), var(--accent-gold)); color: #1a1200; }
.game-card:nth-child(3n) .game-thumb { background: linear-gradient(135deg, #9333ea, var(--accent2)); }
.game-card:nth-child(4n) .game-thumb { background: linear-gradient(135deg, #ef4444, var(--accent)); }
.game-title { font-weight: 700; font-size: 14px; color: var(--text); }
.game-provider { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* ---------- Provider list ---------- */
.providers {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0;
}
.provider-pill {
  padding: 10px 18px;
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  transition: background .2s ease, border-color .2s ease;
}
.provider-pill:hover { background: var(--bg-surf2); border-color: var(--accent); color: var(--accent-gold); }

/* ---------- Payment methods ---------- */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.pay-card {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-weight: 600;
}
.pay-card .pay-name { display: block; color: var(--text); margin-bottom: 6px; }
.pay-card .pay-meta { font-size: 12px; color: var(--text2); font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { margin: 30px 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
  user-select: none;
  transition: background .2s ease;
}
.faq-question:hover { background: var(--bg-surf); }
.faq-question::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  transition: transform .3s ease;
  margin-left: 12px;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 22px;
  color: #cdd2de;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 22px 22px;
}

/* ---------- CTA block ---------- */
.cta-block {
  margin: 40px 0 20px;
  padding: 36px 30px;
  background:
    linear-gradient(135deg, rgba(59,81,241,0.18), rgba(255,159,0,0.10)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-block h2 { margin: 0 0 12px; padding-left: 0; }
.cta-block h2::before { display: none; }
.cta-block p { max-width: 620px; margin: 0 auto 22px; }

/* ---------- Promo code box ---------- */
.promo-box {
  background: linear-gradient(135deg, var(--bg-surf2), var(--bg-surf));
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin: 20px 0;
}
.promo-code-display {
  display: inline-block;
  padding: 12px 28px;
  background: var(--bg);
  border: 2px solid var(--accent-gold);
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  margin: 10px 0;
  font-family: "Courier New", monospace;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 80px 20px;
}
.notfound-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.notfound h1 { font-size: 1.75rem; margin-bottom: 14px; padding-left: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { color: var(--text2); font-size: 14px; }
.footer-col h4 {
  color: var(--accent-gold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text2); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--text2); font-size: 13px;
}
.age-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  background: rgba(239,68,68,0.15);
  color: #ff8a8a;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid rgba(239,68,68,0.3);
  font-size: 12px;
}

/* ---------- Contact form (visual only) ---------- */
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 20px 0;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .burger-btn { display: flex; }
  .header-inner { gap: 10px; }
  .play-btn { padding: 9px 16px; font-size: 13px; }
  .logo-img { height: 34px; }
  .hero { padding: 30px 0 24px; }
  .card { padding: 20px 18px; }
  .cta-block { padding: 28px 20px; }
  h2 { margin: 30px 0 12px; }
  .container { padding: 0 16px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 14px; }
  .hero-stats span { flex: 1 1 45%; }
  .btn-primary, .btn-secondary { width: 100%; }
}
