/* casumo-nz.co — brand mirror of casumo.com/en-nz (palette + type character) */

:root {
  --bg: #130031;
  --bg-deep: #0C001F;
  --surface: #1E0A4A;
  --surface-2: #2A1160;
  --violet: #4C00C2;
  --violet-dark: #3C0098;
  --accent: #0CD0CD;
  --accent-hover: #23E8E4;
  --gold: #FFC83B;
  --gold-soft: #FFF1A8;
  --text: #FFFFFF;
  --text-muted: #D3D8E1;
  --text-dim: #A99FC4;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(12, 208, 205, 0.35);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(76, 0, 194, 0.55), transparent 65%),
    radial-gradient(760px 420px at 92% 4%, rgba(12, 208, 205, 0.16), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.95rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-top: 8px; }
h3 { font-size: 1.22rem; color: var(--gold-soft); }

p { margin: 0 0 16px; color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 0, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo img { display: block; height: 38px; width: auto; }

/* burger (CSS-only, hidden on desktop) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.nav-burger { display: none; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 2px;
  display: inline-block;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

.header-cta {
  flex: 0 0 auto;
  background: var(--accent);
  color: #06202B;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.header-cta:hover { background: var(--accent-hover); color: #06202B; text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1.02rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #06202B; }
.btn-primary:hover { background: var(--accent-hover); color: #06202B; text-decoration: none; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */

.hero { padding: 54px 0 40px; }
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}
.hero p.lede { font-size: 1.1rem; color: var(--text); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 200, 59, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 14px; }

.offer-card {
  position: relative;
  background: linear-gradient(155deg, rgba(26, 16, 45, 0.92), rgba(12, 8, 25, 0.95)), url("foto/hero-promo.webp") no-repeat center / cover;
  border: 1px solid rgba(255, 200, 59, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(162, 89, 255, 0.15);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.offer-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 75% 25%, rgba(162, 89, 255, 0.22), transparent 55%);
  pointer-events: none;
}
.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 200, 59, 0.75);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 200, 59, 0.25);
  text-decoration: none;
}
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #ffc83b, #ff9900);
  color: #0d0a1a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(255, 200, 59, 0.3);
  position: relative;
  z-index: 1;
}
.offer-card h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}
.offer-headline {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #ffeb99 50%, #ffc83b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.offer-card ul {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}
.offer-card li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.offer-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}
.offer-card .btn-primary {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 230, 153, 0.35);
}
.offer-card .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(0, 230, 153, 0.5);
}

/* ---------- Full Width Promo Banner ---------- */

.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, rgba(26, 15, 46, 0.94), rgba(45, 20, 80, 0.88)), url("foto/banner.jpg") no-repeat center / cover;
  border: 1px solid rgba(255, 200, 59, 0.4);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 40px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.promo-banner::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 50%, rgba(162, 89, 255, 0.25), transparent 60%);
  pointer-events: none;
}
.promo-banner:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 200, 59, 0.3);
  text-decoration: none;
}
.promo-banner-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}
.promo-banner-badge {
  display: inline-block;
  background: rgba(255, 200, 59, 0.15);
  border: 1px solid rgba(255, 200, 59, 0.5);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.promo-banner-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 10px;
}
.promo-banner-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 4px;
}
.promo-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #00b377);
  color: #07130e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 230, 153, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.promo-banner:hover .promo-banner-cta {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 230, 153, 0.6);
}
@media (max-width: 768px) {
  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
  }
  .promo-banner-cta {
    width: 100%;
    justify-content: center;
  }
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ---------- sections ---------- */

