/* =============================================================================
   QuadrantX Marketing Site - Common Styles
   Shared CSS for index.html, faq.html, services.html, thank-you.html
   ============================================================================= */

/* =============================================================================
   CSS Variables - Design Tokens
   ============================================================================= */
:root {
    /* Backgrounds */
    --bg-void: #05080f;
    --bg-deep: #0a0f1a;
    --bg-surface: #111827;
    --bg-elevated: #1f2937;
    --bg-subtle: #374151;
    
    /* Text */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-faint: #6b7280;
    
    /* Accents */
    --accent-emerald: #10b981;
    --accent-emerald-bright: #34d399;
    --accent-emerald-dim: #059669;
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-purple: #8b5cf6;
    
    /* Borders */
    --border-dim: rgba(255,255,255,0.06);
    --border-subtle: rgba(255,255,255,0.1);
    --border-visible: rgba(255,255,255,0.15);
    
    /* Effects */
    --glow-emerald: rgba(16, 185, 129, 0.15);
}

/* =============================================================================
   Reset & Base
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =============================================================================
   Layout
   ============================================================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================================================
   Typography
   ============================================================================= */
.serif {
    font-family: 'Instrument Serif', Georgia, serif;
}

/* =============================================================================
   Header
   ============================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 8, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
    transition: all 0.3s;
}

.header.scrolled {
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo:visited .logo-text {
    color: var(--text-primary);
}

.logo-text .q {
    color: var(--accent-emerald);
}

.logo:visited .logo-text .q {
    color: var(--accent-emerald);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--text-primary);
}

.header-nav a.active {
    color: var(--accent-emerald);
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn-header {
    background: var(--accent-emerald);
    color: var(--bg-void) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-header:hover {
    background: var(--accent-emerald-bright);
    transform: translateY(-1px);
}

.btn-header-login {
    color: var(--text-primary) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--border-visible);
    transition: all 0.2s;
}

.btn-header-login:hover {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald-bright) !important;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-emerald);
    color: var(--bg-void);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-emerald-bright);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--glow-emerald);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid var(--border-visible);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-emerald);
}

/* =============================================================================
   Section Common Styles
   ============================================================================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-emerald);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================================================
   Hero Common
   ============================================================================= */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent-emerald-bright);
    margin-bottom: 28px;
}

/* =============================================================================
   Footer
   ============================================================================= */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-dim);
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-logo img {
    height: 32px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent-emerald);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-dim);
    font-size: 13px;
    color: var(--text-faint);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-emerald);
}

/* =============================================================================
   Animations
   ============================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); 
    }
}

/* =============================================================================
   Hamburger Menu
   ============================================================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero CTA mobile variant — hidden by default */
.hero-cta-mobile {
    display: none !important;
}

/* =============================================================================
   Responsive - Mobile
   ============================================================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-deep);
        border-left: 1px solid var(--border-dim);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 0;
        transition: right 0.3s ease;
        display: flex;
        z-index: 999;
        overflow-y: auto;
    }

    .header-nav.open {
        right: 0;
    }

    .header-nav > a {
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-dim);
    }

    .header-auth {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--border-visible);
    }

    .header-auth a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 14px 20px;
    }

    .hero-cta-desktop {
        display: none !important;
    }

    .hero-cta-mobile {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

