@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("./fonts/inter-latin-ext.woff2") format("woff2");
}

:root {
    --ink: #161a20;
    --muted: #6d7480;
    --line: #e4e7eb;
    --surface: #ffffff;
    --soft: #f4f6f8;
    --dark: #111820;
    --dark-lighter: #1c2632;
    --primary: #f6c232;
    --primary-darker: #d29300;
    --primary-lighter: #fff5ce;
    --radius: 6px;
    --shadow: 0 18px 50px color-mix(in srgb, var(--dark) 16%, transparent);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top-strip,
.header-inner,
.content-document,
.hero-inner,
.stats-band,
.section,
.feature-band,
.process,
.contact,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.top-strip {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--dark);
    box-shadow: 0 0 0 100vmax var(--dark);
    clip-path: inset(0 -100vmax);
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.top-strip div,
.site-footer,
.brand,
.nav-links,
.hero-actions,
.stats-band,
.feature-list {
    display: flex;
    align-items: center;
}

.top-strip div {
    gap: 22px;
    flex-wrap: wrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--dark) 8%, transparent);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    gap: 10px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 900;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary);
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.content-page {
    min-height: 60vh;
    background: var(--surface);
}

.content-document {
    padding: 64px 0 96px;
}

.content-document h1 {
    margin: 0 0 32px;
    color: var(--dark);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.05;
}

.content-body {
    color: #334155;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.content-body > :first-child {
    margin-top: 0;
}

.content-body > :last-child {
    margin-bottom: 0;
}

.content-body p,
.content-body ul,
.content-body ol {
    margin: 0 0 1.25rem;
}

.content-body h2,
.content-body h3 {
    color: var(--dark);
    line-height: 1.25;
}

.content-body h2 {
    margin: 2.5rem 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.content-body h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
}

.content-body ul,
.content-body ol {
    padding-left: 1.5rem;
}

.content-body li + li {
    margin-top: 0.5rem;
}

.content-body a {
    color: #075bb8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.content-body a:hover {
    color: #043e80;
}

.brand-mark svg {
    width: 25px;
    height: 25px;
    fill: var(--ink);
}

.nav-links {
    gap: 28px;
    color: #303844;
    font-size: 14px;
    font-weight: 800;
}

.nav-links a {
    position: relative;
    padding: 29px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--primary);
    transition: transform 160ms ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle-icon::after {
    top: 6px;
}

.menu-open .nav-toggle-icon {
    background: transparent;
}

.menu-open .nav-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .nav-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.header-call {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--ink);
    font-weight: 900;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 28%, transparent);
}

.hero {
    position: relative;
    min-height: calc(100vh - 120px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--dark) 94%, transparent) 0%, color-mix(in srgb, var(--dark) 82%, transparent) 42%, color-mix(in srgb, var(--dark) 24%, transparent) 100%),
        var(--hero-background-image, url("images/beacon-hero.png")) center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 10px;
    background: var(--primary);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    gap: 44px;
    padding: 62px 0 76px;
}

.hero-inner.without-highlight {
    grid-template-columns: minmax(0, 820px);
}

.hero-copy {
    max-width: 820px;
    color: #fff;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 5.2vw, 68px);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin: 18px 0 10px;
    color: var(--dark);
    font-size: 20px;
    line-height: 1.2;
}

.hero-text {
    max-width: 610px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.hero-actions {
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 900;
    cursor: pointer;
}

.btn.primary {
    background: var(--primary);
    color: var(--ink);
}

.btn.secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--dark);
}

.btn.secondary.light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.hero-highlight {
    align-self: end;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.hero-highlight span {
    display: block;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-highlight strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1;
}

@media (min-width: 981px) {
    .hero-highlight strong {
        font-size: 26px;
        letter-spacing: -0.01em;
        white-space: nowrap;
    }
}

.hero-highlight p {
    margin: 14px 0 0;
    color: rgba(22, 26, 32, 0.72);
    font-weight: 700;
}

.stats-band {
    position: relative;
    z-index: 2;
    justify-content: space-between;
    gap: 18px;
    margin-top: -42px;
    padding: 28px 32px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stats-band.without-hero {
    margin-top: 32px;
}

.stats-band div {
    flex: 1;
    min-width: 170px;
    padding-left: 18px;
    border-left: 4px solid var(--primary);
}

.stats-band strong {
    display: block;
    color: var(--dark);
    font-size: 32px;
    line-height: 1;
}

.stats-band span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
}

.section,
.process,
.contact {
    padding: 92px 0;
}

.section-heading {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.service-card {
    position: relative;
    min-height: 248px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 32px color-mix(in srgb, var(--dark) 6%, transparent);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--primary);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card p,
.process-copy p,
.contact p {
    color: var(--muted);
}

.service-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary-lighter);
}

