:root {
    --bg: #09100d;
    --panel: rgba(17, 34, 28, 0.82);
    --panel-strong: rgba(22, 48, 39, 0.94);
    --text: #f2f7ed;
    --muted: #a9b9aa;
    --line: rgba(190, 255, 206, 0.18);
    --green: #9df27b;
    --mint: #42e7b1;
    --amber: #ffd36a;
    --danger: #ff6b6b;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Trebuchet MS", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 14% 12%, rgba(157, 242, 123, 0.2), transparent 26rem),
        radial-gradient(circle at 85% 8%, rgba(255, 211, 106, 0.14), transparent 24rem),
        linear-gradient(135deg, #08110d 0%, #102018 52%, #050806 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

[hidden] {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

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

.site-header {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    margin: 16px 0 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(7, 16, 12, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #09100d;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green), var(--mint));
    box-shadow: 0 0 36px rgba(157, 242, 123, 0.35);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    letter-spacing: 0.02em;
}

.brand-copy small,
.eyebrow {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.site-nav a,
.nav-cta {
    padding: 10px 14px;
    border-radius: 999px;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    color: #10160f;
    font-weight: 800;
    background: var(--amber);
}

.section-panel,
.feature-card,
.price-card,
.safety-grid div {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 32px;
    align-items: center;
    min-height: 640px;
    padding: 56px;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -180px;
    bottom: -210px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 211, 106, 0.28), transparent 68%);
}

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

h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(48px, 7vw, 86px);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

.hero-lead,
.scenario p,
.invite-copy p,
.final-cta p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 26px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 900;
}

button.primary-button,
button.ghost-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

button.primary-button:disabled,
button.ghost-button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.primary-button {
    color: #07100b;
    background: linear-gradient(135deg, var(--green), var(--mint));
    box-shadow: 0 18px 42px rgba(66, 231, 177, 0.24);
}

.ghost-button {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.ghost-button.dark {
    width: 100%;
    background: rgba(5, 8, 6, 0.22);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-row span {
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
}

.radar-card {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(13, 27, 21, 0.92), rgba(4, 8, 6, 0.92));
    border: 1px solid rgba(157, 242, 123, 0.25);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.radar-topline {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.radar-topline strong {
    color: var(--amber);
}

.radar-visual {
    position: relative;
    height: 420px;
    margin: 18px 0;
    border-radius: 50%;
    overflow: hidden;
    background:
        linear-gradient(rgba(157, 242, 123, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 242, 123, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(157, 242, 123, 0.08), transparent 62%),
        #08100c;
    background-size: 34px 34px, 34px 34px, auto, auto;
    border: 1px solid rgba(157, 242, 123, 0.2);
}

.ring {
    position: absolute;
    inset: 16%;
    border: 1px solid rgba(157, 242, 123, 0.18);
    border-radius: 50%;
}

.ring-two {
    inset: 32%;
}

.route-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 162px;
    height: 3px;
    transform-origin: left center;
    transform: rotate(-34deg);
    background: linear-gradient(90deg, var(--green), transparent);
    filter: drop-shadow(0 0 12px rgba(157, 242, 123, 0.72));
}

.player-dot,
.resource-node,
.enemy-dot {
    position: absolute;
    border-radius: 50%;
}

.player-self {
    left: calc(50% - 8px);
    top: calc(50% - 8px);
    width: 16px;
    height: 16px;
    background: var(--green);
    box-shadow: 0 0 22px rgba(157, 242, 123, 0.8);
}

.resource-node {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--amber), #ff8f4f);
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.65);
}

.resource-node::after,
.enemy-dot::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    top: 38px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 999px;
    color: #07100b;
    font-size: 12px;
    font-weight: 900;
    background: var(--amber);
}

.node-one {
    right: 24%;
    top: 30%;
}

.node-two {
    left: 24%;
    bottom: 23%;
}

.enemy-dot {
    right: 20%;
    bottom: 29%;
    width: 24px;
    height: 24px;
    background: var(--danger);
    box-shadow: 0 0 28px rgba(255, 107, 107, 0.72);
}

.enemy-dot::after {
    color: #fff;
    background: var(--danger);
}

.alert-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #10160f;
    font-weight: 900;
    background: var(--amber);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10160f;
    animation: pulse 1.35s infinite;
}

.features,
.pricing,
.safety {
    padding: 96px 0;
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 30px;
}

.section-heading.centered {
    text-align: center;
    justify-items: center;
}

.section-note {
    max-width: 720px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    min-height: 290px;
    padding: 24px;
    border-radius: 28px;
}

.feature-card.accent {
    background: linear-gradient(145deg, rgba(157, 242, 123, 0.22), rgba(17, 34, 28, 0.86));
}

.feature-index {
    display: inline-flex;
    margin-bottom: 42px;
    color: var(--green);
    font-weight: 900;
}

.feature-card p,
.price-card p,
.safety-grid span,
.scenario-item span {
    color: var(--muted);
    line-height: 1.7;
}

.scenario,
.invite,
.final-cta {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 30px;
    padding: 42px;
    border-radius: 36px;
}

.scenario-list,
.invite-flow {
    display: grid;
    gap: 14px;
}

.scenario-item,
.invite-flow div {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.invite-flow span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    color: #07100b;
    font-weight: 900;
    background: var(--green);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    gap: 20px;
}

.price-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 30px;
    border-radius: 34px;
}

