/* ============================================
   StarWritten - Design System & Styles
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #8B5CF6, #6366F1);
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --secondary: #F59E0B;
    --secondary-light: #FBBF24;

    --bg-dark-1: #0F0F1A;
    --bg-dark-2: #1A1A2E;
    --bg-dark-3: #16213E;
    --bg-gradient: linear-gradient(180deg, #0F0F1A 0%, #1A1A2E 50%, #0F0F1A 100%);

    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;

    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-bg-strong: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 16px rgba(139, 92, 246, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-stars: -1;
    --z-content: 1;
    --z-nav: 100;
    --z-modal: 200;
    --z-mobile-cta: 150;
}

/* RTL Support */
[dir="rtl"] {
    --direction: rtl;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark-1);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Star Particles Background
   ============================================ */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-stars);
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    opacity: var(--opacity, 0.5);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: var(--opacity, 0.5);
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: var(--space-md) 0;
    background: rgba(15, 15, 26, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: var(--glass-hover);
    border-color: var(--primary-light);
}

.lang-btn .chevron {
    transition: transform var(--transition-fast);
}

.lang-btn.active .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 10;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lang-option:hover {
    background: var(--glass-hover);
}

.lang-option.active {
    background: rgba(139, 92, 246, 0.2);
}

.flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#currentLangFlag {
    display: flex;
    align-items: center;
}

#currentLangFlag .flag-img {
    width: 20px;
    height: 15px;
}

/* Nav CTA */
.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast), opacity var(--transition-normal);
    box-shadow: var(--shadow-button);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px var(--space-xl) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "content phone"
        "cta phone"
        "stats phone";
    gap: var(--space-lg) var(--space-4xl);
    align-items: center;
}

/* Hero Content (Left Side) */
.hero-content {
    z-index: var(--z-content);
    grid-area: content;
}

.hero-cta {
    grid-area: cta;
}

.hero-stats {
    grid-area: stats;
}

.hero-phone {
    grid-area: phone;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease forwards;
}

.badge-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 500px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

/* Feature Hooks Grid */
.hero-hooks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hook-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.hook-item:hover {
    background: var(--glass-hover);
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.hook-icon {
    font-size: 1.25rem;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: var(--space-md);
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.store-btn {
    height: 56px;
    background: transparent;
    border: none;
    transition: all var(--transition-fast);
}

.store-btn img {
    height: 100%;
    width: auto;
    display: block;
}

.store-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Hero Phone (Right Side) */
.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-content);
    animation: fadeInRight 0.8s ease 0.3s forwards;
    opacity: 0;
}

.phone-frame {
    position: relative;
    width: 320px;
    height: 650px;
    background: linear-gradient(145deg, #2a2a40, #1a1a2e);
    border-radius: 48px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Phone Side Buttons */
.phone-button {
    position: absolute;
    background: linear-gradient(90deg, #1a1a2e, #2a2a40);
    border-radius: 2px;
}

.phone-button-power {
    right: -3px;
    top: 140px;
    width: 3px;
    height: 60px;
    border-radius: 0 2px 2px 0;
}

.phone-button-volume-up {
    left: -3px;
    top: 120px;
    width: 3px;
    height: 35px;
    border-radius: 2px 0 0 2px;
}

.phone-button-volume-down {
    left: -3px;
    top: 165px;
    width: 3px;
    height: 35px;
    border-radius: 2px 0 0 2px;
}

/* Dynamic Island (smaller than old notch) */
.phone-dynamic-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #0a0a15;
    border-radius: 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark-1);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1a2e, #0f0f1a);
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-card);
    animation: float 4s ease-in-out infinite;
}

.float-1 {
    top: 5%;
    left: -20%;
    animation-delay: 0s;
}

.float-2 {
    top: 25%;
    right: -15%;
    animation-delay: 1s;
}

.float-3 {
    bottom: 30%;
    left: -25%;
    animation-delay: 2s;
}

