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

:root {
    --bg: #f5f6fa;
    --ink: #0a0a3d;
    --ink-mid: #1a1a6d;
    --muted: #64748b;
    --accent: #4f6ef7;
    --accent-l: #3d5ce0;
    --white: #ffffff;
    --border: rgba(10, 10, 61, 0.1);
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo-icon { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.logo-icon img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.logo span { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.logo:hover { opacity: 0.85; }

nav { display: flex; gap: 4px; align-items: center; }
nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 8px; transition: all 0.15s; }
nav a:hover { color: white; background: rgba(255,255,255,0.08); }
nav a.active { color: white; background: rgba(255,255,255,0.1); }
nav .cta { background: var(--accent); color: white !important; padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; margin-left: 8px; transition: 0.15s; }
nav .cta:hover { background: var(--accent-l); }

.hero {
    position: relative;
    height: calc(100vh - 64px);
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.map-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    border: none;
    transform: translateX(-1%);
}

.hero-map-link {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 2;
    display: block;
    cursor: pointer;
}

.hero-left {
    position: relative;
    z-index: 3;
    width: 50%;
    min-height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 56px 80px 64px;
    box-shadow: 40px 0 80px 40px var(--bg);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(79,110,247,0.1);
    border: 1px solid rgba(79,110,247,0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    width: fit-content;
    animation: fadeUp 0.5s ease both;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-left h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 3.5vw, 3.8rem);
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 20px;
    animation: fadeUp 0.55s ease both 0.08s;
    letter-spacing: -0.01em;
}

.hero-left h1 em { color: var(--accent); }

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 420px;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease both 0.15s;
}

.search-wrap {
    animation: fadeUp 0.65s ease both 0.22s;
    max-width: 840px;
}

.search-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,255,0.98));
    padding: 7px;
    border-radius: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(132, 149, 255, 0.18);
    box-shadow:
        0 22px 42px rgba(10,10,61,0.08),
        inset 0 1px 0 rgba(255,255,255,0.92);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.search-box:focus-within {
    border-color: rgba(79,110,247,0.34);
    box-shadow:
        0 24px 46px rgba(79,110,247,0.12),
        inset 0 1px 0 rgba(255,255,255,0.94);
}

.search-box input {
    background: transparent;
    padding: 0 8px;
    border: none;
    flex: 1;
    font-size: 14px;
    outline: none;
    color: var(--ink);
    font-family: var(--sans);
    min-height: 40px;
}

.search-box input::placeholder { color: #b2b2b2; }

.search-box button {
    background: var(--ink);
    border: none;
    min-height: 46px;
    min-width: 58px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    color: white;
    cursor: pointer;
    font-family: var(--sans);
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
    box-shadow: 0 16px 30px rgba(10,10,61,0.16);
}

.search-box button:hover { background: var(--ink-mid); transform: translateY(-1px); }

.search-button-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-radius: 50%;
}

.search-button-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    right: -7px;
    bottom: -4px;
    transform: rotate(45deg);
    transform-origin: center;
}

.close-icon {
    margin-left: 2px;
    cursor: pointer;
    color: #aaa;
    display: none;
    font-size: 16px;
}

.search-box.active .close-icon { display: inline; }

.hero-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px 12px;
    margin-top: 28px;
    animation: fadeUp 0.7s ease both 0.28s;
    width: fit-content;
    max-width: 100%;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    font-size: 12px;
    font-weight: 800;
    color: #18205f;
    padding: 0 14px;
    border-radius: 100px;
    border: 1px solid rgba(132, 149, 255, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,255,0.98));
    box-shadow:
        0 18px 34px rgba(10,10,61,0.08),
        inset 0 1px 0 rgba(255,255,255,0.92);
    white-space: nowrap;
}

.hero-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.quick-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease both 0.34s;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(10, 10, 61, 0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,255,0.98));
    transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
    box-shadow:
        0 18px 34px rgba(10,10,61,0.08),
        inset 0 1px 0 rgba(255,255,255,0.96),
        0 0 0 1px rgba(255,255,255,0.55);
    justify-content: center;
    min-width: 0;
}

