/* Gajo - Public Site Styles */
/* Primary: #2563eb | Dark: #0f172a | Light: #f8fafc | Font: Inter */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Header / Navbar ========== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: #1d4ed8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #2563eb;
    background: #eff6ff;
}

.nav-signin {
    color: #475569 !important;
}

.nav-signup-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.5rem 1.25rem !important;
}

.nav-signup-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #334155;
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        padding: 0.75rem 1rem;
    }
}

/* ========== Buttons ========== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.5;
    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-white {
    background: #ffffff;
    color: #2563eb;
    font-weight: 600;
}

.btn-white:hover {
    background: #f8fafc;
    color: #1d4ed8;
}

/* ========== Section Headers ========== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== CTA Section ========== */

.cta-section {
    background: #0f172a;
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Footer ========== */

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-links,
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a,
.footer-legal a {
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.footer .cp-link {
    color: #64748b;
    text-decoration: none;
}

.footer .cp-link:hover {
    color: #94a3b8;
}

/* ========== Alerts ========== */

.alert {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ========== Turnstile Widget ========== */

.turnstile-widget {
    margin-bottom: 1.5rem;
}

/* ========== Utilities ========== */

.text-center {
    text-align: center;
}

.text-muted {
    color: #64748b;
}

.mb-0 {
    margin-bottom: 0;
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}
