:root {
    --ink: #171927;
    --muted: #676c7d;
    --subtle: #9297a8;
    --paper: #ffffff;
    --canvas: #f7f8fc;
    --hero: #f2f3ff;
    --line: #e7e9f1;
    --primary: #5860f5;
    --primary-dark: #464ee4;
    --secondary: #7567f6;
    --primary-soft: #eff0ff;
    --ok: #16865c;
    --danger: #b42318;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.topbar { position: sticky; top: 0; z-index: 20; height: 68px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid rgba(231, 233, 241, .9); backdrop-filter: blur(18px); }
.topbar-inner { width: min(1200px, calc(100% - 48px)); height: 100%; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 11px; box-shadow: 0 7px 18px rgba(88, 96, 245, .25); }
.brand-mark svg { width: 23px; height: 23px; }
.topbar nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
.topbar nav a { position: relative; color: #555a6b; text-decoration: none; font-size: 14px; font-weight: 600; }
.topbar nav a::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 0; height: 2px; border-radius: 9px; background: var(--primary); transform: translateX(-50%); transition: width .2s ease; }
.topbar nav a:hover { color: var(--primary); }
.topbar nav a:hover::after { width: 20px; }
.account-link { justify-self: end; min-width: 72px; padding: 9px 18px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 11px; text-align: center; text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: 0 8px 18px rgba(88, 96, 245, .18); }

.hero { position: relative; overflow: hidden; background: var(--hero); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; top: -330px; left: 46%; border-radius: 50%; background: rgba(111, 101, 247, .16); filter: blur(16px); }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; bottom: -310px; border-radius: 50%; background: rgba(88, 96, 245, .12); }
.hero-inner { position: relative; z-index: 1; width: min(1200px, calc(100% - 48px)); min-height: 590px; margin: auto; padding: 72px 0 38px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 72px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 700; }
.hero-tag span { font-size: 19px; transition: transform .2s ease; }
.hero-tag:hover span { transform: translateX(3px); }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 span { color: var(--primary); }
.hero-copy { max-width: 660px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.primary-action, .secondary-action { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.primary-action { color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 12px 24px rgba(88, 96, 245, .22); }
.primary-action:hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(88, 96, 245, .28); }
.secondary-action { background: #fff; border: 1px solid var(--line); }
.secondary-action:hover { border-color: #cfd2ff; color: var(--primary); }
.text-action { padding: 10px 8px; text-decoration: none; font-weight: 650; }
.text-action span { margin-left: 3px; }
.hero-benefits { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; }
.hero-benefits article { min-width: 0; padding: 0 22px; border-left: 1px solid #dfe1ee; }
.hero-benefits article:first-child { padding-left: 0; border-left: 0; }
.hero-benefits strong, .hero-benefits span { display: block; }
.hero-benefits strong { margin-bottom: 5px; font-size: 15px; }
.hero-benefits span { color: var(--muted); font-size: 12px; line-height: 1.7; }

.license-preview { position: relative; min-height: 340px; display: grid; place-items: center; }
.preview-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(117, 103, 246, .24), rgba(117, 103, 246, 0) 68%); }
.preview-card { position: relative; width: min(390px, 100%); padding: 28px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .95); border-radius: 22px; box-shadow: 0 26px 70px rgba(63, 68, 143, .14); transform: rotate(-1.2deg); }
.preview-card::before { content: ""; position: absolute; left: 28px; top: 0; width: 72px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 0 0 8px 8px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 750; }
.active-pill { padding: 5px 10px; color: var(--ok); background: #eaf8f2; border-radius: 999px; font-size: 12px; }
.preview-domain { margin: 42px 0 32px; }
.preview-domain small { display: block; margin-bottom: 8px; color: var(--subtle); font: 11px var(--mono); letter-spacing: .08em; }
.preview-domain strong { font-size: clamp(23px, 2.5vw, 31px); letter-spacing: -.04em; }
.preview-meta { display: flex; justify-content: space-between; gap: 14px; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

.shell { width: min(1200px, calc(100% - 48px)); margin: auto; padding: 84px 0 100px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { margin: 5px 0 0; font-size: 31px; line-height: 1.25; letter-spacing: -.035em; }
.section-head p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.section-kicker { color: var(--primary); font-size: 13px; font-weight: 750; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 500px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px rgba(31, 36, 78, .05); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.product-card:hover { transform: translateY(-4px); border-color: #d9dbff; box-shadow: 0 18px 46px rgba(31, 36, 78, .10); }
.product-head { padding: 28px 26px 22px; border-bottom: 1px solid var(--line); }
.product-head h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.025em; }
.product-head p { min-height: 44px; margin: 0; color: var(--muted); font-size: 13px; }
.price { display: flex; align-items: baseline; gap: 7px; margin-top: 24px; }
.price strong { color: var(--ink); font-size: 38px; font-weight: 800; letter-spacing: -.05em; }
.price span { color: var(--muted); font-size: 13px; }
.license-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 17px 26px; background: #fafaff; border-bottom: 1px solid var(--line); }
.license-facts div { min-width: 0; }
.license-facts dt { color: var(--subtle); font-size: 11px; }
.license-facts dd { margin: 4px 0 0; font-size: 13px; font-weight: 750; }
.buy-form { display: grid; gap: 14px; padding: 22px 26px 26px; flex: 1; }
.field { display: grid; gap: 7px; }
.field label { color: #4d5263; font-size: 12px; font-weight: 700; }
.control { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); background-color: #fff; border: 1px solid #dfe1ea; border-radius: 10px; outline: none; }
.control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(88, 96, 245, .11); }
.domain-hint { color: var(--subtle); font-size: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-button, .pay-button { min-height: 46px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); border: 0; border-radius: 11px; font-weight: 750; box-shadow: 0 8px 18px rgba(88, 96, 245, .15); }
.buy-button:hover, .pay-button:hover { background: linear-gradient(135deg, var(--primary-dark), #6656ed); }
.buy-button:disabled, .pay-button:disabled { opacity: .55; cursor: not-allowed; }

.purchase-process { margin-top: 100px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-grid article { display: flex; align-items: flex-start; gap: 16px; padding: 25px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.process-grid article > span { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 10px; font-weight: 800; }
.process-grid strong { display: block; margin: 4px 0 6px; font-size: 15px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.records { margin-top: 100px; scroll-margin-top: 90px; }
.record-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 20px; }
.pending-panel, .license-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px rgba(31, 36, 78, .04); }
.panel-title { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-title h3 { margin: 0; font-size: 16px; }
.panel-title span { color: var(--muted); font-size: 12px; }
.pending-list, .license-list { display: grid; }
.pending-item { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.pending-item:last-child { border-bottom: 0; }
.pending-item strong { display: block; }
.pending-meta { margin: 6px 0 15px; color: var(--muted); font-size: 12px; }
.pending-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pending-actions select { height: 40px; }
.pending-actions button { min-height: 40px; padding: 0 16px; }
.license-document { position: relative; padding: 23px 24px; overflow: hidden; border-bottom: 1px solid var(--line); }
.license-document:last-child { border-bottom: 0; }
.document-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; }
.document-head h3 { margin: 0 0 4px; font-size: 17px; }
.document-head p { margin: 0; color: var(--muted); font: 12px var(--mono); }
.status { align-self: start; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.status-active { color: var(--ok); background: #eaf8f2; }
.status-suspended, .status-revoked, .status-expired { color: var(--danger); background: #fff0ee; }
.code-row { position: relative; z-index: 1; margin: 17px 0 15px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8f8fd; border: 1px dashed #cfd2df; border-radius: 10px; }
.code-row code { font: 700 13px var(--mono); word-break: break-all; }
.copy-button { padding: 7px 11px; white-space: nowrap; color: #4b5061; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.copy-button:hover { color: var(--primary); border-color: #cfd2ff; }
.download-button { margin-top: 14px; color: #fff; background: var(--primary); border-color: var(--primary); }
.delivery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.delivery-actions .download-button { margin-top: 0; }
.claimed-hint { color: var(--subtle); font-size: 12px; }
.credential-reveal { flex: 1 0 100%; display: grid; gap: 8px; padding: 16px; border: 1px solid #b9c4ff; border-radius: 12px; background: #f5f7ff; }
.credential-reveal strong { color: var(--text); }
.credential-reveal code { overflow-wrap: anywhere; color: #27327a; }
.credential-reveal pre { overflow-x: auto; margin: 2px 0; padding: 12px; border-radius: 9px; color: #e8ecff; background: #182044; font: 12px/1.65 "IBM Plex Mono", monospace; white-space: pre-wrap; }
.credential-reveal span { color: var(--subtle); font-size: 12px; }
.credential-reveal .copy-button { justify-self: start; }
.document-facts { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.document-facts span { display: block; color: var(--subtle); font-size: 10px; }
.document-facts strong { display: block; margin-top: 3px; font-size: 12px; word-break: break-all; }
.device-line { position: relative; z-index: 1; margin-top: 15px; padding-top: 13px; color: #5f6576; border-top: 1px solid var(--line); font-size: 12px; }
.empty { grid-column: 1 / -1; padding: 54px 22px; color: var(--muted); background: rgba(255, 255, 255, .55); border: 1px dashed #dfe1ea; border-radius: 16px; text-align: center; font-size: 13px; }
.notice { display: none; margin: 0 0 22px; padding: 13px 16px; color: #861e17; background: #fff0ee; border: 1px solid #ffd7d2; border-radius: 11px; font-size: 13px; }
.notice.success { color: #11653f; background: #eaf7f0; border-color: #c8ead9; }

.footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { width: min(1200px, calc(100% - 48px)); min-height: 160px; margin: auto; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 56px; }
.footer strong { font-size: 17px; }
.footer p { max-width: 440px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.footer nav { display: flex; gap: 22px; }
.footer a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer a:hover { color: var(--primary); }
.footer-inner > span { color: var(--subtle); font-size: 12px; }

@media (max-width: 980px) {
    .topbar-inner { grid-template-columns: 1fr auto; }
    .topbar nav { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .hero-content { max-width: 760px; }
    .license-preview { min-height: 280px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .record-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr auto; padding: 30px 0; }
    .footer-inner > span { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .topbar-inner, .hero-inner, .shell, .footer-inner { width: min(100% - 32px, 1200px); }
    .brand { font-size: 17px; }
    .brand-mark { width: 35px; height: 35px; }
    .hero-inner { min-height: auto; padding: 52px 0 30px; }
    .hero h1 { font-size: clamp(38px, 12vw, 52px); }
    .hero-copy { font-size: 15px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .text-action { text-align: center; }
    .hero-benefits { grid-template-columns: 1fr; gap: 16px; margin-top: 38px; }
    .hero-benefits article, .hero-benefits article:first-child { padding: 0 0 0 14px; border-left: 2px solid #d9dcff; }
    .license-preview { display: none; }
    .shell { padding: 64px 0 76px; }
    .section-head h2 { font-size: 27px; }
    .product-grid, .process-grid { grid-template-columns: 1fr; }
    .purchase-process, .records { margin-top: 72px; }
    .form-row, .document-facts { grid-template-columns: 1fr; }
    .code-row { align-items: flex-start; flex-direction: column; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer nav { flex-wrap: wrap; }
    .footer-inner > span { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