.float-4 {
    bottom: 10%;
    right: -20%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ============================================
   Sections Common Styles
   ============================================ */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Hero Stats
   ============================================ */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
    animation: fadeInUp 0.6s ease 0.5s forwards;
    opacity: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* ============================================
   Features Section - Premium Boxes
   ============================================ */
.features {
    padding: var(--space-4xl) 0;
    background: var(--bg-gradient);
}

.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .features-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile 3-column feature grid rules moved to Phase 4 block at end of file */

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-2xl) var(--space-xl);
    background: linear-gradient(145deg, rgba(30, 25, 55, 0.9), rgba(20, 15, 40, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-2xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

/* Gradient border glow on hover */
.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Subtle inner glow */
.feature-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.25),
        0 0 40px rgba(139, 92, 246, 0.1);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover::after {
    opacity: 1;
}

/* Premium Icon Container */
.feature-box-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.feature-box:hover .feature-box-icon {
    transform: scale(1.1) rotate(3deg);
    box-shadow:
        0 8px 30px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.6);
}

.feature-box-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
    transition: all 0.4s ease;
}

.feature-box:hover .feature-box-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.6));
}

/* Feature Box Content */
.feature-box-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.feature-box-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.feature-box-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 220px;
    margin: 0 auto;
}

/* Feature Hint - Learn More text */
.feature-hint {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    font-size: 0.7rem;
    color: rgba(139, 92, 246, 0.6);
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.feature-box:hover .feature-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    color: var(--primary-light);
}

/* Coming Soon Badge */
.feature-coming-soon {
    opacity: 0.85;
    cursor: default;
}

.feature-coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.coming-soon-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Legacy features-grid (keep for compatibility) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Premium Card */
.premium-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
}

.premium-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--secondary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* ============================================
   Educational Sections
   ============================================ */
.edu-section {
    padding: var(--space-4xl) 0;
}

.edu-section-alt {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, transparent 100%);
}

.edu-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    /* Fundo sólido - cores hexadecimais sem transparência */
    background: #1E1937;
    background-image: linear-gradient(145deg, #1E1937, #140F28);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-4xl);
    overflow: hidden;
    position: relative;
    z-index: 2;
    isolation: isolate;
    transition: all 0.4s ease;
}

/* Remover pseudo-elemento que pode causar transparência */
.edu-card::before {
    display: none;
}

.edu-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.edu-card-reverse {
    grid-template-columns: 1fr 1.5fr;
}

.edu-card-compact {
    display: block;
    padding: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.edu-content {
    z-index: 1;
}

.edu-label {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.edu-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.edu-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.edu-highlight {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
}

.edu-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.edu-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.edu-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.edu-tag {
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
    transition: all 0.3s ease;
}

.edu-tag:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

.edu-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-icon-large {
    font-size: 8rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.4));
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   Tarot Card Flip Animation
   ============================================ */
.tarot-showcase {
    perspective: 1000px;
    padding: var(--space-xl);
}

.tarot-flipper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.tarot-card {
    width: 240px;
    height: 400px;
    position: relative;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.tarot-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(139, 92, 246, 0.3);
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-back {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-front {
    transform: rotateY(180deg);
}

.card-name-badge {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.4s;
}

.tarot-card.flipped~.card-name-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Card glow effect on flip */
.tarot-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.tarot-card.flipped::before {
    opacity: 0.4;
}

/* Responsive tarot card */
@media (max-width: 768px) {
    .tarot-card {
        width: 140px;
        height: 230px;
    }

    .card-name-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tarot-card {
        width: 120px;
        height: 200px;
    }
}


/* ============================================
   Stones Crossfade Animation
   ============================================ */
.stones-showcase {
    perspective: 1000px;
    padding: var(--space-xl);
}

.stones-crossfade {
    position: relative;
    width: 200px;
    height: 360px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(30, 25, 55, 0.95), rgba(20, 15, 40, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.25);
}

/* Gradient border effect */
.stones-crossfade::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.3), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
}

.stone-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.stone-layer.active {
    opacity: 1;
}

.stone-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stone-sign-name {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(99, 102, 241, 0.8));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.6);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Responsive stones crossfade */
@media (max-width: 768px) {
    .stones-crossfade {
        width: 160px;
        height: 280px;
        border-radius: 24px;
    }

    .stone-sign-name {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-md);
    }
}

@media (max-width: 480px) {
    .stones-crossfade {
        width: 140px;
        height: 240px;
    }
}

/* ============================================
   Búzios Showcase
   ============================================ */
.buzios-showcase {
    padding: var(--space-xl);
}

.buzios-hero-img {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.25);
}

@media (max-width: 768px) {
    .buzios-hero-img {
        max-width: 200px;
    }
}

/* ============================================
   Stones Carousel Section
   ============================================ */
