:root {
    --page-width: 1060px;
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 32px;
    --navbar-offset: 132px;
    --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-offset);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background:
        radial-gradient(circle at 7% 31%, rgba(217, 119, 6, 0.08) 0 4px, transparent 5px),
        radial-gradient(circle at 94% 35%, rgba(217, 119, 6, 0.09) 0 7px, transparent 8px),
        radial-gradient(circle at 17% 72%, rgba(124, 45, 18, 0.06) 0 4px, transparent 5px),
        var(--color-bg);
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

.page,
.page-shell {
    background: var(--color-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.05);
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-index-navbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: 16px 56px;
    background: var(--navbar-bg);
    border-bottom: 1px solid rgba(217, 119, 6, 0.1);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
}

.navbar__brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.navbar__brand-link:hover {
    opacity: 0.92;
}

.navbar__logo {
    width: clamp(6.5rem, 22vw, 11rem);
    height: auto;
    object-fit: contain;
}

.navbar__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--navbar-toggle-border-color);
    border-radius: 999px;
    background: var(--navbar-toggle-bg);
    color: var(--navbar-toggle-text-color);
    box-shadow: 0 10px 24px var(--color-shadow);
    cursor: pointer;
}

.navbar__toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.navbar__toggle:hover {
    background: var(--navbar-toggle-hover-bg);
}

.navbar__toggle:focus-visible {
    outline: 3px solid var(--navbar-toggle-focus-color);
    outline-offset: 2px;
}

.navbar__menu {
    display: none;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar.is-open .navbar__menu {
    display: flex;
}

.navbar__item {
    width: 100%;
}

.navbar__link {
    display: inline-block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 999px;
    background: transparent;
    color: var(--navbar-link-text-color);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.navbar__link:hover {
    background: var(--navbar-link-hover-bg);
}

.hero {
    padding: var(--space-5) var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.hero__eyebrow {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.hero__title {
    margin: 0 0 var(--space-3);
    font-size: 2rem;
    line-height: 1.05;
}

.hero__description {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.6;
}

.content-section {
    padding: var(--space-5) var(--space-3);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.content-section--muted {
    background: var(--color-surface-muted);
}

.section-title {
    margin: 0 0 var(--space-3);
    font-size: 1.125rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-copy {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.6;
}

.stack-list {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.stack-item {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.stack-item__title {
    margin: 0 0 var(--space-2);
    font-size: 1rem;
}

.stack-item__text {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.6;
}

.code-sample {
    margin-top: var(--space-4);
    padding: var(--space-3);
    overflow-x: auto;
    border: 1px solid var(--color-border);
    background: var(--color-code-bg);
    color: var(--color-code-text);
    font-size: 0.85rem;
    line-height: 1.5;
}

.section-kicker,
.section-lead {
    margin: 0;
    color: var(--color-text-soft);
    text-align: center;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--color-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    line-height: 1.18;
    text-align: center;
    letter-spacing: -0.04em;
}

.section-lead {
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.value-section,
.subscribe-section {
    position: relative;
    padding: 76px 56px;
    background: transparent;
}

.subscribe-section {
    scroll-margin-top: var(--navbar-offset);
}

.value-section::before,
.subscribe-section::before,
.subscribe-section::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.75;
}

.value-section::before {
    left: 12%;
    top: 28%;
}

.subscribe-section::before {
    left: 18%;
    bottom: 22%;
}

.subscribe-section::after {
    right: 16%;
    top: 26%;
}

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

.value-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 220px;
    padding: 34px 24px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
    background: var(--color-surface);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.value-card--featured {
    border-color: transparent;
    box-shadow: 0 24px 58px var(--color-shadow);
}

.value-card__icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-surface-muted);
    color: var(--color-accent-dark);
    font-weight: 800;
}

.value-card h3,
.value-card p {
    margin: 0;
}

.value-card h3 {
    font-size: 1rem;
}

.value-card p {
    color: var(--color-text-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}

.value-card a {
    color: var(--color-accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.subscribe-section {
    padding-bottom: 96px;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    width: min(580px, 100%);
    margin: 34px auto 0;
    padding: 8px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 999px;
    background: var(--color-surface);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.subscribe-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 18px;
    outline: 0;
}

.subscribe-form button {
    border: 0;
    border-radius: 999px;
    padding: 13px 24px;
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    cursor: pointer;
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 46px 56px 28px;
    border-top: 1px solid rgba(217, 119, 6, 0.1);
    background: transparent;
    color: var(--color-text-soft);
}

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

.site-footer p {
    margin: 10px 0 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 22px;
}

.site-footer a {
    color: var(--color-text-soft);
    font-size: 0.9rem;
    text-decoration: none;
}

@media (min-width: 768px) {
    .navbar {
        flex-wrap: nowrap;
    }

    .navbar__toggle {
        display: none;
    }

    .navbar__menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: var(--space-3);
        width: auto;
    }

    .navbar__item,
    .navbar__link {
        width: auto;
    }
}

@media (max-width: 767px) {
    :root {
        --navbar-offset: 176px;
    }

    .page,
    .page-shell {
        width: 100%;
        margin: 0;
        box-shadow: none;
    }

    .navbar {
        padding: 16px 20px;
    }

    .navbar__logo {
        width: 7rem;
        height: 7rem;
    }

    .value-section,
    .subscribe-section {
        padding: 58px 20px;
    }

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

    .subscribe-form {
        flex-direction: column;
        border-radius: 24px;
        padding: 12px;
    }

    .subscribe-form input {
        min-height: 44px;
    }

    .site-footer {
        flex-direction: column;
        padding: 34px 20px 28px;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}
