:root {
    --bg: #f2f4f1;
    --surface: #fbfcf8;
    --surface-2: #e8eee9;
    --text: #0e1211;
    --text-muted: #68706d;
    --line: #d2d8d4;
    --line-strong: #0e1211;
    --accent: #008f7a;
    --grid-size: 48px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;
    --font-sans: "Inter", "Manrope", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.028) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.028) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

::selection {
    background: var(--accent);
    color: var(--surface);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border: 3px solid var(--bg);
}

.container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.mono,
.section-label,
.meta-line,
.nav-link,
.nav-cta,
.mobile-nav-link,
.tech-button,
.tag,
.panel-index,
.panel-footer,
.system-label,
.figure-caption,
.slider-dot {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease;
}

.navbar.scrolled,
.navbar.menu-open {
    background: rgba(244, 244, 239, 0.94);
    border-color: var(--line);
    backdrop-filter: blur(12px);
}

.nav-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(160px, 1fr);
    align-items: center;
    gap: var(--space-md);
}

.brand {
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
}

.brand span {
    color: var(--accent);
}

.nav-meta {
    justify-self: end;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 160ms ease;
}

.nav-link::before {
    content: attr(data-index);
    display: inline-block;
    margin-right: 8px;
    color: var(--accent);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -10px;
    height: 1px;
    background: var(--line-strong);
    transition: right 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    right: 0;
}

.nav-cta {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.nav-cta:hover {
    background: var(--text);
    color: var(--surface);
}

.menu-toggle {
    display: none;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--text);
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 16px;
}

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

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}

.section {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--line);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 108px;
    border-top: 0;
}

.section-grid,
.hero-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.hero-grid {
    align-items: end;
}

.section-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
}

.section-label {
    color: var(--accent);
}

.meta-line {
    color: var(--text-muted);
}

.hero-title {
    margin: 0;
    font-size: 76px;
    line-height: 0.88;
    letter-spacing: 0;
    font-weight: 800;
    max-width: 920px;
}

.hero-title span,
.accent-text {
    color: var(--accent);
}

.section-title {
    margin: 0;
    font-size: 72px;
    line-height: 0.94;
    letter-spacing: 0;
    font-weight: 800;
}

.section-copy,
.hero-copy {
    max-width: 670px;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.65;
}

.hero-copy {
    margin-top: var(--space-md);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: var(--space-md);
}

.tech-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: color 180ms ease, transform 180ms ease;
}

.tech-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--text);
    transform: translateY(101%);
    transition: transform 180ms ease;
    z-index: -1;
}

.tech-button:hover {
    color: var(--surface);
    transform: translateY(-2px);
}

.tech-button:hover::before {
    transform: translateY(0);
}

.tech-button.primary {
    background: var(--text);
    color: var(--surface);
}

.tech-button.primary::before {
    background: var(--accent);
}

.tech-button.primary:hover {
    color: var(--text);
}

.capability-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: var(--space-lg);
    border: 1px solid var(--line);
}

.capability-item {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-right: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 13px;
}

.capability-item:last-child {
    border-right: 0;
}

.capability-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.data-panel {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--surface);
    color: var(--text);
    transition: background 180ms ease;
}

.data-panel::after {
    content: "+";
    position: absolute;
    top: 12px;
    right: 14px;
    color: var(--accent);
    font-family: var(--font-mono);
}

.data-panel:hover {
    background: #fff;
}

.data-panel:hover .panel-body {
    transform: translateX(4px);
}

.panel-body {
    margin-top: auto;
    transition: transform 180ms ease;
}

.panel-index,
.panel-footer {
    color: var(--text-muted);
}

.data-panel h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
}

.data-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.panel-footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: var(--space-md) 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
}

.check-grid li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 14px;
}

.check-grid li:nth-child(2n) {
    border-right: 0;
}

.check-grid li:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.check-grid svg {
    color: var(--accent);
    width: 16px;
    height: 16px;
}

.specimen {
    position: relative;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    padding: 18px;
}

.specimen::before,
.specimen::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--accent);
    pointer-events: none;
}

