@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Patrick+Hand&display=swap');

/* Global Styles */
:root {
    /* User Requested Theme: Dark Teal */
    --bg-color: #0a1614;
    /* User Background */
    --text-color: #e6efee;
    /* User Text */

    --primary-color: #9de0d6;
    /* User Primary */
    --secondary-color: #1c8b7a;
    /* User Secondary */
    --accent-color: #45ebd1;
    /* User Accent */

    --text-muted: #8fa6a3;
    /* Muted Teal */

    --card-bg: #13201e;
    /* Dark matching card background */
    --text-on-card: #e6efee;
    --text-muted-on-card: #8fa6a3;

    /* Shadows */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

    --font-hand: 'Patrick Hand', cursive;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;

    --glass-bg: rgba(19, 32, 30, 0.8);
    --glass-border: rgba(157, 224, 214, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    background-image: none;
    /* No gradients */
    position: relative;
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

html {
    font-size: 100%;
    /* 16px */
}

/* White dots background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-color);
}

h1 {
    font-size: 4.210rem;
    line-height: 1.1;
}

h2 {
    font-size: 3.158rem;
    line-height: 1.2;
}

h3 {
    font-size: 2.369rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.777rem;
}

h5 {
    font-size: 1.333rem;
}

small {
    font-size: 0.750rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 25px var(--primary-color), 0 0 10px var(--accent-color);
    }

    100% {
        box-shadow: 0 0 10px var(--primary-color);
    }
}

/* Navbar */
/* Refined Modular Header */
/* Refined Modular Header */
/* Refined Modular Header - White Glass */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    background: #13201e;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    /* Dark Text */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
}

.nav-links a:hover {
    color: #ffffff;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Logo Image Styling */
.logo {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    gap: 0;
    /* Tight gap so Image-B acts as part of word */
}

.logo-image {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    /* Clean flat look - no drop shadow */
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-left: -16px;
    /* Slight overlap or tight kerning with the B-image */
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.5));
    transform: scale(1.05);
}


.hero-btn.primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1a1a2e;
}

.hero-btn.secondary {
    background: white;
    color: var(--text-on-card);
    /* Dark text on white btn */
    border: 2px solid #1a1a2e;
    box-shadow: 4px 4px 0px #1a1a2e;
    font-weight: 700;
}

.hero-btn.secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1a1a2e;
    background: #f8fafc;
}

