/* =========================================
   1. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    --c-bg: #030305;
    --c-text-main: #ffffff;
    --c-text-muted: #94a3b8;
    --c-primary: #6366f1;
    --c-primary-glow: rgba(99, 102, 241, 0.4);
    --c-accent: #d946ef;
    --c-danger: #f43f5e;
    --c-success: #10b981;
    --c-input-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --f-display: 'Space Grotesk', sans-serif;
    --f-body: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --container-width: 1000px;
    --container-sm-width: 800px;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--f-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--safe-bottom);
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(217, 70, 239, 0.08), transparent 25%);
    z-index: -1; 
    pointer-events: none; 
    transform: translateZ(0);
    will-change: transform; 
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 { 
    font-family: var(--f-display); 
    color: white; 
    line-height: 1.2; 
    letter-spacing: -0.02em; 
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, #a5b4fc 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--c-text-muted); }
.text-accent { color: var(--c-primary); }
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.text-white { color: white; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-italic { font-style: italic; }
.text-strike { text-decoration: line-through; }
.text-underline { text-decoration: underline; color: white; }

/* =========================================
   4. LAYOUT & UTILITIES
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: var(--container-sm-width); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 6rem 0; position: relative; }
.section--darker { background: rgba(0,0,0,0.3); }
.section--hero { padding-top: 80px; }

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

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-start { display: flex; justify-content: flex-start; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none !important; }

/* =========================================
   5. COMPONENTS
   ========================================= */

