/* === COLOR PALETTE & THEME TOKENS === */
/* Brand palette from your style guide images */

:root {
    /* base brand colors */
    --color-navy: #001B42;
    --color-yellow: #FFC000;
    --color-yellow-deep: #E7AE12;
    --color-gray-800: #404040;
    --color-gray-700: #6E6E6E;
    --color-gray-900: #2B2B2B;
    --color-blue: #0070C0;

    /* semantic tokens – LIGHT THEME DEFAULTS */
    --bg-page: #ffffff;
    --bg-gray: #f5f5f7;
    --bg-dark-section: #001B42;

    --header-bg: #ffffff;
    --header-border: #e1e4eb;

    --card-light: #ffffff;
    --card-dark: #001B42;

    --text-main: #001B42;
    --text-muted: #6E6E6E;

    --nav-link: #6E6E6E;
    --nav-link-hover: #001B42;

    --pill-blue: #001B42;

    --accent-yellow: #FFC000;
    --accent-yellow-deep: #E7AE12;

    --footer-bg: #fafbff;
    --tagline-color: #404040;
}

/* Dark theme overrides via body class */

body.theme-dark {
    --bg-page: #2B2B2B;
    --bg-gray: #2B2B2B;
    --bg-dark-section: #404040;

    --header-bg: #404040;
    --header-border: #404040;

    --card-light: #2B2B2B;
    --card-dark: #2B2B2B;

    --text-main: #ffffff;
    --text-muted: #d0d0d0;

    --nav-link: #e0e0e0;
    --nav-link-hover: #FFC000;

    --pill-blue: #001B42;

    --footer-bg: #2B2B2B;
    --tagline-color: #ffffff;
}

/* === GLOBAL RESET === */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
}

/* Layout helper */

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

/* === HEADER / NAVBAR === */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    gap: 1.5rem;
}

/* LOGO + WORDMARK */

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    white-space: nowrap;
}

.logo-wordmark {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 2.1rem;   /* big like the mock */
    letter-spacing: 0.02em;
    line-height: 1.05;
}

.logo-name {
    color: var(--color-navy);
}

body.theme-dark .logo-name {
    color: #ffffff;
}

.logo-ai {
    margin-left: 0.25rem;
    color: var(--accent-yellow);
    font-weight: 500;
}

.logo-tagline {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--tagline-color);
}

/* NAV LINKS */

.main-nav {
    display: flex;
    gap: 1.4rem;
    font-size: 0.95rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--nav-link);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--nav-link-hover);
    border-bottom-color: var(--accent-yellow);
}

/* NAV ACTIONS + TOGGLE */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-actions .btn-outline {
    border: 1px solid var(--color-navy);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-navy);
    font-size: 0.9rem;
    font-weight: 500;
}

body.theme-dark .nav-actions .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

/* MOBILE NAV TOGGLE BUTTON (burger) */

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 1.1rem;
    cursor: pointer;
}

body.theme-dark .nav-toggle {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

/* BIG, VISIBLE THEME TOGGLE */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    background-color: #f3f4f6;
    color: var(--color-navy);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

body.theme-dark .theme-toggle {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: #2B2B2B;
    color: var(--accent-yellow);
}

/* === BUTTONS === */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, opacity 0.12s ease;
    gap: 0.35rem;
}

.btn-icon {
    font-size: 1rem;
}

.btn-cta-yellow {
    background-color: var(--accent-yellow);
    color: #111;
    box-shadow: 0 10px 24px rgba(255, 196, 0, 0.45);
}

.btn-cta-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 196, 0, 0.55);
}

.btn-cta-blue {
    background-color: var(--color-navy);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 27, 66, 0.45);
}

.btn-cta-blue:hover {
    background-color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 112, 192, 0.55);
}

/* === HERO SECTION === */

.hero-section {
    padding: 4.5rem 0 3.5rem;
    background-color: var(--bg-page);
}

.hero-inner {
    max-width: 880px;
}

.hero-tagline {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background-color: #f1f5ff;
    font-size: 0.8rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

body.theme-dark .hero-tagline {
    background-color: #001B42;
    color: #ffffff;
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hero-text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 1.6rem;
}

body.theme-dark .hero-text {
    color: #e0e0e0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.pill {
    padding: 0.35rem 1.4rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.pill-blue {
    background-color: var(--pill-blue);
    color: #ffffff;
    border: 1px solid #012547;
}

/* === SECTION HEADERS === */

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 2rem;
}

/* === BASE CARD STYLE === */

.info-card {
    border-radius: 22px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    background-color: var(--card-light);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.info-card-dark {
    background-color: var(--card-dark);
    color: #f8fafc;
}

body.theme-dark .info-card {
    background-color: var(--card-light);
}

.info-card-elevated:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}

.info-card-icon {
    height: 32px;
    width: 32px;
    border-radius: 999px;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.info-card-title,
.info-card-subtitle {
    margin: 0;
}

.info-card-title {
    font-size: 1.05rem;
}

.info-card-subtitle {
    font-size: 0.96rem;
}

.bordered {
    padding-bottom: 2px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.22);
}

/* Default card body text */
.info-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4f5665;
}

