/* ═══════════════════════════════════════════════════════
   ProptechME — Cleanmeter.app inspired design system
   https://www.cleanmeter.app/
   ═══════════════════════════════════════════════════════ */

:root {
    --cm-bg: #080b0f;
    --cm-bg-elevated: #0f1419;
    --cm-bg-card: #141b24;
    --cm-bg-light: #eeede9;
    --cm-border: rgba(255, 255, 255, 0.08);
    --cm-border-strong: rgba(255, 255, 255, 0.14);
    --cm-text-dim: rgba(232, 236, 241, 0.55);
    --cm-pill-radius: 999px;
    --cm-card-radius: 20px;
    --cm-nav-max: min(1080px, calc(100vw - 2rem));
}

body {
    background: var(--cm-bg);
}

/* ── Floating pill navigation (Cleanmeter style) — desktop ── */
@media (min-width: 901px) {
    .header {
        top: clamp(0.875rem, 2vw, 1.25rem);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(calc(100% - 2rem), var(--cm-nav-max));
        max-width: var(--cm-nav-max);
        min-height: 54px;
        padding: 0.35rem 0.5rem;
        background: rgba(12, 16, 22, 0.72);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--cm-border);
        border-radius: var(--cm-pill-radius);
        border-bottom: 1px solid var(--cm-border);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    }

    .header.scrolled {
        background: rgba(8, 11, 15, 0.92);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    }

    .header .nav.container {
        max-width: none;
        width: 100%;
        padding: 0 0.75rem;
        min-height: 48px;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0.75rem 1rem;
    }

    .logo {
        grid-column: 1;
        min-width: 0;
    }

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

    .nav-menu {
        position: static;
        left: auto;
        transform: none;
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(0.5rem, 1.5vw, 1.25rem);
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .nav-links {
        flex: 1;
        justify-content: center;
        min-width: 0;
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .nav-cta {
        margin-left: 0;
        gap: 0.5rem;
        flex-shrink: 0;
    }
}

.logo-text {
    font-size: 1.0625rem;
    font-weight: 700;
}

.nav-links {
    gap: clamp(0.875rem, 2vw, 1.5rem);
}

.nav-links a,
.nav-dropdown-toggle {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cm-text-dim);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--color-text);
}

.nav-cta .btn-outline {
    border-color: var(--cm-border-strong);
    color: var(--color-text);
    background: transparent;
    font-size: 0.8125rem;
    padding: 0.45rem 0.875rem;
}

.nav-cta .btn-primary {
    font-size: 0.8125rem;
    padding: 0.45rem 0.875rem;
}

/* ── Hero ── */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(72px + var(--space-3xl));
    padding-bottom: var(--space-4xl);
    text-align: center;
    background: var(--cm-bg);
    overflow: hidden;
}

.hero-container {
    width: 100%;
}

.hero-bg {
    background: var(--cm-bg);
}

.hero-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-mesh-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-mesh-blob-1 {
    background: radial-gradient(circle, rgba(212, 168, 83, 0.42) 0%, rgba(180, 90, 40, 0.15) 40%, transparent 72%);
    width: min(70vw, 720px);
    height: min(70vw, 720px);
    top: 5%;
    right: -5%;
    filter: blur(110px);
}

.hero-mesh-blob-2 {
    background: radial-gradient(circle, rgba(200, 100, 50, 0.35) 0%, transparent 70%);
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    bottom: 8%;
    left: -12%;
    filter: blur(100px);
}

.hero-mesh-blob-3 {
    background: radial-gradient(circle, rgba(212, 140, 60, 0.2) 0%, transparent 70%);
    width: min(45vw, 420px);
    height: min(45vw, 420px);
    top: 38%;
    left: 28%;
    filter: blur(90px);
}

.page-workforce .hero-mesh-blob-1 {
    background: radial-gradient(circle, rgba(212, 168, 83, 0.38) 0%, rgba(74, 158, 255, 0.12) 45%, transparent 72%);
}

.page-workforce .hero-mesh-blob-3 {
    background: radial-gradient(circle, rgba(74, 158, 255, 0.22) 0%, transparent 70%);
}

.hero-vignette {
    background:
        radial-gradient(ellipse 100% 80% at 50% 60%, transparent 20%, rgba(8, 11, 15, 0.7) 100%),
        linear-gradient(to bottom, rgba(8, 11, 15, 0.15) 0%, transparent 45%, rgba(8, 11, 15, 0.9) 100%) !important;
}

.hero-content-centered {
    max-width: 44rem;
}

.hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.875rem;
    margin-bottom: var(--space-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cm-border);
    color: var(--cm-text-dim);
}

.badge-dot {
    background: var(--color-primary);
}

