@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #101a36;
    --blue: #365cf5;
    --blue2: #6984ff;
    --muted: #68728a;
    --line: #e7eaf2;
    --bg: #f7f8fc;
    --white: #fff;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: Manrope, Arial, sans-serif;
    color: var(--navy);
    background: #fff;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Header and navigation */
.site-header {
    height: 78px;
    border-bottom: 1px solid #edf0f6;
    background: rgba(255, 255, 255, 0.94);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1160px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--blue);
    color: white;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 20px #365cf52b;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: #59637b; font-size: 13px; font-weight: 700; }
.main-nav a:hover { color: var(--blue); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); font-size: 25px; }

/* Hero section */
.hero {
    max-width: 1160px;
    min-height: 500px;
    margin: 0 auto;
    padding: 86px 24px 94px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
}

.eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
    margin: 20px 0;
    font-size: clamp(38px, 5vw, 61px);
    line-height: 1.13;
    letter-spacing: -0.055em;
}

.hero h1 span { color: var(--blue); }
.hero-content > p { max-width: 520px; margin-bottom: 30px; color: var(--muted); font-size: 16px; }

.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-button { background: var(--blue); color: #fff; box-shadow: 0 10px 24px #365cf52b; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px #365cf53d; }
.secondary-button { border: 1px solid #dfe4f1; background: white; }

.hero-art {
    min-height: 315px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 35px;
    background: radial-gradient(ellipse at center, #e7ecff 0, #f4f6ff 43%, #fff 73%);
}

.orbit { position: absolute; border: 1px solid #b9c6ff; border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 340px; height: 170px; }
.orbit-two { width: 390px; height: 240px; transform: rotate(35deg); border-color: #d4dcff; }

.code-card {
    z-index: 1;
    width: min(350px, 80%);
    padding: 22px 25px 26px;
    border-radius: 18px;
    background: #111a35;
    color: #dce5ff;
    box-shadow: 0 24px 55px #101a3630;
    transform: rotate(-3deg);
}

.code-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #ff6c85; }
.code-dot:nth-child(2) { background: #ffd36b; }
.code-dot:nth-child(3) { background: #5fe0ae; }
.code-card pre { margin: 17px 0 0; font-size: 13px; line-height: 2; white-space: pre-wrap; }
.code-card pre span { color: #9daeff; }
.code-card pre b { color: #80e8c1; font-weight: 600; }

.floating-chip {
    position: absolute;
    z-index: 2;
    padding: 10px 14px;
    border: 1px solid #edf0ff;
    border-radius: 12px;
    background: white;
    color: var(--blue);
    font-weight: 800;
    box-shadow: 0 12px 25px #18275514;
}

.chip-top { top: 40px; right: 32px; }
.chip-bottom { bottom: 38px; left: 28px; font-size: 12px; letter-spacing: 0.2em; }

/* General sections */
.section { padding: 82px 24px; }
.audience-section { background: var(--bg); }
.section-heading { max-width: 1160px; margin: 0 auto 34px; }

.section-heading h2, .contact-copy h2 {
    margin: 12px 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

/* Audience cards */
.audience-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.audience-card {
    position: relative;
    min-height: 190px;
    padding: 25px 24px 27px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}

.audience-card:hover, .audience-card.active {
    border-color: #b8c5ff;
    box-shadow: 0 12px 32px #1e34700b;
    transform: translateY(-3px);
}

.audience-card.active { background: linear-gradient(140deg, #fff, #f5f7ff); }
.card-icon { margin-bottom: 18px; font-size: 25px; }
.card-title { margin-bottom: 7px; font-size: 16px; font-weight: 800; }
.card-description { max-width: 260px; color: var(--muted); font-size: 12px; }
.card-arrow { position: absolute; top: 23px; right: 22px; color: var(--blue); font-size: 18px; }

/* Information sections */
.directions-section { max-width: 1210px; margin: 0 auto; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-note { padding-bottom: 8px; color: var(--muted); font-size: 11px; }

.direction-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.direction-menu { display: flex; flex-direction: column; gap: 7px; }

.direction-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    color: #5d6780;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.direction-button span { font-size: 17px; }
.direction-button:hover { background: #f7f8ff; }
.direction-button.active { border-color: #e0e6ff; background: #edf1ff; color: var(--blue); }

.content-panel {
    min-height: 310px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px #18275508;
}

.content-panel-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ac99b; }
.content-panel h3 { margin: 17px 0; font-size: 22px; letter-spacing: -0.03em; }

.content-text {
    color: #4e5871;
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.content-text p { margin: 0 0 13px; }
.content-text ul { padding-left: 22px; }

.content-text a {
    color: var(--blue);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.content-text a:hover { color: var(--navy); }

.content-footnote {
    margin: 22px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: #8790a5;
    font-size: 10px;
}

.download-area { margin-top: 18px; }

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #edf1ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

/* Contact section */
.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 52px max(24px, calc((100% - 1112px) / 2));
    background: #111a35;
    color: white;
}

.contact-copy .eyebrow { color: #aab8ff; }
.contact-copy h2 { margin-bottom: 9px; }
.contact-copy p { margin-bottom: 0; color: #b8c1d8; font-size: 13px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .secondary-button { border-color: #46506c; background: transparent; color: white; }

/* Footer */
.site-footer {
    max-width: 1160px;
    margin: 0 auto;
    padding: 25px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #7b8499;
    font-size: 10px;
}

.site-footer p { margin: 0; }
.footer-brand { color: var(--navy); font-size: 12px; font-weight: 800; }
.footer-brand span { color: var(--muted); font-weight: 500; }

/* Status and error messages */
.error-message { padding: 14px 16px; border-radius: 10px; background: #fff5f4; color: #9b3535; font-size: 12px; }
.loading-message { color: var(--muted); }

/* Responsive layout */
@media (max-width: 760px) {
    .site-header { height: 70px; }
    .menu-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 69px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
        padding: 15px 24px 22px;
        border-bottom: 1px solid var(--line);
        background: white;
    }

    .main-nav.open { display: flex; }
    .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 58px; padding-bottom: 60px; }
    .hero-art { min-height: 270px; }
    .hero h1 { font-size: 42px; }
    .section { padding: 60px 20px; }
    .audience-grid { grid-template-columns: 1fr; }
    .audience-card { min-height: 150px; }
    .section-heading-row { display: block; }
    .section-note { display: block; margin-top: 14px; }
    .direction-layout { grid-template-columns: 1fr; }
    .direction-menu { display: grid; grid-template-columns: 1fr 1fr; }
    .direction-button { padding: 11px; font-size: 11px; }
    .content-panel { padding: 22px 20px; }
    .contact-section { display: block; padding: 42px 22px; }
    .contact-actions { margin-top: 23px; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 420px) {
    .brand-copy strong { font-size: 13px; }
    .hero h1 { font-size: 36px; }
    .direction-menu { grid-template-columns: 1fr; }
    .direction-button { font-size: 12px; }
    .contact-actions { flex-direction: column; align-items: stretch; }
}
