:root {
    --green: #0bbf64;
    --green-dark: #087d45;
    --ink: #15201b;
    --muted: #5d6a64;
    --line: #d9e7df;
    --surface: #ffffff;
    --soft: #f4faf7;
    --blue: #3266d6;
    --amber: #c97812;
    --rose: #ca445f;
    --shadow: 0 22px 70px rgba(15, 47, 32, .14);
    --motion-fast: 140ms ease;
    --motion-base: 220ms cubic-bezier(.2, .8, .2, 1);
    --motion-slow: 520ms cubic-bezier(.16, 1, .3, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fbfdfb;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    overflow: hidden;
}

.nav {
    width: min(1160px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    animation: page-drop-in var(--motion-slow) both;
}

.brand img {
    width: 162px;
    height: auto;
    transition: transform var(--motion-base);
}

.brand:hover img {
    transform: translateY(-1px) scale(1.015);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #334039;
    font-size: 15px;
    font-weight: 650;
}

.nav-links a {
    position: relative;
    transition: color var(--motion-base);
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--motion-base);
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

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

.btn {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
    transition:
            background-color var(--motion-base),
            border-color var(--motion-base),
            box-shadow var(--motion-base),
            color var(--motion-base),
            transform var(--motion-fast);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 3px solid rgba(11, 191, 100, .24);
    outline-offset: 3px;
}

.btn-primary {
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 12px 26px rgba(11, 191, 100, .22);
}

.btn-primary:hover {
    background: #0aa959;
    box-shadow: 0 16px 34px rgba(11, 191, 100, .28);
}

.btn-secondary {
    color: var(--green-dark);
    background: #ffffff;
    border-color: #b7ddc9;
}

.btn-secondary:hover {
    border-color: var(--green);
    box-shadow: 0 12px 28px rgba(15, 47, 32, .1);
}

.hero {
    position: relative;
    min-height: calc(100vh - 132px);
    display: flex;
    align-items: center;
    padding: 52px 0 72px;
    background:
            linear-gradient(135deg, rgba(11, 191, 100, .10), transparent 38%),
            linear-gradient(180deg, #ffffff 0%, #f2faf6 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -130px -12%;
    height: 220px;
    background: #ffffff;
    transform: rotate(-3deg);
    transform-origin: center;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr);
    align-items: center;
    gap: 58px;
}

.eyebrow {
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 12px;
    border: 1px solid #ccebd9;
    border-radius: 999px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 800;
    animation: hero-copy-in var(--motion-slow) 80ms both;
}

h1 {
    max-width: 730px;
    margin: 0;
    color: #112018;
    font-size: clamp(44px, 6vw, 78px);
    line-height: .98;
    letter-spacing: 0;
    animation: hero-copy-in var(--motion-slow) 140ms both;
}

.hero-copy {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
    animation: hero-copy-in var(--motion-slow) 220ms both;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: hero-copy-in var(--motion-slow) 300ms both;
}

.proof-row {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    animation: hero-copy-in var(--motion-slow) 380ms both;
}

.proof {
    border-left: 3px solid var(--green);
    padding-left: 12px;
    transition: border-color var(--motion-base), transform var(--motion-base);
}

.proof:hover {
    border-color: var(--green-dark);
    transform: translateY(-2px);
}

.proof strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.proof span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.app-window {
    border: 1px solid rgba(140, 179, 158, .45);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
    animation: product-window-in 720ms cubic-bezier(.16, 1, .3, 1) 260ms both;
    transition:
            border-color var(--motion-base),
            box-shadow var(--motion-base),
            transform var(--motion-base);
}

.app-window:hover {
    border-color: rgba(11, 191, 100, .42);
    box-shadow: 0 30px 80px rgba(15, 47, 32, .18);
    transform: translateY(-4px);
}

.window-bar {
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fcfa;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9bb7aa;
}

.window-title {
    color: #56655d;
    font-size: 13px;
    font-weight: 800;
}

.dashboard {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 520px;
}

.sidebar {
    padding: 18px 12px;
    border-right: 1px solid var(--line);
    background: #102019;
}

.mini-logo {
    width: 40px;
    height: 34px;
    margin: 0 0 24px;
    object-fit: cover;
    object-position: left center;
}

.side-item {
    height: 34px;
    margin-bottom: 7px;
    padding: 0 10px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 750;
}

.side-item.active {
    color: #ffffff;
    background: rgba(11, 191, 100, .22);
}

.main-panel {
    padding: 22px;
    background: #fbfdfc;
}

.panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
}

.panel-subtitle {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.status-pill {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--green-dark);
    background: #dcf7e8;
    font-size: 12px;
    font-weight: 800;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric,
.table-wrap,
.ledger {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    transition:
            border-color var(--motion-base),
            box-shadow var(--motion-base),
            transform var(--motion-base);
}

.metric:hover,
.table-wrap:hover,
.ledger:hover {
    border-color: rgba(11, 191, 100, .32);
    box-shadow: 0 14px 34px rgba(15, 47, 32, .08);
    transform: translateY(-2px);
}

.metric {
    padding: 15px;
}

.metric span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.metric strong {
    display: block;
    margin-top: 9px;
    font-size: 24px;
}

.metric small {
    display: block;
    margin-top: 8px;
    color: var(--green-dark);
    font-weight: 800;
}

.workspace {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(168px, .65fr);
    gap: 12px;
}

.table-wrap {
    overflow: hidden;
}

.table-head,
.row {
    display: grid;
    grid-template-columns: 1.05fr .9fr .68fr .82fr;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    padding: 0 12px;
    font-size: 11px;
}

.table-head {
    color: #69766f;
    background: #f3f8f5;
    font-weight: 850;
}

.row {
    border-top: 1px solid #edf3ef;
    color: #26342d;
    font-weight: 700;
    transition: background-color var(--motion-base);
}

.row:hover {
    background: #f8fcfa;
}

.tag {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.tag.in {
    color: var(--green-dark);
    background: #dbf5e7;
}

.tag.out {
    color: var(--rose);
    background: #fae4e9;
}

.tag.warn {
    color: var(--amber);
    background: #fff0d7;
}

.ledger {
    padding: 15px;
}

.ledger h3 {
    margin: 0 0 14px;
    font-size: 15px;
}

.ledger-item {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #edf3ef;
    color: #3f4c45;
    font-size: 12px;
    font-weight: 700;
}

.ledger-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.dot {
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--green);
    animation: dot-pulse 1800ms ease-in-out infinite;
}

.dot.blue {
    background: var(--blue);
}

.dot.amber {
    background: var(--amber);
}

section {
    position: relative;
    z-index: 2;
    padding: 86px 0;
    background: #ffffff;
}

.section-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
            opacity var(--motion-slow),
            transform var(--motion-slow);
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.feature-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature {
    min-height: 208px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    transition:
            border-color var(--motion-base),
            box-shadow var(--motion-base),
            transform var(--motion-base);
}

.feature:hover {
    border-color: rgba(11, 191, 100, .35);
    box-shadow: 0 18px 44px rgba(15, 47, 32, .1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--ink);
    font-weight: 950;
    transition:
            background-color var(--motion-base),
            transform var(--motion-base);
}

.feature:hover .feature-icon {
    background: var(--green-dark);
    transform: scale(1.04);
}

.feature h3 {
    margin: 20px 0 10px;
    font-size: 20px;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.flow {
    background: var(--soft);
}

.flow-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--line);
}

.flow-step {
    min-height: 190px;
    padding: 24px;
    background: #ffffff;
    transition:
            background-color var(--motion-base),
            transform var(--motion-base);
}

.flow-step:hover {
    background: #fbfdfb;
    transform: translateY(-3px);
}

.flow-step strong {
    color: var(--green-dark);
    font-size: 13px;
}

.flow-step h3 {
    margin: 18px 0 10px;
    font-size: 19px;
}

.flow-step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.cta {
    padding: 76px 0;
    background: #112018;
    color: #ffffff;
}

.cta-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.cta h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.cta p {
    max-width: 660px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 17px;
    line-height: 1.55;
}

.footer {
    padding: 28px 0;
    background: #0d1813;
    color: rgba(255, 255, 255, .66);
}

.footer-inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}

