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

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-blue: #305CDE;
    --primary-hover: #1e3a8a;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --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-glow: 0 0 15px rgba(48, 92, 222, 0.3);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --container-max: 1200px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Container Utility */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.2;
    color: var(--text-main);
}

p {
    margin: 0 0 1rem 0;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

header .container {
    display: flex;
    align-items: center;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.TSD-logo {
    height: 32px;
    width: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #000000;
    border-radius: 8px;
    padding: 4px;
}


nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

nav a:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 8px rgba(48, 92, 222, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 32px;
}

.mobile-nav-auth {
    display: none;
}

.hamburger-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: var(--text-main);
    flex-shrink: 0;
    line-height: 0;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-hover) 100%);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(48, 92, 222, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(48, 92, 222, 0.3);
}

/* Section Utility */
.section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(48, 92, 222, 0.05);
    color: var(--primary-blue);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 56px 0;
    background-color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.stat-box:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(48, 92, 222, 0.15);
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.stat-svg {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
}

.stat-box h3 {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 700;
}

.stat-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
}

/* Calculator Section */
.calculator-section {
    padding: 30px 0 70px 0;
    background-color: var(--bg-light);
}

.calculator-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.value-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(48, 92, 222, 0.4);
    transition: transform 0.1s;
}

.calculator-result {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-light) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.revenue-display {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 16px;
    line-height: 1;
    text-shadow: var(--shadow-glow);
}

.stop-losing-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-hover) 100%);
    color: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(48, 92, 222, 0.2);
}

/* FAQ Section */
.faq-section {
    padding: 70px 0;
    background-color: #ffffff;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 60px auto 0 auto;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.faq-item p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #0f172a !important;
    color: #f8fafc;
    padding: 60px 0 40px 0;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    border-top: none;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border: none;
}

.social-icon:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    border-color: transparent;
    color: #ffffff;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .split-layout,
    .agent-showcase,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 8px 0;
    }

    header .container {
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: space-between;
        padding: 8px 20px;
        position: relative;
    }

    .TSD-logo {
        height: 28px;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        padding: 12px 0 24px 0;
        z-index: 1000;
    }

    header nav.open {
        display: flex !important;
    }

    header nav a {
        font-size: 16px;
        padding: 16px 24px;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    header nav a:last-child {
        border-bottom: none;
    }

    .nav-right {
        display: none !important;
    }

    .mobile-nav-auth {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
        width: 100%;
    }

    .mobile-nav-auth .cta-button, 
    .mobile-nav-auth .sign-out-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 15px;
    }

    .mobile-nav-auth .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mobile-nav-auth .user-email {
        display: block !important;
        margin-bottom: 4px;
    }

    .nav-main {
        margin-left: 0;
    }

    .hamburger-btn {
        display: flex;
    }

    .section-title {
        font-size: 26px;
    }

    .calculator-container {
        padding: 24px;
    }

    .revenue-display {
        font-size: 28px;
    }

    .agent-profile {
        flex-direction: column;
        padding: 30px;
        text-align: center;
        align-items: center;
    }

    .timeline-dot {
        width: 40px;
        height: 40px;
    }

    .timeline-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .trust-logos {
        gap: 20px;
    }

    .trust-logo {
        font-size: 18px;
    }
}
