:root {
    --ink: #17211c;
    --muted: #657269;
    --paper: #f7f1e6;
    --cream: #fffaf0;
    --moss: #2f5e45;
    --clay: #bd6946;
    --gold: #d9a441;
    --line: rgba(23, 33, 28, 0.16);
    --shadow: 0 24px 60px rgba(38, 41, 30, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes boardDrift {
    0%,
    100% {
        transform: rotate(2deg) translate3d(0, 0, 0);
    }
    50% {
        transform: rotate(1deg) translate3d(0, -12px, 0);
    }
}

@keyframes ribbonPulse {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-3deg);
    }
    50% {
        transform: translate3d(-4px, -8px, 0) rotate(-5deg);
    }
}

@keyframes gridGlide {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 38px 38px, 38px 38px;
    }
}

.site-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(217, 164, 65, 0.24), transparent 28rem),
        radial-gradient(circle at 86% 12%, rgba(47, 94, 69, 0.18), transparent 26rem),
        linear-gradient(135deg, var(--paper) 0%, #fbf7ee 44%, #eee4d4 100%);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    animation: pageFadeIn 560ms ease both;
}

.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(23, 33, 28, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 33, 28, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    animation: gridGlide 18s linear infinite;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(54, 48, 34, 0.08);
    animation: riseIn 520ms ease 80ms both;
}

.brand,
.nav-links,
.hero-actions,
.stats-strip,
.pricing-grid {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: var(--ink);
    color: var(--cream);
    font-family: "Fraunces", serif;
    font-size: 22px;
}

.nav-links {
    gap: 24px;
    font-size: 14px;
    font-weight: 700;
}

.nav-links a,
.nav-cta,
.button,
.price-card a {
    text-decoration: none;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--ink);
}

.nav-cta {
    padding: 10px 15px;
    border-radius: 7px;
    background: var(--moss);
    color: var(--cream);
    font-size: 14px;
    font-weight: 800;
}

.section-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
    gap: 56px;
    min-height: calc(100vh - 92px);
    padding: 86px 0 52px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--clay);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1,
h2 {
    font-family: "Fraunces", serif;
    line-height: 0.95;
    letter-spacing: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(52px, 8.6vw, 108px);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 62px);
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.1;
}

.hero-text,
.pricing-copy p,
.contact-copy p,
.work-card p,
.service-list p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-text {
    max-width: 620px;
    font-size: 19px;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-text,
.hero-actions,
.hero-board,
.stats-strip,
.split-section,
.services,
.pricing-section,
.process,
.contact-section {
    animation: riseIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy .eyebrow {
    animation-delay: 140ms;
}

.hero-copy h1 {
    animation-delay: 220ms;
}

.hero-text {
    animation-delay: 320ms;
}

.hero-actions {
    animation-delay: 420ms;
}

.hero-board {
    animation-delay: 500ms;
}

.stats-strip {
    animation-delay: 620ms;
}

.split-section,
.services,
.pricing-section,
.process,
.contact-section {
    animation-timeline: view();
    animation-range: entry 8% cover 28%;
}

.hero-actions {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 7px;
    border: 1px solid var(--ink);
    font-weight: 800;
}

.button-primary {
    background: var(--ink);
    color: var(--cream);
}

.button-secondary {
    background: rgba(255, 250, 240, 0.6);
}

.button:hover,
.nav-cta:hover,
.price-card a:hover,
.contact-form button:hover {
    transform: translateY(-2px);
}

.hero-board {
    position: relative;
    min-height: 470px;
}

.browser-window {
    position: absolute;
    inset: 22px 0 0 24px;
    padding: 18px;
    border: 1px solid rgba(23, 33, 28, 0.22);
    border-radius: 8px;
    background: #fffdf5;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    animation: boardDrift 7s ease-in-out infinite;
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 36px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
}

.preview-card {
    border-radius: 8px;
    background: var(--moss);
    color: var(--cream);
}

.preview-main {
    padding: 28px;
    min-height: 210px;
    background:
        linear-gradient(135deg, rgba(23, 33, 28, 0.18), transparent),
        var(--moss);
}

.preview-label,
.price-ribbon span,
.work-card span,
.price-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.preview-main strong {
    display: block;
    max-width: 320px;
    font-family: "Fraunces", serif;
    font-size: 40px;
    line-height: 1;
}

.preview-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.preview-stack div {
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.preview-stack div:first-child {
    grid-row: span 2;
    background: var(--gold);
    color: var(--ink);
}

.price-ribbon {
    position: absolute;
    right: 22px;
    bottom: 20px;
    width: 160px;
    padding: 20px;
    border-radius: 8px;
    background: var(--clay);
    color: var(--cream);
    box-shadow: 0 18px 40px rgba(126, 70, 44, 0.22);
    animation: ribbonPulse 4.8s ease-in-out infinite;
}

.price-ribbon strong {
    font-family: "Fraunces", serif;
    font-size: 44px;
}

.stats-strip {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 88px;
    padding: 18px;
    border-block: 1px solid var(--line);
    justify-content: space-between;
    gap: 18px;
}

.stats-strip div {
    display: grid;
    gap: 4px;
}

.stats-strip strong {
    font-family: "Fraunces", serif;
    font-size: 28px;
}

.stats-strip span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.split-section,
.pricing-section,
.process,
.contact-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 54px;
    padding: 76px 0;
}

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

.work-card,
.service-list article,
.price-card,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.7);
    box-shadow: 0 12px 36px rgba(54, 48, 34, 0.06);
}

