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

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-primary: "Inter", system-ui, sans-serif;
    --palette-brand-25: #fbefeb;
    --palette-brand-50: #fad5c9;
    --palette-brand-100: #f8bda6;
    --palette-brand-400: #f37943;
    --palette-brand-500: #f26522;
    --palette-brand-600: #d0531a;
    --palette-brand-700: #ae4213;
    --palette-brand-alpha-12: #f265221f;
    --palette-shade-0: #ffffff;
    --palette-shade-10: #fbfbfb;
    --palette-shade-20: #f7f7f7;
    --palette-shade-50: #eaeaea;
    --palette-shade-100: #e6e6e6;
    --palette-shade-500: #8b8b8b;
    --palette-shade-600: #717171;
    --palette-shade-700: #545454;
    --palette-shade-900: #1b1b1b;
    --radius-md: 8px;
    --radius-lg: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
    color: var(--palette-shade-900);
    background: var(--palette-shade-10);
}

a {
    color: inherit;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 32px;
    background: var(--palette-shade-0);
    border-bottom: 1px solid var(--palette-shade-100);
}

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

.brand__logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(280px, 52vw);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
    background: var(--palette-brand-500);
    border-color: var(--palette-brand-500);
    color: var(--palette-shade-0);
}

.btn--primary:hover {
    background: var(--palette-brand-600);
    border-color: var(--palette-brand-600);
}

.btn--ghost {
    background: var(--palette-shade-0);
    border-color: var(--palette-shade-100);
    color: var(--palette-shade-900);
}

.btn--ghost:hover {
    border-color: var(--palette-brand-400);
    background: var(--palette-brand-25);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 32px 56px;
    background: var(--palette-shade-0);
    border-bottom: 1px solid var(--palette-shade-100);
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: var(--palette-brand-500);
}

.hero__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--palette-brand-25);
    color: var(--palette-brand-700);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 16px;
    max-width: 16ch;
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -1.06px;
    font-weight: 600;
}

.hero p {
    margin: 0 0 32px;
    max-width: 46ch;
    font-size: 20px;
    line-height: 28px;
    color: var(--palette-shade-700);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 32px 72px;
    flex: 1;
}

.section h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.62px;
    font-weight: 600;
}

.section__lead {
    margin: 0 0 28px;
    color: var(--palette-shade-600);
    font-size: 16px;
    line-height: 24px;
}

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

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

.card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--palette-shade-0);
    border: 1px solid var(--palette-shade-100);
    border-radius: var(--radius-lg);
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: var(--palette-brand-500);
}

.card__code {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--palette-brand-25);
    color: var(--palette-brand-700);
    font-size: 12px;
    font-weight: 600;
}

.card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--palette-shade-600);
    font-size: 14px;
    line-height: 1.45;
    flex: 1;
}

.card a {
    color: var(--palette-brand-600);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.card a:hover {
    color: var(--palette-brand-700);
}

.card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.page-plain {
    max-width: 640px;
    margin: 64px auto;
    padding: 0 32px 72px;
}

.page-plain h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 36px;
}

.page-plain p {
    margin: 0;
    color: var(--palette-shade-600);
}

.footer {
    padding: 20px 32px;
    border-top: 1px solid var(--palette-shade-100);
    background: var(--palette-shade-0);
    color: var(--palette-shade-500);
    font-size: 13px;
}

@media (max-width: 768px) {
    .header,
    .hero,
    .section,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 36px;
        letter-spacing: -0.7px;
    }

    .hero p {
        font-size: 16px;
        line-height: 24px;
    }

    .grid,
    .grid--3 {
        grid-template-columns: 1fr;
    }
}
