/* ============================================
   BLOCK BLAST! - Isometric UI Design System
   styles.css
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --secondary: #f1f5f9;
    --secondary-dark: #e2e8f0;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --charcoal: #1e293b;
    --charcoal-dark: #0f172a;
    --charcoal-mid: #334155;
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-dark: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    --font-display: 'Space Mono', 'Courier New', monospace;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);
    --shadow-iso: 8px 8px 0px var(--charcoal-dark);
    --shadow-iso-sm: 4px 4px 0px var(--charcoal-dark);
    --shadow-iso-accent: 6px 6px 0px var(--accent-dark);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    --z-base: 1;
    --z-card: 10;
    --z-header: 100;
    --z-modal: 1000;
    --z-cookie: 9999;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-glow);
    outline-offset: 2px;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* --- Isometric Grid Background Pattern --- */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-grid-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(60deg) rotateZ(45deg);
    transform-origin: center center;
    animation: gridShift 30s linear infinite;
}

.hero-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 30%, var(--off-white) 80%);
}

@keyframes gridShift {
    0% { transform: perspective(600px) rotateX(60deg) rotateZ(45deg) translateY(0); }
    100% { transform: perspective(600px) rotateX(60deg) rotateZ(45deg) translateY(60px); }
}

/* --- Cookie Consent --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-cookie);
    background: var(--charcoal-dark);
    color: var(--text-on-dark);
    border-top: 3px solid var(--accent);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.cookie-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-on-dark);
}

.cookie-text a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--charcoal-dark);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--accent);
    transition: all var(--transition-fast);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cookie-accept:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.btn-cookie-essential {
    padding: 10px 24px;
    background: transparent;
    color: var(--text-on-dark);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--charcoal-mid);
    transition: all var(--transition-fast);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cookie-essential:hover {
    border-color: var(--text-on-dark);
    background: rgba(255,255,255,0.05);
}

.btn-cookie-settings {
    padding: 10px 24px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    text-decoration: underline;
}

.btn-cookie-settings:hover {
    color: var(--text-on-dark);
}

.cookie-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--charcoal-mid);
}

.cookie-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cookie-option span {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 26px;
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(248, 250, 252, 0.95);
    border-bottom-color: var(--secondary-dark);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    text-decoration: none;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-cube {
    width: 36px;
    height: 36px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
    animation: cubeFloat 4s ease-in-out infinite;
}

@keyframes cubeFloat {
    0%, 100% { transform: rotateX(-20deg) rotateY(30deg) translateY(0); }
    50% { transform: rotateX(-20deg) rotateY(30deg) translateY(-4px); }
}

.cube-face {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--charcoal-dark);
}

.cube-front {
    background: var(--primary);
    transform: translateZ(14px);
    top: 4px;
    left: 4px;
}

.cube-top {
    background: var(--primary-light);
    transform: rotateX(90deg) translateZ(14px);
    width: 28px;
    height: 14px;
    top: -3px;
    left: 4px;
}

.cube-right {
    background: var(--primary-dark);
    transform: rotateY(90deg) translateZ(14px);
    width: 14px;
    height: 28px;
    top: 4px;
    right: -3px;
    left: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal-dark);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.nav-link.nav-cta {
    background: var(--accent);
    color: var(--charcoal-dark);
    font-weight: 700;
    border: 2px solid var(--charcoal-dark);
    box-shadow: var(--shadow-iso-sm);
    transition: all var(--transition-fast);
}

.nav-link.nav-cta:hover {
    box-shadow: 2px 2px 0px var(--charcoal-dark);
    transform: translate(2px, 2px);
    background: var(--accent-light);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 200;
}

.toggle-bar {
    width: 24px;
    height: 2.5px;
    background: var(--charcoal-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-toggle.active .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--charcoal-dark);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--charcoal-dark);
    box-shadow: var(--shadow-iso-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    animation: badgeSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes badgeSlide {
    from { opacity: 0; transform: translateY(20px) rotate(-2deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--charcoal-dark);
    margin-bottom: 24px;
}

.title-line {
    display: block;
    animation: titleReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }
.title-line:nth-child(3) { animation-delay: 0.7s; }

.title-accent {
    color: var(--primary);
    position: relative;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
    opacity: 0.4;
    z-index: -1;
    transform: skewX(-8deg);
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease 0.8s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeUp 0.6s ease 1s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-display);
}

.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeUp 0.6s ease 1.2s both;
}

.btn-iso {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    border: 3px solid var(--charcoal-dark);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-iso);
}

.btn-primary:hover {
    box-shadow: 4px 4px 0px var(--charcoal-dark);
    transform: translate(4px, 4px);
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--charcoal-dark);
    box-shadow: var(--shadow-iso);
}

.btn-secondary:hover {
    box-shadow: 4px 4px 0px var(--charcoal-dark);
    transform: translate(4px, 4px);
    background: var(--secondary);
    color: var(--charcoal-dark);
}

/* Hero Visual / Phone Frame */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroVisualIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes heroVisualIn {
    from {
        opacity: 0;
        transform: perspective(800px) rotateY(-15deg) rotateX(5deg) translateZ(-50px);
    }
    to {
        opacity: 1;
        transform: perspective(800px) rotateY(-5deg) rotateX(2deg) translateZ(0);
    }
}