.btn-primary-small {
    padding: 0.7rem 1.4rem;
    background: var(--primary-color);
    /* Light Teal */
    /* Dark button for contrast */
    border: none;
    color: #0a1614;
    /* Dark Text */
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary-small:hover {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(20, 182, 128, 0.3);
    transform: translateY(-2px);
}

/* Hero Section - Modern Enterprise Design */
.hero-section {
    position: relative;
    padding: 8rem 0 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 1rem;
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 800;
}

.gradient-text {
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: var(--primary-color);
    text-shadow: none;
}

/* Highlight Animation for "YOU" */
.highlight-you {
    position: relative;
    font-weight: 800;
    color: #1a1a2e;
    z-index: 1;
    padding: 0 4px;
    display: inline-block;
}

.highlight-you::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -2px;
    width: 0;
    height: 90%;
    background: var(--primary-color);
    z-index: -1;
    transform: skewX(-10deg) rotate(-1deg);
    border-radius: 4px;
    opacity: 0;
    animation: highlightSwipe 1s cubic-bezier(0.22, 0.61, 0.36, 1) 1.5s forwards;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

@keyframes highlightSwipe {
    0% {
        width: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        width: calc(100% + 4px);
        opacity: 0.9;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: #0a1614;
    /* Dark Text on Light Primary */
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.trial-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual Container */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Modern Illustration */
.hero-illustration-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

.hero-illustration {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.illustration-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Background Glow Effect - Removed for Solid Flat Theme */
.hero-bg-glow {
    display: none;
}

/* Hero Interactive Scene */
.hero-interactive-scene {
    width: 100%;
    max-width: 500px;
    height: 320px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-interactive-scene.brainzyx-active {
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Toggle Switch */
.scene-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    z-index: 10;
}

.toggle-label-left,
.toggle-label-right {
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.toggle-label-left.active {
    color: #ef4444;
}

.toggle-label-right.active {
    color: var(--primary-color);
    font-weight: 800;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Scene Display */
.scene-display {
    width: 100%;
    flex-grow: 1;
    position: relative;
}

.mode-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.mode-content.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Avatar Styles */
.student-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    margin-bottom: 2rem;
    position: relative;
    background: #1e1e2f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.student-avatar.tired {
    color: #94a3b8;
    border: 2px solid #334155;
}

.student-avatar.happy {
    color: #fbbf24;
    /* Gold */
    background: #312e81;
    /* Solid Dark Indigo */
    border: 2px solid var(--accent-color);
}

.halo {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed var(--accent-color);
    animation: spin 10s linear infinite;
    opacity: 0.5;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Stats Box */
.stats-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.stat-row i {
    width: 20px;
    text-align: center;
}

.stress-stats .stat-row i {
    color: #f87171;
}

.success-stats .stat-row i {
    color: #4ade80;
}

.score-bad {
    color: #f87171;
    font-weight: 700;
}

.score-good {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Effects */
.chaos-particles span {
    position: absolute;
    color: #64748b;
    font-weight: bold;
    font-family: serif;
    animation: floatChaos 3s infinite;
}

.chaos-particles span:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    font-size: 2rem;
}

.chaos-particles span:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
    font-size: 1.5rem;
}

.chaos-particles span:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: 1s;
    font-size: 2.5rem;
}

@keyframes floatChaos {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px) rotate(10deg);
        opacity: 1;
    }
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    animation: confettiFall 2s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(200px) rotate(720deg);
        opacity: 0;
    }
}

/* Advanced Funnel Section */
.funnel-card-large {
    grid-column: span 3;
    /* Full width if possible, or adapt */
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
}

@media (max-width: 900px) {
    .funnel-card-large {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

.funnel-visual-large {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.funnel-top {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: -20px;
    animation: particleDrop 3s infinite linear;
}

.p1 {
    background: #f87171;
    left: 20%;
    animation-delay: 0s;
}

.p2 {
    background: #fbbf24;
    left: 50%;
    animation-delay: 0.5s;
}

.p3 {
    background: #34d399;
    left: 80%;
    animation-delay: 1s;
}

.p4 {
    background: #60a5fa;
    left: 30%;
    animation-delay: 1.5s;
}

.p5 {
    background: #818cf8;
    left: 60%;
    animation-delay: 2s;
}

.p6 {
    background: #c084fc;
    left: 70%;
    animation-delay: 0.2s;
}

@keyframes particleDrop {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    40% {
        transform: translateY(80px) scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: translateY(120px) scale(0);
        opacity: 0;
    }
}

.funnel-body {
    width: 160px;
    height: 140px;
    position: relative;
}

.funnel-glass {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.filter-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    animation: scan 2s infinite ease-in-out;
}

@keyframes scan {

    0%,
    100% {
        width: 20%;
        opacity: 0.5;
    }

    50% {
        width: 80%;
        opacity: 1;
    }
}

.funnel-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 80px;
    position: relative;
}

.stream-line {
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.gem-output {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    animation: pulseGem 2s infinite;
}

@keyframes pulseGem {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(6, 182, 212, 0.6);
    }
}

/* Feature Grid Update */
.features-grid {
    grid-template-columns: repeat(3, 1fr);
}

.lazy-learning-card {
    grid-column: span 1;
}

.ai-card {
    grid-column: span 2;
}


/* --- NEW SECTIONS STYLES --- */

/* Section Spacing - Compact functionality */
section {
    padding: 5rem 0;
    /* Modern compact padding */
}

/* Creative Background Blobs - Pushed back */
/* Creative Background Blobs - Removed */
.bg-blob {
    display: none;
}

.blob-1 {
    top: 10%;
    right: -200px;
}

.blob-2 {
    bottom: 10%;
    left: -200px;
    background: radial-gradient(circle, rgba(67, 59, 255, 0.1) 0%, transparent 70%);
}

/* Quick Features Refined Padding */
.quick-features {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    /* Tighter */
}

.section-header h2 {
    font-size: 2.2rem;
    /* Tighter */
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}



/* Quick Features - Compact 4 Col */
/* Quick Features - New Layout with Showcase Box */
.quick-features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Quick Features Grid - 2x2 Layout with 3D Cards */
.quick-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* 3D Feature Card Styles */
.q-feature-item.feature-card-3d {
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    z-index: 1;
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    background: var(--card-bg);
    /* Solid Slate */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    height: 100%;
    /* Force equal height in grid */
    justify-content: space-between;
    /* Distribute content evenly */
}

.q-feature-item.feature-card-3d:hover .feature-card-content {
    box-shadow:
        0 20px 50px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.q-feature-item.feature-card-3d.active .feature-card-content {
    border-color: #14b680;
    box-shadow:
        0 0 30px rgba(20, 182, 128, 0.2),
        0 0 0 1px rgba(20, 182, 128, 0.3) inset;
}

.q-feature-item.feature-card-3d .qf-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.q-feature-item.feature-card-3d:hover .qf-icon-box {
    transform: translateZ(50px) scale(1.1);
}

.q-feature-item.feature-card-3d .qf-content {
    text-align: center;
    transform: translateZ(20px);
}

.q-feature-item.feature-card-3d .qf-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.q-feature-item.feature-card-3d .qf-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

/* Feature Showcase Box (Inside Insights Section) */
.feature-showcase-box {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.showcase-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.feature-showcase-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-showcase-img.active {
    opacity: 1;
    transform: scale(1);
}

.showcase-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.showcase-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.showcase-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #14b680;
    transition: transform 0.3s ease;
}

.showcase-dot:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.showcase-dot.active {
    border-color: #14b680;
}

.showcase-dot.active::after {
    transform: translate(-50%, -50%) scale(1);
}


/* Responsive */
@media (max-width: 968px) {
    .quick-features-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .quick-features-grid {
        grid-template-columns: 1fr;
    }

    .q-feature-item.feature-card-3d .feature-card-content {
        padding: 2rem 1.5rem;
    }
}

.showcase-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.showcase-img.active {
    opacity: 1;
    transform: translateX(0);
}

.showcase-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.showcase-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.showcase-btn.active {
    background: #14b680;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 968px) {
    .quick-features-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .image-showcase-box {
        order: -1;
    }
}

@media (max-width: 640px) {
    .quick-features-grid.compact {
        grid-template-columns: 1fr;
    }
}

.q-feature-item.active-feature {
    border: 2px solid #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.q-feature-item h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.q-feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.q-feature-item:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.qf-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(157, 224, 214, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--glass-border);
    box-shadow: none;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.qf-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.qf-content p {
    color: #e2e8f0;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-color);
    box-shadow: var(--shadow-soft);
}

.testimonial-card h5 {
    color: var(--text-color);
    font-weight: 700;
}

.testimonial-card small {
    color: var(--text-muted);
}

.testimonial-card:nth-child(odd) {
    transform: rotate(-1.5deg);
}

.testimonial-card:nth-child(even) {
    transform: rotate(1.5deg);
}

.testimonial-card:hover {
    transform: rotate(0) scale(1.02);
    z-index: 5;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.score-badge {
    color: var(--primary-color);
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    display: block;
}

.quote {
    color: var(--text-on-card);
    background: rgba(157, 224, 214, 0.05);
    /* Very subtle teal tint */
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-style: italic;
    border: 1px solid var(--glass-border);
}

/* Comparison */
/* Comparison */
.comparison-table-wrapper {
    background: var(--card-bg);
    /* Dark Teal */
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-on-card);
    /* Light Text */
}

.comparison-table-wrapper h3,
.comparison-table-wrapper strong {
    color: var(--text-on-card);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    align-items: center;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.comp-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.comp-col.brand-col {
    background: #ecfdf5;
    padding: 1rem;
    border-radius: 12px;
    margin: -1rem 0;
    color: #0d3d34;
    /* Dark Text for readability on light green */
    font-weight: 500;
}

.comp-col.brand-col strong,
.comp-col.brand-col h4,
.comp-col.brand-col h3,
.comp-col.brand-col .brainzyx-text,
.comp-col.brand-col p {
    color: #0d3d34 !important;
}

.comp-col.brand-col small {
    color: rgba(13, 61, 52, 0.7) !important;
}

.check-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cross-icon {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* Referral Section */
.referral-box {
    background: var(--card-bg);
    /* Dark Teal */
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: var(--text-on-card);
}

.referral-box h2,
.referral-box h5,
.referral-box p {
    color: var(--text-on-card) !important;
}

.ref-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ref-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.invite-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.invite-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-family: inherit;
}

.btn-invite {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-invite:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Referral feedback message */
.referral-msg {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.referral-msg-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.referral-msg-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Referral gate (for non-subscribers) */
.referral-gate {
    margin-top: 1.5rem;
}

.referral-gate-text {
    color: #8fa6a3;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referral-gate-text i {
    color: #f59e0b;
    font-size: 1rem;
}

.referral-gate-text a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Star notes */
.referral-notes {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.referral-note {
    font-size: 0.8rem !important;
    color: #8fa6a3 !important;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.referral-note i {
    color: #f59e0b;
    font-size: 0.65rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.referral-note strong {
    color: #c5dbd8;
}

.ref-image {
    background: rgba(28, 139, 122, 0.1);
    /* Dark Translucent Green */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {

    .quick-features-grid,
    .testimonials-grid,
    .referral-box {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}


/* Custom CSS Visuals - CSS Only Components */

/* 1. Insights Dashboard */
.css-dashboard {
    width: 100%;
    max-width: 400px;
    /* More compact */
    background: rgba(255, 255, 255, 0.15);
    /* High contrast */
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.dash-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.dash-badge {
    background: #ecfdf5;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.chart-bar {
    width: 12%;
    background: #e2e8f0;
    border-radius: 6px 6px 0 0;
    position: relative;
    animation: growBar 1s ease-out forwards;
    transform-origin: bottom;
}

.chart-bar.weak {
    background: #fed7aa;
}

.chart-bar.weak::after {
    content: '!';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #f97316;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounceAlert 1s infinite;
}

.alert-pill {
    position: absolute;
    top: 50%;
    right: -10px;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f97316;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: floatPill 3s ease-in-out infinite;
    z-index: 10;
}

.alert-icon {
    width: 32px;
    height: 32px;
    background: #ffedd5;
    color: #f97316;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Referral Ticket 3D */
.referral-ticket-container {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.referral-ticket {
    width: 280px;
    /* Tighter */
    height: 160px;
    /* Tighter */
    background: linear-gradient(135deg, #FFD700, #F59E0B);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 1.2rem;
    color: #1a1a2e;
    position: relative;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatTicket 4s ease-in-out infinite;
}

.referral-ticket::before,
.referral-ticket::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--bg-color);
    border-radius: 50%;
    border: var(--border-hard);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: inset 2px 2px 0px #1a1a2e;
}

.referral-ticket::before {
    left: -15px;
}

.referral-ticket::after {
    right: -15px;
}

.referral-ticket:hover {
    transform: rotateY(0) rotateX(0) scale(1.05);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ticket-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a2e;
}

.ticket-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #1a1a2e;
    text-shadow: none;
}

.ticket-body p {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 1;
    /* Ensure full visibility */
}

/* Animations */
@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes bounceAlert {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* Insights Layout Fix */
.insights-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.insights-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.insights-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- INNOVATIVE TORN PAPER SYSTEM --- */
.torn-paper {
    position: relative;
    background: #f0fdfa;
    /* Soft Teal Mist */
    color: #0f172a;
    /* Deep contrast text */
    padding: 2.5rem;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Torn Edge Mask */
    clip-path: polygon(0% 5%, 5% 0%, 12% 4%, 18% 1%, 25% 6%, 32% 2%, 40% 7%, 48% 3%, 55% 8%, 62% 2%, 70% 6%, 78% 1%, 85% 7%, 92% 3%, 100% 8%,
            100% 92%, 95% 98%, 88% 94%, 82% 99%, 75% 93%, 68% 97%, 60% 92%, 52% 98%, 45% 93%, 38% 97%, 30% 92%, 22% 99%, 15% 93%, 8% 97%, 0% 92%);
    transition: transform 0.3s ease;
}

.torn-paper:hover {
    transform: rotate(-0.5deg) scale(1.01);
}

.torn-paper h1,
.torn-paper h3,
.torn-paper h4 {
    color: #11457b;
    /* Brand primary for headings on paper */
}

.torn-paper p,
.torn-paper li,
.torn-paper span {
    color: #334155;
    /* Dark slate for body text on paper */
    font-weight: 500;
}

/* Texture Overlay */
.torn-paper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

@media (max-width: 900px) {
    .insights-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .torn-paper {
        padding: 1.5rem;
    }

    .insights-content ul {
        align-items: center;
    }
}

.paper-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(17, 69, 123, 0.05);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

/* Fix CSS Dashboard Alert Pill Clipping */
.alert-pill {
    position: absolute;
    top: 50%;
    right: 15px;
    background: white;
    padding: 0.6rem 1rem;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: floatPill 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes floatTicket {

    0%,
    100% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(-15px);
    }
}


@keyframes floatPill {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Compact Adjustments */
section {
    padding: 4rem 0 !important;
}

.ref-content {
    padding: 2rem !important;
}


/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-links a:hover {
    color: white;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.pricing-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-section .section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    color: var(--text-on-card);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.price-main {
    color: var(--text-on-card);
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.price-period {
    color: var(--text-muted-on-card);
    font-size: 1rem;
}

.pricing-trial-note {
    color: var(--text-muted-on-card);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pricing-save {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-features li {
    color: var(--text-muted-on-card);
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

a.btn-pricing {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-pricing:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-pricing.primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-pricing.primary:hover {
    background: #0d9e6d;
    border-color: #0d9e6d;
}

@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }

    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 20, 0.85);
    /* Dark teal tint */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-card);
    color: var(--text-color);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(157, 224, 214, 0.1);
    color: var(--primary-color);
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: var(--text-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--bg-color);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.btn-google:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 224, 214, 0.2);
}

.modal-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
}

.modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.modal-divider span {
    background: var(--card-bg);
    padding: 0 16px;
    position: relative;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.2s;
    font-family: inherit;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(157, 224, 214, 0.1);
}

.btn-modal-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 8px;
}

.btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 224, 214, 0.3);
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Policy popup (Privacy / Terms) */
.policy-modal .policy-modal-content {
    max-width: 720px;
    max-height: 90vh;
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.policy-modal .policy-modal-title {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.policy-modal .policy-modal-iframe {
    flex: 1;
    min-height: 0;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: var(--bg-color);
}

/* ===== Logged-in User Navigation Styles ===== */
.nav-welcome {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    white-space: nowrap;
}

.btn-logout {
    background: transparent !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-logout:hover {
    background: var(--primary-color) !important;
    color: #0a1614 !important;
}

/* Quiz Dashboard nav link for logged-in users */
.nav-dashboard-link {
    animation: nav-dash-pulse 2.5s ease-in-out infinite;
}

@keyframes nav-dash-pulse {

    0%,
    100% {
        background: rgba(157, 224, 214, 0.08);
        box-shadow: none;
    }

    50% {
        background: rgba(157, 224, 214, 0.18);
        box-shadow: 0 0 10px rgba(157, 224, 214, 0.25);
    }
}

/* Disabled state for registration buttons when user is logged in */
.btn-disabled {
    pointer-events: none !important;
    cursor: not-allowed !important;
    background: #3a4a48 !important;
    color: #6b7c7a !important;
    border-color: #3a4a48 !important;
    box-shadow: none !important;
}

/* Hide trial info when logged in */
body.logged-in .hero-cta-group .trial-info {
    display: none;
}

/* Explore the Experience Section */
.explore-experience-section {
    padding: 6rem 0;
    background: transparent;
}

.feature-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-grid-card {
    background: var(--card-bg);
    border: 1px solid rgba(157, 224, 214, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: visible;
    /* CRITICAL: Allow image to slide out of the top */
}

.feature-grid-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    /* Deep shadow on hover */
    border-color: var(--primary-color);
}

.card-image-wrapper {
    height: 240px;
    width: 100%;
    position: relative;
    z-index: 0;
    /* Sit behind the card content (the "pocket") */
    background: var(--card-bg);
    border-radius: 16px 16px 0 0;
    /* overflow: visible;  Already implied by card overflow, but let's be explicit if needed */
}

.card-image-wrapper img {
    width: 100%;
    height: 140%;
    /* TALLER image - the bottom 40% is hidden initially */
    object-fit: cover;
    object-position: top;
    /* Start from top */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Position absolutely or just flow? If flow, it pushes content down. */
    /* So we must use absolute positioning to not break layout width/height */
    position: absolute;
    left: 0;
    top: 0;
}

/* Wallet Card Effect: Sliding Up */
.feature-grid-card:hover .card-image-wrapper img {
    transform: translateY(-85px);
    /* Slide up significantly more to reveal hidden content */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

/* Ensure Card Content stays grounded */
.card-content {
    background: var(--card-bg);
    /* Solid background to cover bottom of sliding mechanic if needed */
    position: relative;
    z-index: 2;
    padding: 1.2rem;
    text-align: center;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(to bottom, var(--card-bg), #0f1a18);
}

.card-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .feature-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feature-grid-container {
        grid-template-columns: 1fr;
    }

    .card-image-wrapper {
        height: 220px;
    }
}