:root {
    --bg: #071317;
    --bg-alt: #0c1c22;
    --bg-soft: #122831;
    --panel: rgba(10, 22, 28, 0.9);
    --panel-strong: rgba(15, 31, 38, 0.96);
    --panel-muted: rgba(255, 248, 240, 0.08);
    --line: rgba(171, 205, 199, 0.18);
    --line-strong: rgba(171, 205, 199, 0.32);
    --text: #f6f2ec;
    --muted: rgba(246, 242, 236, 0.72);
    --soft-text: rgba(246, 242, 236, 0.56);
    --accent: #d4a16e;
    --accent-deep: #b37d4d;
    --accent-soft: rgba(212, 161, 110, 0.16);
    --sea: #9dd3c7;
    --sea-soft: rgba(157, 211, 199, 0.16);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    --display: "Fraunces", serif;
    --body: "Manrope", sans-serif;
    --mono: "IBM Plex Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--body);
    background:
        radial-gradient(circle at top left, rgba(157, 211, 199, 0.08), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(212, 161, 110, 0.1), transparent 26%),
        linear-gradient(180deg, var(--bg), var(--bg-alt) 48%, #09161b);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: #0c161a;
}

.shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.demo-banner {
    border-bottom: 1px solid var(--line);
    background: rgba(4, 10, 13, 0.84);
    backdrop-filter: blur(14px);
}

.demo-banner .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.demo-banner p,
.demo-banner-links a {
    font-size: 0.74rem;
    line-height: 1.6;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--mono);
}

.demo-banner p {
    margin: 0;
    max-width: 50rem;
    color: var(--muted);
}

.demo-banner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.demo-banner-links a {
    color: var(--sea);
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 19, 23, 0.84);
    backdrop-filter: blur(18px);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    text-decoration: none;
}

.brand-kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sea);
}

.brand-name {
    font-family: var(--display);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    color: #111;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.button-soft {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.header-cta {
    white-space: nowrap;
}

.hero-section,
.subhero {
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 5rem 0 4rem;
}

.hero-section::after,
.subhero::after {
    content: "";
    position: absolute;
    inset: auto -8rem -9rem auto;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    pointer-events: none;
}

.subhero {
    padding: 3.5rem 0 2.75rem;
    border-bottom: 1px solid var(--line);
}

.hero-grid,
.subhero-grid,
.cta-grid,
.contact-grid,
.form-layout,
.compare-grid,
.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.subhero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
}

.cta-grid,
.form-layout,
.contact-grid,
.compare-grid,
.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy h1,
.subhero h1,
.section-heading h2,
.callout-band h2,
.info-card h2,
.faq-grid h2,
.hero-panel h2 {
    margin: 0 0 1rem;
    font-family: var(--display);
    font-size: clamp(2.4rem, 4vw, 4.3rem);
    line-height: 1.03;
}

.subhero h1,
.section-heading h2,
.callout-band h2,
.info-card h2,
.faq-grid h2,
.hero-panel h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.hero-lead,
.subhero p,
.section-heading p,
.callout-band p,
.side-note p,
.shell-card p,
.form-disclaimer {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-kicker,
.card-eyebrow {
    margin: 0 0 0.9rem;
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sea);
}

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

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.stat-strip li {
    min-width: 10rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
}

.stat-strip strong {
    display: block;
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1;
}

.stat-strip span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.shell-card,
.callout-band {
    border: 1px solid var(--line);
    border-radius: 1.7rem;
    background: linear-gradient(180deg, var(--panel), var(--panel-strong));
    box-shadow: var(--shadow);
}

.shell-card {
    padding: 1.4rem;
}

.hero-panel {
    position: relative;
}

.panel-note {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel-muted);
}

.panel-note strong {
    display: block;
    margin-bottom: 0.35rem;
}

.section {
    padding: 4rem 0;
}

.section-contrast {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-form {
    padding-bottom: 5rem;
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 1.6rem;
}

.card-grid {
    display: grid;
    gap: 1.2rem;
}

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

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

.service-number,
.timeline-number {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    background: var(--sea-soft);
    color: var(--sea);
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.service-card h2,
.service-card h3,
.work-card h2,
.work-card h3,
.insight-card h2,
.faq-card h3,
.timeline-card h2 {
    margin: 0 0 0.75rem;
    font-family: var(--display);
    font-size: 1.45rem;
    line-height: 1.2;
}

.service-card-large h2 {
    font-size: 1.65rem;
}

.meta-list,
.check-list,
.footer-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.meta-list li,
.check-list li,
.footer-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
}

.meta-list li::before,
.check-list li::before,
.footer-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--accent);
}

.result-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.link-stack {
    display: grid;
    gap: 1rem;
}

.link-card,
.text-link {
    text-decoration: none;
}

.link-card {
    display: grid;
    gap: 0.35rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.035);
}

.link-card strong {
    font-size: 1.05rem;
}

.link-card span {
    color: var(--muted);
    line-height: 1.6;
}

.text-link {
    display: inline-flex;
    margin-top: 1rem;
    color: var(--sea);
}

.callout-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.75rem;
}

.demo-form {
    display: grid;
    gap: 1rem;
}

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

.demo-form label {
    display: grid;
    gap: 0.45rem;
}

.demo-form label span {
    font-size: 0.94rem;
    font-weight: 700;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

.demo-form textarea {
    min-height: 11rem;
    resize: vertical;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
    color: var(--soft-text);
}

.demo-form select {
    appearance: none;
}

.form-disclaimer {
    font-size: 0.92rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.feedback {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.feedback-success {
    background: rgba(107, 182, 156, 0.16);
    border: 1px solid rgba(107, 182, 156, 0.28);
    color: #d9fff0;
}

.feedback-error {
    background: rgba(212, 113, 113, 0.14);
    border: 1px solid rgba(212, 113, 113, 0.24);
    color: #ffd9d9;
}

.timeline {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 4rem 0 0;
    background: rgba(5, 12, 15, 0.82);
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-grid h2 {
    margin: 0 0 0.8rem;
    font-family: var(--display);
    font-size: 1.8rem;
}

.footer-list a {
    text-decoration: none;
}

.footer-note {
    margin-top: 1.1rem;
    color: var(--soft-text);
}

.legal-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--soft-text);
    font-size: 0.92rem;
}

@media (max-width: 1100px) {
    .hero-grid,
    .subhero-grid,
    .cta-grid,
    .form-layout,
    .contact-grid,
    .compare-grid,
    .faq-grid,
    .timeline,
    .footer-grid,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.75rem);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: 1.1rem;
        background: rgba(10, 22, 28, 0.98);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 0.8rem 0.9rem;
        border-radius: 0.85rem;
        background: rgba(255, 255, 255, 0.03);
    }

    .demo-banner .shell,
    .header-shell,
    .callout-band,
    .legal-row {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 4rem;
    }

    .hero-copy h1,
    .subhero h1,
    .section-heading h2,
    .callout-band h2,
    .info-card h2,
    .faq-grid h2,
    .hero-panel h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .demo-banner p,
    .demo-banner-links a {
        font-size: 0.68rem;
    }

    .shell {
        width: min(1180px, calc(100% - 1.25rem));
    }
}