.hero-title {
    display: block;
    font-size: clamp(2.125rem, 5.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.hero-title-line {
    display: inline;
}

.hero-title-accent {
    background: linear-gradient(135deg, #f0d080, #d4a853, #b8862a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 32rem;
    margin: var(--space-md) auto var(--space-xl);
    color: var(--cm-text-dim);
    font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
    line-height: 1.65;
    font-weight: 400;
}

.hero-cta {
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.btn-pill-primary {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    color: #0a0a0a;
    border-radius: var(--cm-pill-radius);
    padding: 0.875rem 0.875rem 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-pill-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12);
    color: #0a0a0a;
}

.btn-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-left: 1rem;
    background: #0a0a0a;
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
}

.hero-meta {
    font-size: 0.75rem;
    color: rgba(232, 236, 241, 0.35);
    margin-bottom: var(--space-3xl);
}

.hero-showcase {
    max-width: min(780px, 100%);
    margin-top: 0;
    width: 100%;
}

.hero-glass {
    padding: 0.625rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 40px 100px rgba(0, 0, 0, 0.55);
}

.hero-glass .hero-mockup {
    border-radius: 16px;
}

/* ── Value strip (Make it yours cards) ── */
.value-strip {
    padding: var(--section-py) 0;
    background: var(--cm-bg);
    position: relative;
    z-index: 2;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--space-lg);
}

.value-card,
.feature-card,
.advantage-card,
.benefit-card,
.benefit-deep-card {
    min-width: 0;
}

.value-card {
    padding: var(--space-xl) var(--space-lg);
    background: var(--cm-bg-card);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-card-radius);
    text-align: left;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.value-card:hover {
    border-color: rgba(212, 168, 83, 0.25);
    transform: translateY(-3px);
}

.value-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.15);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.value-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    line-height: 1.3;
}

.value-card p {
    font-size: 0.8125rem;
    color: var(--cm-text-dim);
    line-height: 1.55;
}

/* ── Scroll narrative (Cleanmeter story section) ── */
.narrative-scroll {
    position: relative;
    height: 280vh;
    background: var(--cm-bg-light);
    z-index: 0;
}

.narrative-scroll-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(72px + 1.5rem) var(--space-lg) var(--space-2xl);
    z-index: 1;
}

.narrative-scroll-inner {
    max-width: 52rem;
    margin: 0 auto;
    width: 100%;
}

.narrative-text {
    font-size: clamp(1.625rem, 4.2vw, 3rem);
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: -0.03em;
    text-wrap: pretty;
}

.narrative-chunk {
    color: rgba(15, 15, 15, 0.14);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.narrative-chunk.is-lit {
    color: rgba(15, 15, 15, 1);
    opacity: 1;
}

.narrative-chunk.narrative-accent.is-lit {
    color: rgba(15, 15, 15, 0.92);
}

.narrative-chunk.narrative-accent.is-accent {
    color: #6b4a12;
}

/* ── Section headers (Cleanmeter style) ── */
.section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section-header .section-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: var(--space-md);
    text-wrap: balance;
}

.section-desc {
    font-size: 1rem;
    color: var(--cm-text-dim);
    line-height: 1.65;
    text-wrap: pretty;
}

.section-label {
    display: block;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* ── Benefits / feature cards ── */
.benefits-strip {
    background: var(--cm-bg-elevated);
    padding: var(--section-py) 0;
}

.benefits-strip .section-title,
.features .section-title,
.odoo-advantages .section-title,
.benefits-deep .section-title,
.faq .section-title {
    text-align: center;
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.benefit-card,
.advantage-card,
.feature-card {
    background: var(--cm-bg-card);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-card-radius);
}

.benefit-card:hover,
.feature-card:hover {
    border-color: rgba(212, 168, 83, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

/* Bento feature grid */
.features-grid-highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.feature-card-highlight {
    padding: var(--space-xl);
}

.features-grid:not(.features-grid-highlight) {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.8125rem;
}

.features-showcase-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cm-text-dim);
    margin: var(--space-3xl) 0 var(--space-lg);
    text-align: center;
}

/* ── Light / dark section alternation ── */
.mobile-app,
.positioning {
    background: var(--cm-bg-elevated);
    padding: var(--section-py) 0;
}

.odoo-advantages,
.features,
.benefits-deep {
    background: var(--cm-bg);
    padding: var(--section-py) 0;
}

.section-header {
    margin-bottom: var(--space-2xl);
}

/* ── FAQ (Cleanmeter accordion style) ── */
.faq {
    padding: var(--section-py) 0;
    background: var(--cm-bg-light);
    color: #1a1a1a;
}

.faq .section-label,
.faq .section-title {
    color: #1a1a1a;
}

.faq .section-label {
    color: #8a6420;
}

.faq-list {
    max-width: 40rem;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    margin-bottom: var(--space-sm);
}

.faq-item summary {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1a1a1a;
    padding: var(--space-lg);
}

.faq-item p {
    color: rgba(20, 20, 20, 0.65);
    font-size: 0.875rem;
    padding: 0 var(--space-lg) var(--space-lg);
}

/* ── CTA section ── */
.cta {
    background: var(--cm-bg);
    border-top: 1px solid var(--cm-border);
    padding: var(--section-py) 0;
}

.cta-title {
    text-align: center;
    text-wrap: balance;
}

.cta-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    justify-content: center;
}