.stones-section {
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.stones-carousel {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-xl) var(--space-3xl);
    scroll-snap-type: x mandatory;
    min-width: min-content;
}

.stone-slide {
    flex-shrink: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    transition: transform var(--transition-normal);
}

.stone-slide:hover {
    transform: scale(1.05);
}

.stone-phone {
    width: 200px;
    height: 380px;
    background: linear-gradient(145deg, #2a2a40, #1a1a2e);
    border-radius: 32px;
    padding: 8px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.stone-slide:hover .stone-phone {
    box-shadow:
        0 30px 80px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.3);
}

.stone-screen {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #0a0a15;
}

.stone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stone-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.stone-slide:hover .stone-name {
    color: var(--primary-light);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: var(--space-sm);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-gradient);
}

/* ============================================
   Premium Section
   ============================================ */
.premium-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05), transparent);
}

/* Promo Badge */
.premium-promo-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--success);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pricing Cards Grid */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

/* Plan Card */
.plan-card {
    background: #1E1937;
    background-image: linear-gradient(145deg, #1E1937, #140F28);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.plan-card-premium {
    border-color: var(--primary);
    background: #28204A;
    background-image: linear-gradient(145deg, #28204A, #191232);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.plan-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-lg);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.plan-price {
    margin-bottom: var(--space-xl);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.plan-features li {
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.plan-features li.included span:first-child {
    color: var(--success);
}

.plan-features li.excluded {
    color: var(--text-muted);
    opacity: 0.6;
}

.plan-features li.excluded span:first-child {
    color: var(--text-muted);
}

.plan-btn {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.plan-btn-secondary {
    background: linear-gradient(145deg, rgba(40, 35, 65, 0.9), rgba(30, 25, 50, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

.plan-btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.plan-btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--shadow-button);
}

.plan-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Responsive Plan Cards */
@media (max-width: 768px) {
    .pricing-cards {
        /* Scroll horizontal no mobile */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-lg);
        padding: var(--space-md) var(--space-lg);
        margin: 0 calc(-1 * var(--space-xl));
        max-width: none;
        /* Esconder scrollbar mas manter funcionalidade */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pricing-cards::-webkit-scrollbar {
        display: none;
    }

    .plan-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
        padding: var(--space-xl);
    }

    .price-value {
        font-size: 2rem;
    }
}

/* ============================================
   Store Modal
   ============================================ */
.store-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.store-modal.active {
    display: block;
}

.store-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.store-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 350px;
    width: 90%;
}

.store-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--space-xs);
}

.store-modal-close:hover {
    color: var(--text-primary);
}

.store-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

.store-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.store-modal-btn {
    display: block;
    transition: transform var(--transition-fast);
}

.store-modal-btn img {
    height: 50px;
    width: auto;
}

.store-modal-btn:hover {
    transform: scale(1.05);
}

/* Pricing Scroll Wrapper for Mobile */
.pricing-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pricing-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.pricing-table {
    min-width: 500px;
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.pricing-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(139, 92, 246, 0.1);
    font-weight: 600;
    text-align: center;
}

.pricing-header .pricing-feature {
    text-align: left;
}

.pricing-header .pricing-premium {
    color: var(--secondary);
}

.pricing-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    transition: background var(--transition-fast);
}

.pricing-row:hover {
    background: var(--glass-hover);
}

.pricing-row span:first-child {
    text-align: left;
    color: var(--text-secondary);
}

.check {
    color: #22C55E;
    font-weight: bold;
}

.cross {
    color: var(--text-muted);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: var(--space-4xl) 0;
    overflow: hidden;
}



.testimonials-carousel {
    overflow: hidden;
    position: relative;
}

.testimonials-carousel-track {
    display: flex;
    gap: var(--space-xl);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-carousel-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    /* Fundo sólido igual às edu-cards */
    background: #1E1937;
    background-image: linear-gradient(145deg, #1E1937, #140F28);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    transition: all var(--transition-normal);
    min-width: 320px;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.testimonial-stars {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.testimonial-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.author-name {
    font-weight: 600;
}

.author-location {
    color: var(--text-muted);
}

/* ============================================
   Security Section
   ============================================ */
.security-section {
    padding: var(--space-4xl) 0;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .security-grid {
        grid-template-columns: 1fr;
    }
}

.security-card {
    /* Fundo sólido igual às edu-cards */
    background: #1E1937;
    background-image: linear-gradient(145deg, #1E1937, #140F28);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.security-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.security-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.security-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.security-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding: var(--space-xl) 0;
}

@media (max-width: 1024px) {
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-badges {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: linear-gradient(145deg, rgba(30, 25, 55, 0.8), rgba(20, 15, 40, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.trust-badge:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.trust-badge:hover::before {
    opacity: 1;
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.1));
    border-radius: 50%;
    margin-bottom: var(--space-xs);
}

.trust-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.trust-badge-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 700;
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
}


/* ============================================
   Download Section
   ============================================ */
.download-section {
    padding: var(--space-4xl) 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15), transparent 70%);
}

.download-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.download-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glow);
}

.download-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
}

.download-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.download-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.download-qr {
    margin-top: var(--space-xl);
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark-2);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-brand {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    margin: 0 auto var(--space-md);
}

.footer-tagline {
    color: var(--text-secondary);
    font-family: var(--font-accent);
    font-style: italic;
}

.footer-links,
.footer-links-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-links-compact {
    gap: var(--space-lg);
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Footer Trust Badges */
.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .footer-trust-badges {
        gap: var(--space-xs);
    }

    .footer-trust-badge {
        font-size: 0.7rem;
    }

    .footer-divider {
        display: none;
    }

    .footer-trust-badge::after {
        content: '•';
        margin-left: var(--space-xs);
        color: var(--text-muted);
        opacity: 0.5;
    }

    .footer-trust-badge:last-of-type::after {
        display: none;
    }
}

/* ============================================
   Mobile CTA (Sticky)
   ============================================ */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md) var(--space-xl);
    background: rgba(15, 15, 26, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: var(--z-mobile-cta);
}

