:root {
    --color-primary: #2aabee;
    --color-primary-dark: #229ed9;
    --color-text: #18181b;
    --color-muted: #71717a;
    --color-surface: #f6f7f8;
    --color-white: #ffffff;
    --container-width: 1120px;
    --page-padding: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

svg {
    display: block;
}

.container {
    width: min(100% - (var(--page-padding) * 2), var(--container-width));
    margin-inline: auto;
}

/* Hero */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 78vh;
    padding: 96px 0 88px;
    background:
        radial-gradient(circle at 50% 0%, rgba(42, 171, 238, 0.16), transparent 42%),
        linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    pointer-events: none;
}

.hero__shape--top {
    top: -180px;
    right: -120px;
    width: 460px;
    height: 460px;
    background: var(--color-primary);
}

.hero__shape--bottom {
    bottom: -180px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: var(--color-primary-dark);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 8px 14px;
    border: 1px solid rgba(42, 171, 238, 0.18);
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: rgba(42, 171, 238, 0.08);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.badge svg {
    width: 18px;
    height: 18px;
}

.hero__title {
    max-width: 860px;
    margin-bottom: 22px;
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero__subtitle {
    max-width: 660px;
    margin-bottom: 38px;
    color: var(--color-muted);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.65;
    text-wrap: balance;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 58px;
    padding: 0 30px;
    overflow: hidden;
    border-radius: 14px;
    color: var(--color-white);
    background: var(--color-primary);
    box-shadow: 0 12px 30px rgba(42, 171, 238, 0.24);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: var(--color-primary-dark);
    box-shadow: 0 16px 34px rgba(42, 171, 238, 0.3);
}

.cta-button:focus-visible {
    outline: 3px solid rgba(42, 171, 238, 0.3);
    outline-offset: 4px;
}

.cta-button svg {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
}

/* Features */

.features {
    padding: 96px 0 104px;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading__title {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.section-heading__text {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.65;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.feature-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 32px 36px;
    border: 1px solid #eceef0;
    border-radius: 20px;
    background: var(--color-surface);
    text-align: left;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 171, 238, 0.2);
    box-shadow: 0 18px 40px rgba(24, 24, 27, 0.07);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border: 1px solid #eceef0;
    border-radius: 14px;
    color: var(--color-primary-dark);
    background: var(--color-white);
    box-shadow: 0 5px 14px rgba(24, 24, 27, 0.04);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.feature-text {
    max-width: 34ch;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Footer */

.footer {
    padding: 30px 0;
    border-top: 1px solid #f0f0f1;
    color: var(--color-muted);
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin-bottom: 0;
}

/* Reveal animation */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 500ms ease,
        transform 500ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cta-button,
    .feature-card,
    .reveal {
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin-inline: auto;
    }

    .feature-text {
        max-width: none;
    }
}

@media (max-width: 640px) {
    :root {
        --page-padding: 18px;
    }

    .hero {
        min-height: auto;
        padding: 76px 0 72px;
    }

    .hero__title {
        font-size: clamp(36px, 11vw, 48px);
    }

    .hero__subtitle {
        margin-bottom: 32px;
        font-size: 17px;
        line-height: 1.6;
    }

    .cta-button {
        width: 100%;
        max-width: 360px;
    }

    .features {
        padding: 72px 0 76px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading__text {
        font-size: 16px;
    }

    .feature-card {
        padding: 28px 24px 30px;
    }
}
