:root {
    color-scheme: light;
    --bg: #f7faf8;
    --surface: #ffffff;
    --soft: #eef8f1;
    --text: #101828;
    --muted: #667085;
    --line: #d6eadb;
    --primary: #22c55e;
    --primary-dark: #15803d;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #eef8f1 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(214, 234, 219, 0.8);
    backdrop-filter: blur(16px);
}

.brand img {
    display: block;
    width: 152px;
    height: 58px;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-weight: 800;
}

.nav-action {
    min-height: 42px;
    padding: 10px 14px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 8px;
}

main {
    overflow: hidden;
}

.hero,
.features,
.steps,
.cta {
    width: min(1120px, calc(100% - 36px));
    margin-inline: auto;
}

.hero {
    display: grid;
    min-height: calc(100vh - 86px);
    min-height: calc(100dvh - 86px);
    grid-template-columns: minmax(0, 1fr) minmax(330px, 470px);
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
    padding: 42px 0 72px;
}

.hero-copy {
    display: grid;
    gap: 18px;
}

.eyebrow {
    margin: 0;
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(3rem, 8vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.lead {
    max-width: 620px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.55;
}

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

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
}

.button.primary {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 16px 32px rgba(34, 197, 94, 0.24);
}

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

.product-preview {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.preview-top {
    display: flex;
    gap: 7px;
}

.preview-top span {
    width: 12px;
    height: 12px;
    background: var(--line);
    border-radius: 999px;
}

.balance-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #101828 0%, #15803d 100%);
    border-radius: 12px;
}

.balance-card small,
.balance-card span,
.preview-grid small {
    opacity: 0.75;
    font-weight: 800;
}

.balance-card strong {
    font-size: 2.1rem;
}

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

.preview-grid article,
.chat-line {
    padding: 14px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.preview-grid article {
    display: grid;
    gap: 4px;
}

.chat-line {
    width: fit-content;
    max-width: 90%;
    font-weight: 800;
}

.chat-line.user {
    justify-self: end;
    color: #14532d;
    background: #dcfce7;
}

.chat-line.bot {
    color: var(--primary-dark);
    background: #ffffff;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 26px 0 72px;
}

.features article {
    display: grid;
    gap: 10px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.features span {
    color: var(--primary-dark);
    font-weight: 950;
}

.features h2,
.steps h2,
.cta h2 {
    margin-bottom: 0;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.05;
}

.features p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.steps {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.steps ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 750;
}

.cta {
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 78px 0 86px;
    text-align: center;
}

.cta h2 {
    max-width: 620px;
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-action {
        margin-left: auto;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 34px;
    }

    .product-preview {
        transform: none;
    }

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

@media (max-width: 560px) {
    .site-header {
        padding: 12px 16px;
    }

    .brand img {
        width: 122px;
        height: 46px;
    }

    .site-header nav a:not(.nav-action) {
        display: none;
    }

    .nav-action,
    .button {
        width: 100%;
    }

    .hero,
    .features,
    .steps,
    .cta {
        width: min(100% - 24px, 1120px);
    }

    h1 {
        font-size: clamp(2.6rem, 16vw, 4rem);
    }

    .hero-actions,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        padding: 22px;
    }
}
