/* TradeWire Systems Master Styles v1.2.0 
   Optimized for High-Ticket Conversion & Mobile Responsive AI Widgets
*/

:root {
    --primary-gold: #D4AF37;
    --deep-black: #050505;
    --slate-gray: #121214;
    --text-silver: #E2E2E2;
    --border-dim: #2A2A2E;
    --cta-hover: #F1C40F;
}

body {
    background-color: var(--deep-black);
    color: var(--text-silver);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dim);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
}

.logo-text span {
    color: var(--primary-gold);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gold-gradient {
    background: linear-gradient(to right, #D4AF37, #F1C40F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-hero {
    font-size: 1.25rem;
    color: #888;
    max-width: 750px;
    margin: 0 auto 40px;
}

.founding-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Pricing Header */
.pricing-header {
    margin: 40px auto 0;
    text-align: center;
}

.price-display {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: white;
}

.fee-waiver {
    color: var(--primary-gold);
    font-weight: bold;
    margin-bottom: 20px;
}

/* Services Grid */
.services-section {
    padding: 20px 0 80px;
}

.services-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; /* Triggers responsive wrapping */
}

.floating-card {
    background: var(--slate-gray);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 40px;
    flex: 1;
    min-width: 320px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    flex-grow: 1; /* Pushes the button to the bottom evenly */
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Referral & Footer */
.referral {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--border-dim);
}

footer {
    padding: 40px 0 80px; /* Extra bottom padding prevents widget collision */
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* --- ANYTHINGLLM WIDGET REPAIRS --- */

/* Force 60% Width & Center on Desktop */
#anything-llm-chat-widget {
    width: 60% !important;
    max-width: 60% !important;
    left: 20% !important;
    right: 20% !important;
    bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    border: 1px solid var(--border-dim) !important;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.8) !important;
}

/* Text Padding & Font Smoothing */
.anything-llm-message-content {
    padding: 14px 18px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* --- CTA & HEADER UPDATES --- */
.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-demo-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.phone-cta {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    transition: 0.3s;
}

.phone-cta:hover {
    background: var(--primary-gold);
    color: black;
}

.cta-wrapper {
    max-width: 400px;
    margin: 0 auto 40px;
}

.btn-main {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--primary-gold);
    color: black;
    text-decoration: none;
    font-weight: 800;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    transition: 0.3s;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.btn-main.large-cta {
    padding: 24px;
    font-size: 1.3rem;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.btn-main:hover {
    background: var(--cta-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* --- AUTHORITY & GUARANTEE SECTION --- */
.authority-section {
    padding: 40px 0 80px;
}

.authority-grid {
    display: flex;
    gap: 40px;
    background: var(--slate-gray);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 50px;
    align-items: center;
}

.authority-text {
    flex: 3;
}

.authority-text p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 15px;
}

.guarantee-box {
    flex: 2;
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed var(--primary-gold);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.shield-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.guarantee-box h3 {
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.guarantee-box p {
    font-size: 0.95rem;
    color: #aaa;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .floating-card {
        min-width: 100%;
        padding: 30px 20px;
    }
    
    #anything-llm-chat-widget {
        width: 94% !important;
        max-width: 94% !important;
        left: 3% !important;
        right: 3% !important;
    }

    .header-contact {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }
    
    .live-demo-text {
        display: none;
    }
    
    .authority-grid {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .btn-main.large-cta {
        padding: 18px;
        font-size: 1.1rem;
    }
}

/* SaaS Layout Overrides v1.3.0 */

.serif-header {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-visual {
    flex: 1;
    perspective: 1000px;
}

/* Dashboard Mockup Component */
.dashboard-mockup {
    background: #1a1a1e;
    border: 1px solid var(--border-dim);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 20px rgba(212, 175, 55, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 30px;
    border-bottom: 1px solid #2a2a2e;
    padding-bottom: 15px;
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #000;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #222;
}

.stat-val {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-gold);
}

.mockup-activity {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-line {
    font-size: 0.9rem;
    color: #888;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
}

.tag {
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 0.75rem;
}

/* Benefit Bar */
.benefit-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 0;
    border-top: 1px solid var(--border-dim);
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 2rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.benefit-text strong {
    display: block;
    margin-bottom: 5px;
}

.benefit-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Mobile Responsive Overrides & Optimizations */
@media (max-width: 992px) {
    /* Hero Section Stacking */
    .hero-split {
        flex-direction: column;
        text-align: center;
        padding: 60px 0 40px; /* Tighter padding for mobile */
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px; /* Space before the dashboard image */
    }

    h1.serif-header {
        font-size: clamp(2.2rem, 8vw, 3rem); /* Slightly smaller max on mobile */
        line-height: 1.1;
    }

    /* Remove the 3D tilt on mobile for better legibility */
    .dashboard-mockup {
        transform: none;
        padding: 20px; /* Slightly less padding to save screen space */
    }

    /* Stack the Stats */
    .mockup-stats {
        grid-template-columns: 1fr; /* Stacks the stat cards vertically */
        gap: 15px;
    }

    /* Benefit Bar Stacking */
    .benefit-bar {
        grid-template-columns: 1fr;
        padding: 40px 0;
        gap: 30px;
    }

    .benefit-item {
        flex-direction: column; /* Stack icon on top of text */
        align-items: center;
        text-align: center;
    }

    .benefit-icon {
        margin-bottom: 10px;
    }

    /* Header Nav Wrapping */
    .header-contact {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }
    
    .live-demo-text {
        display: none; /* Hide the extra text to save space */
    }
    
    .phone-cta {
        padding: 6px 16px;
        font-size: 1rem;
    }
}

/* Specific Chat Widget Mobile Fix */
@media (max-width: 768px) {
    #anything-llm-chat-widget {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 20px 20px 0 0 !important; /* Keep top rounded */
        border-left: none !important;
        border-right: none !important;
        bottom: 0 !important;
    }
    
    /* Ensure the button is easily tappable */
    .btn-main.large-cta {
        padding: 20px;
        font-size: 1.1rem;
    }
}