/* ============================================================
   CardyWall Modern Redesign (RedOne Dark Red Theme)
   Theme: "The Digital Vault"
   ============================================================ */

:root {
    --bg-dark: #0f0505;
    --bg-card: rgba(45, 10, 10, 0.4);
    --primary: #f43f5e;
    --primary-glow: rgba(244, 63, 94, 0.5);
    --secondary: #fb7185;
    --text-main: #fff0f0;
    --text-muted: #fda4af;
    --glass-border: rgba(255, 200, 200, 0.1);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow-x: hidden;
}

/* -------------------------------------------
   1. The Guardian Hero (Split Layout)
   ------------------------------------------- */
.product-hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 0%, #2f0a0a 0%, #0f0505 70%);
    overflow: hidden;
}

/* Background Grid Effect */
.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(244, 63, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 63, 94, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Left Column: Text */
.hero-text {
    flex: 1;
    max-width: 600px;
    position: relative;
    /* Ensure clickability */
    z-index: 10;
    /* Above visual glow */
}

.hero-label {
    font-family: var(--font-mono);
    color: var(--secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #fff, #fda4af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Right Column: Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-app-icon {
    width: 120px !important;
    /* Force resize */
    /* Massive Icon */
    filter: drop-shadow(0 0 40px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.hero-visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

/* Buttons */
.store-btn {
    border: none;
    background: transparent;
    padding: 0;
    transition: transform 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-5px);
    box-shadow: none;
    /* Reset global style */
    background: transparent;
}

.store-btn img {
    height: 50px;
}


/* -------------------------------------------
   2. Zig-Zag Features (The Vault Story)
   ------------------------------------------- */
.product-details {
    padding: 120px 0;
}

.section-label {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.1em;
}



.product-details h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    color: #fff;
}

.feature-split {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-split:nth-child(even) {
    flex-direction: row-reverse;
    /* Zig Zag */
}

/* Text Side */
.split-text {
    flex: 1;
}

.split-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.split-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Visual Side */
.split-visual {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.split-visual::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
}

.split-icon {
    font-size: 5rem;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}


/* -------------------------------------------
   3. Process Timeline (How it Works)
   ------------------------------------------- */
.timeline-section {
    padding: 100px 0;
    position: relative;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

/* Connecting Line */
.timeline-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    /* Half of icon height */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
    z-index: 0;
}

/* --- FAQ Section (Premium Accordion) --- */
.faq {
    padding-top: 60px;
    /* Reduced from global 100px */
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    /* Slightly tighter radius */
    margin-bottom: 12px;
    /* Reduced spacing */
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item.active {
    background: rgba(244, 63, 94, 0.05);
    /* Tint active */
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item h4 {
    color: var(--text-main);
    margin: 0;
    padding: 12px 20px;
    /* Thinner vertical padding */
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    min-height: 48px;
    /* Ensure vertical centering feels grounded */
}

/* Chevron */
.faq-item h4::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-item.active h4::after {
    transform: rotate(-135deg);
    /* Flip up */
}

/* Answer Area (Smooth Reveal) */
.faq-item p {
    color: var(--text-muted);
    padding: 0 24px 24px;
    margin: 0;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    transform: translateY(-10px);
}

.faq-item.active p {
    max-height: 300px;
    /* Arbitrary large height */
    opacity: 1;
    transform: translateY(0);
    /* No display: none involved now */
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.step-item h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}


/* -------------------------------------------
   4. Security Terminal (Tech Specs)
   ------------------------------------------- */
.security-terminal {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    font-family: var(--font-mono);
    max-width: 800px;
    margin: 0 auto 100px;
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

/* Terminal Header */
.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #333;
    color: #a3a3a3;
}

.spec-row:last-child {
    border: none;
}

.spec-key {
    color: var(--primary);
}

.spec-value {
    color: #fff;
    text-align: right;
}


/* --- Privacy Card (High Visibility) --- */
.privacy-card {
    background: rgba(23, 23, 23, 0.8) !important;
    border: 1px solid var(--primary) !important;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.privacy-card p {
    color: #fff !important;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}



/* --- Interactive Sections Z-Index Fix --- */
.faq,
.product-details,
.timeline-section,
.privacy-card {
    position: relative;
    z-index: 10;
}

/* --- Mobile Overrides --- */
@media (max-width: 768px) {

    .faq,
    .product-details,
    .timeline-section {
        position: relative;
        z-index: 2;
        /* Ensure clicks work */
    }

    .product-hero {
        min-height: auto;
        padding-top: 140px;
        flex-direction: column-reverse;
        /* Text on top logically, but visual first often looks better. Let's stack Text -> Visual usually. Actually, standard stack: Visual, then Text on mobile? Let's check. Standard is Text on top in HTML. CSS Column. */
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-app-icon {
        width: 140px;
    }

    .hero-visual-glow {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    /* Zig Zag Reset */
    .feature-split,
    .feature-split:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 80px;
    }

    .split-visual {
        width: 100%;
        height: 250px;
    }

    /* Timeline Reset */
    .timeline-steps {
        flex-direction: column;
        gap: 40px;
    }

    .timeline-steps::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-1px);
    }

    .step-number {
        margin-bottom: 15px;
        position: relative;
        z-index: 2;
        background: var(--bg-dark);
        /* Cover the line */
    }
}