:root {
    --background: #f4f7f6;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --text: #17211f;
    --muted: #66736f;
    --border: rgba(19, 57, 48, 0.12);
    --primary: #137c69;
    --primary-dark: #0d5e50;
    --primary-soft: #dff3ed;
    --shadow: 0 24px 60px rgba(27, 65, 57, 0.12);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(56, 189, 163, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(61, 130, 246, 0.12),
            transparent 28%
        ),
        var(--background);
}

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

.site-header {
    width: min(1380px, calc(100% - 40px));
    margin: 20px auto 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 14px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(27, 65, 57, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-weight: 800;
    background:
        linear-gradient(
            135deg,
            #15987f,
            #126e83
        );
    box-shadow: 0 10px 24px rgba(19, 124, 105, 0.25);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
}

.header-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    min-height: 44px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #168ea0
        );
    box-shadow: 0 12px 24px rgba(19, 124, 105, 0.22);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--border);
}

main {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    min-height: 680px;
    padding: 100px 5%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p,
.section-heading p,
.demo-section p {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 32px;
}

.hero-preview {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-preview::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            rgba(31, 195, 160, 0.28),
            rgba(60, 128, 246, 0.2)
        );
    filter: blur(12px);
}

.preview-card {
    width: min(100%, 430px);
    min-height: 260px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.preview-card span,
.preview-card small {
    color: var(--muted);
}

.preview-card strong {
    margin: 14px 0;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    letter-spacing: -0.05em;
}

.section {
    padding: 90px 0;
}

.section-heading {
    max-width: 850px;
    margin-bottom: 42px;
}

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

.feature-card {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(27, 65, 57, 0.06);
}

.feature-card h3 {
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
}

.demo-section {
    margin-bottom: 70px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            135deg,
            rgba(223, 243, 237, 0.9),
            rgba(234, 242, 255, 0.85)
        );
}

.demo-section > div {
    max-width: 800px;
}

.site-footer {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 45px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 1000px) {
    .hero {
        min-height: auto;
        padding: 80px 0;
        grid-template-columns: 1fr;
    }

    .hero-preview {
        min-height: 320px;
    }

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

@media (max-width: 700px) {
    .site-header {
        align-items: flex-start;
        position: static;
    }

    .header-actions {
        display: none;
    }

    main,
    .site-header,
    .site-footer {
        width: min(100% - 24px, 1380px);
    }

    .hero {
        padding: 65px 0;
        gap: 30px;
    }

    h1 {
        font-size: clamp(3rem, 15vw, 4.4rem);
    }

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

    .demo-section,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-section {
        padding: 30px;
    }
}
