:root {
    --white: #ffffff;
    --black: #0a0a0a;
    --gray-900: #1a1a1a;
    --gray-700: #4a4a4a;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f4f5f7;
    --royal: #1d4ed8;
    --royal-deep: #1e3a8a;
    --royal-bright: #2563eb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body.landing-body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
}

.landing-body a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 24px));
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 10px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(26, 26, 26, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nav-logo img,
.brand-logo {
    height: 42px;
    width: auto;
    max-width: min(220px, 52vw);
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    mix-blend-mode: normal;
    filter: none;
    transition: filter 0.35s ease;
}

.nav:not(.is-scrolled) .nav-logo img,
.nav:not(.is-scrolled) .brand-logo {
    filter: brightness(0) invert(1);
}

.nav-logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--white);
    white-space: nowrap;
}

.nav.is-scrolled .nav-logo-text {
    color: var(--black);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav.is-scrolled .nav-links a {
    color: var(--gray-900);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.nav.is-scrolled .nav-links a:hover {
    background: rgba(37, 99, 235, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-login,
.btn-primary {
    background: var(--royal-bright);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-login {
    padding: 10px 20px;
    font-size: 0.92rem;
}

.btn-primary:hover,
.btn-login:hover {
    background: var(--royal);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 13px 24px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-hero {
    padding: 13px 24px;
    min-width: 150px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    cursor: pointer;
}

.nav.is-scrolled .nav-toggle {
    background: var(--gray-100);
    color: var(--black);
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 80% 20%, rgba(37, 99, 235, 0.28), transparent 55%),
        linear-gradient(165deg, #0a0a0a 0%, #161616 42%, #1e3a8a 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: 0;
    width: min(52vw, 620px);
    height: 58%;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 18px, transparent 18px 46px);
    clip-path: polygon(12% 100%, 12% 38%, 28% 38%, 28% 18%, 46% 18%, 46% 8%, 68% 8%, 68% 28%, 86% 28%, 86% 100%);
    opacity: 0.35;
    pointer-events: none;
}

.hero-inner {
    padding: 140px 0 80px;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.08;
    margin: 0 0 18px;
    font-weight: 600;
}

.hero p {
    font-size: 1.08rem;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section {
    padding: 96px 0;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    margin: 0 0 16px;
    color: var(--black);
}

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.about-copy p {
    color: var(--gray-700);
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.about-image {
    border-radius: 22px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
    background:
        linear-gradient(160deg, #111827 0%, #1e3a8a 55%, #2563eb 100%);
    position: relative;
}

.about-image::before {
    content: "";
    position: absolute;
    inset: 18% 12% 12% 18%;
    border: 1px solid rgba(255,255,255,0.28);
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 14px, transparent 14px 36px);
    clip-path: polygon(0 100%, 0 42%, 22% 42%, 22% 20%, 48% 20%, 48% 8%, 78% 8%, 78% 32%, 100% 32%, 100% 100%);
}

.contact {
    background: var(--gray-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.contact-card,
.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--royal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-item h3 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: var(--gray-900);
    font-weight: 600;
}

.contact-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    margin-bottom: 16px;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--royal-bright);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
}

.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.78);
    padding: 42px 0 28px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img,
.footer-logo .brand-logo {
    height: 46px;
    width: auto;
    max-width: min(240px, 70vw);
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    filter: brightness(0) invert(1);
    transition: filter 0.35s ease;
}

@media (prefers-color-scheme: dark) {
    .nav.is-scrolled {
        background: rgba(10, 10, 10, 0.55);
        border-color: rgba(255, 255, 255, 0.16);
    }

    .nav.is-scrolled .nav-logo-text,
    .nav.is-scrolled .nav-links a {
        color: rgba(255, 255, 255, 0.94);
    }

    .nav.is-scrolled .nav-toggle {
        background: rgba(255, 255, 255, 0.12);
        color: var(--white);
    }

    .nav-logo img,
    .brand-logo,
    .footer-logo img,
    .footer-logo .brand-logo {
        filter: brightness(0) invert(1);
    }

    @media (max-width: 860px) {
        .nav.is-scrolled .nav-links {
            background: rgba(10, 10, 10, 0.94);
        }
    }
}

@media (prefers-color-scheme: light) {
    .nav.is-scrolled .nav-logo img,
    .nav.is-scrolled .brand-logo {
        filter: none;
    }
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    margin: 18px 0 0;
    font-size: 0.88rem;
    text-align: center;
}

@media (max-width: 860px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 16px;
        background: rgba(10, 10, 10, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav.is-scrolled .nav-links {
        background: rgba(255, 255, 255, 0.97);
    }

    .nav.open .nav-links {
        display: flex;
    }

    .nav-links a,
    .nav .btn-login {
        width: 100%;
        text-align: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 280px;
    }

    .nav-logo-text {
        display: none;
    }

    .nav-logo img,
    .brand-logo {
        height: 34px;
        max-width: min(180px, 58vw);
    }
}