.service-icon::before {
    content: "";
    width: 26px;
    height: 26px;
    display: block;
    background: var(--primary-darker);
    clip-path: polygon(52% 0, 10% 58%, 45% 58%, 35% 100%, 90% 40%, 56% 40%);
}

.service-icon.panel::before {
    clip-path: inset(10% 8% 10% 8% round 2px);
}

.service-icon.lamp::before {
    clip-path: polygon(30% 8%, 70% 8%, 88% 50%, 62% 50%, 62% 82%, 38% 82%, 38% 50%, 12% 50%);
}

.service-icon.shield::before {
    clip-path: polygon(50% 0, 88% 14%, 80% 70%, 50% 100%, 20% 70%, 12% 14%);
}

.service-icon.check::before {
    clip-path: polygon(42% 70%, 86% 18%, 100% 32%, 44% 96%, 6% 58%, 20% 44%);
}

.service-icon.home::before {
    clip-path: polygon(50% 4%, 96% 42%, 84% 42%, 84% 94%, 58% 94%, 58% 64%, 42% 64%, 42% 94%, 16% 94%, 16% 42%, 4% 42%);
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    align-items: center;
    gap: 46px;
    padding: 58px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-list {
    flex-wrap: wrap;
    gap: 12px;
}

.feature-list span {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: var(--radius);
    background: var(--dark);
    color: #fff;
    font-weight: 900;
}

.feature-list span:nth-child(even) {
    background: var(--primary);
    color: var(--ink);
}

.process {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 60px;
    align-items: start;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    position: relative;
    min-height: 84px;
    margin-bottom: 14px;
    padding: 24px 24px 24px 78px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--dark);
    font-weight: 800;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--dark) 7%, transparent);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 22px;
    top: 22px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--ink);
    font-weight: 900;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
    gap: 54px;
    align-items: start;
    margin-bottom: 56px;
    padding-inline: 34px;
    border-radius: var(--radius);
    background: var(--dark-lighter);
    color: #fff;
}

.contact h2 {
    color: #fff;
}

.contact p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
}

.contact-action {
    align-self: center;
    justify-self: start;
}

.site-footer {
    min-height: 90px;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.content-page + .site-footer {
    border-top: 0;
}

.site-footer > div:first-child {
    display: grid;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--dark);
}

.site-footer strong {
    color: var(--dark);
}

@media (max-width: 1100px) {
    .contact {
        margin-bottom: 0;
        padding-block: 64px;
    }

    .site-footer {
        min-height: 80px;
        padding-block: 18px;
    }
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 70px;
        padding: 10px 0;
    }

    .navigation-enabled .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: grid;
        gap: 0;
        padding: 10px max(16px, calc((100% - 1180px) / 2)) 14px;
        border-top: 1px solid var(--line);
        background: var(--surface);
        box-shadow: 0 18px 28px color-mix(in srgb, var(--dark) 12%, transparent);
    }

    .navigation-enabled .nav-links {
        display: none;
    }

    .navigation-enabled .site-header.menu-open .nav-links {
        display: grid;
    }

    .nav-links a {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
        font-size: 15px;
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-inner,
    .process,
    .contact,
    .feature-band {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        gap: 28px;
        padding: 54px 0 70px;
    }

    .hero-highlight {
        max-width: 420px;
        padding: 20px;
    }

    .hero-inner.with-two-actions .hero-actions,
    .hero-inner.with-two-actions .hero-highlight {
        width: min(100%, 500px);
        max-width: none;
    }

    .hero-inner.with-two-actions .hero-actions .btn {
        flex: 1 1 auto;
    }

    h1 {
        font-size: clamp(42px, 7vw, 56px);
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .top-strip,
    .header-inner,
    .content-document,
    .hero-inner,
    .stats-band,
    .section,
    .feature-band,
    .process,
    .contact,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    .top-strip {
        min-height: 48px;
        padding: 7px 0;
    }

    .top-strip > a {
        display: none;
    }

    .header-inner {
        min-height: 64px;
    }

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

    .hero {
        background-position: 64% center;
    }

    h1 {
        font-size: clamp(36px, 10.5vw, 42px);
        line-height: 1.02;
    }

    .hero-inner {
        gap: 22px;
        padding: 42px 0 58px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-band,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-band {
        margin-top: -28px;
        padding: 24px;
    }

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

    .service-card {
        min-height: 0;
        padding: 22px;
    }

    .service-icon {
        width: 46px;
        height: 46px;
    }

    .service-card h3 {
        margin-top: 14px;
    }

    .section,
    .process {
        padding: 58px 0;
    }

    .contact {
        padding: 48px 20px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
    }

    .header-call {
        order: 3;
        width: 100%;
    }

    .nav-links {
        top: 100%;
    }
}

@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;
    }
}