.mobile-cta-btn {
    display: block;
    width: 100%;
    padding: var(--space-md);
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-button);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-phone {
        order: 0;
    }

    .hero-subtitle {
        margin: 0 auto var(--space-xl);
    }

    .hero-hooks {
        max-width: 500px;
        margin: 0 auto var(--space-2xl);
    }

    .hero-cta {
        justify-content: center;
    }

    .phone-frame {
        width: 280px;
        height: 570px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tablet: Premium Feature Boxes */
    .features-grid-premium {
        grid-template-columns: 1fr;
    }

    /* Tablet: Educational Sections */
    .edu-card {
        grid-template-columns: 1fr;
        padding: var(--space-2xl);
        gap: var(--space-2xl);
    }

    .edu-card-reverse {
        grid-template-columns: 1fr;
    }

    .edu-card-reverse .edu-visual {
        order: -1;
    }

    .edu-icon-large {
        font-size: 5rem;
    }

    .edu-highlight {
        justify-content: center;
    }

    /* Tablet: Hero Stats */
    .hero-stats {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark-2);
        flex-direction: column;
        padding: var(--space-lg);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding-bottom: 100px;
    }

    .hero-hooks {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Mobile: Hero Stats */
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 80px;
    }

    .phone-frame {
        width: 240px;
        height: 490px;
    }

    .floating-elements {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile: Feature Boxes */
    .feature-box {
        padding: var(--space-lg);
    }

    .feature-box-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Mobile: Educational Sections */
    .edu-section {
        padding: var(--space-lg) 0;
    }

    .edu-card {
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .edu-title {
        font-size: 1.35rem;
        margin-bottom: var(--space-sm);
    }

    .edu-label {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .edu-text {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: var(--space-sm);
    }

    .edu-highlight {
        flex-wrap: wrap;
        gap: var(--space-md);
        margin-top: var(--space-md);
        padding-top: var(--space-md);
    }

    .edu-stat-number {
        font-size: 1.25rem;
    }

    .edu-stat-label {
        font-size: 0.7rem;
    }

    .edu-icon-large {
        font-size: 3rem;
    }

    .edu-visual {
        min-height: auto;
        padding: var(--space-md) 0;
    }

    .edu-tags {
        gap: var(--space-xs);
        margin-top: var(--space-md);
    }

    .edu-tag {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-sm);
    }

    /* But show tarot and stones animations on mobile */
    .edu-visual.tarot-showcase,
    .edu-visual.stones-showcase {
        display: flex;
        margin-top: var(--space-xl);
    }

    .tarot-card {
        width: 160px;
        height: 260px;
    }

    .stone-phone {
        width: 160px;
        height: 300px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-header,
    .pricing-row {
        font-size: 0.9rem;
        padding: var(--space-sm) var(--space-md);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .mobile-cta {
        display: block;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .phone-frame {
        width: 200px;
        height: 410px;
    }

    .stone-phone {
        width: 140px;
        height: 260px;
    }

    .download-buttons {
        flex-direction: column;
    }

    /* Small Mobile: Feature Boxes */
    .feature-box {
        flex-direction: column;
        text-align: center;
    }

    .feature-box::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        transform: scaleX(0);
    }

    .feature-box:hover::before {
        transform: scaleX(1);
    }

    .feature-box-icon {
        margin: 0 auto;
    }

    .feature-box-content {
        text-align: center;
    }

    /* Small Mobile: Educational */
    .edu-card {
        padding: var(--space-lg);
    }

    .edu-label {
        font-size: 0.65rem;
    }

    .edu-tags {
        justify-content: center;
    }
}

/* ============================================
   INFO MODALS
   ============================================ */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
}

.info-modal-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.info-modal-content {
    position: relative;
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-card);
}

.info-modal.active .info-modal-content {
    transform: translateY(0) scale(1);
}

.info-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.info-modal-close:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.info-modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--space-md);
}

