:root {
    color-scheme: light;
    --bg: #e9f4f7;
    --surface: #ffffff;
    --surface-soft: #d5e8ee;
    --text: #052f42;
    --muted: #527386;
    --line: #9bc3d0;
    --primary: #0078a8;
    --primary-strong: #045779;
    --accent: #ff6429;
    --accent-soft: #ffd3bf;
    --signal: #9ce08f;
    --page-gradient-end: #d5e8ee;
    --header-bg: rgba(233, 244, 247, 0.9);
    --pill-bg: rgba(255, 255, 255, 0.78);
    --showcase-start: #eef8fb;
    --cta-bg: #045779;
    --cta-text: #fffaf1;
    --shadow: 0 18px 45px rgba(5, 47, 66, 0.14);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #003f55;
    --surface: #064f6a;
    --surface-soft: #0a5b78;
    --text: #f3fbff;
    --muted: #7fa8bb;
    --line: #007eb5;
    --primary: #0198d8;
    --primary-strong: #7ec8df;
    --accent: #ff6429;
    --accent-soft: #173f4d;
    --signal: #9ce08f;
    --page-gradient-end: #064f6a;
    --header-bg: rgba(0, 63, 85, 0.9);
    --pill-bg: rgba(6, 79, 106, 0.78);
    --showcase-start: #075774;
    --cta-bg: #003f55;
    --cta-text: #f3fbff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 100, 41, 0.18), transparent 28rem),
        linear-gradient(135deg, var(--bg) 0%, var(--page-gradient-end) 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    transition: background 220ms ease, color 220ms ease;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(16px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    font-weight: 800;
    line-height: 1.1;
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    font-size: 1rem;
    letter-spacing: 0;
}

.brand-text {
    overflow-wrap: anywhere;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 650;
}

.nav-links a:hover {
    color: var(--text);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.theme-icon {
    width: 20px;
    height: 20px;
}

main {
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    width: min(1120px, calc(100% - 32px));
    min-height: calc(100vh - 75px);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero > * {
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.15rem;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 2px;
    background: var(--accent);
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(3rem, 6.3vw, 5.9rem);
    line-height: 0.92;
    letter-spacing: 0;
    overflow-wrap: normal;
    text-wrap: balance;
    word-break: normal;
}

.hero-copy {
    max-width: 610px;
    margin: 1.35rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    overflow-wrap: break-word;
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-top: 1.25rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--pill-bg);
    color: var(--accent);
    font-weight: 850;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 18px rgba(5, 47, 66, 0.1);
}

.button.primary {
    border-color: var(--primary-strong);
    background: var(--primary-strong);
    color: var(--bg);
}

[data-theme="dark"] .button.primary {
    color: #111411;
}

.button:hover {
    transform: translateY(-1px);
}

.showcase {
    display: grid;
    gap: 1rem;
    width: 100%;
    min-height: 0;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, var(--showcase-start), var(--surface)),
        var(--surface);
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.showcase::before {
    display: none;
}

.browser {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.browser-top {
    display: flex;
    gap: 0.4rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
}

.dot:nth-child(2) {
    background: var(--signal);
}

.dot:nth-child(3) {
    background: var(--muted);
}

.browser-body {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.bar {
    height: 12px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.bar:nth-child(1) {
    width: 64%;
    background: var(--primary);
}

.bar:nth-child(2) {
    width: 86%;
}

.bar:nth-child(3) {
    width: 72%;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.55rem;
}

.metric {
    min-height: 82px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    padding: 0.7rem;
}

.metric strong {
    display: block;
    color: var(--accent);
    font-size: 1.45rem;
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.floating-note {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.floating-note p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.floating-note strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-title {
    max-width: 720px;
    margin: 0 0 2rem;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
    letter-spacing: 0;
}

.section-title p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(28, 32, 30, 0.07);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
}

.service h3 {
    margin: 0;
    font-size: 1.25rem;
}

.service p {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.process {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.steps {
    display: grid;
    gap: 0.75rem;
}

.step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.step:last-child {
    border-bottom: 0;
}

.step-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 900;
}

.step h3 {
    margin: 0;
    font-size: 1.05rem;
}

.step p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, max-content);
    gap: 1.5rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: clamp(1.5rem, 4vw, 2.4rem);
    box-shadow: var(--shadow);
}

.cta h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
}

.cta p {
    max-width: 650px;
    margin: 0.75rem 0 0;
    color: rgba(255, 250, 241, 0.76);
}

.cta .button {
    border-color: rgba(255, 255, 255, 0.35);
    background: #fffaf1;
    color: #05344a;
    box-shadow: none;
    max-width: 100%;
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 1.75rem 0 2.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

svg {
    display: block;
}

@media (max-width: 860px) {
    .nav-links a {
        display: none;
    }

    .hero,
    .process,
    .cta {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        align-items: start;
    }

    .showcase {
        min-height: 0;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .cta .button {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .nav {
        width: min(100% - 24px, 1120px);
        gap: 0.75rem;
        padding: 0.85rem 0;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .brand {
        gap: 0.6rem;
        font-size: clamp(1rem, 5vw, 1.3rem);
    }

    .nav-links {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 48px;
        height: 42px;
    }

    .hero,
    .section,
    .site-footer {
        width: min(100% - 24px, 1120px);
    }

    .hero {
        gap: 2rem;
        padding: 3rem 0 3.5rem;
    }

    .eyebrow {
        align-items: flex-start;
        gap: 0.65rem;
        font-size: 0.76rem;
        line-height: 1.2;
    }

    .eyebrow::before {
        flex: 0 0 34px;
        margin-top: 0.45rem;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(2.55rem, 11vw, 3.2rem);
        line-height: 0.96;
    }

    .hero-copy {
        font-size: 1.08rem;
        line-height: 1.55;
    }

    .domain-pill {
        max-width: 100%;
    }

    .showcase {
        padding: 0.85rem;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        min-height: 64px;
    }

    .floating-note {
        width: 100%;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .step {
        grid-template-columns: 44px 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 380px) {
    .nav,
    .hero,
    .section,
    .site-footer {
        width: min(100% - 20px, 1120px);
    }

    .brand {
        font-size: 0.92rem;
        gap: 0.5rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .theme-toggle {
        width: 42px;
        height: 38px;
    }

    h1 {
        font-size: clamp(2.25rem, 10.5vw, 2.55rem);
    }

    .hero-copy {
        font-size: 1rem;
    }
}
