/* 
   Theme: Launchpad Boost (Purple SaaS)
   Based on: Professional Enterprise (Compact & Inline)
   Fonts: Inter (Body), Space Grotesk (Headers)
   Mobile Optimized
*/

:root {
    --bg-main: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-surface-hover: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --accent-primary: #7C3AED;
    --accent-secondary: #8B5CF6;
    --accent-dark: #6D28D9;
    --accent-dim: rgba(124, 58, 237, 0.05);
    --accent-gradient: linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
    --border-light: #F1F5F9;
    --border-strong: #E2E8F0;
    --radius-main: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.12);
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    color: #0F172A;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Header */
header {
    height: var(--header-height);
    background: #FFFFFF;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header .container .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
    z-index: 1001;
}

.logo:hover { opacity: 0.8; }
.logo-img { height: 48px; width: auto; }

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

.nav-links .mobile-cta {
    display: none;
}

.nav-links a {
    font-weight: 500;
    color: #64748B;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-primary); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
    color: #FFFFFF !important;
}

.btn-gradient { background: var(--accent-gradient); color: white; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Sections */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 5rem 0; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    text-align: center;
    background: radial-gradient(circle at top center, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1E293B 0%, #4C1D95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-dim);
}

/* Forms */
.form-card {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.progress-bar-bg {
    background: var(--border-light);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--accent-gradient);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Admin Dashboard */
.admin-sidebar {
    width: 260px;
    background: #0F172A;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem;
    z-index: 900;
}

.admin-main {
    margin-left: 260px;
    padding: 2rem;
    background: #F1F5F9;
    min-height: 100vh;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active { background: #DCFCE7; color: #166534; }
.status-pending { background: #FEF9C3; color: #854D0E; }

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table { width: 100%; border-collapse: collapse; }

/* Footer */
footer {
    background: #0B0C10;
    color: #E2E8F0;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col p {
    color: #94A3B8;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-col a {
    display: block;
    color: #94A3B8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-primary); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748B;
    font-size: 0.875rem;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    
    h1 { font-size: 2.25rem !important; line-height: 1.2; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.25rem !important; }
    body { font-size: 15px; }
    
    .container { padding: 0 1.25rem; }
    section { padding: 3rem 0; }
    
    header { height: var(--header-height); }
    header .container { padding: 0 1rem; }
    .logo-img { height: 36px; }
    
    .mobile-menu-toggle { display: flex; }
    
    /* Mobile Navigation - Hidden by default */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 0;
        z-index: 1001;
        border-top: 1px solid #E2E8F0;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 0.3s, opacity 0.3s ease;
    }
    
    /* Mobile Navigation - Visible when active */
    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transition: visibility 0s 0s, opacity 0.3s ease;
    }
    
    /* Navigation Links Styling */
    .nav-links a {
        width: 100%;
        padding: 1.25rem 2rem;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 500;
        color: #1E293B;
        border-bottom: 1px solid #F1F5F9;
        display: block;
    }
    
    .nav-links a:active {
        background: #F8FAFC;
    }
    
    /* Mobile CTA Button */
    .nav-links .mobile-cta {
        display: inline-flex;
        width: 85%;
        max-width: 320px;
        margin: 2rem auto 0;
        padding: 1rem 1.5rem;
        border: none;
        justify-content: center;
    }
    
    /* Hide desktop CTA */
    header > .container > .btn { 
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
    }
    
    .hero h1 { font-size: 2rem !important; padding: 0 0.5rem; }
    .hero h1 br { display: none; }
    .hero p { font-size: 1rem !important; padding: 0 0.5rem; margin-bottom: 1.5rem !important; }
    
    .hero div[style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0 1rem;
    }
    
    .hero .btn { width: 100%; padding: 1rem 1.5rem !important; font-size: 1rem !important; }
    
    .grid-3, .grid-3[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        margin-top: 1.5rem !important;
    }
    
    .card { padding: 1.5rem; }
    .card:hover { transform: none; }
    
    .form-card {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: var(--radius-main);
    }
    
    .form-group { margin-bottom: 1.25rem; }
    .form-input, .form-select, .form-textarea { padding: 0.75rem; font-size: 16px; }
    
    .form-actions {
        flex-direction: column-reverse !important;
        gap: 1rem;
    }
    
    .form-actions .btn { width: 100%; margin: 0 !important; }
    .btn { width: 100%; padding: 0.875rem 1.25rem; font-size: 0.95rem; }
    
    .form-card[style*="max-width: 500px"] { max-width: 100% !important; margin: 1rem !important; }
    
    footer { padding: 3rem 0 1.5rem; margin-top: 2rem; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; text-align: center; }
    .footer-col { text-align: center; }
    .footer-col a { display: inline-block; margin: 0.5rem 0.75rem; }
    .footer-bottom { padding-top: 1.5rem; font-size: 0.8rem; }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }
    
    .admin-sidebar nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
        margin-top: 0 !important;
    }
    
    .admin-sidebar .nav-item {
        flex: 1;
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: center;
    }
    
    .admin-sidebar .nav-item i { margin-right: 0 !important; display: block; margin-bottom: 0.25rem; }
    
    .admin-main { margin-left: 0; padding: 1rem; }
    
    .admin-main header {
        position: relative;
        height: auto;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .admin-main header > div {
        flex-direction: column !important;
        gap: 1rem;
        align-items: flex-start !important;
    }
    
    .admin-main header h1 { font-size: 1.5rem !important; }
    
    .admin-main header > div > div {
        width: 100%;
        flex-direction: column !important;
        gap: 0.75rem;
    }
    
    .admin-main header input[type="text"] { width: 100% !important; }
    
    table { font-size: 0.85rem; }
    table th, table td { padding: 0.75rem 0.5rem !important; text-align: left; }
    table th { font-size: 0.7rem; }
    
    .testimonial-content p,
    .card p[style*="font-size: 1.25rem"],
    .card p[style*="font-size: 1.15rem"] { font-size: 1rem !important; }
    
    #passwordDisplay { padding: 1rem !important; }
    #passwordDisplay > div[style*="display: flex"] { flex-direction: column !important; gap: 0.75rem !important; }
    #passwordDisplay .btn { width: 100%; }
    
    .form-step h2 { font-size: 1.5rem !important; }
    .form-step .grid-3[style*="1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
    .form-step div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
    
    #keywordTags { grid-template-columns: 1fr 1fr !important; }
    
    #addModal > div, #loginOverlay > div {
        margin: 1rem;
        padding: 1.5rem !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    .progress-container { padding: 0 1rem; margin-bottom: 1.5rem; }
    .step-indicator { font-size: 0.8rem; }
    
    .card[style*="text-align: center"] { padding: 1.5rem !important; }
    .card[style*="text-align: center"] > div[style*="width: 64px"] { width: 56px !important; height: 56px !important; margin-bottom: 1rem !important; }
    .card[style*="text-align: center"] i { font-size: 1.5rem !important; }
    
    .grid-3[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
    
    form[style*="display: flex"][style*="gap: 0.5rem"] { flex-direction: column !important; }
    form[style*="display: flex"][style*="gap: 0.5rem"] input,
    form[style*="display: flex"][style*="gap: 0.5rem"] button { width: 100% !important; }
    
    img { max-width: 100%; height: auto; }
    body, html { overflow-x: hidden; }
    
    [style*="position: absolute"][style*="left: 50%"] {
        position: static !important;
        transform: none !important;
    }
}

@media (max-width: 375px) {
    h1 { font-size: 1.875rem !important; }
    h2 { font-size: 1.5rem !important; }
    .container { padding: 0 1rem; }
    .form-card { padding: 1.25rem; }
    .card { padding: 1.25rem; }
    .btn { padding: 0.75rem 1rem; font-size: 0.9rem; }
    #keywordTags { grid-template-columns: 1fr !important; }
}

/* Demo Video Modal */
.demo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.demo-modal.active {
    display: flex;
}

.demo-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.demo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero { padding-top: calc(var(--header-height) + 1rem); padding-bottom: 1.5rem; }
    .nav-links { padding-top: 1rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    .mobile-menu-toggle { display: none; }
    .nav-links {
        position: static;
        transform: none;
        flex-direction: row;
        background: transparent;
        padding: 0;
        border: none;
    }
    header > .container > .btn { display: inline-flex; }
}
