:root,
.dark {
    --background: #080d17;
    --foreground: #eef4ff;
    --card: #101827;
    --card-foreground: #eef4ff;
    --popover: #101827;
    --popover-foreground: #eef4ff;
    --muted: #111c2d;
    --muted-foreground: #94a3b8;
    --border: #233149;
    --input: #233149;
    --primary: #2563eb;
    --primary-foreground: #ffffff;
    --ring: #60a5fa;
    --accent: #112b50;
    --accent-foreground: #eef4ff;
    --destructive: #f87171;
    --radius: 0.75rem;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    background: #080d17;
}

body {
    min-width: 0;
    margin: 0;
    background:
        radial-gradient(circle at 82% 16%, rgb(37 99 235 / 12%), transparent 27rem),
        #080d17;
    color: #eef4ff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.site-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding-inline: 24px;
}

.site-header {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgb(35 49 73 / 78%);
}

.brand {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #eef4ff;
    font-size: 1.1rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    color: #3b82f6;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 24px;
}

.nav-links > a:not(.nav-cta) {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.91rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links > a:not(.nav-cta):hover {
    color: #eef4ff;
}

.btn {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.nav-cta {
    border-color: #233149;
    background: #101827;
    color: #eef4ff;
}

.nav-cta:hover {
    border-color: #3b82f6;
    background: #112b50;
}

.hero {
    display: grid;
    min-height: 660px;
    grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
    align-items: center;
    gap: clamp(36px, 6vw, 76px);
    padding-block: 92px 100px;
}

.hero-copy,
.route-visual {
    min-width: 0;
}

.route-badge,
.badge {
    gap: 8px;
    border: 1px solid #244b84;
    border-radius: 999px;
    padding: 6px 10px;
    background: #112b50;
    color: #93c5fd;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.hero h1 {
    max-width: 670px;
    margin: 22px 0 20px;
    font-size: clamp(2.4rem, 4vw, 3.35rem);
    font-weight: 780;
    letter-spacing: -0.065em;
    line-height: 0.99;
}

.hero h1 span {
    color: #3b82f6;
}

.hero-lead {
    max-width: 610px;
    margin: 0;
    color: #aebbd0;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.75;
}

.hero-lead code {
    color: #d9e7ff;
}

.address-form {
    max-width: 680px;
    margin-top: 34px;
}

.field > label {
    margin-bottom: 9px;
    color: #dbe8fa;
    font-size: 0.86rem;
    font-weight: 700;
}

.address-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 1px solid #2a3a54;
    border-radius: 10px;
    padding: 0.72rem 0.9rem;
    background: #0c1421;
    color: #eef4ff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.96rem;
}

.input::placeholder {
    color: #65758d;
}

.input:hover {
    border-color: #405679;
}

.input:focus {
    border-color: #60a5fa;
}

.input[aria-invalid="true"] {
    border-color: #f87171;
}

.primary-btn {
    min-height: 50px;
    padding-inline: 20px;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 12px 32px rgb(37 99 235 / 24%);
}

.primary-btn:hover {
    background: #1d4ed8;
}

.mapping {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 11px 0 0;
    color: #65758d;
    font-size: 0.78rem;
}

.mapping code:last-child {
    color: #8eb9ff;
}

.validation-error {
    margin: 8px 0 0;
    color: #fca5a5;
    font-size: 0.84rem;
}

.route-visual {
    position: relative;
}

.route-visual::before {
    position: absolute;
    z-index: -1;
    inset: 4% 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(37 99 235 / 22%), transparent 66%);
    content: "";
    filter: blur(18px);
}

.browser-card {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid #263752;
    border-radius: 18px;
    background: linear-gradient(150deg, rgb(18 29 48 / 98%), rgb(10 17 29 / 98%));
    box-shadow: 0 34px 80px rgb(0 0 0 / 32%), inset 0 1px 0 rgb(255 255 255 / 3%);
}

.browser-bar {
    display: grid;
    grid-template-columns: 8px 8px 8px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 54px;
    padding: 11px 14px;
    border-bottom: 1px solid #233149;
    background: #0d1523;
}

.browser-bar > span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #33435c;
}

.browser-bar > span:first-child {
    background: #2563eb;
}