.price-card.activity,
.price-card.invite {
    background:
        radial-gradient(circle at top right, rgba(255, 211, 106, 0.26), transparent 52%),
        var(--panel-strong);
}

.price-card.featured {
    border-color: rgba(255, 211, 106, 0.44);
    box-shadow: 0 30px 100px rgba(255, 211, 106, 0.12), var(--shadow);
}

.price-tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
}

.price-tag.hot {
    color: #07100b;
    font-weight: 900;
    background: var(--amber);
}

.price {
    margin: 12px 0 4px;
    font-size: clamp(48px, 5vw, 66px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.08em;
}

.price span,
.price small {
    font-size: 22px;
    letter-spacing: 0;
}

.plan-meta {
    display: grid;
    gap: 8px;
    margin: 6px 0 4px;
    color: var(--muted);
    font-size: 14px;
}

.plan-meta strong {
    color: var(--green);
}

.activity-note {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 22px;
    color: #f7e4ac;
    background: rgba(255, 211, 106, 0.08);
    line-height: 1.7;
}

.pricing-page {
    padding-bottom: 72px;
}

.account-page,
.download-page {
    padding-bottom: 72px;
}

.pricing-page .site-header {
    margin-bottom: 24px;
}

.pricing-hero {
    display: grid;
    gap: 18px;
    padding: 52px;
    border-radius: 38px;
    margin-bottom: 42px;
}

.pricing-hero h1 {
    max-width: 880px;
    margin-bottom: 0;
    font-size: clamp(42px, 6vw, 74px);
}

.pricing-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 46px;
    border-radius: 38px;
}

.account-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(42px, 6vw, 72px);
}

.download-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    padding: 46px;
    border-radius: 38px;
}

.download-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(42px, 6vw, 72px);
}

.account-hero p:last-child,
.download-hero p:last-child,
.download-panel p,
.download-meta p,
.account-auth-panel p,
.subscription-panel p {
    max-width: 720px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.account-actions,
.download-actions,
.subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.account-message,
.download-message {
    min-height: 26px;
    margin: 18px 0;
    color: var(--muted);
}

.account-message.is-error,
.download-message.is-error {
    color: #ffb0b0;
}

.account-message.is-success,
.download-message.is-success {
    color: var(--green);
}

.account-auth-panel,
.subscription-panel,
.orders-panel,
.download-panel,
.download-ready {
    display: grid;
    gap: 28px;
    padding: 36px;
    border-radius: 34px;
}

.download-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.download-ready {
    margin-top: 18px;
}

.account-auth-panel {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(280px, 380px));
    align-items: start;
}

.account-login-form {
    margin-top: 0;
}

.account-login-form h3 {
    margin: 0;
    font-size: 20px;
}

.account-login-form .ghost-button {
    width: 100%;
}

.account-dashboard {
    display: grid;
    gap: 24px;
}

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

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

