:root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --surface-2: #fbfaf8;
    --border: #e7e3d8;
    --border-soft: rgba(17,20,24,.06);
    --ink: #05070b;
    --ink-soft: rgba(17,20,24,.72);
    --ink-muted: rgba(17,20,24,.52);
    --green: #00875a;
    --green-hover: #006b47;
    --navy: #070b12;
    --sans: 'DM Sans', sans-serif;
    --mono: 'DM Mono', monospace;
    --serif: 'DM Serif Display', serif;
    /* Downscaled layout variables */
    --container: 1080px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 14px rgba(17,20,24,.04);
    --shadow-md: 0 8px 24px rgba(17,20,24,.05);
    --shadow-lg: 0 16px 48px rgba(17,20,24,.06);
    --transition: .22s cubic-bezier(.16,1,.3,1);
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: break-word;
}

a {
    text-decoration: none;
}

.hero-container {
    max-width: 1000px;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* =========================================================
   GLOBAL
========================================================= */

.section {
    padding: 64px 0;
}

.section-header {
    max-width: 600px;
    margin-bottom: 44px;
}

.section-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(28px, 5vw, 48px);
    line-height: .96;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.section-copy,
.article-content {
    max-width: 600px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.surface-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(247,246,242,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    margin-left: 5px;
    margin-top: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

    .nav-links a {
        color: var(--ink-soft);
        font-size: 13px;
        font-weight: 600;
        transition: var(--transition);
    }

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-secondary-link {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

    .nav-secondary-link:hover {
        color: var(--ink);
    }

.mobile-menu {
    display: none;
}

    .mobile-menu.open {
        display: flex;
    }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

    .mobile-menu-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--ink);
        margin: 4px 0;
    }

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary,
.btn-secondary {
    height: 38px;
    padding: 0 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--green);
    color: white;
    border: none;
}

    .btn-primary:hover {
        background: var(--green-hover);
        transform: translateY(-0.5px);
    }

.btn-secondary {
    background: white;
    color: var(--ink);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        background: var(--surface-2);
    }

    .btn-secondary.light {
        border: 1px solid rgba(255,255,255,0.16);
        color: white;
        background: transparent;
    }

/* =========================================================
   HERO
========================================================= */

.home-hero {
    padding-top: 100px;
    padding-bottom: 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--serif);
    font-size: clamp(32px, 6vw, 56px);
    line-height: .94;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

    .hero-content h1 em {
        display: block;
        color: var(--green);
        font-style: italic;
        font-weight: 680;
    }

.hero-copy {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 16px;
}

    .hero-copy.secondary {
        margin-bottom: 32px;
    }

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .hero-actions.centered {
        justify-content: center;
    }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 20px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

    .eyebrow::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green);
    }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.trust-item {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

    .trust-item::before {
        content: "\2713";
        color: var(--green);
        margin-right: 6px;
    }

/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-title {
    font-size: 13px;
    font-weight: 700;
}

.dashboard-status {
    background: rgba(0,135,90,0.08);
    color: var(--green);
    padding: 6px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border-bottom: 1px solid var(--border);
}

.metric-box {
    padding: 20px 24px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
}

    .metric-value.green {
        color: var(--green);
    }

.ledger-feed {
    padding: 4px 0;
}

.ledger-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(17,20,24,0.06);
    flex-wrap: wrap;
}

    .ledger-item:last-child {
        border-bottom: none;
    }

