:root {
    --bg: #f3eddc;
    --bg-deep: #17361f;
    --bg-panel: rgba(255, 251, 242, 0.82);
    --bg-panel-strong: #fffaf0;
    --ink: #182215;
    --ink-soft: #4c5d46;
    --line: rgba(24, 34, 21, 0.12);
    --line-strong: rgba(255, 250, 240, 0.18);
    --accent: #2f7d32;
    --accent-soft: #d9efc9;
    --accent-warm: #e6b047;
    --shadow-soft: 0 24px 60px rgba(23, 54, 31, 0.12);
    --shadow-strong: 0 40px 100px rgba(10, 20, 12, 0.34);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(230, 176, 71, 0.25), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(47, 125, 50, 0.16), transparent 22%),
        linear-gradient(180deg, #efe6d2 0%, #f7f0df 48%, #f3eddc 100%);
    color: var(--ink);
    font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

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

a {
    color: inherit;
}

.page-shell {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 250, 240, 0.65);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(23, 54, 31, 0.08);
}

.brand,
.topnav,
.hero-actions,
.value-strip,
.smart-grid,
.feature-grid,
.screens-grid,
.cta-actions,
.footer,
.footer-links {
    display: flex;
}

.brand {
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand span {
    font-size: 1.05rem;
}

.topnav {
    flex-wrap: wrap;
    gap: 18px;
}

.topnav a,
.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
}

.topnav a:hover,
.footer-links a:hover,
.button:hover {
    opacity: 0.88;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 28px;
    padding: 32px;
    border-radius: calc(var(--radius-xl) + 8px);
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(255, 247, 229, 0.72)),
        radial-gradient(circle at top right, rgba(230, 176, 71, 0.18), transparent 35%);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero,
.section-block,
.feature-card,
.feature-panel,
.screen-card,
.cta-panel,
.hero-card {
    position: relative;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
strong {
    letter-spacing: -0.05em;
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.92;
}

h1 span {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.98;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

p {
    margin: 0;
    line-height: 1.6;
}

.hero-text,
.section-heading p,
.feature-card p,
.feature-panel p,
.screen-card figcaption,
.cta-panel p,
.footer p,
.hero-points li {
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.hero-copy {
    max-width: 640px;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

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

.button-primary {
    background: var(--bg-deep);
    color: #fffaf0;
    box-shadow: 0 16px 30px rgba(23, 54, 31, 0.18);
}

.button-secondary {
    background: rgba(47, 125, 50, 0.11);
    border-color: rgba(47, 125, 50, 0.16);
    color: var(--bg-deep);
}

.button-ghost {
    border-color: var(--line);
    color: var(--ink);
}

.hero-points {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.hero-visual {
    min-height: 540px;
}

.hero-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-card-feature {
    width: min(100%, 520px);
    margin-left: auto;
    background: #295d2a;
    box-shadow: var(--shadow-strong);
    animation: float-card 9s ease-in-out infinite;
}

.hero-card-feature img {
    width: 100%;
    height: auto;
}

.hero-card-floating {
    position: absolute;
    right: 18px;
    bottom: 126px;
    width: min(280px, 54%);
    padding: 18px 20px;
    border: 1px solid rgba(255, 250, 240, 0.55);
    background: rgba(23, 54, 31, 0.9);
    color: #fffaf0;
    box-shadow: 0 24px 60px rgba(10, 20, 12, 0.28);
    animation: drift-panel 11s ease-in-out infinite;
}

.hero-card-bottom {
    right: auto;
    left: 12px;
    bottom: 34px;
    background: rgba(255, 250, 240, 0.88);
    color: var(--ink);
    border-color: rgba(24, 34, 21, 0.08);
    animation-duration: 13s;
}

.hero-card-floating p {
    margin-bottom: 6px;
    color: inherit;
    opacity: 0.72;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-card-floating strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.2;
}

.value-strip {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.value-strip p {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.78);
    border: 1px solid rgba(24, 34, 21, 0.08);
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
}

.section-block {
    margin-top: 24px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-panel);
    border: 1px solid rgba(255, 250, 240, 0.75);
    box-shadow: var(--shadow-soft);
}

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

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

.feature-panel,
.feature-card,
.screen-card,
.cta-panel {
    border-radius: var(--radius-lg);
}

.feature-panel,
.feature-card {
    padding: 22px;
    background: var(--bg-panel-strong);
    border: 1px solid rgba(24, 34, 21, 0.08);
}

.feature-panel-accent {
    background:
        linear-gradient(160deg, rgba(47, 125, 50, 0.16), rgba(230, 176, 71, 0.12)),
        var(--bg-panel-strong);
}

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

.screens-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    gap: 16px;
}

.screen-card {
    padding: 16px;
    background: #17361f;
    color: #fffaf0;
    box-shadow: var(--shadow-strong);
}

.screen-card img {
    width: 100%;
    border-radius: 18px;
}

.screen-card figcaption {
    margin-top: 14px;
    color: rgba(255, 250, 240, 0.78);
}

.screen-card-tall {
    background:
        radial-gradient(circle at top left, rgba(230, 176, 71, 0.16), transparent 24%),
        #17361f;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(23, 54, 31, 0.98), rgba(39, 78, 45, 0.95)),
        #17361f;
    color: #fffaf0;
}

.cta-panel p {
    color: rgba(255, 250, 240, 0.78);
}

.cta-panel .eyebrow {
    color: var(--accent-soft);
}

.cta-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.cta-panel .button-secondary {
    background: rgba(255, 250, 240, 0.08);
    border-color: rgba(255, 250, 240, 0.18);
    color: #fffaf0;
}

.cta-panel .button-ghost {
    border-color: rgba(255, 250, 240, 0.2);
    color: #fffaf0;
}

.footer {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 12px 4px 0;
}

.footer-links {
    flex-wrap: wrap;
    gap: 16px;
}

@keyframes float-card {
    0%,
    100% {
        transform: translateY(0) rotate(-0.6deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.8deg);
    }
}

@keyframes drift-panel {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -6px, 0);
    }
}

@media (max-width: 1040px) {
    .hero,
    .cta-panel,
    .screens-grid,
    .feature-grid,
    .smart-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 0;
    }

    .hero-card-feature {
        margin: 0 auto;
    }

    .hero-card-floating {
        position: static;
        width: 100%;
        margin-top: 16px;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--content-width));
        padding-top: 12px;
    }

    .topbar,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .section-block {
        padding: 22px;
    }

    .topnav {
        gap: 12px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

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

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