/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red-primary: #E4003A;
    --red-dark: #C70033;
    --blue-link: #003DA5;
    --text-dark: #1a1a1a;
    --bg-lavender: #d5d5e8;
    --white: #ffffff;
    --black: #1a1a1a;
    --footer-dark: #000000;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Header === */
.site-header {
    background: var(--white);
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-item .nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--red-primary);
    transition: color 0.2s;
    position: relative;
}

.nav-item .nav-link:hover {
    color: #000000;
}

.nav-item.current-menu-item .nav-link {
    color: #000000;
}

.nav-item.current-menu-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #000000;
}

.header-buttons-mobile {
    display: none !important;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-signup {
    background: var(--white);
    color: var(--red-primary);
    border: 2px solid var(--red-primary);
}

.btn-signup:hover {
    background: var(--red-primary);
    color: var(--white);
}

.btn-login {
    background: var(--red-primary);
    color: var(--white);
    border: 2px solid var(--red-primary);
}

.btn-login:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--red-primary) 0%, #ff4466 50%, #ff6688 100%);
    background-size: cover;
    background-position: center;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* DNA helix decorative elements */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-section::before {
    top: -100px;
    right: -100px;
    border: 40px solid var(--white);
}

.hero-section::after {
    bottom: -150px;
    left: -100px;
    border: 40px solid var(--white);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--white);
    font-weight: 400;
    opacity: 0.95;
}

/* === About Section === */
.about-section {
    background: var(--bg-lavender);
    padding: 60px 40px;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section strong {
    font-weight: 700;
}

.signup-link {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 600;
}

.signup-link:hover {
    color: var(--red-primary);
}

/* === Footer === */
.site-footer {
    background: var(--footer-dark);
}

.footer-founders {
    padding: 60px 40px;
    text-align: center;
}

.founders-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 40px;
}

.founders-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.founders-logos img {
    height: 100px;
    width: auto;
    transition: opacity 0.2s;
}

.founders-logos a:hover img {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

/* === Help Button === */
.help-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(228,0,58,0.4);
    z-index: 999;
    border: none;
    transition: transform 0.2s;
}

.help-button:hover {
    transform: scale(1.1);
}

/* === Scroll Animations === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Hero animations */
.hero-section .hero-title {
    animation: heroFadeDown 1s ease-out 0.2s both;
}

.hero-section .hero-subtitle {
    animation: heroFadeDown 1s ease-out 0.5s both;
}

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

/* Founder logos slide in from sides */
.founders-logos a:first-child {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.founders-logos a:last-child {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.founders-logos.animated a:first-child,
.founders-logos.animated a:last-child {
    opacity: 1;
    transform: translateX(0);
}

.founders-logos.animated a:last-child {
    transition-delay: 0.2s;
}

/* === Scroll to Top Button === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--red-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(228,0,58,0.35);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* === Responsive === */
@media (max-width: 1100px) {
    .site-header {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    }

    .main-nav.active {
        max-height: 500px;
        opacity: 1;
        padding: 20px;
    }

    /* Hamburger to X animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .main-nav .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .main-nav .nav-item {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav.active .nav-item:nth-child(1) { transition-delay: 0.05s; }
    .main-nav.active .nav-item:nth-child(2) { transition-delay: 0.1s; }
    .main-nav.active .nav-item:nth-child(3) { transition-delay: 0.15s; }
    .main-nav.active .nav-item:nth-child(4) { transition-delay: 0.2s; }

    .nav-item .nav-link {
        display: inline-block;
        padding: 12px 16px;
    }

    .nav-item.current-menu-item .nav-link::after {
        left: 16px;
        right: auto;
        width: calc(100% - 32px);
    }

    .header-buttons-desktop {
        display: none;
    }

    .main-nav.active .header-buttons-mobile {
        display: flex !important;
        gap: 12px;
        padding: 16px 16px 4px;
    }

    .hero-title {
        font-size: 42px;
    }

    .founders-logos {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 360px;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about-section {
        padding: 40px 20px;
    }

    .footer-founders {
        padding: 40px 20px;
    }

    .founders-logos {
        gap: 40px;
    }

    .founders-logos img {
        height: 45px;
    }
}