.browser-address {
    min-width: 0;
    margin-left: 5px;
    overflow: hidden;
    border: 1px solid #233149;
    border-radius: 7px;
    padding: 7px 10px;
    background: #080d17;
    color: #9fb0c7;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.network-diagram {
    padding: 34px 20px 12px;
    color: #3b82f6;
}

.network-diagram svg {
    width: 100%;
    height: auto;
}

.node-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: -16px;
    color: #aab8cc;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.visual-note {
    margin: 20px 0 0;
    border-top: 1px solid #233149;
    padding: 17px 20px 18px;
    color: #72839b;
    font-size: 0.74rem;
    text-align: center;
}

.section-block {
    scroll-margin-top: 24px;
    border-top: 1px solid #1c293d;
    padding-block: 88px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 34px;
}

.eyebrow,
.example-label {
    color: #60a5fa;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 740;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.step-card {
    min-width: 0;
    min-height: 230px;
    gap: 0;
    border: 1px solid #233149;
    border-radius: 14px;
    padding: 24px;
    background: #101827;
}

.step-number {
    color: #3b82f6;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.step-card h3 {
    margin: 0 0 10px;
    font-size: 1.06rem;
    font-weight: 720;
}

.step-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
}

.step-card code {
    color: #bed7ff;
}

.address-example {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 18px;
    border: 1px solid #244b84;
    border-radius: 14px;
    padding: 25px 28px;
    background: linear-gradient(100deg, #101827, #0d1d35);
}

.address-example > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.address-example code {
    overflow-wrap: anywhere;
    color: #e4edfb;
    font-size: clamp(0.88rem, 1.7vw, 1.05rem);
}

.example-arrow {
    color: #3b82f6;
    font-size: 1.5rem;
}

.faq-section {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(36px, 7vw, 90px);
}

.faq-list {
    border-top: 1px solid #233149;
}

.faq-list details {
    border-bottom: 1px solid #233149;
}

.faq-list details::details-content {
    transition: none;
}

.faq-list summary {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 6px;
    padding-block: 15px;
    color: #e8effb;
    font-size: 0.98rem;
    font-weight: 680;
    list-style: none;
}

.faq-list summary svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #60a5fa;
    transition: transform 160ms ease;
}

.faq-list details[open] summary svg {
    transform: rotate(180deg);
}

.faq-list details > p {
    margin: 0;
    padding: 0 40px 22px 0;
    color: #94a3b8;
    font-size: 0.91rem;
    line-height: 1.7;
}

.faq-list code,
.faq-list a {
    color: #9bc3ff;
}

.site-footer {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid #1c293d;
    color: #667790;
    font-size: 0.82rem;
}

.footer-brand {
    color: #a9b8cd;
    font-size: 0.95rem;
}

.footer-brand .brand-mark {
    width: 25px;
    height: 25px;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
        gap: 36px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 7vw, 4.3rem);
    }
}

@media (max-width: 767px) {
    .site-shell {
        padding-inline: 20px;
    }

    .site-header {
        min-height: 0;
        flex-wrap: wrap;
        padding-block: 18px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 4px 18px;
    }

    .nav-cta {
        margin-left: auto;
    }

    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 54px;
        padding-block: 70px 82px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4.4rem);
    }

    .step-grid,
    .faq-section {
        grid-template-columns: 1fr;
    }

    .step-card {
        min-height: 200px;
    }

    .section-block {
        padding-block: 72px;
    }

    .faq-section {
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .site-header {
        align-items: flex-start;
    }

    .nav-links {
        align-items: stretch;
    }

    .nav-links > a:not(.nav-cta) {
        flex: 1 0 auto;
    }

    .nav-cta {
        width: 100%;
        margin-left: 0;
    }

    .hero {
        padding-top: 58px;
    }

    .hero h1 {
        margin-top: 18px;
        font-size: clamp(2.2rem, 10.8vw, 3rem);
        letter-spacing: -0.055em;
    }

    .address-controls {
        grid-template-columns: 1fr;
    }

    .primary-btn {
        width: 100%;
    }

    .browser-bar {
        grid-template-columns: 7px 7px 7px minmax(0, 1fr);
        gap: 5px;
        padding-inline: 10px;
    }

    .browser-bar > span {
        width: 7px;
        height: 7px;
    }

    .network-diagram {
        padding-inline: 10px;
    }

    .address-example {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }

    .example-arrow {
        transform: rotate(90deg);
        justify-self: start;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