.footer img {
    width: 118px;
    height: auto;
}

.footer a {
    color: #ffffff;
    font-weight: 800;
    transition: color var(--motion-base);
}

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

@keyframes page-drop-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-copy-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes product-window-in {
    from {
        opacity: 0;
        transform: translateY(26px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dot-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(11, 191, 100, .28);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(11, 191, 100, 0);
    }
}

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        min-height: auto;
    }

    .app-window {
        max-width: 720px;
    }

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

    .cta-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nav {
        min-height: 68px;
    }

    .brand img {
        width: 136px;
    }

    .nav-actions .btn-secondary {
        display: none;
    }

    .hero {
        padding-top: 34px;
    }

    h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

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

    .proof-row,
    .feature-grid,
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .dashboard {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .sidebar {
        display: none;
    }

    .main-panel {
        padding: 16px;
    }

    .panel-top,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric-grid,
    .workspace {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        overflow-x: auto;
    }

    .table-head,
    .row {
        min-width: 560px;
    }

    section {
        padding: 64px 0;
    }
}

@media (max-width: 430px) {
    .hero-actions,
    .nav-actions {
        width: 100%;
    }

    .nav {
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 0 14px;
    }

    .nav-actions {
        justify-content: flex-end;
    }

    .nav-actions .btn {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .section-reveal {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .brand:hover img,
    .proof:hover,
    .app-window:hover,
    .metric:hover,
    .table-wrap:hover,
    .ledger:hover,
    .feature:hover,
    .feature:hover .feature-icon,
    .flow-step:hover {
        transform: none;
    }
}