/* Keep light text for dark cards */
.info-card.info-card-dark p,
.section-dark .info-card.info-card-dark p {
    color: #e2e6f4;
}

/* === MISSION & VALUES SECTION === */

.section-mission {
    background-color: var(--bg-gray);
    padding: 2.4rem 0 2.4rem;
}

body.theme-dark .section-mission {
    background-color: #333333;
}

.section-mission .section-title {
    margin-bottom: 0.3rem;
}

.section-mission .section-subtitle {
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
}

/* Hero tagline centered pill like screenshot */
.hero-tagline-wide {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 1.6rem;
    border-radius: 999px;
    background-color: var(--pill-blue);
    color: #ffffff;
    font-size: 0.82rem;
    margin-bottom: 1.3rem;
}

/* Mission: single long card */
.mission-long-card {
    width: 100%;
}

/* Who we help & how layout */

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.6rem 2rem;
}

.who-card {
    background-color: #f6f7fb;
    border-radius: 26px;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    border: 1px solid #e1e4f2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.theme-dark .who-card {
    background-color: #2b2b2b;
    border-color: #444;
}

.who-card-icon {
    flex: 0 0 46px;
    height: 46px;
    border-radius: 16px;
    background-color: var(--pill-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
}

.who-card-body {
    flex: 1;
}

.who-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: #111111;
}

body.theme-dark .who-card-title {
    color: #ffffff;
}

.who-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4f5665;
}

body.theme-dark .who-card p {
    color: #d3d3d3;
}

.info-card:not(.info-card-dark) p {
    color: #4f5665;
}

@media (max-width: 768px) {
    .who-grid {
        grid-template-columns: 1fr;
    }
}

/* === HOW IT WORKS – CARD ROW === */

.how-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.how-card {
    background-color: #f8f8f8;
    border-radius: 28px;
    box-shadow: 0 0 0 1px #e0e0e0;
    padding: 1.4rem 1.5rem;
    text-align: left;
    min-height: 230px;
}

.how-card .info-card-title {
    font-weight: 600;
    font-size: 1.02rem;
    margin-bottom: 0.8rem;
}

.how-card p {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #4f5665;
}

/* dark mode variant */
body.theme-dark .how-card {
    background-color: #2b2b2b;
    box-shadow: 0 0 0 1px #555555;
}

body.theme-dark .how-card p {
    color: #e0e0e0;
}

/* responsive: fewer columns on small screens */
@media (max-width: 1100px) {
    .how-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .how-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 550px) {
    .how-grid {
        grid-template-columns: 1fr;
    }
}

/* HOW IT WORKS – BOTTOM PILL BAR */

.how-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.8rem;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    background-color: #001B42;
    color: #ffffff;
    font-size: 0.86rem;
    box-shadow: 0 4px 10px rgba(0, 27, 66, 0.35);
    text-align: center;
}

body.theme-dark .how-pill {
    background-color: #001B42;
    color: #ffffff;
}

/* === SECURITY & INTEGRATIONS SECTION === */

.section-security {
    /* uses section-white background; this just tightens spacing a bit if needed */
}

.section-security .section-title {
    margin-bottom: 0.25rem;
}

.section-security .section-subtitle {
    margin-bottom: 2.1rem;
}

.security-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

.security-card {
    background-color: #2B2B2B;
    color: #ffffff;
    border-radius: 32px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.security-card-title {
    margin: 0 0 0.9rem;
    font-size: 1.02rem;
    font-weight: 600;
}

.security-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f3f3f3;
}

.security-subheading {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0 0 1.8rem;
}

/* Dark mode variant: keep structure, just tweak contrast */
body.theme-dark .section-security {
    background-color: var(--bg-page);
}

