:root {
    --forest: #1D4D2B;
    --forest-deep: #123A20;
    --leaf: #6DBF67;
    --lime: #A8E063;
    --cream: #FFF7E6;
    --blue: #2563EB;
    --ink: #17301F;
    --muted: #5C6F62;
    --white: #ffffff;
    --line: #dce7dc;
    --surface: #f8fbf5;
    --shadow: 0 24px 70px rgba(29, 77, 43, 0.14);
    --radius: 28px;
    --container: 1180px;

    --font-headline: "Poppins", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

h1, h2, h3, .brand {
    font-family: var(--font-headline);
}

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

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(2.6rem, 5.6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

h1 span {
    color: var(--leaf);
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 96px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--forest);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 8px;
    border-radius: 99px;
    background: var(--lime);
}

/* Buttons & links */

.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--forest);
    box-shadow: 0 12px 28px rgba(29, 77, 43, 0.18);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--forest-deep);
    box-shadow: 0 16px 34px rgba(29, 77, 43, 0.24);
}

.button-small {
    min-height: 42px;
    padding: 0 18px;
    color: var(--white) !important;
}

.button-light {
    color: var(--forest);
    background: var(--cream);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

.text-link span {
    transition: transform 0.2s;
}

.text-link:hover span {
    transform: translateX(5px);
}

.skip-link {
    position: fixed;
    z-index: 9999;
    left: 16px;
    top: 16px;
    padding: 12px 16px;
    color: var(--white);
    background: var(--forest);
    border-radius: 10px;
    text-decoration: none;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(29, 77, 43, 0.08);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand img {
    width: 32px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav > a:not(.button) {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
}

.site-nav > a:not(.button):hover {
    color: var(--leaf);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--forest);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 84px;
    background: radial-gradient(circle at 14% 20%, rgba(168, 224, 99, 0.2), transparent 26%),
        linear-gradient(135deg, #fffdf8 0%, #f5fbe9 54%, #edf7e9 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.72));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 64px;
    align-items: center;
}

.hero-lead {
    max-width: 620px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-art {
    position: relative;
    min-height: 480px;
}

.code-card {
    position: absolute;
    z-index: 3;
    top: 70px;
    left: 24px;
    width: min(76%, 340px);
    padding: 22px 26px 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    color: #d9ffe4;
    background: linear-gradient(145deg, rgba(36, 103, 63, 0.94), var(--forest-deep) 98%);
    box-shadow: 0 38px 90px rgba(13, 53, 32, 0.25);
    transform: rotate(-2deg);
}

.window-dots {
    display: flex;
    gap: 7px;
    margin-bottom: 26px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
}

.code-card pre {
    margin: 0;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(0.8rem, 1.5vw, 1.05rem);
    line-height: 1.8;
}

.code-card code span {
    color: var(--lime);
}

.cloud-card {
    position: absolute;
    z-index: 5;
    right: 4px;
    bottom: 66px;
    width: 140px;
    padding: 18px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.cloud-card path:first-child {
    fill: var(--leaf);
    stroke: var(--forest);
    stroke-width: 3;
}

.cloud-card .check {
    fill: none;
    stroke: var(--white);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.node {
    position: absolute;
    z-index: 4;
    width: 20px;
    height: 20px;
    border: 5px solid var(--leaf);
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 5px 14px rgba(29, 77, 43, 0.12);
}

.node-a { right: 28px; top: 66px; }
.node-b { right: 0; top: 158px; }
.node-c { left: 2px; bottom: 74px; }

.connector {
    position: absolute;
    z-index: 1;
    fill: none;
    stroke: var(--leaf);
    stroke-width: 5;
    stroke-linecap: round;
}

.connector-a { right: 6px; top: 76px; width: 230px; }
.connector-b { left: 0; bottom: 34px; width: 250px; transform: rotate(8deg); }

.art-orbit {
    position: absolute;
    border: 1px solid rgba(109, 191, 103, 0.28);
    border-radius: 50%;
}

.orbit-one { inset: 16px 24px 26px 0; }
.orbit-two { inset: 70px -16px 90px 76px; }

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.8;
}

.hero-glow-one { width: 250px; height: 250px; right: 2%; top: 8%; background: rgba(168, 224, 99, 0.28); }
.hero-glow-two { width: 170px; height: 170px; right: 26%; bottom: 5%; background: rgba(37, 99, 235, 0.12); }

/* App cards */

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-heading > p {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.05rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.app-card {
    position: relative;
    min-height: 260px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.app-card::after {
    content: "";
    position: absolute;
    right: -52px;
    bottom: -58px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(168, 224, 99, 0.16);
}

.app-card:hover {
    transform: translateY(-7px);
    border-color: rgba(109, 191, 103, 0.6);
    box-shadow: var(--shadow);
}

.app-card--muted {
    opacity: 0.72;
}

.app-card--muted:hover {
    transform: none;
    box-shadow: none;
}

.app-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 40px;
    place-items: center;
    border-radius: 16px;
    background: var(--cream);
}

.app-icon svg {
    width: 32px;
    fill: none;
    stroke: var(--forest);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-card h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.app-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: var(--muted);
}

.app-card__meta {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 18px;
    color: var(--forest);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Contact page */

.contact-section {
    padding-top: 64px;
}

.contact-card {
    padding: 56px;
    border-radius: 36px;
    color: var(--white);
    background: radial-gradient(circle at 80% 10%, rgba(168, 224, 99, 0.28), transparent 30%), var(--forest);
    box-shadow: var(--shadow);
}

.contact-card .eyebrow {
    color: var(--lime);
}

.contact-card .eyebrow::before {
    background: var(--lime);
}

.contact-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.contact-details {
    display: grid;
    gap: 20px;
    margin: 34px 0;
    max-width: 30rem;
}

.contact-details div {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-details dt {
    margin-bottom: 4px;
    color: var(--lime);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.contact-details dd {
    margin: 0;
    color: var(--white);
    font-weight: 600;
}

.contact-details a {
    color: var(--white);
    text-decoration: underline;
}

/* Footer */

.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: center;
}

.footer-brand {
    margin-bottom: 8px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--forest);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.legal {
    text-align: right;
}

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

    *, *::before, *::after {
        transition: none !important;
    }
}

/* Responsive */

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 74px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 10px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav > a {
        padding: 10px 12px;
    }

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

    .hero-art {
        width: min(100%, 520px);
        margin-inline: auto;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .legal {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        padding: 76px 0 64px;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-art {
        min-height: 400px;
    }

    .code-card {
        top: 50px;
        left: 8px;
        width: 78%;
    }

    .cloud-card {
        right: 0;
        bottom: 36px;
        width: 112px;
    }

    .connector-a { width: 180px; }
    .connector-b { width: 190px; }
    .node-a { right: 16px; }
    .node-b { right: -4px; }

    .contact-card {
        padding: 32px 22px;
    }
}
