:root {
    --bg: #070b0d;
    --panel: rgba(18, 23, 27, 0.82);
    --panel-strong: rgba(23, 30, 35, 0.92);
    --line: rgba(255, 255, 255, 0.09);
    --line-green: rgba(61, 221, 120, 0.34);
    --text: #f4f8f6;
    --muted: #8f9da1;
    --green: #25d267;
    --green-2: #7df6a4;
    --gold: #e2b84b;
    --blue: #4d83ff;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 70% 18%, rgba(37, 210, 103, 0.14), transparent 34rem),
        radial-gradient(circle at 14% 10%, rgba(77, 131, 255, 0.08), transparent 24rem),
        linear-gradient(180deg, #070b0d 0%, #0b1114 54%, #070b0d 100%);
    color: var(--text);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 64px 0 0;
    z-index: -1;
    background:
        linear-gradient(rgba(61, 221, 120, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 221, 120, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    content: "";
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    height: 64px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 min(4.8vw, 68px);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 13, 0.82);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
}

.brand-logo {
    display: grid;
    width: 34px;
    height: 28px;
    place-items: center;
    color: transparent;
    font-size: 0;
    position: relative;
}

.brand-logo::before,
.brand-logo::after {
    position: absolute;
    width: 19px;
    height: 28px;
    border-radius: 4px 4px 10px 10px;
    background: linear-gradient(180deg, var(--green-2), var(--green));
    content: "";
    transform: skewX(-25deg);
}

.brand-logo::before {
    left: 4px;
}

.brand-logo::after {
    right: 4px;
    transform: skewX(25deg);
}

.nav {
    display: inline-flex;
    height: 64px;
    align-items: stretch;
    gap: 48px;
    color: #d8dfdd;
    font-weight: 700;
}

.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav a.active,
.nav a:hover {
    color: var(--green);
}

.nav a.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--green);
    content: "";
}

.top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.top-actions a,
.top-actions button {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: #dce5e0;
    cursor: pointer;
    font: inherit;
}

.page-shell {
    width: min(1304px, calc(100% - 56px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    min-height: 430px;
    padding: 42px 0 16px;
}

.hero-copy {
    min-width: 0;
    padding-top: 4px;
}

.hello {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    color: #c9d3d0;
    font-size: 17px;
    font-weight: 700;
}

.hello span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 24px rgba(37, 210, 103, 0.86);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(70px, 7.7vw, 98px);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-lead {
    margin: 0 0 18px;
    color: #edf5f2;
    font-size: clamp(23px, 2vw, 28px);
    font-weight: 900;
    line-height: 1.25;
}

.hero-lead strong {
    color: var(--green);
    font-weight: 900;
}

.hero-lead span {
    display: inline;
}

.hero-text {
    max-width: 610px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions,
.traits,
.metric-panel,
.block-head,
.project-card footer,
.contact-band,
.contact-meta,
.footer {
    display: flex;
    align-items: center;
}

.hero-actions {
    gap: 18px;
    margin-bottom: 26px;
}

.btn {
    display: inline-flex;
    min-width: 150px;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), #49e984);
    color: #03110a;
    box-shadow: 0 18px 44px rgba(37, 210, 103, 0.24);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.035);
    color: #f4f8f6;
}

.traits {
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #9aa6aa;
    font-size: 14px;
}

.traits span {
    position: relative;
    padding-left: 22px;
    white-space: nowrap;
}

.traits span::before {
    position: absolute;
    left: 0;
    color: var(--gold);
    content: "✦";
}

.hero-stage {
    position: relative;
    min-width: 0;
    min-height: 420px;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.stage-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(61, 221, 120, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 221, 120, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 58% 54%, #000 0 38%, transparent 72%);
    opacity: 0.55;
}

.hero-stage::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 58% 54%, rgba(37, 210, 103, 0.15), transparent 38rem),
        linear-gradient(90deg, var(--bg) 0%, rgba(7, 11, 13, 0.78) 8%, transparent 28%, transparent 76%, rgba(7, 11, 13, 0.58) 100%),
        linear-gradient(180deg, rgba(7, 11, 13, 0.82) 0%, transparent 26%, transparent 70%, rgba(7, 11, 13, 0.92) 100%);
    content: "";
    pointer-events: none;
}