body.theme-dark .security-card {
    background-color: #404040;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

body.theme-dark .security-card p {
    color: #f5f5f5;
}

/* Responsive behavior for security */

@media (max-width: 992px) {
    .security-row {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    .security-row {
        grid-template-columns: 1fr;
    }
}

/* Mission grids */

.mission-grid-large {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.mission-grid-small {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
}

/* Extra compact cards only inside mission */
.info-card-compact {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    min-height: 110px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.section-mission .info-card-icon {
    height: 26px;
    width: 26px;
    font-size: 0.9rem;
}

.section-mission .info-card-title,
.section-mission .info-card-subtitle {
    font-size: 0.94rem;
}

.section-mission .info-card p {
    font-size: 0.84rem;
    color: #dde0ea;
}

/* === GENERAL SECTIONS === */

.section-white {
    background-color: var(--bg-page);
    padding: 3.2rem 0;
}

.section-dark {
    background-color: var(--bg-dark-section);
    color: #f7f8ff;
    padding: 3.2rem 0;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-dark .section-subtitle {
    color: #c6cbdd;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.info-card.info-card-dark p,
.section-dark .info-card.info-card-dark p {
    color: #e2e6f4;
}

/* Demo form */

.demo-section .demo-form {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.demo-form input {
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccd2e0;
    font-size: 0.92rem;
}

body.theme-dark .demo-form input {
    background-color: #2b2b2b;
    border-color: #555555;
    color: #ffffff;
}

.demo-form input:focus {
    outline: none;
    border-color: var(--color-navy);
}

/* Footer */

.site-footer {
    border-top: 1px solid #e4e6ef;
    padding: 1.5rem 0;
    background-color: var(--footer-bg);
}

.footer-inner {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.disclaimer {
    font-size: 0.8rem;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.4;
    color: #6b7280;
}

body.theme-dark .disclaimer {
    color: #d0d0d0;
}

/* === FAQ SECTION – navy pills, always open === */

.section-faq {
    background-color: #f5f7fb;
    padding: 4rem 0;
}

body.theme-dark .section-faq {
    background-color: #333333;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-pill {
    background-color: var(--pill-blue);
    border-radius: 28px;
    padding: 0.9rem 1.6rem 1.1rem;
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(0, 27, 66, 0.6);
}

.faq-question-text {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 600;
}

.faq-answer-text {
    margin: 0;
    font-size: 0.9rem;
    color: #e5ecff;
}

/* === CONTACT SECTION === */

.section-contact {
    background-color: var(--bg-page);
    padding: 3.4rem 0 3.8rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 1.8rem;
}

.contact-card {
    border-radius: 32px;
    background-color: var(--pill-blue);
    border: 2px solid #0b5bb3;
    box-shadow: 0 20px 40px rgba(0, 43, 92, 0.5);
    color: #ffffff;
    padding: 1.6rem 1.8rem;
}

.contact-form-card {
    display: flex;
    align-items: stretch;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    background-color: #012547;
    border-radius: 18px;
    border: 1px solid #0b5bb3;
    padding: 0.7rem 0.9rem;
    color: #f8fafc;
    font-size: 0.92rem;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8ea5cb;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-yellow);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-actions {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.contact-main-btn {
    box-shadow: 0 14px 30px rgba(255, 196, 0, 0.6);
}

.contact-secondary-btn {
    background-color: #012547;
    color: #ffffff;
    border: 1px solid #0b5bb3;
}

.contact-secondary-btn:hover {
    background-color: #003a6d;
}

/* Right card */

.contact-info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.contact-info p {
    margin: 0 0 0.8rem;
    font-size: 0.96rem;
}

.contact-info-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: #cfd8f3;
}

/* === RESPONSIVE === */

/* 900px: layout + mobile nav behavior */

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-wrap: wrap;
        align-items: center;
        height: auto;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .logo-text-group {
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
        display: none;              /* hidden by default on mobile */
    }

    .main-nav.is-open {
        display: flex;              /* shown when toggled */
    }

    .nav-actions {
        order: 3;
        margin-top: 0.4rem;
    }

    .logo-link {
        order: 1;
    }
}

/* 768px: hero + forms refinements */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.15rem;
    }

    .hero-section {
        padding-top: 3.5rem;
    }

    .contact-row {
        grid-template-columns: 1fr;
    }
}

/* 600px: tighter sections, cards & better touch targets */

@media (max-width: 600px) {
    /* Global section padding */
    .section-white,
    .section-dark,
    .section-mission,
    .section-faq,
    .section-contact,
    .demo-section {
        padding: 2.2rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.4rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .hero-inner {
        max-width: 100%;
    }

    /* Cards more compact on mobile */
    .info-card,
    .who-card,
    .how-card,
    .security-card {
        min-height: auto;
        padding: 1.1rem 1.2rem;
        border-radius: 20px;
    }

    .section-mission {
        padding: 2rem 0;
    }

    .mission-grid-large,
    .mission-grid-small {
        gap: 0.7rem;
    }

    .info-card-compact {
        padding: 0.9rem 1rem;
        min-height: 105px;
    }

    /* Forms & buttons – touch friendly */
    .demo-form input,
    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 0.7rem 0.9rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-actions .btn {
        width: auto;  /* keep side-by-side if space allows */
    }
}

/* 480px: logo & wordmark tweaks */

@media (max-width: 480px) {
    .logo-img {
        height: 48px;
    }

    .logo-wordmark {
        font-size: 1.7rem;
    }
}
