/* 
  LAXICA - Master-Level Design System v2.0
  Perspective: 10+ Years Senior UI/UX Architect
  Core Principles: Negative Space, Visual Hierarchy, Sophisticated Motion, Precision Grids
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* 🎨 Refined Color Palette - Analytics-Driven */
    --brand-red: #E23744;
    --brand-red-muted: rgba(226, 55, 68, 0.1);
    --brand-red-glow: rgba(226, 55, 68, 0.25);
    
    /* Neutral System (Balanced Grays) */
    --ui-deep: #020202;         /* Pitch Night */
    --ui-surface: #0a0a0a;      /* Deep Slate */
    --ui-elevated: #121212;     /* Elevated Slate */
    
    --text-high: #ffffff;
    --text-med: #a1a1aa;        /* Cool Gray 400 */
    --text-low: #52525b;        /* Cool Gray 600 */
    
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-accent: rgba(255, 255, 255, 0.08);
    
    /* 📏 Precision Grid System (8px Base) */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-6: 48px;
    --sp-8: 64px;
    --sp-12: 96px;
    
    /* 📐 Layout */
    --container-max: 1240px;
    --radius-full: 100px;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 12px;
    
    /* ⚡ Motion Config */
    --expo-out: cubic-bezier(0.16, 1, 0.3, 1);
    --soft-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-master: all 0.5s var(--expo-out);
}

/* -------------------------------------------------------------------------- */
/* Reset & Precision Core                                                     */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--ui-deep);
}

body {
    background-color: var(--ui-deep);
    color: var(--text-high);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, .jakarta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--sp-3);
    }
    section {
        padding: var(--sp-6) 0;
    }
}

/* -------------------------------------------------------------------------- */
/* Advanced UI Components                                                     */
/* -------------------------------------------------------------------------- */

/* Glow Effect Base (Follow-Mouse Ready) */
.glow-card {
    position: relative;
    background: var(--ui-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-master);
}

.glow-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 0 40px var(--brand-red-glow);
    transform: translateY(-4px);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-2) var(--sp-4);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-master);
    border: 1px solid transparent;
    gap: var(--sp-1);
    text-transform: none;
}

.btn-primary {
    background: var(--brand-red);
    color: white;
    box-shadow: 0 8px 16px -4px var(--brand-red-glow);
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-ghost {
    background: transparent;
    color: var(--text-med);
    border-color: var(--border-subtle);
}

.btn-ghost:hover {
    background: var(--ui-elevated);
    color: white;
    border-color: var(--border-accent);
}

/* High-End Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-master);
    background: transparent;
}

header.scrolled {
    height: 64px;
    background: rgba(2, 2, 2, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--brand-red);
}

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-med);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-master);
    padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--ui-deep);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--sp-6);
        transition: var(--transition-master);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-cta {
        display: none; /* Hide button on mobile or move it into the menu */
    }
    
    .nav-links .mobile-cta {
        display: block;
    }
}

.mobile-cta {
    display: none;
}

/* Custom Grid Utility */
.grid {
    display: grid;
    gap: var(--sp-4);
}

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

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

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------- */
/* Master Layouts                                                            */
/* -------------------------------------------------------------------------- */

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

.bento-item {
    background: var(--ui-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* 🌟 Hero (The Statement) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(226, 55, 68, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6.5rem);
    line-height: 1;
    margin-bottom: var(--sp-3);
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(180deg, #fff 0%, #71717a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-med);
    max-width: 640px;
    margin: 0 auto var(--sp-6);
}

/* Stat Cards */
.stat-card {
    padding: var(--sp-4);
    border-radius: var(--radius-xl);
    background: var(--ui-surface);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--brand-red);
}

/* Pricing Grid Master */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    margin-top: var(--sp-8);
}

.price-card {
    padding: var(--sp-6);
    background: var(--ui-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    background: var(--ui-elevated);
    border-color: var(--brand-red);
    box-shadow: 0 0 50px rgba(226, 55, 68, 0.15);
    transform: scale(1.05);
}

.price-card h4 {
    font-size: 1.2rem;
    color: var(--text-high);
    margin-bottom: var(--sp-2);
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--sp-4);
}

.feature-list li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    color: var(--text-med);
    margin-bottom: var(--sp-2);
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* Advanced Animations                                                        */
/* -------------------------------------------------------------------------- */

/* Refined Reveal (Apple Style) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--expo-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loader Refined */
#loader {
    position: fixed;
    inset: 0;
    background: var(--ui-deep);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-line {
    width: 240px;
    height: 1px;
    background: var(--border-accent);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--brand-red);
    animation: flow 1.2s var(--expo-out) infinite;
}

@keyframes flow {
    to { left: 100%; }
}

/* 📱 Responsive Precision */
@media (max-width: 1200px) {
    :root {
        --sp-12: 80px;
    }
}

@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
    .price-card.featured { transform: scale(1); }
    .bento-grid { grid-template-columns: 1fr; }
    .col-4, .col-6, .col-8, .col-12 { grid-column: span 1; }
    
    .hero { height: auto; padding: 160px 0 80px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1rem; padding: 0 var(--sp-2); }
    
    .price-value { font-size: 2.5rem; }
    
    h1 { font-size: 2.5rem !important; line-height: 1.1 !important; }
    h2 { font-size: 2rem !important; line-height: 1.2 !important; }
    
    section { padding: var(--sp-8) 0; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.15rem; letter-spacing: 1px; }
    
    /* Only make content buttons full width, keep nav buttons compact */
    section .btn, footer .btn { width: 100%; padding: 18px; }
    
    .pricing-grid { gap: var(--sp-4); }
    .price-card { padding: var(--sp-4); }
    
    .nav-inner { padding: 0 var(--sp-2); }
}
