/* ==========================================================================
   Landing / marketing site — shared design system
   Used by: landing, about-us, contact, privacy-policy, terms-of-service,
            contact-support, documentation, cookie-policy, api-documentation
   Single source of truth for the header (nav) and footer so they can never
   drift or "disconfigure" again when navigating between marketing pages.
   ========================================================================== */

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

:root {
    --primary: #232849;
    --primary-light: #2d3561;
    --secondary: #c41e3a;
    --accent: #d4a574;
    --light: #faf9f7;
    --dark: #171a30;
    --text: #2c3e50;
    --text-muted: #6b7280;
    --border: #e9ecef;
    --surface: #ffffff;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 3px rgba(23, 26, 48, 0.06), 0 1px 2px rgba(23, 26, 48, 0.04);
    --shadow-md: 0 8px 24px rgba(23, 26, 48, 0.08);
    --shadow-lg: 0 24px 48px rgba(23, 26, 48, 0.14);

    --container: 1400px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--light);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* --------------------------------------------------------------------
   Header / Navigation — identical markup + CSS on every marketing page
   -------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.logo .logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover { background: var(--light); }

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 26, 48, 0.55);
}

.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mobile-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    cursor: pointer;
}

.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer-links a {
    display: block;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border-radius: 8px;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a:active {
    background: var(--light);
    color: var(--secondary);
}

.mobile-drawer-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.mobile-drawer-cta .btn {
    text-align: center;
    width: 100%;
}

/* --------------------------------------------------------------------
   Shared inner-page header (About / Contact / Legal / Docs)
   -------------------------------------------------------------------- */
.page-hero {
    padding: 150px 40px 70px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(196, 30, 58, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(212, 165, 116, 0.10) 0%, transparent 45%),
        var(--light);
}

.page-hero .eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.08);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-header { text-align: center; margin-bottom: 50px; }

.section-header .eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.08);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Generic content surface used by legal / docs / support pages */
.content-card {
    max-width: 860px;
    margin: -40px auto 100px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 56px;
    position: relative;
    z-index: 2;
}

.content-card h2 {
    color: var(--primary);
    margin: 32px 0 14px;
    font-size: 1.4rem;
}

.content-card h2:first-child { margin-top: 0; }

.content-card h3 {
    color: var(--primary-light);
    margin: 24px 0 10px;
    font-size: 1.15rem;
}

.content-card p, .content-card li {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 12px;
}

.content-card ul, .content-card ol { padding-left: 22px; margin-bottom: 16px; }

@media (max-width: 640px) {
    .page-hero { padding: 120px 20px 50px; }
    .content-card { padding: 30px 22px; margin-top: -24px; border-radius: var(--radius-md); }
}

/* --------------------------------------------------------------------
   Footer — identical markup + CSS on every marketing page
   -------------------------------------------------------------------- */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-about i { color: var(--secondary); font-size: 2rem; }

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links { display: flex; gap: 12px; }

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

.social-links a:hover { background: var(--secondary); transform: translateY(-3px); }

.footer-links h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------
   Shared responsive breakpoints (nav + footer only — page sections
   handle their own responsive rules in their own <style> blocks)
   -------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: flex; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
    .nav-container { padding: 14px 20px; }
    .nav-cta { display: none; }
    .footer { padding: 50px 20px 24px; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .section-header h2 { font-size: 2rem; }
}
