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

: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 {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #f5f3ff 0%, #e0e7ff 40%, #dbeafe 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.22);
    padding: 8px 0;
}

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

.TSD-logo {
    height: 34px;
    width: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

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

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

nav a:hover {
    color: var(--primary-blue);
}

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

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: var(--text-main);
}

.cta-button,
.sign-out-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-hover) 100%);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cta-button:hover,
.sign-out-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 92, 222, 0.2);
}

/* Specific to About Us */
.page-header {
    text-align: center;
    padding: 56px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.page-header-subtitle {
    text-align: center;
}

.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;
}

.mission-section {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
    margin: 28px 0;
}

.mission-content {
    max-width: 800px;
}

.mission-image {
    width: 100%;
    max-width: 600px;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--border-color);
}

/* Mission Visuals (Waveform) */
.mission-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mission-waveform {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.mission-visual-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    opacity: 0.75;
}

/* Tech Section */
.tech-section {
    padding-bottom: 20px;
    background-color: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.tech-card {
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(48, 92, 222, 0.3);
}

.tech-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(48, 92, 222, 0.08);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-card-icon {
    background: var(--primary-blue);
    color: #ffffff;
    transform: rotate(-5deg) scale(1.1);
}

.tech-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tech-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Impact Section - Professional Upgrade */
.impact-section {
    padding: 80px 40px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin: 60px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #f59e0b, #8b5cf6);
}

.impact-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-top: 56px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.impact-stat {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
    cursor: default;
}

.impact-stat:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.impact-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.impact-stat:hover .impact-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.impact-stat-icon--blue {
    background: rgba(48, 92, 222, 0.1);
    color: var(--primary-blue);
}

.impact-stat-icon--amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.impact-stat-icon--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.impact-stat-value {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
    line-height: 1;
}

.impact-stat--blue {
    color: var(--text-main);
}

.impact-stat--amber {
    color: var(--text-main);
}

.impact-stat--purple {
    color: var(--text-main);
}

/* On hover, bring back the colors for the values */
.impact-stat:hover .impact-stat--blue {
    color: var(--primary-blue);
}

.impact-stat:hover .impact-stat--amber {
    color: #f59e0b;
}

.impact-stat:hover .impact-stat--purple {
    color: #8b5cf6;
}

.impact-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.impact-stat-divider {
    width: 1px;
    height: auto;
    margin: 20px 0;
    background: var(--border-color);
    opacity: 0.8;
}

/* Values Section Enhancements */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 40px 0 60px 0;
}

.section-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin: 40px 0 60px 0;
}

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

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(48, 92, 222, 0.25);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 52px;
    height: 52px;
    background: rgba(48, 92, 222, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-blue);
}

/* Founders Section */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
    padding-bottom: 60px;
}

.founder-card {
    text-align: center;
    padding: 48px 40px;
    background: var(--card-bg);
    border: 1px solid rgba(48, 92, 222, 0.3);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.founder-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

/* About Intro & CTA */
.about-content {
    padding-top: 30px;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 0px;
    text-align: center;
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-cta {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
    border-radius: 0px;
}

.about-cta-text {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
}

.about-cta-btn {
    font-size: 16px;
    padding: 14px 40px;
}

/* Footer */
footer {
    background-color: #0f172a !important;
    color: #f8fafc;
    padding: 60px 0 40px;
    margin-top: auto;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

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

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

.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;
    color: #ffffff;
    text-decoration: none;
}

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

    header .container {
        padding: 8px 20px;
        position: relative;
    }

    .TSD-logo {
        height: 36px;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(240, 244, 255, 0.98);
        border-top: 1px solid rgba(99, 102, 241, 0.15);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        padding: 12px 0 24px;
        z-index: 1000;
    }

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

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

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

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

    .mobile-nav-auth .cta-button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .hamburger-btn {
        display: flex;
    }

    .mission-section {
        flex-direction: column;
        gap: 40px;
    }

    .impact-stats {
        flex-direction: column;
        gap: 32px;
    }

    .impact-stat-divider {
        width: 80px;
        height: 1px;
    }
}