:root {
    color-scheme: dark;
    --ink: #f6f7ef;
    --muted: #b9bcae;
    --subtle: #818674;
    --bg: #10120f;
    --panel: #171a16;
    --panel-2: #1d211b;
    --line: rgba(246, 247, 239, 0.14);
    --line-strong: rgba(246, 247, 239, 0.28);
    --cyan: #42d6d0;
    --red: #ff5a55;
    --gold: #ffc247;
    --green: #8ee26b;
    --blue: #63a8ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(rgba(246, 247, 239, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 247, 239, 0.035) 1px, transparent 1px),
        linear-gradient(135deg, rgba(66, 214, 208, 0.08), transparent 38%, rgba(255, 194, 71, 0.07) 74%, transparent),
        var(--bg);
    background-size: 42px 42px, 42px 42px, auto, auto;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    line-height: 1.65;
    letter-spacing: 0;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255, 90, 85, 0.06) 44%, transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.45;
    z-index: -2;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

#signalCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.65;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 40px;
    border-bottom: 1px solid transparent;
    background: rgba(16, 18, 15, 0.72);
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(16, 18, 15, 0.92);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 194, 71, 0.75);
    background: linear-gradient(135deg, rgba(255, 194, 71, 0.2), rgba(255, 90, 85, 0.16));
    color: var(--gold);
    font-weight: 800;
    border-radius: 6px;
}

.brand-mark strong,
.brand-mark small {
    display: block;
    white-space: nowrap;
}

.brand-mark strong {
    font-size: 17px;
    line-height: 1.2;
}

.brand-mark small {
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 9px 12px;
    color: var(--muted);
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(246, 247, 239, 0.06);
    outline: none;
}

.site-nav .nav-action {
    margin-left: 8px;
    color: var(--bg);
    background: var(--gold);
    border-color: var(--gold);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: rgba(246, 247, 239, 0.06);
    border-radius: 4px;
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 44px;
    align-items: center;
    min-height: calc(88svh - 72px);
    padding: 70px 40px 46px;
    max-width: 1240px;
    margin: 0 auto;
}

.hero-content {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: 74px;
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 20px;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 4px;
    font-weight: 800;
    line-height: 1.35;
    border: 1px solid var(--line-strong);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-action {
    color: #15130c;
    background: var(--gold);
    border-color: var(--gold);
}

.secondary-action {
    color: var(--ink);
    background: rgba(246, 247, 239, 0.05);
}

.primary-action:hover,
.secondary-action:hover,
.primary-action:focus-visible,
.secondary-action:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    border-color: var(--cyan);
}

.hero-visual {
    position: relative;
    margin: 0;
    border: 1px solid var(--line);
    background: rgba(23, 26, 22, 0.76);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, rgba(66, 214, 208, 0.08));
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    background: #111510;
}

.hero-visual figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    color: var(--ink);
    border: 1px solid rgba(246, 247, 239, 0.2);
    background: rgba(16, 18, 15, 0.76);
    backdrop-filter: blur(16px);
    border-radius: 6px;
    font-size: 13px;
}

.hero-visual figcaption span {
    color: var(--gold);
    font-weight: 800;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: 1240px;
    margin: 0 auto 34px;
    padding: 0 40px;
}

.metric-item {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    background: rgba(23, 26, 22, 0.68);
}

.metric-item strong {
    display: block;
    color: var(--gold);
    font-size: 38px;
    line-height: 1;
}

.metric-item span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
}

.section-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(66, 214, 208, 0.08), transparent 34%, rgba(255, 90, 85, 0.07)),
        rgba(23, 26, 22, 0.7);
}

.pain-band,
.systems-section,
.proof-section,
.pricing-section {
    padding: 86px 40px;
}

.section-heading {
    max-width: 900px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading p:not(.eyebrow) {
    margin: 16px auto 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.pain-grid,
.systems-grid,
.proof-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.pain-card,
.system-card,
.proof-card,
.pricing-card,
.arch-step {
    position: relative;
    min-width: 0;
    border: 1px solid var(--line);
    background: rgba(16, 18, 15, 0.72);
    border-radius: 8px;
    overflow: hidden;
}

.pain-card {
    padding: 28px;
}

.pain-card::after,
.system-card::after,
.proof-card::after,
.pricing-card::after,
.arch-step::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--gold), var(--red));
    opacity: 0.8;
}

.pain-card .index {
    display: block;
    color: var(--red);
    font-weight: 900;
    margin-bottom: 36px;
}

.pain-card p,
.system-card p,
.proof-card p,
.pricing-card p,
.arch-step p {
    margin: 14px 0 0;
    color: var(--muted);
}

.architecture-section,
.workflow-section,
.founder-section,
.contact-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 92px 40px;
}

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

.arch-step {
    padding: 28px;
}

.arch-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    border: 1px solid var(--line-strong);
    color: var(--gold);
    font-weight: 900;
    border-radius: 6px;
}

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

.system-card {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 24px;
}

.system-card[data-accent="cyan"] {
    --accent: var(--cyan);
}

.system-card[data-accent="red"] {
    --accent: var(--red);
}

.system-card[data-accent="gold"] {
    --accent: var(--gold);
}

.system-card[data-accent="green"] {
    --accent: var(--green);
}

.system-card[data-accent="blue"] {
    --accent: var(--blue);
}

.system-card::after {
    background: var(--accent);
}

.system-code {
    width: fit-content;
    margin-bottom: 24px;
    padding: 5px 8px;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent), transparent 55%);
    background: color-mix(in srgb, var(--accent), transparent 90%);
    border-radius: 4px;
    font-weight: 900;
}