.hero-card-stack {
    position: relative;
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.hero-card-stack:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
}

.hero-phone-frame {
    position: relative;
    width: 280px;
    height: 560px;
    background: var(--charcoal-dark);
    border-radius: 36px;
    padding: 8px;
    border: 3px solid var(--charcoal-dark);
    box-shadow:
        var(--shadow-xl),
        16px 16px 0px var(--charcoal),
        inset 0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: var(--charcoal-dark);
    border-radius: 0 0 16px 16px;
    z-index: 5;
}

.hero-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

/* Floating Blocks */
.floating-block {
    position: absolute;
    border: 3px solid var(--charcoal-dark);
    border-radius: var(--radius-sm);
}

.block-blue {
    width: 48px;
    height: 48px;
    background: var(--primary);
    top: -20px;
    right: -30px;
    box-shadow: 6px 6px 0px var(--charcoal-dark);
    animation: floatBlock 3s ease-in-out infinite;
}

.block-yellow {
    width: 36px;
    height: 36px;
    background: var(--accent);
    bottom: 60px;
    right: -40px;
    box-shadow: 4px 4px 0px var(--charcoal-dark);
    animation: floatBlock 3.5s ease-in-out 0.5s infinite;
}

.block-red {
    width: 40px;
    height: 40px;
    background: #ef4444;
    top: 80px;
    left: -35px;
    box-shadow: 5px 5px 0px var(--charcoal-dark);
    animation: floatBlock 4s ease-in-out 1s infinite;
}

.block-green {
    width: 32px;
    height: 32px;
    background: var(--success);
    bottom: -15px;
    left: -20px;
    box-shadow: 4px 4px 0px var(--charcoal-dark);
    animation: floatBlock 3.2s ease-in-out 1.5s infinite;
}

@keyframes floatBlock {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: var(--text-muted);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Ticker / Social Proof --- */
.ticker-section {
    background: var(--charcoal-dark);
    padding: 16px 0;
    overflow: hidden;
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 48px;
    animation: tickerScroll 40s linear infinite;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-on-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Section Shared Styles --- */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--charcoal-dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.text-accent {
    color: var(--primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* --- About Section --- */
.about-section {
    padding: 120px 0;
    position: relative;
    background: var(--off-white);
}

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

.iso-card {
    position: relative;
    background: var(--white);
    border: 3px solid var(--charcoal-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-iso);
    transition: all var(--transition-base);
    overflow: hidden;
}

.iso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.iso-card:hover {
    box-shadow: 4px 4px 0px var(--charcoal-dark);
    transform: translate(4px, 4px);
}

.card-inner {
    padding: 36px 28px;
}

.about-icon-wrap {
    width: 72px;
    height: 72px;
    background: var(--secondary);
    border: 2px solid var(--charcoal-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-iso-sm);
    overflow: hidden;
}

.about-game-icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.card-inner h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal-dark);
    margin-bottom: 12px;
}

.card-inner p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 8px;
}

.card-inner p:last-child {
    margin-bottom: 0;
}

/* --- Features / Steps Section --- */
.features-section {
    padding: 120px 0;
    background: var(--charcoal-dark);
    position: relative;
    overflow: hidden;
}

.features-section .section-tag {
    color: var(--accent);
}

.features-section .section-title {
    color: var(--white);
}

.features-section .section-desc {
    color: var(--text-on-dark);
}

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

.iso-card-alt {
    position: relative;
    background: var(--charcoal);
    border: 2px solid var(--charcoal-mid);
    border-radius: var(--radius-md);
    padding: 40px 28px;
    transition: all var(--transition-base);
    overflow: hidden;
}

.iso-card-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.iso-card-alt:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--charcoal-mid);
    line-height: 1;
    margin-bottom: 20px;
    transition: color var(--transition-base);
}

.iso-card-alt:hover .step-number {
    color: var(--primary);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.step-visual {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

/* Mini Blocks Visual */
.mini-blocks {
    display: flex;
    gap: 8px;
}

.mini-block {
    width: 40px;
    height: 40px;
    border: 2px solid var(--charcoal-mid);
    border-radius: 6px;
    transition: all var(--transition-base);
}

.mb-1 { background: var(--primary); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); }
.mb-2 { background: var(--accent); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); width: 40px; height: 80px; }
.mb-3 { background: var(--success); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); width: 80px; height: 40px; }

.iso-card-alt:hover .mini-block {
    transform: translateY(-4px);
}

/* Mini Grid Visual */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(3, 36px);
    gap: 4px;
}

.grid-cell {
    background: var(--charcoal-mid);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all var(--transition-base);
}

.grid-cell.filled {
    background: var(--primary);
    border-color: var(--primary-light);
}

.grid-cell.filled.accent {
    background: var(--accent);
    border-color: var(--accent-light);
}

