/* ==========================================================================
   LogicPrompt AI - Premium Luxury Theme
   High-Ticket Client Design with Gold Accents
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

:root {
    /* Premium Gold Palette */
    --gold-primary: #FFD700;
    --gold-accent: #FFC800;
    --gold-dark: #B8860B;
    --gold-light: #FFED4E;
    --gold-glow: rgba(255, 215, 0, 0.4);
    
    /* Dark Luxury Background */
    --dark-bg: #000000;
    --dark-card: #0D0D0D;
    --dark-elevated: #1A1A1A;
    --dark-hover: #252525;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #6B6B6B;
    --text-gold: #FFD700;
    
    /* Borders & Shadows */
    --border-gold: rgba(255, 215, 0, 0.3);
    --border-gold-bright: rgba(255, 215, 0, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-gold: 0 0 40px rgba(255, 215, 0, 0.3);
    --shadow-gold-strong: 0 0 60px rgba(255, 215, 0, 0.5);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Glow Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* --- Layout Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 8rem 0;
    position: relative;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.text-gold {
    color: var(--gold-primary);
    font-weight: 700;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.1);
}

.nav-container {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    color: white;
    letter-spacing: -0.03em;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.logo-accent {
    color: var(--gold-primary);
    text-shadow: 0 0 20px var(--gold-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--gold-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-accent) 100%);
    color: #000 !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
    color: #000 !important;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-accent) 100%);
    color: #000;
    box-shadow: 0 10px 40px var(--gold-glow);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 60px rgba(255, 215, 0, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
}

.btn-large {
    padding: 1.3rem 3rem;
    font-size: 1.2rem;
}

/* --- Hero Section --- */
.hero {
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--gold-glow); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px var(--gold-glow); }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    transition: var(--transition-base);
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.08);
    border-color: var(--border-gold-bright);
    box-shadow: 0 10px 40px var(--gold-glow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Cards (Drift, Solution, Proof) --- */
.drift-grid,
.solution-grid,
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.drift-card,
.solution-card,
.proof-stat {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.drift-card::before,
.solution-card::before,
.proof-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.drift-card:hover,
.solution-card:hover,
.proof-stat:hover {
    transform: translateY(-10px);
    border-color: var(--border-gold-bright);
    box-shadow: var(--shadow-gold-strong);
}

.drift-card:hover::before,
.solution-card:hover::before,
.proof-stat:hover::before {
    opacity: 1;
}

.drift-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.drift-icon {
    opacity: 0.85;
    filter: none;
}


.drift-card h3,
.solution-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.drift-card p,
.solution-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.drift-card p {
    margin-bottom: 1.2rem;
}


/* --- Drift Cards: Grounded, Heavy, Non-Interactive --- */
.drift-card {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.015),
        rgba(255, 255, 255, 0.005)
    );
}

.drift-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border-subtle);
}


.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.solution-card {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-gold-bright);
    box-shadow: var(--shadow-gold-strong);
}

.solution-card:hover::before {
    opacity: 1;
}

.drift-impact {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 215, 0, 0.25);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gold-primary);
}


.solution-step {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.solution-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.solution-link:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--gold-glow);
}

/* --- Proof Stats --- */
.proof-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--gold-glow);
}

.proof-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.proof-detail {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.proof-cta {
    text-align: center;
    margin-top: 4rem;
}

/* --- Calculator --- */
.calculator-card {
    background: var(--dark-card);
    border: 2px solid var(--border-gold);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-gold);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--dark-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

.input-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-gold);
    text-align: center;
    transition: var(--transition-base);
}

.result-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px var(--gold-glow);
}

.result-primary {
    border: 2px solid var(--gold-primary);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-sublabel {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calculator-cta {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.calculator-disclaimer {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

.cta-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-fallback {
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.cta-fallback a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.cta-fallback a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--gold-glow);
}

/* --- Footer --- */
.footer {
    padding: 5rem 0 2rem;
    background: var(--dark-card);
    border-top: 2px solid var(--border-gold);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
}

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

.footer-col h4 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* --- Pricing Cards --- */
.pricing-card {
    background: var(--dark-card);
    border: 2px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 60px var(--gold-glow);
}

.pricing-card.featured {
    border-color: var(--gold-primary);
    box-shadow: 0 10px 40px var(--gold-glow);
}

.pricing-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Animations --- */
.drift-card,
.solution-card,
.proof-stat,
.result-card,
.hero,
.pricing-card,
.calculator-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Mobile Navigation --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gold-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--gold-glow);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 2px solid var(--border-gold);
        box-shadow: 0 10px 40px var(--gold-glow);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
        text-align: center;
    }
    
    .nav-cta {
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .calculator-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Smooth Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-primary));
}

/* Audit Page Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.solution-card {
    background: var(--dark-card); /* Ensure this is slightly lighter than the body black */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-accent);
}

.solution-card p {
    color: var(--text-secondary); /* Make sure this isn't black! */
    line-height: 1.6;
}

/* Safety: If Javascript reveal fails, ensure cards are visible */
.solution-card, .drift-card, .proof-stat {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* --- LogicPrompt Click-Fix Patch --- */

/* 1. Ensure the background gradient doesn't block the click */
.drift-card::before,
.solution-card::before,
.proof-stat::before {
    pointer-events: none !important; 
}

/* 2. Force the links to the highest layer and ensure they are clickable */
.solution-link {
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    display: inline-block !important;
}

/* 3. Set the default card behavior */
.solution-card {
    cursor: default;
}
.section-problem {
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}