.hero-stage::after {
    position: absolute;
    inset: auto 8% 4% 10%;
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 221, 120, 0.45), transparent);
    content: "";
}

.hero-stage img {
    position: absolute;
    top: -46px;
    right: -16px;
    z-index: 0;
    width: min(760px, 108%);
    height: auto;
    opacity: 0.92;
    filter: saturate(1.06) contrast(1.02);
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 16%, #000 86%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
    mask-composite: intersect;
    mix-blend-mode: screen;
}

.node {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 6px;
    min-width: 110px;
    justify-items: center;
    color: #cbd7d5;
    font-size: 14px;
    font-weight: 700;
}

.node b {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(11, 17, 20, 0.52));
    color: #80e8ff;
    font-size: 25px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

.node-api {
    top: 118px;
    left: 108px;
}

.node-ai {
    top: 8px;
    left: 53%;
}

.node-cloud {
    top: 140px;
    right: 28px;
}

.node-code {
    right: 100px;
    bottom: 42px;
}

.node-code b {
    color: var(--green-2);
}

.node-product {
    bottom: 58px;
    left: 96px;
}

.node-product b {
    color: var(--gold);
}

.metric-panel {
    justify-content: space-between;
    gap: 1px;
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: var(--shadow);
}

.metric-panel div {
    flex: 1;
    min-height: 84px;
    padding: 18px 30px;
    border-right: 1px solid var(--line);
}

.metric-panel div:last-child {
    border-right: 0;
}

.metric-panel b {
    display: block;
    color: #fff;
    font-size: 27px;
    line-height: 1;
}

.metric-panel span {
    color: var(--muted);
    font-size: 14px;
}

.block {
    padding: 0 0 24px;
}

.block-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

.block-head h2 {
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--green);
    font-size: 24px;
}

.block-head p {
    margin: 6px 0 0;
    color: var(--gold);
    font-size: 14px;
}

