:root {
    --al-ink: #0b1f24;
    --al-teal: #0e7490;
    --al-teal-deep: #0a5a6e;
    --al-mint: #5eead4;
    --al-sand: #e8f4f3;
    --al-fog: #f3faf9;
    --al-white: #ffffff;
    --al-muted: #4b656c;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --nav-h: 4.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--al-ink);
    background: var(--al-fog);
    padding-top: var(--nav-h);
}

code {
    font-size: 0.9em;
    color: var(--al-teal-deep);
    background: rgba(14, 116, 144, 0.08);
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
}

.brand-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar-logo,
.footer-logo {
    height: 36px;
    width: auto;
}

.site-nav {
    height: var(--nav-h);
    background: linear-gradient(110deg, #063842 0%, var(--al-teal) 55%, #0f8a8a 100%);
    box-shadow: 0 8px 28px rgba(6, 56, 66, 0.28);
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
}

.site-nav .nav-link:hover {
    color: #fff !important;
}

.locale-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.35rem;
}

.locale-sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.locale-link {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
    opacity: 0.7;
}

.locale-link.is-active {
    opacity: 1;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.btn-nav-cta {
    background: var(--al-white);
    color: var(--al-teal-deep);
    border: 0;
    font-weight: 600;
}

.btn-nav-cta:hover {
    background: var(--al-mint);
    color: var(--al-ink);
}

/* Hero — full-bleed composition */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--al-white);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(6, 56, 66, 0.25), rgba(14, 116, 144, 0.15)),
        url("/statics/images/hero.png") center/cover no-repeat,
        radial-gradient(ellipse at 20% 20%, #145f6e 0%, #063842 55%, #02161a 100%);
    transform: scale(1.04);
    animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(2, 22, 26, 0.82) 8%, rgba(2, 22, 26, 0.45) 52%, rgba(2, 22, 26, 0.2) 100%),
        linear-gradient(to top, rgba(2, 22, 26, 0.7), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4.5rem 0 5rem;
    max-width: 44rem;
    margin-left: 0;
    animation: hero-rise 0.9s ease-out both;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--al-mint);
    letter-spacing: -0.03em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 1rem;
    max-width: 18ch;
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-hero-primary {
    background: var(--al-mint);
    color: var(--al-ink);
    border: 0;
    font-weight: 700;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
}

.btn-hero-primary:hover {
    background: #99f6e4;
    color: var(--al-ink);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-weight: 600;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--al-ink);
}

.section-lead {
    color: var(--al-muted);
    font-size: 1.05rem;
    max-width: 36rem;
}

.section-intro {
    margin-bottom: 2.75rem;
}

.section-intro .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.benefits {
    background: var(--al-white);
}

.benefit {
    height: 100%;
    padding: 1.75rem 1.5rem;
    border-radius: 1rem;
    background: var(--al-fog);
    border: 1px solid rgba(14, 116, 144, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(14, 116, 144, 0.12);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--al-teal), #14b8a6);
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.benefit h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.benefit p {
    color: var(--al-muted);
    margin: 0;
    line-height: 1.55;
}

.how {
    background:
        radial-gradient(circle at 90% 10%, rgba(94, 234, 212, 0.2), transparent 40%),
        var(--al-sand);
}

.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    max-width: 44rem;
    margin-inline: auto;
}

.how-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--al-white);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(14, 116, 144, 0.1);
}

.how-num {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: var(--al-teal);
    color: #fff;
}

.how-steps h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 0.35rem;
}

.how-steps p {
    margin: 0;
    color: var(--al-muted);
}

.btn-outline-teal {
    border: 1.5px solid var(--al-teal);
    color: var(--al-teal-deep);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
}

.btn-outline-teal:hover {
    background: var(--al-teal);
    color: #fff;
}

.faq {
    background: var(--al-white);
}

.narrow {
    max-width: 48rem;
}

.accordion-item {
    border: 1px solid rgba(14, 116, 144, 0.12);
    margin-bottom: 0.65rem;
    border-radius: 0.75rem !important;
    overflow: hidden;
}

.accordion-button {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--al-ink);
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(14, 116, 144, 0.08);
    color: var(--al-teal-deep);
}

.contact {
    background: linear-gradient(120deg, #063842, var(--al-teal) 60%, #0f766e);
    color: #fff;
}

.contact .section-title,
.contact .section-lead {
    color: #fff;
}

.contact .section-lead {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.site-footer {
    background: #02161a;
    color: rgba(255, 255, 255, 0.78);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-links a,
.footer-mail {
    color: var(--al-mint);
    text-decoration: none;
}

.footer-links a:hover,
.footer-mail:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
}

@keyframes hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .hero-content {
        padding: 3rem 0 3.5rem;
    }

    .brand-wordmark {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media,
    .hero-content,
    .benefit {
        animation: none !important;
        transition: none !important;
    }
}

.docs-teaser {
    background: linear-gradient(120deg, rgba(14, 116, 144, 0.08), rgba(94, 234, 212, 0.12));
}

/* Operator login */
.page-login {
    padding-top: 0;
}

.page-login .site-nav {
    background: rgba(11, 31, 36, 0.92);
}

.login-shell {
    min-height: calc(100dvh - var(--nav-h));
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(94, 234, 212, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(14, 116, 144, 0.18), transparent 50%),
        linear-gradient(165deg, var(--al-fog), var(--al-sand));
}

.login-panel {
    width: min(100%, 26rem);
    text-align: center;
    padding: 2.25rem 1.75rem;
}

.login-logo {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.login-brand {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--al-ink);
}

.login-lead {
    color: var(--al-muted);
    margin: 0 0 1.5rem;
    font-size: 0.98rem;
}

.login-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
    font-size: 0.9rem;
    text-align: left;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    background: var(--al-ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-google:hover {
    background: var(--al-teal-deep);
    color: #fff;
    transform: translateY(-1px);
}

.login-back {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
}

.login-back a {
    color: var(--al-teal);
    text-decoration: none;
}

.login-back a:hover {
    text-decoration: underline;
}
