/* ========================================
   NOVIXX - Main Stylesheet
   Luxury Design System for B2B Automation
   ======================================== */

/* ========================================
   1. CSS RESET & BASE
   ======================================== */

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

:root {
    /* Luxury Brand Colors */
    --rich-plum: #4C3A5A;
    --soft-rose: #D8B6E3;
    --gentle-lavender: #AFA0BD;
    
    /* Supporting Palette */
    --cream-base: #FAF8FA;
    --warm-white: #FFFFFF;
    --soft-grey: #8B8690;
    --deep-charcoal: #3A2F40;
    --accent-gold: #D4AF37;
    
    /* Semantic Colors */
    --success-sage: #9DB89C;
    --warning-peach: #E8B4A0;
    
    /* Text Hierarchy */
    --text-primary: #3A2F40;
    --text-secondary: #4C3A5A;
    --text-muted: #8B8690;
    
    /* Soft Shadows with warmth */
    --shadow-soft: 0 4px 24px rgba(83, 75, 87, 0.08);
    --shadow-medium: 0 8px 40px rgba(83, 75, 87, 0.12);
    --shadow-lift: 0 12px 56px rgba(83, 75, 87, 0.16);
    --shadow-rose-glow: 0 8px 32px rgba(233, 197, 197, 0.3);
    --shadow-lavender-glow: 0 8px 32px rgba(174, 149, 186, 0.25);
    
    /* Spacing Scale */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cream-base);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ========================================
   2. TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
}

h4 {
    font-size: clamp(20px, 2.5vw, 24px);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

a {
    color: var(--rich-plum);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    color: var(--accent-gold);
    outline: none;
}

.mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 500;
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

/* ========================================
   3. LAYOUT
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

.section {
    padding: var(--spacing-2xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* ========================================
   4. NAVIGATION
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 245, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(233, 197, 197, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(250, 247, 245, 0.95);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(233, 197, 197, 0.3);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--accent-gold), #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links {
    display: none;
    gap: 48px;
    list-style: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gentle-lavender);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--rich-plum), var(--gentle-lavender));
    color: var(--warm-white);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lavender-glow);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gentle-lavender), var(--soft-rose));
    transition: left 0.5s ease;
}

.nav-cta:hover::before {
    left: 0;
}

.nav-cta span {
    position: relative;
    z-index: 1;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ========================================
   5. BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rich-plum), var(--gentle-lavender));
    color: var(--warm-white);
    box-shadow: var(--shadow-lavender-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gentle-lavender), var(--soft-rose));
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.btn-secondary {
    background: var(--warm-white);
    color: var(--rich-plum);
    border: 2px solid var(--gentle-lavender);
}

.btn-secondary:hover {
    background: var(--gentle-lavender);
    color: var(--warm-white);
    transform: translateY(-2px);
}

/* ========================================
   6. CARDS
   ======================================== */

.card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--soft-rose), var(--gentle-lavender));
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--warm-white);
}

.card h3 {
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   7. GRID LAYOUTS
   ======================================== */

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

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

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

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

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

/* ========================================
   8. HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero-canvas {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ========================================
   9. PROBLEM-SOLUTION BLOCKS
   ======================================== */

.problem-solution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.problem-block,
.solution-block {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.problem-block {
    background: linear-gradient(135deg, rgba(232, 180, 160, 0.1), rgba(232, 180, 160, 0.05));
    border-left: 4px solid var(--warning-peach);
}

.solution-block {
    background: linear-gradient(135deg, rgba(157, 184, 156, 0.1), rgba(157, 184, 156, 0.05));
    border-left: 4px solid var(--success-sage);
}

/* ========================================
   10. PROCESS / STEPS
   ======================================== */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.step {
    position: relative;
    padding: var(--spacing-lg);
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.step-number {
    position: absolute;
    top: -20px;
    left: var(--spacing-md);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #B8860B);
    color: var(--warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
}

.step h3 {
    margin-top: var(--spacing-md);
    color: var(--text-primary);
}

/* ========================================
   11. TRUST SIGNALS
   ======================================== */

.trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
}

.trust-signal svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-gold);
}

/* ========================================
   12. FOOTER
   ======================================== */

footer {
    background: var(--deep-charcoal);
    color: var(--warm-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    font-size: 18px;
}

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

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
    color: var(--soft-grey);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--soft-grey);
    font-size: 14px;
}

/* ========================================
   13. UTILITY CLASSES
   ======================================== */

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* ========================================
   14. ICONS
   ======================================== */

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* ========================================
   15. RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ========================================
   16. ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   17. FOCUS STATES (Accessibility)
   ======================================== */

*:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}