.info-modal-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--glass-bg);
    padding: 12px;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.3);
}

.info-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.info-modal-body {
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-modal-body p {
    margin-bottom: var(--space-md);
}

.info-modal-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-sm);
}

.info-modal-body ul {
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.info-modal-body li {
    margin-bottom: var(--space-xs);
}

.info-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--glass-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: #22c55e;
}

/* Rarity Colors */
.rarity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin: var(--space-md) 0;
}

.rarity-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.rarity-common {
    background: rgba(156, 163, 175, 0.1);
    border-left: 3px solid #9CA3AF;
}

.rarity-rare {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3B82F6;
}

.rarity-epic {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8B5CF6;
}

.rarity-legendary {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #F59E0B;
    color: #F59E0B;
}

/* ============================================
   SECURITY SECTION
   ============================================ */
.security-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.security-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-fast);
}

.security-card:hover {
    background: var(--glass-hover);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.security-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.security-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.security-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: #22c55e;
}

/* ============================================
   FEATURE HINTS (Learn More)
   ============================================ */
.feature-box[data-feature] {
    cursor: pointer;
    position: relative;
}

.feature-box[data-feature]:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.feature-hint {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.feature-box[data-feature]:hover .feature-hint,
.feature-box[data-feature]:focus .feature-hint {
    opacity: 1;
}

/* ============================================
   SECURITY RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .security-grid {
        grid-template-columns: 1fr;
    }

    .info-modal-content {
        padding: var(--space-lg);
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   UI FIXES & IMPROVEMENTS
   ============================================ */

/* Reduce footer padding/space */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg) !important;
}

.footer-links-compact {
    gap: var(--space-xl) !important;
    margin-bottom: var(--space-md) !important;
}

.footer-column {
    gap: var(--space-xs) !important;
}

.footer-column h4 {
    margin-bottom: var(--space-xs) !important;
}

.footer-bottom {
    padding-top: var(--space-md) !important;
    margin-top: var(--space-md) !important;
}

/* Visible click indicator on feature cards (desktop) */
.feature-box[data-feature] {
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.feature-box[data-feature]::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.feature-box[data-feature]:hover::before,
.feature-box[data-feature]:focus::before {
    opacity: 1;
}

/* Always show hint on desktop - subtle version */
.feature-hint {
    opacity: 0.5 !important;
}

.feature-box[data-feature]:hover .feature-hint,
.feature-box[data-feature]:focus .feature-hint {
    opacity: 1 !important;
}

/* Google Play button - fix dark background issue */
.store-btn {
    background: #000 !important;
    border-radius: var(--radius-md) !important;
    padding: 2px !important;
    overflow: hidden;
}

.store-btn img {
    border-radius: calc(var(--radius-md) - 2px);
}

/* Store buttons side by side on mobile */
@media (max-width: 768px) {
    .hero-store-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        gap: var(--space-sm) !important;
        flex-wrap: wrap;
    }

    .store-btn {
        height: 48px !important;
    }
}

/* Store modal buttons fix */
.store-modal-btn {
    background: #000 !important;
    border-radius: var(--radius-md) !important;
    padding: 2px !important;
    display: inline-block;
}