.block-head a {
    color: #9aa6aa;
    font-size: 14px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.project-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    min-height: 144px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.card-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.card-icon.green {
    background: linear-gradient(135deg, #16b85b, #34dd78);
}

.card-icon.blue {
    background: linear-gradient(135deg, #316de8, #72a5ff);
}

.card-icon.gold {
    background: linear-gradient(135deg, #d99924, #ffd275);
}

.project-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.project-card div:nth-child(2) span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(37, 210, 103, 0.12);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.project-card p {
    grid-column: 1 / -1;
    margin: 0;
    color: #a4afb3;
    font-size: 13px;
}

.project-card footer {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: #939fa3;
    font-size: 13px;
}

.project-card footer a {
    color: var(--green);
    font-size: 24px;
    line-height: 1;
}

.contact-band {
    gap: 28px;
    margin: 22px 0 28px;
    padding: 20px 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
}

.chat-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #16b85b, #34dd78);
    color: #fff;
    font-size: 30px;
}

.contact-band h2 {
    margin: 0 0 4px;
    font-size: 24px;
}

.contact-band p {
    margin: 0;
    color: var(--muted);
}

.contact-meta {
    margin-left: auto;
    gap: 30px;
    color: #d4dcda;
    white-space: nowrap;
}

.footer {
    width: min(1304px, calc(100% - 56px));
    margin: 0 auto;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 24px;
    color: #778286;
    font-size: 14px;
}

.back-to-top {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: #8d989c;
    cursor: pointer;
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 560px;
    }

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

    .contact-band,
    .contact-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-meta {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    body,
    .topbar,
    .page-shell,
    .footer {
        max-width: 100vw;
    }

    .topbar {
        position: relative;
        height: auto;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 20px 14px;
        overflow: hidden;
    }

    .nav {
        display: grid;
        width: 100%;
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: hidden;
        font-size: 14px;
    }

    .nav a {
        justify-content: center;
        min-width: 0;
        padding: 8px 0 10px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 8px;
        text-align: center;
    }

    .nav a.active::after {
        right: 18%;
        left: 18%;
    }

    .top-actions {
        display: none;
    }

    .page-shell,
    .footer {
        width: 100%;
        padding-right: 14px;
        padding-left: 14px;
        overflow: hidden;
    }

    .hero {
        gap: 20px;
        padding-top: 24px;
    }

    .hero-copy,
    .hero-stage {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-copy {
        position: relative;
        padding: 22px 18px 18px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
            rgba(10, 15, 18, 0.74);
        box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    }

    .hero-copy::before {
        position: absolute;
        inset: 0 0 auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(61, 221, 120, 0.72), rgba(226, 184, 75, 0.45), transparent);
        content: "";
    }

    .hero-copy::after {
        position: absolute;
        top: 18px;
        right: -42px;
        width: 138px;
        height: 138px;
        border: 1px solid rgba(61, 221, 120, 0.16);
        border-radius: 50%;
        background: radial-gradient(circle, rgba(37, 210, 103, 0.12), transparent 62%);
        content: "";
        pointer-events: none;
    }

    .hello,
    h1,
    .hero-lead,
    .hero-text,
    .hero-actions,
    .traits {
        position: relative;
        z-index: 1;
    }

    .hello {
        margin-bottom: 14px;
        font-size: 15px;
    }

    h1 {
        font-size: clamp(48px, 15.4vw, 62px);
    }

    .hero-lead {
        max-width: 100%;
        margin-bottom: 14px;
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .hero-lead span {
        display: block;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 20px;
        font-size: 15px;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-break: anywhere;
    }

    .hero-actions,
    .traits,
    .metric-panel,
    .contact-band,
    .footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        min-width: 0;
        width: 100%;
    }

    .traits {
        display: flex;
        width: calc(100% + 4px);
        max-width: calc(100% + 4px);
        flex-flow: row nowrap;
        gap: 7px;
        padding-top: 12px;
        padding-bottom: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .traits::-webkit-scrollbar {
        display: none;
    }

    .traits span {
        position: relative;
        display: flex;
        min-width: 72px;
        min-height: 38px;
        flex: 0 0 72px;
        align-items: center;
        justify-content: center;
        padding: 12px 2px 5px;
        border: 1px solid rgba(226, 184, 75, 0.22);
        border-radius: 8px;
        background:
            linear-gradient(180deg, rgba(226, 184, 75, 0.12), rgba(37, 210, 103, 0.045)),
            rgba(255, 255, 255, 0.04);
        color: #e6f0ec;
        font-size: 10.5px;
        font-weight: 800;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
    }

    .traits span::before {
        top: 6px;
        left: 50%;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--gold);
        box-shadow: 0 0 12px rgba(226, 184, 75, 0.72);
        color: transparent;
        font-size: 0;
        transform: translateX(-50%);
    }

    .hero-stage {
        min-height: 282px;
        margin-right: 0;
        margin-left: 0;
        border-radius: 8px;
        overflow: hidden;
        background:
            radial-gradient(circle at 54% 56%, rgba(37, 210, 103, 0.16), transparent 16rem),
            rgba(7, 11, 13, 0.18);
    }

    .hero-stage img {
        top: -6px;
        right: auto;
        left: 50%;
        width: min(500px, 130vw);
        transform: translateX(-50%);
        opacity: 0.82;
    }

    .node {
        display: grid;
        min-width: 72px;
        gap: 4px;
        font-size: 11px;
    }

    .node b {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 15px;
    }

    .node span {
        padding: 2px 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(8, 12, 15, 0.58);
        backdrop-filter: blur(8px);
        white-space: nowrap;
    }

    .node-api {
        top: 42px;
        left: 18px;
    }

    .node-ai {
        top: 24px;
        right: 20px;
        left: auto;
    }

    .node-product {
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
    }

    .node-cloud,
    .node-code {
        display: none;
    }

    .metric-panel div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .project-card {
        grid-template-columns: 48px 1fr;
    }
}
