:root {
    --brand: #007F73;
    --brand-rgb: 0, 127, 115;
    --ink: #132A32;
    --ink-2: #172026;
    --accent: #3157D5;
    --signal: #A7C957;
    --surface: #F6F8F7;
    --surface-alt: #FAFBFB;
    --border: #E4E9E8;
    --border-strong: #D6DDDC;
    --text: #132A32;
    --text-2: #3A4A4E;
    --text-3: #6B7A7E;
    --success: #5F8A1F;
    --warning: #B07D12;
    --danger: #B4452F;
    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-success: var(--success);
    --bs-warning: var(--warning);
    --bs-danger: var(--danger);
    --bs-dark: var(--ink);
    --bs-light: var(--surface);
}

* {
    letter-spacing: 0;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    max-width: 100%;
}

img,
svg {
    max-width: 100%;
}

body {
    font-family: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--surface);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--text);
}

.navbar {
    background: rgba(246, 248, 247, 0.96) !important;
    border-bottom: 1px solid rgba(228, 233, 232, 0.9);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s ease;
}

.navbar.scrolled {
    box-shadow: 0 8px 26px rgba(19, 42, 50, 0.08);
}

.navbar-brand img {
    width: 172px;
    max-width: 48vw;
    display: block;
}

.nav-link {
    color: var(--text-2) !important;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--brand) !important;
}