/* Icons */
.icon, .icon-sm, .icon-lg, .icon-inline, .icon-middle {
    display: inline-block; 
    vertical-align: middle;
}
.icon { width: 20px; height: 20px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 48px; height: 48px; stroke-width: 1.5; margin-bottom: 1rem; color: var(--c-primary); }
.icon-inline { vertical-align: text-bottom; margin-right: 4px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1.125rem 2.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--f-body);
    cursor: pointer;
    border: none;
    text-decoration: none;
    width: fit-content;
    -webkit-appearance: none;
    transition: transform 0.2s ease, background-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.btn--primary {
    background: white; color: black;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn--primary:hover { background: #f0f0f0; }
.btn--full { width: 100%; }

/* Badges */
.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.savings-badge { 
    background: var(--c-success); color: black; 
    font-weight: 700; padding: 4px 12px; border-radius: 4px; font-size: 0.8rem;
    display: inline-block; margin-bottom: 1rem;
}

/* Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
    height: 100%;
    display: flex; flex-direction: column;
}
@media (hover: hover) {
    .card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
}

.card--primary { border-top: 2px solid var(--c-primary); }
.card--accent { border-top: 2px solid var(--c-accent); background: linear-gradient(180deg, rgba(217, 70, 239, 0.05), rgba(0,0,0,0)); }
.card--success { border-top: 3px solid var(--c-success); }
.card--danger { border-top: 3px solid var(--c-danger); }
.card--muted { border-color: var(--c-text-muted); }

.card-section-title {
    color: var(--c-text-main); font-size: 1rem; font-weight: 600; margin-top: 1rem;
    margin-bottom: 0.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 5px; display: inline-block;
}

/* Lists */
.check-list { list-style: none; text-align: left; padding: 0; }
.check-list li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 12px;
    color: var(--c-text-muted);
}
.check-list li .icon { color: var(--c-primary); flex-shrink: 0; margin-top: 3px; }
.check-list li strong { color: white; }

/* Quote Box */
.quote-box {
    border-left: 3px solid var(--c-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--c-text-muted);
}

/* Separators */
.separator { border: 0; border-top: 1px solid var(--glass-border); margin: 10px 0; width: 100%; }
.separator-lg { border: 0; border-top: 1px solid var(--glass-border); margin: 2rem 0; width: 100%; }

/* =========================================
   6. SPECIFIC SECTIONS
   ========================================= */

/* Navigation */
.navbar {
    display: flex; justify-content: space-between; align-items: center; 
    padding-top: max(20px, var(--safe-top)); padding-bottom: 20px;
}
.navbar__logo { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: white; text-decoration: none; display: flex; align-items: center; }
.navbar__logo:hover { color: white; text-decoration: none; }
.navbar__btn { padding: 0.5rem 1.5rem; font-size: 0.9rem; }

/* Hero Specifics */
.hero-subtitle { max-width: 700px; margin: 0 auto 40px; }
.hero-card { text-align: left; max-width: 900px; margin: 0 auto 50px; }

.info-box {
    background: rgba(255,255,255,0.03); 
    border-radius: 12px; 
    padding: 1.5rem; 
    margin-top: 1.5rem; 
    border: 1px solid var(--glass-border);
    display: flex; flex-direction: column; gap: 10px;
}
.info-box__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Chat Bubble Style */
.chat-bubble {
    background: rgba(0,0,0,0.3); 
    padding: 10px; 
    border-radius: 8px; 
    font-size: 0.9rem; 
    margin-top: auto;
}

/* Price Tag */
.price-tag {
    font-family: var(--f-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.price-tag span { font-size: 1rem; color: var(--c-text-muted); font-weight: 400; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--glass-border); padding: 1.5rem 0; }

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-family: var(--f-display); 
    font-weight: 600; 
    font-size: 1.125rem;
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0;
    text-align: left;
}

.faq-answer { 
    color: var(--c-text-muted); 
    margin-top: 0.5rem; 
    display: none; 
    font-size: 0.95rem; 
    padding-bottom: 10px; 
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .icon { transform: rotate(180deg); transition: transform 0.2s; }

.faq-list { margin-top: 0.5rem; padding-left: 1.5rem; list-style-type: disc; }
.faq-list li { margin-bottom: 0.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--glass-border); padding: 4rem 0; margin-top: 4rem; color: var(--c-text-muted); font-size: 0.9rem; }
.site-footer a { color: white; text-decoration: none; margin: 0 10px; }
.footer-links { margin-bottom: 2rem; }

/* =========================================
   7. MODALS & FORMS
   ========================================= */

/* Form Inputs & Textarea */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--c-input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--f-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
textarea { resize: vertical; min-height: 100px; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: var(--c-primary);
}
label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--c-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Common Modal Layout */
#checkout-modal, #contact-modal {
    position: fixed; inset: 0; z-index: 10002; 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    padding: 1rem;
}
#checkout-modal.open, #contact-modal.open { opacity: 1; pointer-events: auto; }

.modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
}

.checkout-container {
    position: relative; z-index: 1;
    background: #0a0a0c; 
    border: 1px solid var(--glass-border); 
    border-radius: 20px;
    width: 100%; max-width: 480px; 
    max-height: 90vh; overflow-y: auto; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}

.checkout-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
}
.checkout-header h3 { margin: 0; font-size: 1.25rem; }

.checkout-body { padding: 1.5rem; }

.order-summary {
    padding: 1rem; margin-bottom: 1.5rem;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
}
.item-row, .total-row { display: flex; justify-content: space-between; font-size: 0.9rem; }
.item-row { margin-bottom: 0.5rem; color: var(--c-text-muted); }
.total-row { font-weight: 700; font-size: 1.1rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.5rem; }

/* Payment Selectors */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }

.payment-option {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    background: rgba(255,255,255,0.02);
    font-size: 0.9rem;
}
.payment-option:hover { background: rgba(255,255,255,0.05); }