.account-summary-card {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.download-card {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.account-summary-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.download-card span,
.download-meta span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.account-summary-card strong {
    font-size: 28px;
    line-height: 1.15;
}

.download-card strong {
    font-size: 20px;
    line-height: 1.25;
}

.account-summary-card strong.is-active {
    color: var(--green);
}

.account-summary-card small {
    color: var(--muted);
    line-height: 1.5;
}

.download-meta {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
}

.download-meta code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--green);
    font-size: 14px;
}

.download-meta p {
    margin-bottom: 0;
    white-space: pre-wrap;
}

.subscription-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.orders-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.orders-head h2 {
    margin-bottom: 0;
}

.orders-head span {
    color: var(--green);
    font-weight: 900;
}

.orders-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.orders-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.orders-table th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
}

.orders-table tr:last-child td {
    border-bottom: 0;
}

.order-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.order-status.is-completed {
    color: #07100b;
    background: var(--green);
}

.order-status.is-pending {
    color: #10160f;
    background: var(--amber);
}

.order-status.is-failed {
    color: #fff;
    background: var(--danger);
}

.orders-empty {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.safety-grid div {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 26px;
}

.final-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 60px;
}

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 22px;
}

.checkout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 4, 0.76);
    backdrop-filter: blur(12px);
}

.checkout-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 30px;
    border: 1px solid rgba(157, 242, 123, 0.24);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(16, 33, 26, 0.98), rgba(6, 11, 8, 0.98));
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.64);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: 22px;
    line-height: 1;
}

.checkout-head {
    padding-right: 42px;
}

.checkout-head h2 {
    margin-bottom: 12px;
    font-size: 36px;
    letter-spacing: 0;
}

.checkout-head p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.checkout-message {
    min-height: 22px;
    margin: 18px 0;
    color: var(--muted);
    line-height: 1.55;
}

.checkout-message.is-error {
    color: #ffb0b0;
}

.checkout-message.is-success {
    color: var(--green);
}

.checkout-ready {
    display: grid;
    gap: 18px;
}

.checkout-ready > div:first-child {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.checkout-ready span {
    color: var(--muted);
    font-size: 13px;
}

.checkout-ready-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.checkout-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.checkout-tabs button {
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    color: var(--muted);
    cursor: pointer;
    background: transparent;
    font: inherit;
    font-weight: 900;
}

.checkout-tabs button.is-active {
    color: #07100b;
    background: var(--green);
}

.checkout-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.checkout-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.checkout-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    outline: none;
    background: rgba(3, 8, 5, 0.54);
    font: inherit;
}

.checkout-form input:focus {
    border-color: rgba(157, 242, 123, 0.72);
    box-shadow: 0 0 0 3px rgba(157, 242, 123, 0.12);
}

.code-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.82);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

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

    .hero,
    .scenario,
    .invite,
    .final-cta,
    .account-hero,
    .download-hero,
    .download-panel,
    .account-auth-panel,
    .subscription-panel {
        grid-template-columns: 1fr;
    }

    .account-actions,
    .download-actions,
    .subscription-actions {
        justify-content: flex-start;
    }

    .checkout-ready-actions,
    .code-row {
        grid-template-columns: 1fr;
    }

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

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

    .account-summary-grid {
        grid-template-columns: 1fr;
    }

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

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

    .price-card.invite {
        transform: none;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .brand-copy {
        display: none;
    }

    .nav-cta {
        padding: 10px 12px;
    }

    .hero,
    .scenario,
    .invite,
    .final-cta,
    .account-hero,
    .download-hero,
    .download-panel,
    .account-auth-panel,
    .subscription-panel,
    .orders-panel,
    .download-ready {
        padding: 26px;
        border-radius: 28px;
    }

    .hero {
        min-height: auto;
    }

    .radar-card {
        padding: 14px;
        border-radius: 26px;
    }

    .radar-visual {
        height: 300px;
    }

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

    .pricing-grid,
    .download-status-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .pricing-hero {
        padding: 28px;
        border-radius: 28px;
    }

    .checkout-dialog {
        padding: 24px;
        border-radius: 24px;
    }

    .checkout-head h2 {
        font-size: 30px;
    }
}