.btn {
    border-radius: 5px;
    font-weight: 700;
    padding: 0.75rem 1.1rem;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 127, 115, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0C5249;
    border-color: #0C5249;
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-outline-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-outline-light {
    border-color: rgba(246, 248, 247, 0.55);
    color: var(--surface);
}

.btn-outline-light:hover {
    background: var(--surface);
    color: var(--ink);
}

.hero {
    background: #0C5249;
    color: var(--surface);
    min-height: calc(100vh - 76px);
    padding: 6.5rem 0 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero h1 {
    color: var(--surface);
    font-size: clamp(3rem, 7vw, 3.8rem);
    line-height: 0.95;
    margin: 1rem 0 1.4rem;
}

.hero .lead {
    color: #BFDBD5;
    font-size: 1.18rem;
    line-height: 1.65;
    max-width: 640px;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 5px;
    background: rgba(167, 201, 87, 0.14);
    border: 1px solid rgba(167, 201, 87, 0.28);
    color: var(--signal);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.48rem 0.7rem;
    text-transform: uppercase;
}

.section-label {
    color: var(--brand);
    background: #E7F0EE;
    border-color: #BFDED8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-points div {
    border: 1px solid rgba(191, 219, 213, 0.24);
    border-radius: 6px;
    padding: 1rem;
    background: rgba(10, 61, 55, 0.64);
}

.hero-points strong,
.hero-points span {
    display: block;
}

.hero-points strong {
    color: var(--surface);
    font-size: 0.95rem;
}

.hero-points span {
    color: #BFDBD5;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.hero-visual {
    position: relative;
    min-height: 510px;
}

.device-shell {
    position: absolute;
    right: 10%;
    top: 24px;
    width: 300px;
    height: 430px;
    border-radius: 28px;
    background: #101719;
    border: 1px solid rgba(246, 248, 247, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    padding: 22px 17px;
}

.device-shell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 72px;
    width: 10px;
    height: 260px;
    background: var(--accent);
    border-radius: 0 6px 6px 0;
}

.device-led {
    position: absolute;
    right: 28px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(49, 87, 213, 0.75);
}

.device-screen {
    height: 100%;
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.screen-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--brand);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
}

.screen-top small {
    color: var(--text-3);
}

.screen-count {
    font-size: 6rem;
    font-weight: 800;
    text-align: center;
    color: var(--brand);
    line-height: 1;
}

.screen-caption {
    text-align: center;
    color: var(--text-2);
    font-weight: 700;
}

.screen-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.screen-actions span {
    background: var(--brand);
    color: #fff;
    border-radius: 5px;
    text-align: center;
    padding: 0.72rem 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.screen-actions span:last-child {
    background: var(--ink);
}

.portal-preview {
    position: absolute;
    left: 0;
    bottom: 14px;
    width: 310px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(228, 233, 232, 0.4);
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.portal-bar,
.portal-stat,
.portal-line,
.portal-table span {
    border-radius: 4px;
    background: #E7F0EE;
}

.portal-bar {
    height: 16px;
    width: 60%;
}

.portal-stat {
    height: 54px;
    margin: 18px 0;
    background: linear-gradient(90deg, var(--brand), #2AA093);
}

.portal-line {
    height: 10px;
    width: 86%;
    margin-bottom: 9px;
}

.portal-line.short {
    width: 62%;
}

.portal-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.portal-table span {
    height: 22px;
}

.section {
    padding: 5.5rem 0;
}

.page-hero {
    background: #0C5249;
    color: var(--surface);
    padding: 5.5rem 0 4.5rem;
}

.page-hero h1 {
    color: var(--surface);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    margin: 1rem 0;
}

.page-hero p {
    color: #BFDBD5;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
}

.section-soft {
    background: #fff;
}

.section-head {
    max-width: 790px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head h2,
.section-title-left {
    font-size: clamp(2rem, 4vw, 2.4rem);
    line-height: 1.02;
    margin: 1rem 0;
}

.section-head p,
.workflow-list p,
.pricing-card p,
.mode-card p,
.demo-band p,
footer p {
    color: var(--text-2);
    line-height: 1.65;
}

.mode-card,
.pricing-card,
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 28px rgba(19, 42, 50, 0.05);
}

.mode-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #E7F0EE;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.mode-card h3,
.pricing-card h3,
.contact-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.visual-panel {
    min-height: 430px;
    border-radius: 8px;
    background: #0A3D37;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-tag,
.demo-visual span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 2;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: #BFDBD5;
    background: rgba(10, 61, 55, 0.88);
    border-radius: 4px;
    padding: 0.45rem 0.6rem;
}

.scan-strip {
    position: absolute;
    width: 140%;
    height: 110px;
    transform: rotate(-18deg);
    background: repeating-linear-gradient(90deg, rgba(167, 201, 87, 0.08), rgba(167, 201, 87, 0.08) 12px, rgba(246, 248, 247, 0.08) 12px, rgba(246, 248, 247, 0.08) 24px);
}

.visual-device-small {
    width: 230px;
    height: 310px;
    border-radius: 24px;
    background: #101719;
    padding: 18px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.visual-device-small div {
    height: 100%;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface), #DDE7E4);
}

.workflow-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.workflow-list div {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
}

.workflow-list span {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--brand);
    font-weight: 600;
}

.workflow-list strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.workflow-list p {
    grid-column: 2;
    margin: 0;
}

.portal-showcase {
    display: grid;
    grid-template-columns: 230px 1fr;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(19, 42, 50, 0.06);
}

.portal-menu {
    background: var(--ink);
    color: #BFDBD5;
    padding: 1.5rem;
    display: grid;
    align-content: start;
    gap: 1rem;
}

.portal-menu img {
    width: 34px;
    margin-bottom: 1.5rem;
}

.portal-board {
    padding: 1.5rem;
}

.portal-board-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.portal-board-head button {
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--brand);
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
    font-weight: 700;
}

.portal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.portal-metrics div {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
}

.portal-metrics small {
    display: block;
    color: var(--text-3);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.portal-metrics strong {
    display: block;
    font-size: 1.6rem;
    color: var(--brand);
}

.portal-rows {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.portal-rows div {
    display: grid;
    grid-template-columns: 120px 1fr 90px;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
}

.portal-rows div:last-child {
    border-bottom: 0;
}

.portal-rows span:first-child {
    font-family: 'IBM Plex Mono', monospace;
}

.portal-rows b {
    color: var(--brand);
    font-weight: 700;
}

.pricing-card {
    position: relative;
}

.pricing-card.featured {
    border-color: var(--brand);
    box-shadow: 0 18px 50px rgba(0, 127, 115, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 1.5rem;
    background: var(--signal);
    color: var(--ink);
    border-radius: 5px;
    padding: 0.4rem 0.7rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
}

.pricing-card ul {
    padding-left: 1.1rem;
    color: var(--text-2);
    margin: 1.3rem 0 1.6rem;
}

.pricing-card li {
    margin-bottom: 0.55rem;
}

.demo-band {
    background: var(--ink);
    border-radius: 8px;
    color: var(--surface);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: center;
}

.demo-band h2 {
    color: var(--surface);
}

.demo-band p {
    color: #BFDBD5;
}

.demo-visual {
    min-height: 230px;
    border-radius: 6px;
    background: repeating-linear-gradient(135deg, #0E5B51, #0E5B51 12px, #0C4A42 12px, #0C4A42 24px);
    position: relative;
}

.contact-card li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    color: var(--text-2);
    margin-bottom: 1rem;
}

.contact-card i {
    color: var(--brand);
    margin-top: 0.18rem;
}

.legal-wrap {
    max-width: 920px;
}

.legal-wrap h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
}

.legal-wrap h2:first-child {
    margin-top: 0;
}

.legal-wrap p,
.legal-wrap li,
.accordion-body {
    color: var(--text-2);
    line-height: 1.75;
}

.legal-wrap ul {
    padding-left: 1.25rem;
}

.legal-note,
.legal-cta {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 1.4rem;
    box-shadow: 0 10px 28px rgba(19, 42, 50, 0.05);
}

.legal-note {
    color: var(--text-2);
}

.legal-cta {
    text-align: center;
    margin-top: 3rem;
}

.legal-accordion {
    margin-bottom: 2.5rem;
}

.accordion-item {
    border-color: var(--border);
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.accordion-button {
    font-weight: 700;
    color: var(--text);
    background: #fff;
}

.accordion-button:not(.collapsed) {
    background: #E7F0EE;
    color: var(--brand);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(0, 127, 115, 0.12);
}

.form-control,
.form-select {
    border-color: var(--border-strong);
    border-radius: 5px;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(0, 127, 115, 0.12);
}

footer {
    background: var(--ink);
    color: #BFDBD5;
    padding: 4rem 0 2rem;
}

.footer-logo {
    width: 170px;
    background: var(--surface);
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 1rem;
}

footer h6 {
    color: var(--surface);
}

.footer-description {
    max-width: 32rem;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

footer a {
    color: #BFDBD5;
    text-decoration: none;
}

footer a:hover {
    color: var(--signal);
}

footer li {
    margin-bottom: 0.55rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(246, 248, 247, 0.22);
    border-radius: 50%;
    background: rgba(246, 248, 247, 0.06);
    color: #F6F8F7;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background: var(--signal);
    border-color: var(--signal);
    color: var(--ink);
    transform: translateY(-2px);
}

footer hr {
    border-color: rgba(246, 248, 247, 0.2);
}

.footer-copy {
    color: #8FC3BB;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        padding: 4.5rem 0;
    }

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

    .device-shell {
        right: 4%;
        width: 260px;
        height: 370px;
    }

    .portal-preview {
        width: 270px;
    }

    .hero-points,
    .portal-showcase,
    .demo-band {
        grid-template-columns: 1fr;
    }

    .portal-menu {
        grid-template-columns: repeat(4, auto);
        align-items: center;
    }

    .portal-menu img {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand img {
        width: 148px;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

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

    .device-shell {
        position: relative;
        right: auto;
        top: auto;
        margin: 0 auto;
        width: min(260px, 88vw);
        height: 360px;
    }

    .portal-preview {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }

    .mode-card,
    .pricing-card,
    .contact-card {
        padding: 1.4rem;
    }

    .portal-metrics,
    .portal-rows div {
        grid-template-columns: 1fr;
    }

    .portal-menu {
        grid-template-columns: 1fr 1fr;
    }
}
