/* 
   ULTRA PREMIUM TYPOGRAPHY - TheLionAI
   "Beyond God Level" Text Enhancements
   v2.0 - Optimized for Visual Lightness & Breathability
*/

/* ==========================================
   GLOBAL FONT SETTINGS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap'); /* Secondary Display Font */

:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    /* Fluid Typography Scale - REFINED (Slightly smaller base for mobile) */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem); /* 13px -> 15px */
    --text-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem); /* 15px -> 17px */
    --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --text-3xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); /* Reduced from 2rem base */
    --text-4xl: clamp(2.25rem, 2rem + 1.5vw, 3rem);
    --text-5xl: clamp(2.75rem, 2.5rem + 2.5vw, 4rem);
    --text-6xl: clamp(3.25rem, 3rem + 3vw, 5.5rem);
}

body {
    font-family: var(--font-sans);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.75; /* Increased line-height for breathability */
    letter-spacing: 0.01em; /* Slightly opened up tracking */
    font-weight: 300; /* LIGHTER WEIGHT DEFAULT */
}

/* ==========================================
   HEADINGS (Display Font)
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600; /* Reduced from 700 */
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--text-6xl);
    font-weight: 700; /* Keep H1 bold but not heavy */
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%); /* Softer gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05)); /* Reduced glow */
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 600;
    color: #f1f5f9;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 500; /* Lighter subheadings */
    color: #e2e8f0;
}

h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em; /* More spacing for uppercase */
    color: var(--neon-primary);
}

/* ==========================================
   BODY TEXT - DE-CLUTTERED
   ========================================== */
p {
    font-size: var(--text-base);
    color: #94a3b8; /* Slate-400 (Lighter/Greyer than Slate-300) */
    margin-bottom: 1.5rem;
    font-weight: 300; /* Light weight */
    max-width: 75ch; /* Optimal reading length */
}

p.lead {
    font-size: var(--text-lg);
    font-weight: 300;
    color: #cbd5e1;
    line-height: 1.6;
}

/* ==========================================
   LISTS & LINKS
   ========================================== */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

li {
    font-size: var(--text-base);
    color: #94a3b8;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: var(--neon-primary);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

/* ==========================================
   BUTTON TYPOGRAPHY
   ========================================== */
.btn {
    font-family: var(--font-sans);
    font-weight: 500; /* Reduced from 600 */
    letter-spacing: 0.02em;
    font-size: var(--text-sm); /* Smaller, tighter buttons */
    text-transform: none;
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--neon-primary) 0%, var(--neon-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-muted {
    color: #64748b !important; /* Slate-500 */
}

/* ==========================================
   SPECIFIC COMPONENT OVERRIDES (Reducing Density)
   ========================================== */

/* Hero Text */
.agent-hero h1 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Card Descriptions - Limit Lines */
.product-desc, .agent-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #94a3b8; /* Muted */
    font-size: var(--text-sm);
}

/* Footer Links - Smaller */
.footer-links li a {
    font-size: var(--text-sm);
    color: #94a3b8;
    font-weight: 300;
}

/* Features - Lighter */
.feature-card p {
    font-size: var(--text-sm);
    color: #94a3b8;
}

/* Mobile Specific Text Adjustments */
@media (max-width: 768px) {
    p {
        font-size: 0.95rem; /* Force slightly smaller on mobile */
        line-height: 1.6;
    }
    
    h1 {
        font-weight: 700; /* Keep bold for contrast */
    }
    
    h2 {
        font-weight: 600;
    }
}
