/*
 * IRIS CASINO DESIGN SYSTEM
 * Nocturnal luxury-minimalist interface with CandyCoin reward accents.
 */

/* ============================================
   TOKENS - Color, typography, rhythm
   ============================================ */
:root {
    --background: #F4F7FB;
    --foreground: #101624;
    --card: #FFFFFF;
    --card-foreground: #101624;
    --popover: #FFFFFF;
    --popover-foreground: #101624;
    --primary: #1D4ED8;
    --primary-foreground: #FFFFFF;
    --secondary: #E6EDF7;
    --secondary-foreground: #101624;
    --muted: #D9E4F2;
    --muted-foreground: #43546B;
    --accent: #BE185D;
    --accent-foreground: #FFFFFF;
    --destructive: #BE123C;
    --destructive-foreground: #FFFFFF;
    --border: #A8B7CC;
    --input: #FFFFFF;
    --ring: #0284C7;

    --obsidian: #F4F7FB;
    --midnight: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.94);
    --iris: #0369A1;
    --iris-deep: #1D4ED8;
    --rose: #BE185D;
    --paper: #101624;
    --slate: #43546B;

    --font-display: "Unbounded", sans-serif;
    --font-body: "Manrope", sans-serif;

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3.5rem;
    --space-3xl: 5rem;
    --space-4xl: 7rem;

    --radius-sm: 0.75rem;
    --radius-md: 1.125rem;
    --radius-lg: 1.75rem;
    --radius-pill: 999px;

    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.32);
    --shadow-glow: 0 0 34px rgba(56, 189, 248, 0.28);
    --container: 1180px;
    --header-height: 76px;
}

.dark {
    --background: #0A0F1C;
    --foreground: #F7F3EA;
    --card: #0F172A;
    --card-foreground: #F7F3EA;
    --popover: #101624;
    --popover-foreground: #F7F3EA;
    --primary: #2563EB;
    --primary-foreground: #FFFFFF;
    --secondary: #172033;
    --secondary-foreground: #F7F3EA;
    --muted: #1E293B;
    --muted-foreground: #B8C4D6;
    --accent: #BE185D;
    --accent-foreground: #FFFFFF;
    --destructive: #F43F5E;
    --destructive-foreground: #000000;
    --border: #334155;
    --input: #111827;
    --ring: #38BDF8;

    --obsidian: #0A0F1C;
    --midnight: #0F172A;
    --glass: rgba(15, 23, 42, 0.92);
    --iris: #38BDF8;
    --iris-deep: #2563EB;
    --rose: #F472B6;
    --paper: #F7F3EA;
    --slate: #B8C4D6;
}

/* ============================================
   RESET & OVERFLOW SAFETY - Stable mobile-first base
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--background);
    color: var(--foreground);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.58;
    background:
        radial-gradient(circle at 78% 6%, rgba(56, 189, 248, 0.16), transparent 32rem),
        radial-gradient(circle at 10% 20%, rgba(190, 24, 93, 0.12), transparent 24rem),
        var(--background);
    color: var(--foreground);
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

img,
video,
iframe,
embed,
object,
svg {
    max-width: 100%;
    height: auto;
}

[class*="grid"] > *,
[class*="flex"] > *,
.card,
.info-card,
.stat-card,
.feature-card,
.review-card {
    min-width: 0;
}

pre,
code,
.code-block,
[class*="code"] {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
    white-space: pre;
}

.table-wrapper,
[class*="table-"] {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

p,
li,
td,
th {
    overflow-wrap: break-word;
}

a {
    color: var(--iris);
    text-decoration: none;
    text-underline-offset: 0.22em;
}

a:hover {
    text-decoration: underline;
}

a[href^="http"],
.inline-url {
    word-break: break-all;
}

input,
textarea,
select {
    max-width: 100%;
    box-sizing: border-box;
}

section,
.hero,
.cta-banner,
.site-footer {
    overflow: clip;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(56, 189, 248, 0.32);
    color: var(--paper);
}

/* ============================================
   ACCESSIBILITY - Focus, skip link, screen-reader text
   ============================================ */
:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    transform: translateY(-180%);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 800;
    transition: transform 180ms ease-out;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   TYPOGRAPHY - Unbounded headings, Manrope body
   ============================================ */
h1,
h2,
h3,
h4 {
    margin: 0 0 var(--space-md);
    font-family: var(--font-display);
    color: var(--foreground);
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.125rem, calc(7vw + 0.5rem), 4rem);
    line-height: 1.12;
    font-weight: 760;
}

h2 {
    font-size: clamp(1.75rem, calc(4vw + 0.75rem), 2.625rem);
    line-height: 1.18;
    font-weight: 700;
}

h3 {
    font-size: clamp(1.375rem, calc(2vw + 0.9rem), 1.75rem);
    line-height: 1.25;
    font-weight: 650;
}

h4 {
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 700;
}

p {
    margin: 0 0 var(--space-md);
    max-width: 70ch;
}

.lead {
    font-size: clamp(1.0625rem, calc(1vw + 0.9rem), 1.25rem);
    line-height: 1.6;
    color: var(--slate);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 var(--space-md);
    font-size: 0.8125rem;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--iris);
}

.eyebrow::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0 8%, var(--iris) 28%, var(--rose) 82%);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

/* ============================================
   LAYOUT - Containers, sections, editorial grids
   ============================================ */
.container,
.section-inner,
.header-inner,
.footer-inner {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

main {
    min-height: 55vh;
}

.section {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: var(--space-3xl) 0;
}

.section-heading {
    margin-bottom: var(--space-xl);
}

.section-heading.narrow {
    max-width: 760px;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

.grid-2,
.grid-3,
.grid-4,
.feature-grid,
.card-grid,
.review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

/* ============================================
   HEADER & NAVIGATION - Sticky shell with mobile drawer
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: rgba(10, 15, 28, 0.98);
    border-bottom: 1px solid rgba(51, 65, 85, 0.78);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--foreground);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    min-width: 0;
}

.site-brand:hover {
    text-decoration: none;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.32);
}

.brand-text {
    font-size: 1rem;
}

.mobile-menu-toggle {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.mobile-menu-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    border-radius: 4px;
    background: currentColor;
    transition: transform 220ms ease-out, opacity 180ms ease-out;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
    display: none;
}

.primary-nav.is-open {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-lg);
    background: var(--background);
    overflow-y: auto;
    border-top: 1px solid var(--border);
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-pill);
    color: var(--foreground);
    font-weight: 750;
}

.nav-list a:hover {
    background: var(--secondary);
    text-decoration: none;
}

.nav-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
}

.theme-toggle {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--card);
    color: var(--foreground);
    font-weight: 800;
}

.theme-toggle-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, var(--iris) 40%, var(--accent));
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
}

.header-theme-toggle {
    flex: 0 0 48px;
    width: 48px;
    min-height: 48px;
    margin-left: auto;
    padding: 0;
}

.header-theme-toggle span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   BUTTONS - Conversion and utility actions
   ============================================ */
.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.82rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
    transition: transform 220ms ease-out, box-shadow 220ms ease-out, background-color 220ms ease-out, border-color 220ms ease-out;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1D4ED8 52%, #0EA5E9);
    color: var(--primary-foreground);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow), 0 16px 34px rgba(37, 99, 235, 0.38);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-large {
    min-height: 56px;
    padding-inline: 1.6rem;
    font-size: 1.05rem;
}

/* ============================================
   HERO - Dark product banner with CandyCoin focal point
   ============================================ */
.hero {
    position: relative;
    padding: clamp(4.5rem, calc(9vw + 2rem), 8rem) 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 10% -18% auto auto;
    width: min(36rem, 80vw);
    height: min(36rem, 80vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 65%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.hero-media,
.art-panel {
    position: relative;
    min-height: 320px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 72% 34%, rgba(244, 114, 182, 0.23), transparent 8rem),
        radial-gradient(circle at 38% 22%, rgba(56, 189, 248, 0.2), transparent 12rem),
        linear-gradient(145deg, #070A12, #111827);
    box-shadow: var(--shadow-soft);
    overflow: clip;
}

.hero-media img,
.art-panel img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

/* ============================================
   CARDS - Content containers and feature blocks
   ============================================ */
.card,
.info-card,
.feature-card,
.review-card {
    padding: var(--space-lg);
    border: 1px solid rgba(51, 65, 85, 0.86);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 28, 0.96));
    color: var(--card-foreground);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: transform 220ms ease-out, border-color 220ms ease-out, box-shadow 220ms ease-out;
}

.card:hover,
.info-card:hover,
.feature-card:hover,
.review-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.72);
    box-shadow: var(--shadow-soft);
}

