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

:root {
    --red-primary: #e40246;
    --red-dark: #9f1239;
    --blue-primary: #0370ba;
    --blue-dark: #172554;
    --text-dark: #1a1a1a;
    --bg-lavender: #d1ceec;
    --white: #ffffff;
    --black: #000000;
    --footer-dark: #000000;
}

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

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

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

/* === Header === */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 16px 12px;
    gap: 12px;
}

.site-logo img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    max-width: none;
}

.main-nav-desktop {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

.main-nav-desktop .nav-menu {
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.nav-item .nav-link {
    font-size: 18px;
    font-weight: 400;
    color: var(--red-primary);
    transition: color 0.3s ease;
    position: relative;
    line-height: 24px;
    display: inline-block;
    padding-bottom: 4px;
}

.nav-item .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: transparent;
    transition: background 0.3s ease;
}

.nav-item .nav-link:hover {
    color: var(--black);
}

.nav-item .nav-link:hover::after {
    background: var(--black);
}

.nav-item.current-menu-item .nav-link {
    color: var(--black);
}

.nav-item.current-menu-item .nav-link::after {
    background: var(--black);
}

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

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

.header-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 0;
}

.site-logo {
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    transition: background-color 0.15s;
    cursor: pointer;
    white-space: nowrap;
    border: none;
}

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

.btn-signup:hover {
    background: var(--red-dark);
}

.btn-login {
    background: var(--blue-primary);
    color: var(--white);
}

.btn-login:hover {
    background: var(--blue-dark);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    color: var(--text-dark);
    padding: 0;
    align-items: center;
    justify-content: center;
}

/* === Mobile Slide-in Menu === */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 256px;
    background: var(--red-primary);
    z-index: 1200;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
    margin: 8px 8px 0 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-list .nav-item .nav-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    border-bottom: none;
    padding: 0;
    line-height: 1.4;
}

.mobile-nav-list .nav-item .nav-link::after {
    display: none;
}

.mobile-nav-list .nav-item .nav-link:hover {
    text-decoration: underline;
    color: var(--white);
}

.mobile-menu-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin: 32px 0;
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-mobile-signup {
    background: var(--white);
    color: var(--red-primary);
    text-align: center;
    padding: 12px 32px;
    border-radius: 32px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 400;
    border: none;
    transition: background 0.2s, color 0.2s;
}

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

.btn-mobile-login {
    background: var(--blue-primary);
    color: var(--white);
    text-align: center;
    padding: 12px 36px;
    border-radius: 32px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 400;
    border: none;
    transition: background 0.2s;
}

.btn-mobile-login:hover {
    background: var(--blue-dark);
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--white);
    font-weight: 400;
    opacity: 0.9;
    margin-top: 24px;
}

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

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

.about-section p {
    font-size: 20px;
    line-height: 1.5;
    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: 700;
}

.signup-link:hover {
    text-decoration: none;
}

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

.footer-founders {
    padding: 48px 16px;
    text-align: center;
}

.founders-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 32px;
}

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

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

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

.footer-bottom {
    padding: 24px 16px;
    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: 14px;
    transition: color 0.2s;
}

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

/* === 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;
}

/* === Page Content === */
.page-content-wrapper {
    padding: 0;
}

.page-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* === Page Banner === */
.page-banner {
    background: linear-gradient(135deg, var(--red-primary) 0%, #ff4466 50%, #ff6688 100%);
    padding: 60px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before,
.page-banner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.08;
}

.page-banner::before {
    top: -80px;
    right: -80px;
    border: 35px solid var(--white);
}

.page-banner::after {
    bottom: -100px;
    left: -80px;
    border: 35px solid var(--white);
}

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

.page-banner-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    animation: heroFadeDown 0.8s ease-out 0.2s both;
}

.page-breadcrumb {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    animation: heroFadeDown 0.8s ease-out 0.5s both;
}

.page-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.page-breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.7;
}

.breadcrumb-current {
    opacity: 0.9;
}

/* === FAQ Section === */
.faq-section {
    background: #f7f7fa;
    padding: 60px 20px 80px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category-group {
    margin-bottom: 40px;
}

.faq-category-group:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red-primary);
    display: inline-block;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s;
    gap: 16px;
}

.faq-question:hover {
    color: var(--red-primary);
}

.faq-question[aria-expanded="true"] {
    color: var(--red-primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f5;
    color: var(--text-dark);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: var(--red-primary);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.faq-answer-inner p {
    margin-bottom: 12px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-help-section {
    background-color: var(--bg-lavender);
    padding: 48px 24px;
    text-align: center;
}
.faq-help-container {
    max-width: 700px;
    margin: 0 auto;
}
.faq-help-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 16px;
}
.faq-help-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}
.faq-help-text a {
    color: var(--blue-primary);
    text-decoration: underline;
}

.faq-empty {
    text-align: center;
    font-size: 16px;
    color: #888;
    padding: 40px 0;
}

/* FAQ items stagger animation */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
}

.faq-category-group.animated .faq-item {
    animation: faqFadeUp 0.5s ease-out forwards;
}

.faq-category-group.animated .faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-category-group.animated .faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-category-group.animated .faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-category-group.animated .faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-category-group.animated .faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-category-group.animated .faq-item:nth-child(6) { animation-delay: 0.3s; }
.faq-category-group.animated .faq-item:nth-child(7) { animation-delay: 0.35s; }
.faq-category-group.animated .faq-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes faqFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 40px 20px 35px;
    }

    .page-banner-title {
        font-size: 28px;
    }

    .faq-section {
        padding: 40px 16px 60px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-answer-inner {
        padding: 0 18px 16px;
    }
}

/* === 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 - Large screens === */
@media (min-width: 640px) {
    .header-container {
        padding: 32px 16px;
        gap: 16px;
    }

    .site-logo img {
        height: 48px;
    }

    .btn {
        font-size: 16px;
        padding: 12px 36px;
        border-radius: 32px;
    }
}

@media (min-width: 1024px) {
    .nav-item .nav-link {
        line-height: 24px;
    }

    .main-nav .nav-menu {
        gap: 20px;
    }

    .btn {
        border-radius: 32px;
    }

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

@media (min-width: 1280px) {
    .header-container {
        padding: 32px 44px;
    }

    .site-logo img {
        height: 60px;
    }

    .main-nav .nav-menu {
        gap: 72px;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 96px 16px;
    }

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

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

    .about-section {
        padding: 76px 16px;
    }
}

/* === Responsive - Mobile === */
@media (max-width: 1100px) {
    .header-container {
        gap: 12px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: -1;
    }

    .main-nav-desktop {
        display: none;
    }

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

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

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

/* When hamburger is visible, show combined button instead of desktop buttons */
@media (max-width: 1100px) {
    .header-buttons-sm {
        display: flex !important;
        flex-grow: 1;
        justify-content: flex-end;
    }

    .header-buttons-sm .btn {
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 16px 12px;
        gap: 12px;
    }

    .header-buttons-sm .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 639px) {
    .hero-section {
        padding: 64px 16px;
    }

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

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

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

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

    .founders-logos {
        gap: 24px;
    }

    .founders-logos img {
        max-height: 60px;
    }
}