.iso-card-alt:hover .grid-cell.filled {
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Combo Display */
.combo-display {
    position: relative;
    text-align: center;
}

.combo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.combo-sparks {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.combo-sparks span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: sparkle 1s ease-in-out infinite;
}

.combo-sparks span:nth-child(2) { animation-delay: 0.2s; }
.combo-sparks span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 120px 0;
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.iso-frame {
    position: relative;
    border: 3px solid var(--charcoal-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-iso);
    transition: all var(--transition-base);
    cursor: pointer;
}

.iso-frame:hover {
    box-shadow: 4px 4px 0px var(--charcoal-dark);
    transform: translate(4px, 4px);
}

.gi-large {
    grid-row: 1 / 3;
}

.iso-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.iso-frame:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.iso-frame:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Live Counter Section --- */
.live-section {
    padding: 80px 0;
    background: var(--secondary);
    border-top: 3px solid var(--charcoal-dark);
    border-bottom: 3px solid var(--charcoal-dark);
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.iso-card-dark {
    background: var(--charcoal-dark);
    border: 2px solid var(--charcoal-mid);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.iso-card-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.iso-card-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    border-color: var(--primary);
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 16px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--primary-glow);
}

.dot-yellow {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.dot-green {
    background: var(--success);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.dot-purple {
    background: #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.live-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.live-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Trust Section --- */
.trust-section {
    padding: 120px 0;
    background: var(--off-white);
}

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

.trust-card.iso-card::before {
    background: var(--success);
}

.trust-card .card-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-card .card-inner svg {
    margin-bottom: 12px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 120px 0;
    background: var(--charcoal-dark);
}

.faq-section .section-tag {
    color: var(--accent);
}

.faq-section .section-title {
    color: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iso-card-faq {
    background: var(--charcoal);
    border: 2px solid var(--charcoal-mid);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.iso-card-faq.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    text-align: left;
    transition: color var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-base);
}

.iso-card-faq.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.iso-card-faq.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.faq-answer a {
    color: var(--accent-light);
    text-decoration: underline;
}

/* --- Contact / Sign Up Section --- */
.contact-section {
    padding: 120px 0;
    background: var(--off-white);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
}

.contact-perks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-trust-badges {
    display: flex;
    gap: 12px;
}

.trust-badge-small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--secondary-dark);
}

/* Form Card */
.iso-card-form {
    background: var(--white);
    border: 3px solid var(--charcoal-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-iso);
    padding: 40px 36px;
    position: relative;
}

.iso-card-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--charcoal-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-body);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--secondary);
    border: 2px solid var(--secondary-dark);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.form-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

.form-group input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 4px;
    min-height: 0;
    font-weight: 500;
}

/* Checkbox */
.form-checkbox {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-body) !important;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--primary);
    margin-top: 1px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid var(--charcoal-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-iso);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    box-shadow: 4px 4px 0px var(--charcoal-dark);
    transform: translate(4px, 4px);
    background: var(--primary-dark);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-iso);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 20px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--charcoal-dark);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal-dark);
    border-top: 3px solid var(--charcoal-mid);
    padding: 64px 0 32px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--charcoal-mid);
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-on-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
}

.footer-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-copy {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-age {
    font-size: 0.75rem;
    color: var(--charcoal-mid);
}

/* ============================================
   LEGAL PAGES STYLES
   ============================================ */

.legal-page {
    padding-top: 72px;
}

.legal-hero {
    background: var(--charcoal-dark);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(600px) rotateX(60deg) rotateZ(45deg);
}

.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
}

.legal-hero p {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 32px 120px;
    background: var(--white);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal-dark);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-dark);
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal-dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 8px;
    list-style: disc;
}

.legal-content ol li {
    list-style: decimal;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content .legal-highlight {
    background: var(--secondary);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
}

.legal-content .legal-highlight p {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-phone-frame {
        width: 220px;
        height: 440px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gi-large {
        grid-row: auto;
    }

    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--charcoal-dark);
        padding: 100px 32px 32px;
        transition: right var(--transition-slow);
        z-index: 150;
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        color: var(--text-on-dark);
        padding: 14px 20px;
        border-radius: var(--radius-sm);
        display: block;
        width: 100%;
        font-size: 0.9rem;
    }

    .nav-link:hover {
        background: var(--charcoal);
        color: var(--accent);
    }

    .nav-link.nav-cta {
        margin-top: 12px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-iso {
        width: 100%;
        justify-content: center;
    }

    .hero-phone-frame {
        width: 200px;
        height: 400px;
    }

    .live-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .section-container {
        padding: 0 20px;
    }

    .header-container {
        padding: 0 20px;
    }

    .cookie-inner {
        padding: 20px;
    }

    .iso-card-form {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .hero-phone-frame {
        width: 180px;
        height: 360px;
        border-radius: 28px;
    }

    .floating-block {
        display: none;
    }

    .live-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        gap: 16px;
    }

    .steps-grid {
        gap: 20px;
    }
}

/* --- Nav Overlay for Mobile --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