.card-featured {
    border-color: rgba(244, 114, 182, 0.78);
    box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.2), var(--shadow-soft);
}

.card p:last-child,
.info-card p:last-child,
.feature-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ENGAGEMENT PATTERNS - Summary, callouts, quotes
   ============================================ */
.summary-box,
.tldr-box {
    padding: var(--space-lg);
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 10%, rgba(56, 189, 248, 0.16), transparent 9rem),
        rgba(15, 23, 42, 0.94);
    box-shadow: var(--shadow-soft);
}

.summary-box ul,
.tldr-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.callout,
.highlight-box {
    padding: var(--space-lg);
    border-left: 4px solid var(--rose);
    border-radius: var(--radius-md);
    background: rgba(190, 24, 93, 0.13);
    color: var(--foreground);
}

.callout strong,
.highlight-box strong {
    color: #FFD7EA;
}

.stat-highlight {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(190, 24, 93, 0.14));
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.stat-highlight .number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, calc(6vw + 0.5rem), 4rem);
    line-height: 1;
    color: var(--iris);
}

.pull-quote,
blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    border-left: 4px solid var(--iris);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(15, 23, 42, 0.82);
    font-size: clamp(1.15rem, calc(1vw + 1rem), 1.45rem);
    line-height: 1.45;
    color: var(--paper);
}

blockquote cite,
.pull-quote cite {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--slate);
    font-style: normal;
}

/* ============================================
   DETAILS & FAQ - Native accessible accordions
   ============================================ */
details,
.faq-item {
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.94);
    overflow: hidden;
}

details + details,
.faq-item + .faq-item {
    margin-top: var(--space-sm);
}

summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 1rem 1.15rem;
    color: var(--foreground);
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.24);
    color: var(--iris);
    font-family: var(--font-display);
    transition: transform 180ms ease-out;
}

details[open] summary::after {
    content: "-";
    transform: rotate(180deg);
}

.faq-answer,
details > :not(summary) {
    padding: 0 1.15rem 1.15rem;
    color: var(--slate);
}

.faq-list {
    max-width: 860px;
}

/* ============================================
   STAT CARD GRID - Quotable metrics with source notes
   ============================================ */
.stat-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    position: relative;
    padding: var(--space-lg);
    border: 1px solid rgba(51, 65, 85, 0.86);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 25, 0.98));
    transition: transform 220ms ease-out, border-color 220ms ease-out;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.78);
}

.stat-dot {
    width: 0.7rem;
    height: 0.7rem;
    display: inline-block;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, var(--iris) 42%, var(--rose));
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.72);
}

.stat-number {
    display: block;
    margin-top: var(--space-sm);
    font-family: var(--font-display);
    font-size: clamp(2rem, calc(5vw + 0.5rem), 3.6rem);
    line-height: 1;
    color: var(--paper);
}

.stat-label {
    display: block;
    margin: 0.55rem 0;
    color: var(--iris);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-card small {
    display: block;
    margin-top: var(--space-sm);
    color: var(--slate);
    font-size: 0.875rem;
}

/* ============================================
   CTA BANNER - Conversion band with CandyCoin illustration
   ============================================ */
.cta-banner {
    width: min(100% - 2rem, var(--container));
    margin: var(--space-2xl) auto;
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 78% 36%, rgba(56, 189, 248, 0.2), transparent 14rem),
        linear-gradient(135deg, #07101F, #0F172A 48%, #090D18);
    box-shadow: var(--shadow-soft);
}

.cta-banner-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl);
    text-align: center;
}

.cta-banner p {
    margin-inline: auto;
}

.cta-note {
    margin-top: var(--space-sm);
    color: var(--slate);
    font-size: 0.9rem;
}

