:root {
    color-scheme: light;
    --color-bg: #f4f9fc;
    --color-text: #1f2933;
    --color-muted: #5f6c7b;
    --color-accent: #0056b3;
    --color-accent-dark: #004494;
    --color-surface: #ffffff;
    --shadow-elevated: 0 20px 40px rgba(0, 86, 179, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(0, 86, 179, 0.08), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(0, 86, 179, 0.12), transparent 55%),
                var(--color-bg);
    color: var(--color-text);
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(0, 86, 179, 0.35);
    outline-offset: 3px;
}

.site-header {
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

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

.brand img {
    width: clamp(52px, 10vw, 80px);
    height: auto;
}

.brand-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.015em;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
}

nav a {
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
}

.hero {
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(0, 86, 179, 0.12);
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-intro {
    margin: 0 auto;
    max-width: 640px;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.7;
    color: var(--color-muted);
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem clamp(1.5rem, 4vw, 2.75rem);
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-accent), #0073ff);
    color: white;
    box-shadow: 0 24px 35px rgba(0, 86, 179, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 45px rgba(0, 86, 179, 0.24);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 16px 28px rgba(0, 86, 179, 0.2);
}

.cta-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.signal-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 3vw, 1.75rem);
    padding: 0 clamp(0.5rem, 4vw, 1.5rem);
}

.signal-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    text-align: left;
    box-shadow: var(--shadow-elevated);
}

.signal-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--color-accent);
}

.signal-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-section {
    padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 6vw, 5rem);
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.feature-section h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.faq-section {
    padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 6vw, 5rem);
    background: rgba(0, 86, 179, 0.06);
}

.faq-section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
}

details {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
}

summary {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

summary::marker {
    display: none;
}

summary::after {
    content: '+';
    margin-left: auto;
    font-weight: 400;
    color: var(--color-accent);
    transition: transform 180ms ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.site-footer {
    padding: 2.5rem clamp(1.5rem, 6vw, 5rem) 3rem;
    background: #0a1c31;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.site-footer p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.noscript-form {
    max-width: 420px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 30px rgba(0, 86, 179, 0.15);
}

.noscript-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.noscript-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 1rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(10, 28, 49, 0.65);
    backdrop-filter: blur(12px);
    transition: opacity 200ms ease;
    z-index: 1000;
}

.modal-container {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 249, 252, 0.9) 100%);
    border-radius: calc(var(--radius-lg) * 1.1);
    padding: clamp(1.75rem, 4.5vw, 2.5rem);
    width: min(100%, 440px);
    box-shadow: 0 30px 50px rgba(0, 86, 179, 0.18);
    border: 1px solid rgba(0, 86, 179, 0.12);
    position: relative;
    overflow: hidden;
}

.modal-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 86, 179, 0.18), transparent 55%);
    opacity: 0.75;
    pointer-events: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: -0.015em;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted);
}

.modal-container form {
    margin-top: 1.75rem;
    display: grid;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    text-align: left;
}

.modal-container label {
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.01em;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.modal-container input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: calc(var(--radius-sm) * 1.15);
    border: 1.5px solid rgba(0, 86, 179, 0.16);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.modal-container input::placeholder {
    color: rgba(31, 41, 51, 0.45);
}

.modal-container input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.15), inset 0 1px 2px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.form-hint {
    margin-top: -0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.modal-container .cta-button {
    width: 100%;
    border-radius: 999px;
    box-shadow: 0 22px 35px rgba(0, 86, 179, 0.24);
}

.modal-container .cta-button:hover {
    box-shadow: 0 26px 45px rgba(0, 86, 179, 0.28);
}

.alert {
    border-left: 4px solid var(--color-accent);
    background: rgba(0, 86, 179, 0.08);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--color-accent);
}

.alert.error {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.09);
    color: #991b1b;
}

.modal-backdrop[hidden] {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 720px) {
    nav {
        display: none;
    }

    .hero {
        text-align: left;
    }

    .cta-group {
        align-items: flex-start;
    }

    .signal-group {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