.specimen::before {
    top: -1px;
    left: -1px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.specimen::after {
    right: -1px;
    bottom: -1px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.specimen-head,
.specimen-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
}

.specimen-body {
    margin: 22px 0;
    padding: 24px;
    border: 1px solid var(--line);
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.system-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.system-row:last-child {
    border-bottom: 0;
}

.system-label {
    color: var(--text);
}

.bar {
    height: 11px;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(90deg, var(--accent) var(--value), transparent 0),
        repeating-linear-gradient(90deg, transparent 0 8px, rgba(17, 17, 17, 0.12) 8px 9px);
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    background: var(--accent);
    animation: blink 1.8s steps(2, start) infinite;
}

.dark-band {
    background: #111;
    color: var(--surface);
}

.dark-band .section-kicker,
.dark-band .panel-footer,
.dark-band .data-panel,
.dark-band .specimen,
.dark-band .specimen-body {
    border-color: rgba(250, 250, 247, 0.18);
}

.dark-band .data-panel,
.dark-band .specimen {
    background: #161616;
    color: var(--surface);
}

.dark-band .section-copy,
.dark-band .data-panel p,
.dark-band .panel-index,
.dark-band .panel-footer,
.dark-band .meta-line,
.dark-band .specimen-head,
.dark-band .specimen-foot {
    color: #aaa9a0;
}

.dark-band .system-label {
    color: var(--surface);
}

.dark-band .bar {
    border-color: var(--surface);
}

.dark-band .data-panel:hover {
    background: #1c1c1c;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    color: var(--text-muted);
    background: var(--surface);
}

.dark-band .tag {
    background: #111;
    border-color: rgba(250, 250, 247, 0.2);
    color: #c8c7bd;
}

.center-intro {
    max-width: 900px;
    margin: 0 auto var(--space-lg);
}

.use-case-shell {
    position: relative;
    max-width: 1050px;
    margin-inline: auto;
}

.slider {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--surface);
}

.slider-track {
    display: flex;
    transition: transform 520ms ease;
}

.slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: var(--space-md);
    padding: clamp(24px, 5vw, 60px);
}

.slide-visual {
    min-height: 280px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        var(--surface-2);
    background-size: 24px 24px;
    color: var(--accent);
}

.slide-visual svg {
    width: 118px;
    height: 118px;
    stroke-width: 1;
}

.slide h3 {
    margin: 18px 0;
    font-size: 48px;
    line-height: 0.98;
    letter-spacing: 0;
}

.slide p {
    color: var(--text-muted);
    line-height: 1.65;
}

.bullet-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 14px;
}

.slider-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--surface);
    color: var(--text);
    transform: translateY(-50%);
    transition: background 160ms ease, color 160ms ease;
}

.slider-control:hover {
    background: var(--text);
    color: var(--surface);
}

.slider-control.prev {
    left: -24px;
}

.slider-control.next {
    right: -24px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-dot {
    width: 28px;
    height: 8px;
    border: 1px solid var(--line-strong);
    background: transparent;
    cursor: pointer;
    transition: background 160ms ease, width 160ms ease;
}

.slider-dot.active {
    width: 48px;
    background: var(--accent);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    margin-top: var(--space-md);
}

.info-cell {
    min-height: 144px;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.info-cell:nth-child(2n) {
    border-right: 0;
}

.info-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.info-cell h4 {
    margin: 0 0 16px;
    color: var(--accent);
}

.info-cell p {
    display: flex;
    gap: 12px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-cell svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--text);
}

.footer {
    padding: 56px 0;
    border-top: 1px solid var(--line-strong);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
}

.footer-brand {
    margin: 0 0 28px;
    font-size: 96px;
    line-height: 0.86;
    letter-spacing: 0;
    font-weight: 800;
}

.footer-rule {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    color: var(--text-muted);
}

@keyframes blink {
    50% {
        opacity: 0.24;
    }
}

@media (max-width: 900px) {
    .nav-inner {
        grid-template-columns: 1fr auto;
    }

    .nav-menu,
    .nav-meta {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .mobile-menu:not(.hidden) {
        display: block;
    }

    .section,
    .hero {
        padding-block: 88px;
    }

    .hero {
        padding-top: 112px;
    }

    .section-grid,
    .hero-grid,
    .contact-grid,
    .slide {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 68px;
    }

    .section-title {
        font-size: 56px;
    }

    .slide h3 {
        font-size: 40px;
    }

    .footer-brand {
        font-size: 68px;
    }

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

    .capability-item:nth-child(2n) {
        border-right: 0;
    }

    .capability-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .slider-control {
        position: static;
        transform: none;
        display: inline-grid;
        margin-top: 16px;
    }

    .slider-control.prev {
        margin-left: calc(50% - 56px);
    }

    .slider-control.next {
        margin-left: 8px;
    }
}

@media (max-width: 640px) {
    :root {
        --grid-size: 36px;
        --space-xl: 84px;
    }

    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 42px;
    }

    .section-copy,
    .hero-copy {
        font-size: 17px;
    }

    .slide h3 {
        font-size: 34px;
    }

    .footer-brand {
        font-size: 46px;
    }

    .section-kicker,
    .specimen-head,
    .specimen-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-grid,
    .check-grid,
    .info-grid,
    .capability-strip {
        grid-template-columns: 1fr;
    }

    .capability-item,
    .check-grid li,
    .info-cell {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .capability-item:last-child,
    .check-grid li:last-child,
    .info-cell:last-child {
        border-bottom: 0;
    }

    .button-row {
        flex-direction: column;
    }

    .tech-button {
        width: 100%;
    }

    .slide {
        padding: 20px;
    }

    .slide-visual {
        min-height: 210px;
    }

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

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}