.quick-link:hover {
    border-color: rgba(79,110,247,0.24);
    transform: translateY(-1px);
    box-shadow:
        0 16px 28px rgba(79,110,247,0.12),
        inset 0 1px 0 rgba(255,255,255,0.98),
        0 0 0 1px rgba(255,255,255,0.62);
}
.quick-link.primary {
    background: linear-gradient(135deg, #4f6ef7, #4b5fe8);
    color: var(--white);
    border-color: transparent;
    box-shadow:
        0 20px 38px rgba(79,110,247,0.2),
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 0 18px rgba(79,110,247,0.18);
}
.quick-link.primary:hover {
    background: var(--accent-l);
    border-color: transparent;
    box-shadow:
        0 14px 26px rgba(79,110,247,0.2),
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 0 20px rgba(79,110,247,0.2);
}

.map-hint {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 4;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    pointer-events: none;
    animation: fadeUp 0.8s ease both 0.4s;
}

.map-hint::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
}

.features {
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    padding: 92px 64px 96px;
    border-top: 1px solid rgba(10,10,61,0.04);
}

.features-inner { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4f6ef7;
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.3rem, 4.2vw, 4rem);
    color: var(--ink);
    line-height: 1.06;
    margin-bottom: 22px;
    font-weight: 400;
    text-align: left;
    letter-spacing: -0.03em;
    max-width: 620px;
}

.section-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.8;
    margin-bottom: 60px;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: #f6f8ff;
    border-radius: 28px;
    border: 1px solid rgba(132, 149, 255, 0.16);
    padding: 54px 48px 44px;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    box-shadow:
        0 24px 46px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(37,99,235,0.10);
    border-color: rgba(79,110,247,0.22);
}

.icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(180deg, #eef2ff, #f7f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    flex-shrink: 0;
    border: 1px solid rgba(132, 149, 255, 0.14);
}

.icon img { width: 36px; height: 36px; object-fit: contain; }

.card h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 34px;
    flex: 1;
    max-width: 92%;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    border: 2px solid var(--ink);
    padding: 0 28px;
    border-radius: 16px;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
    align-self: flex-start;
    background: rgba(255,255,255,0.7);
}

.card-btn:hover {
    background: var(--ink);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(10,10,61,0.12);
}

footer { background: var(--ink); color: rgba(255,255,255,0.5); text-align: center; padding: 16px; font-size: 13px; margin-top: auto; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

header, .features, footer { transition: opacity 0.32s ease, transform 0.38s ease, filter 0.38s ease; }
.hero-left h1, .hero-sub, .search-wrap, .hero-eyebrow, .quick-links, .hero-pills { transition: opacity 0.32s ease, transform 0.38s ease, filter 0.38s ease; }

body.page-transitioning header,
body.page-transitioning .features,
body.page-transitioning footer { opacity: 0; transform: translateY(-18px); filter: blur(6px); }

body.page-transitioning .hero-left h1,
body.page-transitioning .hero-sub,
body.page-transitioning .hero-eyebrow,
body.page-transitioning .search-wrap,
body.page-transitioning .quick-links,
body.page-transitioning .hero-pills { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(10px); }

body.page-transitioning .map-container { transform: scale(1.08); filter: saturate(1.08); }

@media (max-width: 900px) {
    .hero { height: auto; min-height: 480px; }
    .hero-left { width: 100%; padding: 52px 24px 44px; box-shadow: 0 20px 60px 20px var(--bg); }
    .hero-map-link { width: 100%; left: 0; }
    .features { padding: 68px 24px 72px; }
    .cards { grid-template-columns: 1fr; }
    header { padding: 0 20px; }
    .map-container iframe { width: 165%; transform: translateX(-16%); }

    .search-box {
        padding: 8px;
        border-radius: 16px;
    }

    .search-box input {
        min-height: 42px;
        font-size: 14px;
    }

    .search-box button {
        min-height: 48px;
        min-width: 52px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 14px;
    }

    .hero-pills {
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-pill {
        min-height: 40px;
        font-size: 12px;
        padding: 0 14px;
        white-space: normal;
    }

    .quick-links { width: 100%; }

    .quick-link {
        min-height: 46px;
        font-size: 13px;
        padding: 0 18px;
        border-radius: 12px;
    }

    .card {
        padding: 36px 28px 30px;
        border-radius: 22px;
    }

    .icon {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
    }

    .card h3 {
        font-size: 1.32rem;
    }

    .card p {
        font-size: 14px;
        max-width: 100%;
    }

    .card-btn {
        min-height: 50px;
        font-size: 14px;
        border-radius: 14px;
    }
}