.store-modal-btn img {
    height: 48px;
    border-radius: calc(var(--radius-md) - 2px);
}

/* ============================================
   MOBILE HERO LAYOUT REORDER
   Phone below title, buttons side by side
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: var(--space-2xl);
    }

    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: var(--space-xl);
    }

    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-phone {
        order: 2;
        margin: var(--space-lg) 0;
    }

    .phone-frame {
        width: 220px !important;
        height: 440px !important;
    }

    /* Move CTA buttons after phone */
    .hero-cta {
        order: 3;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: var(--space-md) !important;
        width: 100%;
        margin-top: var(--space-md);
    }

    .hero-cta .store-btn {
        height: 44px !important;
    }

    /* Hide stats on very small screens to reduce clutter */
    .hero-stats {
        order: 4;
        margin-top: var(--space-lg);
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    /* Floating elements - hide on mobile for cleaner look */
    .floating-elements {
        display: none;
    }

    /* Scale up tarot and stone cards on mobile for better space usage */
    .tarot-flipper,
    .stones-crossfade {
        transform: scale(1.4);
        transform-origin: center center;
        margin: var(--space-xl) 0;
    }

    .edu-visual {
        min-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   COMING SOON BADGE
   ============================================ */
.feature-coming-soon {
    position: relative;
    opacity: 0.85;
}

.coming-soon-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.feature-coming-soon:hover {
    opacity: 1;
}

.coming-soon-note {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    margin-top: var(--space-lg);
}

.modal-badge-soon {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    color: #A78BFA !important;
}

/* ============================================
   TAROT RARITY EASTER EGG
   ============================================ */

/* Rarity Hint Tooltip - appears on hover */
.rarity-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
    z-index: 10;
}

.tarot-card:hover .rarity-hint,
.tarot-card:focus .rarity-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.tarot-card {
    cursor: pointer;
    position: relative;
}

/* Rarity Overlay Popup */
.rarity-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 280px;
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 20;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.rarity-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.rarity-overlay-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.rarity-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.rarity-overlay h4 {
    text-align: center;
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.rarity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.rarity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.rarity-tier {
    font-weight: 600;
}

.rarity-desc {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Rarity tier colors */
.rarity-common {
    background: rgba(156, 163, 175, 0.15);
    border-left: 3px solid #9CA3AF;
}

.rarity-rare {
    background: rgba(59, 130, 246, 0.15);
    border-left: 3px solid #3B82F6;
}

.rarity-epic {
    background: rgba(139, 92, 246, 0.15);
    border-left: 3px solid #8B5CF6;
}

.rarity-legendary {
    background: rgba(245, 158, 11, 0.15);
    border-left: 3px solid #F59E0B;
}

.rarity-legendary .rarity-tier {
    color: #F59E0B;
}

.rarity-premium {
    text-align: center;
    font-size: 0.8rem;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
    color: var(--primary-light);
}

/* ============================================
   VISUAL IMPROVEMENTS
   ============================================ */

/* Phone Screenshot - better fit */
.phone-screen {
    overflow: hidden;
    border-radius: 28px;
}

.app-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.app-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
}

/* Text blocks - increased visibility */
.edu-text,
.hero-subtitle,
.testimonial-text,
.security-card p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Section headers and titles */
.section-subtitle,
.edu-label {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Cards and containers - stronger background */
.edu-card,
.testimonial-card,
.security-card,
.premium-comparison {
    background: var(--glass-bg-strong) !important;
}

/* ============================================
   APP SCREENSHOTS SLIDESHOW
   ============================================ */
.app-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.slide-layer.active {
    opacity: 1;
}

.slide-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ============================================
   LEGAL MODALS (Privacy & Terms)
   ============================================ */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.legal-modal.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.legal-modal-content {
    position: relative;
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.legal-modal.active .legal-modal-content {
    transform: translateY(0) scale(1);
}

.legal-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.legal-modal-close:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.legal-modal-header {
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(180deg, rgba(142, 78, 255, 0.1) 0%, transparent 100%);
}

.legal-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.legal-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.legal-modal-body {
    flex: 1;
    padding: var(--space-xl) var(--space-2xl);
    overflow-y: auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.legal-modal-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: var(--space-lg) 0 var(--space-sm);
}

.legal-modal-body h3:first-of-type {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.legal-modal-footer {
    padding: var(--space-md) var(--space-2xl);
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-dark-1);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .legal-modal-content {
        max-height: 90vh;
        width: 95%;
        border-radius: var(--radius-lg);
    }

    .legal-modal-header {
        padding: var(--space-lg) var(--space-lg);
    }

    .legal-modal-body {
        padding: var(--space-lg) var(--space-lg);
    }

    .legal-modal-header h2 {
        font-size: 1.25rem;
    }
}

/* ============================================
   HOW IT WORKS - 3 Step Section
   ============================================ */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.3), transparent);
    z-index: 0;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(145deg, rgba(30, 25, 55, 0.95), rgba(20, 15, 40, 0.98));
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    color: var(--primary-light);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
    transition: all var(--transition-normal);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .steps-grid::before {
        display: none;
    }

    .step-card {
        flex-direction: row;
        text-align: left;
        gap: var(--space-lg);
    }

    .step-number {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1.25rem;
    }

    .step-card p {
        max-width: none;
    }
}

/* ============================================
   DECK SHOWCASE SECTION
   ============================================ */
.deck-showcase {
    padding: var(--space-4xl) 0;
    background: var(--bg-gradient);
    overflow: hidden;
}

.deck-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.deck-tab {
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.deck-tab:hover {
    background: var(--glass-hover);
    border-color: var(--primary-light);
    color: var(--text-primary);
}

.deck-tab.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--primary-light);
}