.cta-visual {
    position: relative;
    min-height: 210px;
    display: grid;
    place-items: center;
}

.candy-orb {
    position: relative;
    z-index: 2;
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #fff 0 7%, #BEEBFF 11%, #38BDF8 32%, #2563EB 58%, #BE185D 100%);
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.55), inset 0 0 24px rgba(255, 255, 255, 0.22);
}

.candy-stick {
    position: absolute;
    z-index: 1;
    width: 0.65rem;
    height: 8rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(#E6EEF8, #8EA2BF);
    transform: translate(3rem, 5.4rem) rotate(34deg);
}

.candy-glow {
    position: absolute;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 68%);
    animation: candyPulse 4.8s ease-in-out infinite;
}

/* ============================================
   TRUST, PAYMENTS & SOCIAL PROOF - Reusable CRO rows
   ============================================ */
.trust-badges,
.payment-strip,
.logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.trust-badges span,
.payment-strip span,
.logo-strip span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.86);
    color: var(--slate);
    font-size: 0.875rem;
    font-weight: 800;
}

.social-proof {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

.review-card .stars {
    color: var(--rose);
    letter-spacing: 0.05em;
}

/* ============================================
   TABLES - Comparison and payment data
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    color: var(--foreground);
}

th,
td {
    padding: 0.95rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(37, 99, 235, 0.18);
    color: var(--paper);
    font-weight: 850;
}

tr.recommended td,
td.recommended,
th.recommended {
    background: rgba(56, 189, 248, 0.12);
    box-shadow: inset 3px 0 0 var(--iris);
}

/* ============================================
   FOOTER - Compliance, links, payments, license
   ============================================ */
.site-footer {
    margin-top: var(--space-3xl);
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.95), #070B14);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
}

.footer-brand p,
.footer-legal p {
    color: var(--slate);
    font-size: 0.95rem;
}

.footer-heading {
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.footer-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 0.55rem;
}

.footer-links a {
    color: var(--slate);
    font-weight: 750;
}

.age-badge {
    display: inline-flex;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(244, 114, 182, 0.55);
    border-radius: var(--radius-pill);
    background: rgba(190, 24, 93, 0.14);
    color: #FFD7EA !important;
    font-weight: 850;
}

/* ============================================
   ANIMATION - Subtle reveal and CandyCoin pulse
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms ease-out, transform 520ms ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes candyPulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   TABLET - Two-column layouts from 768px
   ============================================ */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

    .container,
    .section-inner,
    .header-inner,
    .footer-inner {
        width: min(100% - 3rem, var(--container));
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .grid-2,
    .feature-grid,
    .review-grid,
    .social-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .grid-4,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }

    .cta-banner-content {
        grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
        text-align: left;
        padding: var(--space-2xl);
    }

    .cta-banner p {
        margin-inline: 0;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================
   DESKTOP - Inline nav and richer grids from 1024px
   ============================================ */
@media (min-width: 1024px) {
    .site-header {
        background: rgba(10, 15, 28, 0.82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .mobile-menu-toggle {
        display: none;
    }

    .site-brand {
        order: 1;
    }

    .header-theme-toggle {
        order: 3;
        flex-basis: auto;
        width: auto;
        min-height: 44px;
        padding: 0.75rem 1rem;
        margin-left: 0;
    }

    .header-theme-toggle span:last-child {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip-path: none;
        white-space: normal;
        border: 0;
    }

    .primary-nav,
    .primary-nav.is-open {
        position: static;
        order: 2;
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-lg);
        padding: 0;
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        margin-inline: auto;
        overflow-x: auto;
    }

    .nav-list a {
        min-height: 44px;
        padding-inline: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
    }

    .theme-toggle {
        min-height: 44px;
        padding-inline: 0.85rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card-grid,
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .footer-legal {
        grid-column: 1 / -1;
    }
}

/* ============================================
   WIDE - Max composition width from 1280px
   ============================================ */
@media (min-width: 1280px) {
    .hero {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .card,
    .info-card,
    .feature-card,
    .review-card,
    .stat-card {
        padding: var(--space-xl);
    }
}