.ledger-tag {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.ledger-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ledger-sub {
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ledger-right {
    text-align: right;
}

.ledger-amount {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ledger-status {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}

/* =========================================================
   METRICS
========================================================= */

.metrics-section {
    padding: 36px 0 42px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.metric-number {
    font-family: var(--mono);
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.metric-card h3 {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.metric-copy {
    color: rgba(17,20,24,.62);
    line-height: 1.6;
    font-size: 14px;
}

/* =========================================================
   PROBLEM / WORKFLOW
========================================================= */

.problem-grid,
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.problem-card,
.workflow-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

    .problem-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .problem-card p {
        color: var(--ink-muted);
        font-size: 14px;
        line-height: 1.65;
    }

.workflow-card {
    font-weight: 600;
    font-size: 14px;
}

    .workflow-card::before {
        content: "\2713";
        color: var(--green);
        margin-right: 8px;
    }

/* =========================================================
   FLOW
========================================================= */

.architecture-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.flow-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
}

.flow-arrow {
    font-size: 18px;
    color: var(--ink-muted);
}

/* =========================================================
   FEATURES & AUDIENCE
========================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .feature-card p {
        color: var(--ink-muted);
        font-size: 14px;
        line-height: 1.65;
    }

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.audience-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

    .audience-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .audience-card p {
        color: var(--ink-muted);
        font-size: 13px;
        line-height: 1.6;
    }

/* =========================================================
   PRICING
========================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 0;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

    .pricing-card.featured {
        border: 1px solid rgba(0,135,90,.18);
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,135,90,.06);
    }

.pricing-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,135,90,.08);
    color: var(--green);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.pricing-name {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-desc {
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.pricing-price-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.pricing-price {
    font-family: var(--mono);
    font-size: 32px;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

    .pricing-price span {
        font-family: var(--sans);
        font-size: 13px;
        color: var(--ink-muted);
        margin-left: 4px;
    }

    .pricing-price.custom {
        font-size: clamp(24px, 6vw, 32px);
    }

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin-bottom: 24px;
}

    .pricing-features li {
        color: rgba(17,20,24,.68);
        font-size: 13px;
        line-height: 1.5;
    }

        .pricing-features li::before {
            content: "\2713";
            color: var(--green);
            margin-right: 8px;
        }

/* =========================================
   CTA SECTION
========================================= */

.cta-section {
    padding: 72px 0 88px;
}

.cta-card {
    background: #05070B;
    border-radius: 24px;
    padding: 64px 4vw;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .cta-card .section-eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
    }

.cta-title {
    max-width: 700px;
    margin: 0 auto 24px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -1px;
    color: #F8F8F4;
}

.cta-copy {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.76);
}

    .cta-copy.secondary {
        margin-bottom: 32px;
    }

/* =========================================
   MODAL
========================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: rgba(6, 10, 18, 0.72);
    backdrop-filter: blur(8px);
}

    .modal.open {
        display: flex;
    }

.modal-panel {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 30px 18px;
    border-bottom: 1px solid var(--border);
}

.modal-eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green);
    font-family: var(--mono);
}

.modal-title {
    margin: 0;
    font-size: clamp(22px, 5vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.modal-body {
    padding: 30px;
}

.booking-step {
    display: none;
}

    .booking-step.active {
        display: block;
    }

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-field-full {
    grid-column: span 2;
}

.booking-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-family: var(--mono);
}

.booking-input,
.booking-select,
.booking-textarea {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    color: var(--ink);
    font-size: 14px;
    font-family: var(--sans);
    transition: border-color .2s ease;
}

.booking-textarea {
    min-height: 100px;
    resize: vertical;
    padding-top: 12px;
}

    .booking-input:focus,
    .booking-select:focus,
    .booking-textarea:focus {
        outline: none;
        border-color: var(--green);
    }

.booking-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

    .booking-actions .btn-primary,
    .booking-actions .btn-secondary {
        width: auto;
        min-width: 140px;
    }

.booking-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    display: none;
}

    .booking-message.success {
        display: block;
        background: rgba(0, 140, 82, 0.08);
        color: #008c52;
    }

    .booking-message.error {
        display: block;
        background: rgba(185, 28, 28, 0.08);
        color: #b91c1c;
    }

.booking-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.booking-slot {
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    font-family: var(--mono);
    font-size: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

    .booking-slot:hover {
        border-color: var(--green);
    }

    .booking-slot.selected {
        background: var(--green);
        color: white;
        border-color: var(--green);
    }

    .booking-slot:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.booking-loading,
.booking-empty,
.booking-error {
    padding: 16px;
    border-radius: 14px;
    background: var(--surface-alt);
    color: var(--ink-soft);
    font-size: 13px;
}

.booking-error {
    color: #b91c1c;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--ink);
    cursor: pointer;
    font-size: 16px;
}

/* =========================================
   FOOTER
========================================= */

footer {
    padding: 40px 0 50px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

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

    .footer-links a {
        color: var(--ink-muted);
        font-size: 13px;
    }

/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-card {
        padding: 56px 4vw;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links,
    .navbar .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
        background: rgba(247,246,242,.98);
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

        .mobile-menu a {
            color: var(--ink);
            font-size: 14px;
            font-weight: 600;
        }

        .mobile-menu.open {
            display: flex;
        }

    .cta-section {
        padding: 56px 0 64px;
    }

    .cta-card {
        padding: 42px 20px;
        border-radius: 20px;
    }

    .cta-title {
        line-height: 1.05;
    }

    .cta-copy {
        font-size: 15px;
        line-height: 1.5;
    }

    .cta-card .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .modal {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-panel {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: calc(100vh - 24px);
    }

    .modal-header {
        padding: 20px 20px 14px;
    }

    .modal-body {
        padding: 20px;
    }

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

    .booking-field-full {
        grid-column: span 1;
    }

    .booking-actions {
        flex-direction: column;
    }

        .booking-actions .btn-primary,
        .booking-actions .btn-secondary {
            width: 100%;
        }

    .metric-box {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

        .metric-box:last-child {
            border-bottom: none;
        }
}