.deck-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.deck-display {
    display: none;
}

.deck-display.active {
    display: block;
}

.deck-cards-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    perspective: 1200px;
}

.deck-sample-card {
    width: 140px;
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.deck-sample-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-sample-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.deck-sample-card:nth-child(1) {
    transform: rotate(-6deg);
}

.deck-sample-card:nth-child(2) {
    transform: rotate(-3deg) translateY(-8px);
}

.deck-sample-card:nth-child(3) {
    transform: rotate(0deg) translateY(-12px);
    z-index: 2;
}

.deck-sample-card:nth-child(4) {
    transform: rotate(3deg) translateY(-8px);
}

.deck-sample-card:nth-child(5) {
    transform: rotate(6deg);
}

.deck-sample-card:nth-child(3):hover {
    transform: rotate(0deg) translateY(-24px) scale(1.08);
}

.deck-info {
    text-align: center;
    margin-top: var(--space-xl);
}

.deck-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.deck-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.deck-count-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .deck-cards-row {
        gap: var(--space-sm);
    }

    .deck-sample-card {
        width: 90px;
        height: 155px;
    }
}

@media (max-width: 480px) {
    .deck-sample-card {
        width: 65px;
        height: 112px;
        border-radius: var(--radius-sm);
    }

    .deck-cards-row {
        gap: 6px;
    }
}

/* ============================================
   PHYSICAL VS DIGITAL SECTION
   ============================================ */
.physical-digital {
    padding: var(--space-2xl) 0;
}

.comparison-grid,
.comparison-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-carousel-track {
    display: contents;
}

.comparison-col,
.comparison-slide {
    background: linear-gradient(145deg, rgba(30, 25, 55, 0.9), rgba(20, 15, 40, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
}

.comparison-col-highlight,
.comparison-slide-highlight {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    background: linear-gradient(145deg, rgba(40, 30, 70, 0.95), rgba(25, 18, 50, 0.98));
}

.comparison-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.comparison-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.comparison-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: 0;
    margin: 0;
}

.comparison-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    line-height: 1.5;
}

.comparison-list li::before {
    content: '✦';
    color: var(--primary-light);
    font-size: 0.7rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.comparison-col-highlight .comparison-list li::before {
    color: #A78BFA;
}

.comparison-slide-highlight .comparison-list li::before {
    color: #A78BFA;
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-vs {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--primary-light);
}

.comparison-note {
    text-align: center;
    margin-top: var(--space-2xl);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.comparison-carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-md);
}

.comparison-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.comparison-dot.active {
    background: var(--primary-light);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .comparison-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        scrollbar-width: none;
    }

    .comparison-grid::-webkit-scrollbar {
        display: none;
    }

    .comparison-col {
        min-width: 85vw;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .comparison-divider {
        display: none;
    }

    /* Testimonials horizontal carousel on mobile */
    .testimonials-carousel-track {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
    }

    .testimonials-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        min-width: 80vw;
        max-width: 80vw;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    /* Comparison carousel on mobile */
    .comparison-carousel {
        display: block;
    }

    .comparison-carousel-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        scrollbar-width: none;
    }

    .comparison-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .comparison-slide {
        min-width: 85vw;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .comparison-carousel-dots {
        display: flex;
    }

    /* Security carousel on mobile */
    .security-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-md) !important;
        padding-bottom: var(--space-md);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .security-grid::-webkit-scrollbar {
        display: none;
    }

    .security-card {
        min-width: 75vw;
        max-width: 85vw;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .security-card h3 {
        font-size: 0.85rem;
    }

    .security-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .security-icon {
        font-size: 1.5rem;
    }
}