.payment-option.selected {
    border-color: var(--c-primary);
    background: rgba(99, 102, 241, 0.1);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* =========================================
   8. COOKIE & SPLASH
   ========================================= */

/* Splash Screen */
.splash {
    position: fixed; inset: 0; z-index: 9999;
    background: #000;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash__btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 3.75rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) {
    .splash__btn:hover {
        border-color: rgba(99, 102, 241, 0.5);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
        transform: scale(1.02);
        background: rgba(255,255,255,0.05);
    }
}
.splash__title { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.5rem; }
.splash__subtitle { font-size: 0.8rem; color: var(--c-text-muted); letter-spacing: 2px; }

.app-content { opacity: 0; transition: opacity 0.8s ease-in; will-change: opacity; }
.app-content.is-visible { opacity: 1; }

/* Cookie Banner */
#cookie-banner {
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    max-width: 900px; margin: 0 auto;
    background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 12px;
    z-index: 10000; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column; gap: 1rem;
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-container { display: flex; flex-direction: column; width: 100%; gap: 1rem; }
.cookie-text { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.4; }
.cookie-text strong { color: white; display: block; margin-bottom: 2px; font-family: var(--f-display); font-size: 0.95rem; }
.cookie-text a { color: var(--c-text-main); text-decoration: underline; text-underline-offset: 2px; }

.cookie-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; width: 100%; }

.btn-cookie {
    padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: 0.2s; text-align: center; display: flex; align-items: center; justify-content: center;
}
.btn-cookie--accept { background: white; color: black; border: 1px solid white; grid-column: 2; }
@media (hover: hover) { .btn-cookie--accept:hover { background: #e2e2e2; } }

.btn-cookie--reject { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: white; grid-column: 1; }
@media (hover: hover) { .btn-cookie--reject:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); } }

.btn-cookie--settings { 
    background: transparent; border: none; color: var(--c-text-muted); text-decoration: none; 
    padding: 0.5rem; font-size: 0.75rem; grid-column: 1 / -1; order: 3; margin-top: -0.25rem;
}
.btn-cookie--settings:hover { color: white; text-decoration: underline; }

/* Cookie Modal */
#cookie-modal {
    position: fixed; inset: 0; z-index: 10001; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 1rem;
}
#cookie-modal.open { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #0a0a0c; border: 1px solid var(--glass-border); padding: 2rem; border-radius: 20px;
    width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.cookie-option { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--glass-border); }
.cookie-option:last-child { border-bottom: none; }

/* Switch Toggle */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.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; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--c-success); }
input:checked + .slider:before { transform: translateX(20px); }
input:disabled + .slider { opacity: 0.5; cursor: not-allowed; }

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (min-width: 768px) {
    #cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; bottom: 24px; }
    .cookie-container { flex-direction: row; align-items: center; justify-content: space-between; }
    .cookie-buttons { display: flex; width: auto; align-items: center; }
    .btn-cookie--settings { order: 0; width: auto; margin-top: 0; margin-right: 0.5rem; grid-column: auto; }
}

@media (max-width: 900px) { 
    .grid-3 { grid-template-columns: repeat(2, 1fr); } 
    .section { padding: 4rem 0; }
}

@media (max-width: 700px) { 
    .grid-3, .grid-2 { grid-template-columns: 1fr; } 
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 1.75rem !important; }
    
    .section { padding: 2.5rem 0; }
    .card { padding: 1.5rem; }
    
    .btn, .btn--primary { 
        width: 100%; 
        justify-content: center; 
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem; 
    } 
    
    .navbar__btn {
        width: auto !important; 
        padding: 0.5rem 1rem !important; 
        font-size: 0.85rem !important;
        margin-left: auto;
    }
    
    .site-footer { padding: 2rem 0; margin-top: 2rem; }
    .check-list li { margin-bottom: 8px; font-size: 0.9rem; }
}

/* =========================================
   10. LEGAL PAGES STYLES
   ========================================= */
.legal-page {
    min-height: 100vh;
    padding: 2rem 0;
}

.legal-page .navbar {
    margin-bottom: 2rem;
}

.legal-content {
    color: var(--c-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.legal-content h4 {
    color: white;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.legal-content h4:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1rem;
}

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

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: white;
}

.legal-content em {
    color: var(--c-text-main);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: white;
}
