:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --primary: #8b5cf6;
    /* Violet */
    --primary-hover: #7c3aed;
    --accent: #f43f5e;
    /* Red for alert/grooming */
    --success: #10b981;
    /* Green for safe tips */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.gradient-text {
    background: linear-gradient(90deg, #8b5cf6, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.logo .accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-btn {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--primary) !important;
}

.nav-btn:hover {
    background: var(--primary);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: auto;
    /* Was 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 60px;
    /* Space for scroll indicator */
    min-height: auto;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #020617 100%);
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    /* Reduced from 30px */
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
}

.arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Sections General */
.section {
    padding: 20px 0;
    /* Reduced from 40px */
}

.dark-section {
    background-color: var(--bg-darker);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    /* Reduced from 60px */
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

/* Definition Section */
.text-block {
    text-align: center;
}

.lead-text {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 60px;
    font-weight: 300;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.info-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
}

.info-item h3 {
    color: var(--text-main);
}

.info-item p {
    color: var(--text-muted);
}

.icon-large {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Phases Section (Timeline) */
.phases-section {
    background-color: var(--bg-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    /* Mobile first alignment */
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    padding-left: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.phase-tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Prevention Split */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.split-col h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.warning-list,
.shield-list {
    list-style: none;
    padding: 0;
}

.warning-list li,
.shield-list li {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.warning-list li {
    border-color: var(--accent);
}

.shield-list li {
    border-color: var(--success);
}

.parents h3 {
    color: var(--accent);
}

.kids h3 {
    color: var(--success);
}

/* Mission Grid (Existing) */
.about-grid {
    display: block;
    /* Was grid */
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin: 0;
}

/* Shop Section - Fixes */
.shop-section {
    background-color: var(--bg-dark);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.about-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.image-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #334155, #1e293b);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
}

.about-content {
    flex: 2;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 20px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Contact Form */
.contact-section {
    background-color: var(--bg-darker);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid #334155;
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-darker);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col a,
.footer-col p {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .mission-grid,
    .split-layout,
    .about-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 11px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    z-index: 2000;
    display: none;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
}

.cookie-accept {
    background: var(--primary);
    color: white;
}

.cookie-decline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

/* Visitor Counter */
.visitor-counter {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.visitor-counter span {
    color: var(--primary);
}

/* SHOP IMAGE FIX (Strict) */
.shopify-buy__product__variant-img {
    object-fit: contain !important;
    max-height: 250px !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    display: block !important;
}

.shopify-buy__product-img-wrapper {
    padding-top: 0 !important;
}

/* --- Simulation Game --- */
.game-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1e1b4b 100%);
    padding: 80px 0;
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: var(--bg-darker);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-avatar {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.message.partner {
    background: #334155;
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.choices-box {
    padding: 20px;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-choice {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-main);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.btn-choice:hover {
    background: rgba(139, 92, 246, 0.1);
}

.hidden {
    display: none !important;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 10;
}

.modal-image {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-info {
    flex: 1.5;
    padding: 40px;
    overflow-y: auto;
}

.modal-info h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}

.modal-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.faq-item h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .modal-card {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-image {
        height: 250px;
        flex: none;
    }
}