/* Premium Design System for Instagram Organic Growth Pre-sale Page */

:root {
    /* Color Palette */
    --bg-main: #0a0a0c;
    --bg-card: rgba(18, 18, 24, 0.65);
    --bg-card-hover: rgba(26, 26, 36, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f8f9fa;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --accent-purple: hsl(265, 85%, 62%);
    --accent-pink: hsl(325, 85%, 58%);
    --accent-blue: hsl(200, 85%, 55%);
    --accent-reels: hsl(339, 90%, 55%);
    --accent-stories: hsl(28, 95%, 55%);
    --accent-feed: hsl(150, 75%, 45%);
    
    --gradient-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    --gradient-reels: linear-gradient(135deg, var(--accent-reels) 0%, hsl(290, 80%, 50%) 100%);
    --gradient-stories: linear-gradient(135deg, var(--accent-stories) 0%, var(--accent-pink) 100%);
    --gradient-feed: linear-gradient(135deg, var(--accent-feed) 0%, var(--accent-blue) 100%);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Ambient Glows */
body::before, body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}
body::before {
    top: -150px;
    left: -150px;
    background: var(--accent-purple);
}
body::after {
    bottom: -150px;
    right: -150px;
    background: var(--accent-pink);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Header */
.header {
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 12, 0.7);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}
.header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hide-mobile {
    display: inline-block;
}
@media (max-width: 500px) {
    .hide-mobile {
        display: none;
    }
}
.brand-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}
.accent-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Main Content & Article Layout */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}
.article {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Article Header */
.article-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.meta-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 40%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Author Block */
.author-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 14px rgba(138, 43, 226, 0.3);
}
.author-name {
    font-weight: 600;
    color: var(--text-primary);
}
.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* Article Body Typography */
.article-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.lead-text {
    font-size: 20px;
    color: var(--text-primary);
    line-height: 1.8;
}
.article-body p {
    color: var(--text-secondary);
}
.article-body strong {
    color: var(--text-primary);
}
.divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* Section Cards */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.section-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0.8;
}
#reels-section::after { background: var(--gradient-reels); }
#stories-section::after { background: var(--gradient-stories); }
#feed-section::after { background: var(--gradient-feed); }

.section-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.section-card h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
}

.section-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tags-reels { background: rgba(219, 39, 119, 0.15); color: hsl(339, 90%, 65%); }
.tags-stories { background: rgba(249, 115, 22, 0.15); color: hsl(28, 95%, 65%); }
.tags-feed { background: rgba(34, 197, 94, 0.15); color: hsl(150, 75%, 55%); }

/* Highlight Boxes */
.highlight-box {
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reels-bg { background: rgba(219, 39, 119, 0.05); border-left: 4px solid var(--accent-reels); }
.stories-bg { background: rgba(249, 115, 22, 0.05); border-left: 4px solid var(--accent-stories); }
.feed-bg { background: rgba(34, 197, 94, 0.05); border-left: 4px solid var(--accent-feed); }

.highlight-box h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}
.highlight-box ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.highlight-box li {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}
.highlight-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--text-primary);
    font-weight: 800;
}

/* Button Custom Styles */
.btn {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    outline: none;
    text-decoration: none;
}
.btn-sm {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}
.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Interactive Growth Widget styling */
.interactive-container {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 15, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.widget-header {
    text-align: center;
}
.widget-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
}
.widget-header p {
    font-size: 15px;
    color: var(--text-muted);
}
.widget-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.question-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.question-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.select-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}
.select-input:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
}
.select-input option {
    background-color: #121217;
    color: var(--text-primary);
}

/* Widget Result Area */
.widget-result {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    animation: fadeInScale 0.5s var(--transition-bounce);
}
.hidden {
    display: none !important;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}
.widget-result h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}
.widget-result p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
}
.action-hint {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    margin-top: 10px;
}

/* Footer Styles */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 40px;
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(15, 15, 20, 0.8) 100%);
}
.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.footer-cta-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(219, 39, 119, 0.05) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.05);
}
.footer-cta-card h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-cta-card p {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 16px;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}
.footer-disclaimer {
    max-width: 600px;
    line-height: 1.5;
}

/* Cookie Modal Overlay & Modal Dialog (Centered & Blurred Background) */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 11, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.cookie-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-overlay.active .cookie-modal {
    transform: scale(1);
}

.cookie-icon {
    font-size: 44px;
    animation: float 3s ease-in-out infinite;
}
.cookie-modal h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.cookie-modal p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.cookie-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}
.cookie-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Exit Redirect State Overlay Styling (Triggered on redirect) */
.redirecting-modal {
    animation: shrinkOut 0.4s forwards cubic-bezier(0.6, -0.28, 0.735, 0.045);
}
@keyframes shrinkOut {
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Responsive queries */
@media (max-width: 600px) {
    .main-content {
        padding: 40px 16px;
    }
    .section-card {
        padding: 24px;
    }
    .interactive-container {
        padding: 24px;
    }
    .cookie-actions {
        flex-direction: column;
    }
    .cookie-modal {
        padding: 28px 20px;
    }
}