/* ============================================
   Phase 4: Mobile 3-column Feature Grid
   ============================================ */
@media (max-width: 640px) {
    .features-grid-premium {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: var(--space-sm) !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .feature-box {
        padding: var(--space-sm) var(--space-xs) !important;
        min-height: auto !important;
        min-width: 0 !important;
        gap: var(--space-xs) !important;
        overflow: hidden;
        word-break: break-word;
    }

    .feature-box-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }

    .feature-box-icon img {
        max-width: 100%;
        height: auto;
    }

    .feature-box-content h3 {
        font-size: 0.7rem !important;
        line-height: 1.2;
    }

    .feature-box-content p {
        display: none;
    }

    .feature-hint {
        display: none;
    }

    .coming-soon-badge {
        font-size: 0.5rem;
        padding: 2px 6px;
        top: var(--space-xs);
        right: var(--space-xs);
    }
}

/* ============================================
   Phase 4: Larger Phone Mockup
   ============================================ */
@media (min-width: 1025px) {
    .phone-frame {
        width: 360px;
        height: 740px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .phone-frame {
        width: 300px;
        height: 615px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .phone-frame {
        width: 270px;
        height: 550px;
    }
}

/* ============================================
   Phase 4: Occult Section
   ============================================ */
.occult-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, #0a0818 0%, #110d22 30%, #1a0f30 60%, #0a0818 100%);
    position: relative;
    overflow: hidden;
}

.occult-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(88, 28, 135, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.occult-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.occult-header .section-title {
    background: linear-gradient(135deg, #c084fc, #a855f7, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.occult-header .section-subtitle {
    color: rgba(192, 132, 252, 0.7);
}

/* Occult unlock hint removed */

.occult-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.occult-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: linear-gradient(145deg, #1a0f30, #0d0820);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.occult-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(88, 28, 135, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.occult-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 15px 40px rgba(88, 28, 135, 0.3),
        0 0 60px rgba(139, 92, 246, 0.08);
}

.occult-card:hover::before {
    opacity: 1;
}

.occult-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: #0d0820;
    filter: brightness(0.85) saturate(1.1);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.occult-card:hover .occult-card-img {
    filter: brightness(1) saturate(1.2);
    transform: scale(1.03);
}

.occult-card-body {
    padding: var(--space-lg);
}

.occult-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(192, 132, 252, 0.95);
    margin-bottom: var(--space-xs);
}

.occult-card-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.occult-lock-icon {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .occult-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .occult-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .occult-card-body {
        padding: var(--space-md);
    }
}

/* ============================================
   Phase 4: AD FREE Badge
   ============================================ */
.ad-free-seal {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 72px;
    height: 72px;
    z-index: 10;
    transform: rotate(12deg);
    pointer-events: none;
}

.ad-free-seal svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

@media (max-width: 768px) {
    .ad-free-seal {
        width: 56px;
        height: 56px;
        top: -4px;
        right: -4px;
    }
}

/* ============================================
   iOS / Mobile Performance Overrides
   backdrop-filter: blur() triggers full GPU re-rasterization
   on every scroll in WebKit, causing crashes on iOS devices.
   Replace with solid semi-transparent backgrounds.
   ============================================ */
@media (max-width: 768px) {

    .navbar,
    .navbar.scrolled,
    .store-modal-content,
    .mobile-cta,
    .feature-box,
    .footer,
    .rarity-overlay-content,
    .deck-tab {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* Ensure star particles don't create separate GPU layers */
    .star {
        will-change: auto !important;
        filter: none !important;
        box-shadow: none !important;
    }
}

/* Respect prefers-reduced-motion system setting */
@media (prefers-reduced-motion: reduce) {

    .star,
    .shooting-star,
    .stone-layer img,
    .float-card,
    .hero-phone {
        animation: none !important;
        transition: none !important;
    }
}