.system-card dl {
    display: grid;
    gap: 10px;
    margin: auto 0 0;
    padding-top: 24px;
}

.system-card dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.system-card dt {
    color: var(--subtle);
    font-size: 13px;
}

.system-card dd {
    margin: 0;
    color: var(--accent);
    font-weight: 900;
}

.workflow-tabs {
    border: 1px solid var(--line);
    background: rgba(23, 26, 22, 0.78);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tab-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.tab-list button {
    min-height: 56px;
    padding: 10px;
    color: var(--muted);
    border: 0;
    border-right: 1px solid var(--line);
    background: rgba(246, 247, 239, 0.03);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tab-list button:last-child {
    border-right: 0;
}

.tab-list button[aria-selected="true"] {
    color: #12140f;
    background: var(--cyan);
}

.tab-panel {
    display: none;
    padding: 34px;
}

.tab-panel.is-active {
    display: block;
}

.tab-panel h3 {
    font-size: 28px;
}

.tab-panel p {
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
}

.tab-panel ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.tab-panel li {
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(16, 18, 15, 0.64);
    border-radius: 6px;
    color: var(--ink);
    font-weight: 700;
}

.proof-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
    gap: 34px;
    align-items: start;
}

.proof-copy {
    max-width: 420px;
}

.proof-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

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

.proof-card {
    min-height: 220px;
    padding: 24px;
}

.proof-card strong {
    display: block;
    color: var(--gold);
    font-size: 42px;
    line-height: 1;
}

.proof-card span {
    display: block;
    margin-top: 12px;
    color: var(--ink);
    font-weight: 900;
}

.founder-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    gap: 42px;
    align-items: start;
}

.founder-profile {
    position: sticky;
    top: 100px;
    padding: 32px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 194, 71, 0.12), rgba(66, 214, 208, 0.06)),
        rgba(23, 26, 22, 0.78);
    border-radius: 8px;
}

.founder-profile h2 {
    color: var(--gold);
    font-size: 54px;
}

.founder-title {
    color: var(--ink);
    font-weight: 900;
}

.founder-profile p:not(.eyebrow):not(.founder-title) {
    color: var(--muted);
}

.founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.founder-tags span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: rgba(16, 18, 15, 0.55);
    border-radius: 4px;
    color: var(--muted);
    font-weight: 700;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline article {
    position: relative;
    padding: 24px 24px 24px 34px;
    border-left: 2px solid var(--gold);
    background: rgba(23, 26, 22, 0.58);
}

.timeline article::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 32px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 2px;
}

.timeline time {
    color: var(--cyan);
    font-weight: 900;
}

.timeline h3 {
    margin-top: 8px;
}

.timeline p {
    margin: 10px 0 0;
    color: var(--muted);
}

.pricing-card {
    padding: 28px;
}

.pricing-card.featured {
    border-color: rgba(255, 194, 71, 0.75);
    background: linear-gradient(180deg, rgba(255, 194, 71, 0.16), rgba(16, 18, 15, 0.78));
}

.pricing-card strong {
    display: block;
    margin-top: 18px;
    color: var(--gold);
    font-size: 30px;
    line-height: 1.15;
}

.contact-section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.contact-panel {
    position: relative;
    padding: 42px;
    border: 1px solid rgba(255, 194, 71, 0.45);
    background:
        linear-gradient(135deg, rgba(255, 90, 85, 0.16), transparent 34%),
        linear-gradient(315deg, rgba(66, 214, 208, 0.14), transparent 38%),
        rgba(23, 26, 22, 0.86);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--cyan));
}

.contact-panel p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 40px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    background: rgba(16, 18, 15, 0.86);
    font-size: 14px;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 320ms ease, transform 320ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    h1 {
        font-size: 58px;
    }

    h2 {
        font-size: 34px;
    }

    .hero-section,
    .proof-section,
    .founder-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding-top: 56px;
    }

    .proof-copy {
        max-width: 820px;
    }

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

    .system-card {
        min-height: 300px;
    }

    .founder-profile {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-header {
        padding: 12px 18px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .site-nav {
        position: fixed;
        top: 67px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        background: rgba(16, 18, 15, 0.96);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .site-header.menu-open .site-nav {
        display: flex;
    }

    .site-nav .nav-action {
        margin-left: 0;
    }

    .hero-section,
    .architecture-section,
    .workflow-section,
    .founder-section,
    .contact-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pain-band,
    .systems-section,
    .proof-section,
    .pricing-section {
        padding: 66px 18px;
    }

    h1 {
        font-size: 46px;
    }

    h2 {
        font-size: 30px;
    }

    .hero-lede {
        font-size: 18px;
    }

    .metric-strip,
    .pain-grid,
    .architecture-flow,
    .proof-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .metric-strip {
        padding-left: 18px;
        padding-right: 18px;
    }

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

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

    .tab-panel ul {
        grid-template-columns: 1fr;
    }

    .hero-visual figcaption {
        position: static;
        display: block;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 0;
    }

    .hero-visual figcaption strong {
        display: block;
        margin-top: 4px;
    }

    .site-footer {
        flex-direction: column;
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 520px) {
    .brand-mark small {
        display: none;
    }

    .hero-actions,
    .contact-actions {
        display: grid;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .hero-visual img {
        min-height: 260px;
    }

    .contact-panel,
    .founder-profile {
        padding: 26px;
    }

    .tab-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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