/* ============================================
   ADAPTIVE MACRO - PREMIUM DESIGN SYSTEM
   ============================================ */

/* Color Palette */
:root {
    /* Primary Colors - Deep Navy & Refined Gold */
    --color-primary: #0A2540;        /* Deep Navy Blue */
    --color-primary-light: #1A3551;
    --color-accent: #C9A961;         /* Refined Gold */
    --color-accent-hover: #B89650;
    
    /* Neutrals - Professional Grays */
    --color-text: #0F172A;           /* Almost Black */
    --color-text-muted: #64748B;     /* Slate Gray */
    --color-text-light: #94A3B8;
    --color-bg: #FFFFFF;
    --color-bg-secondary: #F8FAFC;
    --color-bg-tertiary: #F1F5F9;
    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography Scale */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ============================================
   TYPOGRAPHY & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
}

/* Headings with elegant serif font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text-muted);
}

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

a:hover {
    color: var(--color-accent-hover);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAVIGATION - MINIMAL & REFINED
   ============================================ */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    padding: 1.25rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION - BOLD & IMPACTFUL
   ============================================ */

.hero {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(201, 169, 97, 0.05), transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Split Hero Layout */
.hero-split .hero-content {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-split .hero-subtitle {
    margin-left: 0;
}

.hero-visual {
    height: 500px;
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(10, 37, 64, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(90deg, rgba(201, 169, 97, 0.03) 0, rgba(201, 169, 97, 0.03) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(201, 169, 97, 0.03) 0, rgba(201, 169, 97, 0.03) 1px, transparent 1px, transparent 60px),
        var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   BUTTONS - POLISHED & INTERACTIVE
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-primary);
}

/* Legacy btn class mapping */
.btn:not([class*="btn-"]) {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn:not([class*="btn-"]):hover {
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS & CARDS
   ============================================ */

main {
    padding: 4rem 0;
}

section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

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

.card h2, .card h3 {
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ============================================
   PILLAR CARDS - THREE COLUMN FEATURE
   ============================================ */

/* ============================================
   APPROACH PILLARS - Elite Design
   ============================================ */

.approach-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.approach-pillar {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-pillar:last-child {
    border-bottom: none;
}

.approach-pillar:hover {
    padding-left: 1rem;
}

.approach-pillar:hover .approach-number {
    color: var(--color-accent);
    transform: scale(1.05);
}

.approach-number {
    font-size: 4.5rem;
    font-weight: 200;
    font-family: var(--font-display);
    color: var(--color-border);
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: start;
}

.approach-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.approach-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.approach-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    font-family: var(--font-display);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ============================================
   PRICING CARDS
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.seat-info {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 300;
    font-family: var(--font-display);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.price-period {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--color-text-muted);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.trial-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    font-style: italic;
}

/* ============================================
   CTA RIBBON
   ============================================ */

.cta-ribbon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 1rem;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
    color: white;
}

.cta-ribbon h3 {
    font-size: 1.75rem;
    color: white;
    margin: 0;
}

.cta-ribbon .actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cta-ribbon .btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.cta-ribbon .btn-primary:hover {
    background: var(--color-accent-hover);
}

.cta-ribbon .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-ribbon .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ============================================
   INSIGHTS GRID
   ============================================ */

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

.insight-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.insight-media {
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.insight-body {
    padding: 1.5rem;
}

.insight-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.insight-title {
    font-size: 1.25rem;
    font-family: var(--font-display);
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.insight-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9375rem;
}

.insight-link:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.input-field,
.textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: all 0.3s ease;
}

.input-field:focus,
.textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

::placeholder {
    color: var(--color-text-light);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 6rem;
}

footer p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   UTILITIES
   ============================================ */

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* ============================================
   MOBILE NAVIGATION - HAMBURGER MENU
   ============================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-split .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--color-border-light);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--color-border-light);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    /* Fix About page timeline - make it vertical on mobile */
    .about-timeline-wrapper {
        display: block !important;
    }
    
    .about-timeline-line {
        display: none !important;
    }
    
    /* Fix "Who This Is For" grid - 1 column on mobile */
    section div[style*="grid-template-columns: repeat(2, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Fix Products coverage grid on mobile - make it 1 column */
    .coverage-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .hero {
        padding: 5rem 1.5rem 4rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .cta-ribbon {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .cta-ribbon .actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cta-ribbon .btn {
        width: 100%;
    }
    
    .grid,
    .grid-2,
    .grid-3,
    .pricing-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-pillar {
        grid-template-columns: 80px 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .approach-number {
        font-size: 3rem;
    }
    
    .approach-content h3 {
        font-size: 1.5rem;
    }
    
    .approach-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        font-size: 0.875rem;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .approach-pillar {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .approach-number {
        font-size: 2.5rem;
    }
    
    .approach-content h3 {
        font-size: 1.25rem;
    }
    
    .approach-content p {
        font-size: 0.9375rem;
    }
    
    .approach-stats {
        gap: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.125rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   LEGACY COMPATIBILITY
   ============================================ */

.two-column { composes: grid-2; }
.product-grid { composes: grid-3; }
.dashboard-grid { composes: grid-3; }
.info { color: var(--color-text-muted); }
.stat-box { composes: card; text-align: center; }
.trial-banner { composes: card; text-align: center; max-width: 700px; margin: 2rem auto; }
.pricing-intro { text-align: center; margin-bottom: 3rem; }
.quant-expert-banner { composes: card; text-align: center; max-width: 800px; margin: 2rem auto; background: var(--color-bg-secondary); }
