:root {
    --bg-main: #8fa3ad;
    --bg-light: #e9edf0;
    --bg-accent: #f7f0d8;
    --white: #ffffff;

    --color-text: #1f2933;
    --color-muted: #5f6c80;

    --color-primary: #ff9c2b;
    --color-primary-dark: #d67d1d;

    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.18);
    --radius-lg: 20px;
    --radius-md: 14px;
}

/* базовые стили */

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--color-text);
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* hero */

.hero {
    background: radial-gradient(circle at top left, #fdfdfd 0, #c0ced6 40%, #8fa3ad 100%);
    padding: 56px 0 40px;
}

.hero__content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.hero__text {
    flex: 1 1 320px;
}

.hero__visual {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

h1 {
    font-size: 2.2rem;
    margin: 0 0 16px;
    letter-spacing: 0.03em;
}

.hero__subtitle {
    font-size: 1.05rem;
    margin: 0 0 20px;
    color: var(--color-muted);
}

.hero__note {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 8px;
}

/* hero визуал */

.hero__bubble {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.hero__bubble-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primary-dark);
}

.hero__devcard {
    background: #111827;
    color: #e5e7eb;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    box-shadow: var(--shadow-soft);
    max-width: 320px;
    font-size: 0.85rem;
}

.hero__code-line {
    margin: 4px 0;
}

.hero__code-key {
    color: #93c5fd;
}

.hero__code-bad {
    color: #fca5a5;
}

.hero__code-good {
    color: #6ee7b7;
}

.hero__code-comment {
    margin-top: 10px;
    color: #9ca3af;
    font-style: italic;
}

/* секции */

.section {
    padding: 60px 0;
    background: var(--bg-main);
}

.section--light {
    background: var(--bg-light);
}

.section--accent {
    background: var(--bg-accent);
}

.section h2 {
    margin: 0 0 24px;
    font-size: 1.8rem;
    letter-spacing: 0.03em;
}

.section h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

/* сетка */

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* карточки */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-soft);
}

.card--bordered {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

/* списки */

.list {
    margin: 0;
    padding-left: 18px;
    color: var(--color-muted);
}

.list li {
    margin-bottom: 8px;
}

/* шаги */

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

.steps li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--color-muted);
}

.steps li span {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* кнопки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 10px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 26px;
    font-size: 1.02rem;
}

.btn--disabled {
    opacity: 0.75;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* CTA */

.lead {
    max-width: 820px;
    font-size: 1.02rem;
    color: var(--color-text);
}

.cta {
    margin-top: 24px;
}

.cta__counter {
    margin-top: 16px;
    font-weight: 500;
}

.cta__note {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* footer */

.footer {
    background: #111827;
    color: #d1d5db;
    padding: 16px 0;
    font-size: 0.86rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* адаптив */

@media (max-width: 768px) {
    .hero {
        padding-top: 40px;
    }
    h1 {
        font-size: 1.7rem;
    }
}

/* форма раннего доступа */

.cta-form {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    align-items: flex-start;
}

.cta-form__row input[type="email"] {
    flex: 1 1 100px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.cta-form__row input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(214, 125, 29, 0.25);
}

.cta-consent {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--color-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 620px;
}

.cta-consent input[type="checkbox"] {
    margin-top: 3px;
}

.cta-error {
    margin-top: 4px;
    font-size: 0.84rem;
    color: #b91c1c;
}

/* утилита для скрытого лейбла */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    .cta-form__row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-form__row input[type="email"] {
        width: 100%;
        height: auto;
        /* padding-top: 8px;
        padding-bottom: 8px; */
    }

    .btn.btn-lg {
        width: 100%;
        justify-content: center;
    }
}