.btn-outline {
    border-radius: var(--cm-pill-radius);
}

.btn-primary {
    border-radius: var(--cm-pill-radius);
}

/* ── Contact & footer ── */
.contact {
    background: var(--cm-bg-elevated);
    border-top: 1px solid var(--cm-border);
    padding: var(--section-py) 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--cm-bg-card);
    border-color: var(--cm-border);
    border-radius: 12px;
}

.footer {
    background: var(--cm-bg);
    border-top: 1px solid var(--cm-border);
}

/* ── Mobile app / split sections ── */
.mobile-app-content .section-title,
.positioning-content .section-title {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    text-align: left;
    max-width: none;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        font-size: 0.75rem;
    }

    .nav-cta .btn-outline {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .value-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1440px) {
    :root {
        --cm-nav-max: 1200px;
    }

    .hero-showcase {
        max-width: min(900px, 100%);
    }

    .hero-title {
        font-size: clamp(2.5rem, 4vw, 4rem);
        max-width: 24ch;
    }

    .features-grid:not(.features-grid-highlight) {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (min-width: 1680px) {
    :root {
        --cm-nav-max: 1280px;
    }

    .hero-showcase {
        max-width: min(960px, 100%);
    }
}

@media (min-width: 1920px) {
    :root {
        --cm-nav-max: 1320px;
    }
}

@media (max-width: 900px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header {
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        min-height: var(--header-height);
        padding: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: rgba(8, 11, 15, 0.96);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    }

    .header .nav.container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        min-height: var(--header-height);
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.75rem;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .mobile-menu-btn {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        position: relative;
        z-index: 1002;
        flex-shrink: 0;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        background: var(--cm-bg-elevated);
        flex: none;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--cm-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
        z-index: 1001;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        width: 100%;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        font-size: 1rem;
        white-space: normal;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-cta {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: var(--space-sm);
        padding-top: var(--space-md);
        border-top: 1px solid var(--cm-border);
    }

    .nav-cta .btn-outline {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .hero {
        min-height: auto;
        width: 100%;
        max-width: 100%;
        padding-top: calc(var(--header-height) + var(--space-2xl));
        padding-bottom: var(--space-3xl);
    }

    .hero-container,
    .hero-content-centered {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 0.9375rem;
        padding: 0;
    }

    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.35rem 0.75rem;
        max-width: 100%;
    }

    .hero-meta {
        margin-bottom: var(--space-xl);
    }

    .hero-showcase {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero-glass {
        width: 100%;
        padding: 0.375rem;
        border-radius: 16px;
    }

    .hero-glass .hero-mockup {
        width: 100%;
        border-radius: 12px;
    }

    .hero-cta {
        width: 100%;
        display: flex;
        justify-content: stretch;
    }

    .btn-pill-primary {
        width: 100%;
        max-width: none;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .hero-mesh-blob-1 {
        width: min(90vw, 360px);
        height: min(90vw, 360px);
        right: -20%;
    }

    .hero-mesh-blob-2 {
        width: min(80vw, 300px);
        height: min(80vw, 300px);
        left: -25%;
    }

    .hero-mesh-blob-3 {
        width: min(70vw, 260px);
        height: min(70vw, 260px);
    }

    .value-strip {
        width: 100%;
        padding: var(--section-py-tight) 0;
    }

    .benefits-strip,
    .mobile-app,
    .odoo-advantages,
    .positioning,
    .features,
    .benefits-deep,
    .faq,
    .cta,
    .contact {
        padding: var(--section-py-tight) 0;
    }

    .features-grid-highlight,
    .features-grid:not(.features-grid-highlight) {
        grid-template-columns: 1fr;
    }

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

    .narrative-scroll {
        width: 100%;
        height: 260vh;
    }

    .narrative-scroll-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        height: 100svh;
        min-height: 100vh;
        padding: calc(var(--header-height) + 1rem) var(--space-md) var(--space-2xl);
    }

    .narrative-text {
        font-size: clamp(1.375rem, 5.5vw, 1.75rem);
        line-height: 1.45;
    }

    .mobile-app-visual {
        overflow: hidden;
    }

    .mobile-app-visual::before {
        width: 100%;
        height: 100%;
    }

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

    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }

    .contact-intro {
        max-width: 100%;
    }

    .section-header {
        max-width: 100%;
    }

    .mobile-app-content .section-title,
    .positioning-content .section-title {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mesh-blob {
        animation: none;
    }
}