.work-card {
    min-height: 220px;
    padding: 24px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-card-large {
    grid-row: span 2;
    min-height: 456px;
    background:
        linear-gradient(160deg, rgba(217, 164, 65, 0.88), rgba(189, 105, 70, 0.78)),
        var(--gold);
}

.work-card-large p,
.work-card-large span {
    color: rgba(23, 33, 28, 0.72);
}

.services {
    padding: 76px 0;
}

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

.service-list {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.service-list article {
    padding: 24px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-list article:nth-child(2) {
    transform: translateY(28px);
    background: var(--ink);
    color: var(--cream);
}

.service-list article:nth-child(2) p,
.service-list article:nth-child(2) .service-number {
    color: rgba(255, 250, 240, 0.7);
}

.service-number {
    display: block;
    margin-bottom: 46px;
    color: var(--clay);
    font-weight: 800;
}

.pricing-section {
    align-items: end;
}

.pricing-grid {
    gap: 14px;
    align-items: stretch;
}

.price-card {
    flex: 1;
    display: flex;
    min-height: 300px;
    padding: 22px;
    flex-direction: column;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.price-card h3 {
    font-family: "Fraunces", serif;
    font-size: 42px;
}

.price-card p {
    color: var(--muted);
    line-height: 1.6;
}

.price-card a {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 7px;
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    font-weight: 800;
}

.featured-price {
    background: var(--moss);
    color: var(--cream);
    transform: translateY(-22px);
}

.featured-price p {
    color: rgba(255, 250, 240, 0.76);
}

.featured-price a {
    background: var(--gold);
    color: var(--ink);
}

.timeline {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.timeline li {
    counter-increment: steps;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 74px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease;
}

.timeline li::before {
    content: counter(steps, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    background: var(--clay);
    color: var(--cream);
    font-size: 14px;
}

.contact-section {
    padding-bottom: 110px;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.hidden-field {
    display: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fffdf5;
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    min-height: 50px;
    border: 0;
    border-radius: 7px;
    background: var(--clay);
    color: var(--cream);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.button,
.nav-cta,
.price-card a,
.contact-form button {
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.work-card:hover,
.work-card:focus-within,
.price-card:hover,
.price-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(54, 48, 34, 0.12);
}

.featured-price:hover,
.featured-price:focus-within {
    transform: translateY(-28px);
}

.service-list article:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(54, 48, 34, 0.1);
}

.service-list article:nth-child(2):hover {
    transform: translateY(20px);
}

.preview-stack div:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 33, 28, 0.32);
    background: rgba(217, 164, 65, 0.12);
}

.timeline li:hover {
    transform: translateX(8px);
    background: rgba(255, 250, 240, 0.46);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(189, 105, 70, 0.34);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.12);
}

/* Legacy dashboard page styles */
body:not(.site-body) {
    font-family: "Manrope", "Segoe UI", sans-serif;
    background-color: #f4f7f5;
    color: #333;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

body:not(.site-body) .container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    width: 100%;
}

body:not(.site-body) h2 {
    color: #046a38;
    margin-top: 0;
}

body:not(.site-body) p {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

body:not(.site-body) .form-group {
    margin-bottom: 20px;
}

body:not(.site-body) label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

body:not(.site-body) .input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

body:not(.site-body) .input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
    font-size: 16px;
}

body:not(.site-body) .input-wrapper span {
    background: #eeeeee;
    padding: 12px;
    color: #666;
    border-left: 1px solid #ccc;
}

body:not(.site-body) textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
}

body:not(.site-body) button {
    background-color: #046a38;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

body:not(.site-body) button:hover {
    background-color: #03542d;
}

body:not(.site-body) #status {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 860px) {
    .topbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
    }

    .hero,
    .split-section,
    .pricing-section,
    .process,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 24px;
        min-height: auto;
        padding-top: 62px;
    }

    .hero-board {
        min-height: 390px;
    }

    .browser-window {
        inset: 0 10px 0 0;
        transform: none;
        animation-name: riseIn;
    }

    .stats-strip,
    .pricing-grid,
    .service-list,
    .work-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .stats-strip {
        margin-bottom: 34px;
    }

    .service-list article:nth-child(2),
    .featured-price {
        transform: none;
    }

    .featured-price:hover,
    .featured-price:focus-within,
    .service-list article:nth-child(2):hover {
        transform: translateY(-6px);
    }

    .work-card,
    .work-card-large {
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    .topbar {
        width: calc(100% - 20px);
        margin-top: 10px;
    }

    .section-shell,
    .stats-strip {
        width: calc(100% - 24px);
    }

    .brand {
        font-size: 14px;
    }

    .nav-cta {
        padding-inline: 12px;
    }

    h1 {
        font-size: 46px;
    }

    h2 {
        font-size: 34px;
    }

    .preview-main strong {
        font-size: 31px;
    }

    .price-ribbon {
        right: 6px;
        bottom: 0;
        width: 134px;
    }

    .price-ribbon strong {
        font-size: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
