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

:root {
    --ink: #101214;
    --ink-soft: #34393f;
    --muted: #8f9aa4;
    --page: #090c0f;
    --surface: #11161b;
    --surface-soft: #171e24;
    --surface-steel: #222b33;
    --line: rgba(248, 251, 252, 0.12);
    --line-strong: rgba(248, 251, 252, 0.34);
    --dark: #0c0f12;
    --dark-soft: #151a1f;
    --dark-panel: rgba(18, 22, 26, 0.86);
    --line-dark: rgba(243, 247, 249, 0.14);
    --white: #f8fbfc;
    --white-soft: #c9d1d8;
    --accent: #b33a3a;
    --accent-soft: rgba(179, 58, 58, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --card-radius: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.24);
    --shadow-dark: 0 26px 90px rgba(0, 0, 0, 0.38);
    --fs-h1: 6.2rem;
    --fs-h2: 3.4rem;
    --fs-h3: 1.35rem;
    --fs-lead: 1.14rem;
}

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

body {
    min-width: 320px;
    background:
        linear-gradient(90deg, transparent 0 63px, rgba(248, 251, 252, 0.045) 63px 64px, transparent 64px 128px),
        linear-gradient(0deg, transparent 0 63px, rgba(248, 251, 252, 0.038) 63px 64px, transparent 64px 128px),
        radial-gradient(circle at 16% 16%, rgba(248, 251, 252, 0.055), transparent 28%),
        radial-gradient(circle at 78% 42%, rgba(179, 58, 58, 0.08), transparent 34%),
        var(--page);
    background-attachment: fixed;
    background-size: 128px 128px, 128px 128px, auto, auto, auto;
    color: var(--white);
    font-family: "Inter", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-light {
    background: var(--page);
    color: var(--white);
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-heading {
    max-width: 850px;
}

.section-heading.centered {
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading h2,
.contact-copy h2 {
    font-size: var(--fs-h2);
    line-height: 1.1;
    letter-spacing: 0;
    text-wrap: balance;
}

.section-heading h2 span,
.contact-copy h2 span {
    display: block;
}

.section-heading h2 span + span,
.contact-copy h2 span + span {
    margin-top: 0.14em;
}

.section-heading p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--muted);
    font-size: var(--fs-lead);
}

.section-dark .section-heading p:not(.eyebrow),
.section-light .section-heading p:not(.eyebrow) {
    color: rgba(248, 251, 252, 0.68);
}

.btn {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.contact-form .btn-primary {
    background: var(--white);
    color: var(--dark);
}

.section-light .btn-primary {
    background: var(--white);
    color: var(--dark);
}

.section-light .btn-ghost {
    color: var(--white);
    border-color: rgba(248, 251, 252, 0.24);
    background: rgba(248, 251, 252, 0.06);
}

.section-light .btn-ghost:hover {
    border-color: rgba(248, 251, 252, 0.48);
}

.btn-primary:hover {
    box-shadow: 0 20px 70px rgba(248, 251, 252, 0.2);
}

.btn-ghost:hover {
    background: rgba(248, 251, 252, 0.12);
}

.btn-ghost {
    background: rgba(248, 251, 252, 0.08);
    border-color: rgba(248, 251, 252, 0.32);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

@media (max-width: 720px) {
    :root {
        --fs-h1: 3rem;
        --fs-h2: 2.2rem;
        --fs-h3: 1.18rem;
        --fs-lead: 1.02rem;
    }

    .container {
        width: min(100% - 32px, 680px);
    }

    .section-heading.centered {
        text-align: left;
    }
}

@media (min-width: 1440px) {
    :root {
        --fs-h1: 6.8rem;
        --fs-h2: 3.6rem;
    }
}

@media (min-width: 721px) and (max-width: 1080px) {
    :root {
        --fs-h1: 4.6rem;
        --fs-h2: 3rem;
    }
}

@media (min-width: 721px) {
    .section-heading h2 span,
    .contact-copy h2 span {
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .section-heading h2 span + span,
    .contact-copy h2 span + span {
        margin-top: 0.08em;
    }
}