section { padding: 34px 0; }
section > .wrap > p, .prose p { max-width: 78ch; }
.prose ul, .prose ol { max-width: 78ch; color: var(--text-muted); padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.answer-box {
  background: rgba(12, 208, 205, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 0 0 26px;
}
.answer-box p { color: var(--text); margin-bottom: 0; }
.answer-box p + p { margin-top: 12px; }

.note {
  background: rgba(255, 200, 59, 0.09);
  border: 1px solid rgba(255, 200, 59, 0.28);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0;
}
.note p { margin-bottom: 0; color: var(--text-muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 0 0 26px; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.96rem;
}
caption {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding-bottom: 8px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-display);
}
td { color: var(--text-muted); }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.03); }

/* ---------- game grid ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 16px;
}
.game-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.game-tile img { width: 100%; height: auto; display: block; aspect-ratio: 226 / 338; object-fit: cover; }
.game-tile .tile-body { padding: 10px 12px 14px; }
.game-tile strong { display: block; font-size: 0.94rem; font-family: var(--font-display); font-weight: 500; }
.game-tile span { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.04rem;
  color: var(--text);
}
.faq details[open] summary { color: var(--accent); margin-bottom: 10px; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- steps ---------- */

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--violet);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-display);
  display: grid;
  place-items: center;
  font-size: 0.92rem;
}

/* ---------- cta band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--violet-dark), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin: 12px 0 8px;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { max-width: 62ch; margin-inline: auto; }

/* ---------- breadcrumbs ---------- */

.crumbs { font-size: 0.85rem; color: var(--text-dim); padding-top: 20px; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 40px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 40px 0 110px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-bottom: 26px; }
.footer-cols h4 { font-size: 0.95rem; margin-bottom: 10px; color: var(--text); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 7px; }
.footer-cols a { color: var(--text-dim); }
.footer-cols a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 20px; line-height: 1.6; }
.footer-legal p { color: var(--text-dim); font-size: 0.85rem; }
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-display);
  margin-right: 10px;
}

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  background: rgba(12, 0, 31, 0.96);
  border-top: 1px solid var(--border-strong);
  padding: 10px 14px;
  backdrop-filter: blur(10px);
}
.sticky-cta .btn { width: 100%; text-align: center; padding: 13px 20px; }

@media (max-width: 940px) {
  .hero-split { grid-template-columns: 1fr; gap: 26px; }
  .grid-3, .grid-2, .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .header-row { flex-wrap: wrap; gap: 12px; min-height: 58px; }
  .logo img { height: 32px; }

  .nav-burger {
    display: grid;
    gap: 5px;
    order: 3;
    margin-left: auto;
    width: 44px;
    height: 44px;
    align-content: center;
    justify-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header-row { position: relative; }
  /* drop the menu over the page instead of stretching the sticky header */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    transform: translateX(-50%);
    display: none;
    margin-left: 0;
    padding: 4px 20px 12px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: 11px 2px; font-size: 1rem; }

  /* keep the open menu inside the viewport instead of pushing the page down */
  .nav-toggle:checked ~ .main-nav {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-cta { order: 2; margin-left: auto; padding: 9px 16px; }
  .nav-burger { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: clamp(1.65rem, 6.4vw, 2.1rem); }
  h2 { font-size: clamp(1.3rem, 5.2vw, 1.6rem); }
  h3 { font-size: 1.1rem; }
  .hero p.lede { font-size: 1.02rem; }
  .offer-headline { font-size: 1.55rem; }
  .grid-3, .grid-2, .footer-cols { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .hero { padding: 26px 0 22px; }
  section { padding: 24px 0; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .btn { padding: 13px 22px; font-size: 0.98rem; }
  .offer-card, .cta-band { padding: 20px; }
  .answer-box { padding: 15px 16px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
  .steps li { padding-left: 40px; }
  table { min-width: 460px; font-size: 0.9rem; }
  th, td { padding: 10px 11px; }
  .table-scroll {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
  }
  .faq details { padding: 14px 16px; }
  .faq summary { font-size: 0.99rem; }
  .site-footer { padding: 30px 0 96px; }
}

@media (max-width: 380px) {
  .header-cta { display: none; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta .btn { font-size: 0.92rem; padding: 12px 14px; }
}
