@charset "UTF-8";
/* Cyberpunk skin. Shared responsive layout and tutorial behavior live in portal.css / portal.js. */
:root {
    --bg: #030611;
    --surface: #080e21;
    --surface-2: #0c1731;
    --line: #244269;
    --text: #eef8ff;
    --muted: #9baec9;
    --accent: #00ecff;
    --accent-dark: #002c41;
    --pink: #ff36b8;
    --yellow: #f5ed73;
    --radius: 3px;
}
body {
    isolation: isolate;
    background: var(--bg);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 85% 10%, #a400bb20, transparent 45%),
        radial-gradient(ellipse at 10% 40%, #0058a01c, transparent 50%),
        linear-gradient(#00eaff06 1px, transparent 1px),
        linear-gradient(90deg, #00eaff06 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0 3px, #759dff04 3px 4px);
}
::selection { background: #ff36b851; color: #fff; }
.site-header {
    background: #040815ed;
    border-bottom: 1px solid #00ecff50;
    box-shadow: 0 4px 24px #00eaff0b;
}
.header-inner { padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: Consolas, "Segoe UI", "Microsoft YaHei", monospace; letter-spacing: .2px; }
.brand-mark {
    background: #001b2d;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 2px;
    transform: skew(-8deg);
    box-shadow: 3px 3px 0 #ff36b866, inset 0 0 18px #00ecff12;
    text-shadow: 0 0 10px #00ecff8c;
}
.brand-mark > span { opacity: 1; }
.brand-sub { color: #88a7c6; }
.header-nav .nav-active { color: var(--accent); }
.header-nav .nav-active::after { width: 25px; border-radius: 0; box-shadow: 0 0 10px #00ecff99; }
.header-nav a:hover, .logout-link:hover { color: var(--pink); }
.logout-link { color: #aabdd8; }
.terminal-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #24426980;
    font: 9px/1.5 Consolas, monospace;
    letter-spacing: 1.5px;
    color: #849abe;
}
.terminal-strip b { color: var(--pink); font-weight: 400; padding: 0 5px; }
.terminal-strip-center { color: #667eaa; }
.terminal-access { display: flex; gap: 8px; align-items: center; color: var(--accent); }
.terminal-access i { width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero { padding-top: 56px; padding-bottom: 65px; }
.hero::before {
    inset: 0 -25px 0 -25px;
    z-index: -1;
    background: radial-gradient(ellipse at 82% 40%, #8b00a730, transparent 55%), radial-gradient(ellipse at 20% 0%, #005aa81d, transparent 55%);
}
.hero::after {
    content: "";
    position: absolute;
    left: 45%; right: -15px; bottom: 7px; height: 150px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(#00ecff26 1px, transparent 1px), linear-gradient(90deg, #ff36b824 1px, transparent 1px);
    background-size: 35px 28px;
    transform: perspective(200px) rotateX(54deg);
    transform-origin: bottom;
    mask-image: linear-gradient(transparent, #0008);
}
.eyebrow { color: var(--pink); letter-spacing: 2.2px; }
.status-dot { background: var(--accent); border-radius: 1px; box-shadow: 0 0 12px #00ecff99; }
.hero h1 {
    font-size: clamp(34px, 4.3vw, 56px);
    letter-spacing: -1.5px;
    text-shadow: 2px 0 #ff36b8a0, -1px 0 #00ecff66;
}
.hero h1 > span { color: var(--accent); text-shadow: 2px 2px #7d145b, 0 0 25px #00ecff35; }
.hero-copy > p { color: #a8bbd6; }
.hero-tags { gap: 20px; color: #acc8df; }
.hero-tags > span { border-bottom: 1px solid #254769; padding-bottom: 5px; }
.hero-tags .icon { color: var(--yellow); }
.connection-art { width: 320px; height: 265px; flex-basis: 320px; margin-right: 30px; }
.connection-art::before {
    content: "";
    position: absolute; inset: 15px 0 15px;
    border-left: 1px solid #31507d;
    border-right: 1px solid #31507d;
    background: linear-gradient(90deg, #00ecff 0 12px, transparent 12px calc(100% - 12px), #ff36b8 calc(100% - 12px)) left top / 100% 1px no-repeat,
        linear-gradient(90deg, #ff36b8 0 12px, transparent 12px calc(100% - 12px), #00ecff calc(100% - 12px)) left bottom / 100% 1px no-repeat;
}
.hud-coordinate { position: absolute; top: -6px; left: 0; color: #7c98bf; font: 9px Consolas, monospace; letter-spacing: 2px; }
.hud-cross { position: absolute; color: var(--pink); font: 22px Consolas, monospace; }
.cross-one { right: -8px; top: 0; }.cross-two { left: -9px; bottom: 0; color: var(--accent); }
.orbit { border-color: #00ecff80; top: 48%; }
.orbit-one { width: 215px; height: 215px; border: 1px dashed #00ecff65; animation: orbit-drift 40s linear infinite; }
.orbit-two { width: 260px; height: 260px; border: 1px solid #ff36b83d; background: conic-gradient(from 40deg, transparent 65%, #ff36b815, transparent); }
.orbit-two::after { content: ""; position: absolute; inset: 10px; border: 1px solid #00ecff12; border-radius: 50%; }
.connection-core {
    width: 130px; height: 145px; top: 48%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    border: 1px solid #00ecff90;
    background: linear-gradient(140deg, #04263d, #160d31);
    display: flex; flex-direction: column; justify-content: center; gap: 12px;
    box-shadow: 5px 5px 0 #ff36b82b, 0 0 45px #00ecff20, inset 0 0 30px #00ecff0b;
}
.connection-core .icon { width: 35px; height: 35px; filter: drop-shadow(0 0 8px #00ecff88); }
.core-prefix { font: 7px Consolas, monospace; letter-spacing: 1.4px; color: #82accc; }
.core-label { font: 700 22px Consolas, monospace; letter-spacing: 2px; color: #ecfaff; }
.core-label > span { color: var(--pink); font-size: 12px; margin-left: 4px; }
.orbit-node { border-color: #426094; border-radius: 2px; background: #090e26; color: var(--accent); box-shadow: 0 0 18px #00ecff15; }
.node-one { top: 20px; left: 52px; transform: none; }
.node-two { right: -9px; top: 112px; transform: none; color: var(--pink); border-color: #ff36b880; }
.node-three { bottom: 17px; left: 39px; transform: none; color: var(--yellow); border-color: #f5ed7350; }
.orbit-label { bottom: -21px; color: #9d83c1; font-size: 8px; letter-spacing: 2px; }
.section-index { color: var(--pink); font-size: 10px; }
.section-heading h2, .guide-heading h3 { letter-spacing: .2px; }
.section-heading h2::before { content: "//"; color: var(--accent); font: 18px Consolas, monospace; margin-right: 10px; }
.section-heading > p { color: #90a7c6; }
.client-tab {
    background: linear-gradient(115deg, #0b1025, #080c1b);
    border: 1px solid #2a416c;
    border-radius: 2px;
    padding-top: 22px; padding-bottom: 22px;
}
.client-tab::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 6px; border-top: 2px solid #5d7ba6; border-left: 2px solid #5d7ba6; pointer-events: none; }
.client-tab:hover { background: #11152e; border-color: var(--pink); box-shadow: 0 0 20px #ff36b813; }
.client-tab.is-selected { background: linear-gradient(115deg, #04253a, #08132c); border-color: var(--accent); box-shadow: 0 0 23px #00ecff12, inset 0 0 20px #00ecff09; }
.client-tab.is-selected::before { border-color: var(--accent); }
.client-tab.is-selected::after { content: ""; position: absolute; bottom: 0; left: 18px; width: 60px; height: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.client-icon { border-radius: 2px; background: #0f2040; color: #6bceff; border: 1px solid #253b65; }
.client-icon.singbox { background: #251137; color: #d18cff; border-color: #523069; }
.client-icon.clash { background: #34132b; color: #ff77d0; border-color: #6e2855; }
.client-icon.ios { background: #242718; color: var(--yellow); border-color: #4c5531; }
.client-tab.is-selected .client-icon { color: var(--accent); background: #042e41; border-color: #00ecff65; }
.client-tab strong { font-family: Consolas, "Segoe UI", sans-serif; letter-spacing: -.5px; }
.platform-label { color: #9db2d4; }
.tab-arrow { color: #91a4c7; }
.client-panel { position: relative; background: linear-gradient(120deg, #080e21fa, #0b1025fa); border-color: #2b4d79; box-shadow: 0 12px 40px #0003; }
.client-panel::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(var(--accent),var(--accent)) left top/27px 2px,
        linear-gradient(var(--accent),var(--accent)) left top/2px 18px,
        linear-gradient(var(--pink),var(--pink)) right top/27px 2px,
        linear-gradient(var(--pink),var(--pink)) right top/2px 18px,
        linear-gradient(var(--pink),var(--pink)) left bottom/27px 2px,
        linear-gradient(var(--accent),var(--accent)) right bottom/27px 2px;
    background-repeat: no-repeat;
}
.client-intro h2 { font-family: Consolas, "Segoe UI", sans-serif; }
.version { color: #ff91d7; border-color: #66325e; border-radius: 1px; background: #ff36b80b; }
.client-intro > p { color: #c2d4eb; }
.package-meta { color: #8fa8c7; }
.button { border-radius: 2px; background: #101d36; border-color: #35567d; color: #e1f5ff; }
.button:hover:not(:disabled) { background: #173657; border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #002333; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); box-shadow: inset 0 -3px 0 #0094ad; }
.button.primary:hover { background: #76faff; box-shadow: inset 0 -3px 0 #ff36b8; }
.button.primary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; }
.text-link { color: #b6c5df; }.text-link:hover { color: var(--pink); }
.info-marker { color: var(--pink); border-color: #aa3d8a; border-radius: 1px; }
.package-note { color: #9aafcd; }
.subscription-bar { border-radius: 2px; background: #020916; border: 1px solid #225773; border-left: 3px solid var(--accent); }
.subscription-label > .icon { color: var(--accent); }
.subscription-label label > span { color: #9ea9cc; }
.subscription-input { color: #8cefff; border-color: #244262; }
.copy-button { background: #07293a; border-color: #1a6378; color: var(--accent); }
.copy-button:hover:not(:disabled) { background: #113b4f; }
.guide-caption { color: #8c9ebe; }
.step-tab { color: #a0b3d0; }
.step-number { color: #a0b9d6; border-color: #365476; border-radius: 1px; background: #071024; }
.step-tab.is-active { color: var(--pink); }
.step-tab.is-active::after { background: var(--pink); box-shadow: 0 0 12px #ff36b84d; }
.step-tab.is-active .step-number { background: var(--pink); border-color: var(--pink); color: #2e0628; }
.step-kicker { color: var(--accent); }.step-kicker > span { color: #7d94bc; }
.step-copy h4 { color: #effaff; text-shadow: 0 0 18px #0089ff1a; }
.step-copy > p { color: #b9c9e0; }
.step-tip { border-color: var(--yellow); background: linear-gradient(90deg, #f5ed7306, transparent); }
.step-tip strong { color: var(--yellow); }.step-tip p { color: #9baccc; }
.demo-figure { background: radial-gradient(ellipse, #005ad31b, transparent 70%); }
.demo-window { background: #080f25; border-color: #426399; border-radius: 3px; box-shadow: 5px 5px 0 #ff36b819, 0 18px 30px #0005; }
.demo-chrome { background: #101c35; color: #9fbcde; border-color: #2a456d; border-radius: 2px 2px 0 0; }
.window-dots i { border-radius: 0; }.window-dots i:first-child { background: var(--pink); }.window-dots i:nth-child(2) { background: var(--yellow); }.window-dots i:nth-child(3) { background: var(--accent); }
.demo-app-title { color: #e5f7ff; }
.demo-field { border-radius: 2px; background: #111c35; border-color: #2b426b; }
.demo-field > span:first-child { color: #9ab0cf; }.demo-field > strong { color: #e3edff; }
.demo-field.field-highlight { border-color: var(--accent); background: #062739; box-shadow: 0 0 0 3px #00ecff0a; }
.demo-field.field-highlight > strong { color: #a4f4ff; }.demo-pointer { color: var(--pink); }
.demo-bottom { color: #7bc5db; }.demo-figure figcaption { color: #8a9fbd; }
.demo-mobile { background: #060c20; border-radius: 23px; box-shadow: 0 0 0 2px #183c5d, 6px 6px 0 #ff36b817, 0 18px 30px #0005; }
.phone-island { background: #01040a; }
.button.subtle { border-color: #334568; color: #a8bcd6; }
.step-progress { color: #a68bbb; }
.source-row { color: #91a2c1; }.checksum > a { color: var(--accent); }
.faq-grid > details { border-bottom: 1px solid #223859; }
.faq-grid summary { color: #c6d8ee; }.faq-grid summary:hover { color: var(--accent); }
.faq-grid summary > span { color: var(--pink); }.faq-grid details[open] summary > span { color: var(--pink); }
.faq-grid details > p { color: #a0b3d1; }.faq-grid code { color: var(--accent); }
.site-footer { border-top-color: #33527b; color: #8b9fbd; position: relative; }
.site-footer::before { content: ""; position: absolute; top: -3px; right: 0; width: 78px; height: 4px; background: repeating-linear-gradient(120deg, var(--yellow) 0 4px, transparent 4px 8px); }
.footer-brand { color: var(--accent); }.footer-divider { color: var(--pink); }
.toast { background: #032a3a; border: 1px solid var(--accent); border-left: 3px solid var(--pink); color: #b9f8ff; border-radius: 2px; box-shadow: 0 0 30px #00ecff19; }
.noscript-note { border-radius: 2px; }
.login-page { background: radial-gradient(ellipse at 65% 20%, #6e006c35, transparent 55%), radial-gradient(ellipse at 15% 90%, #0057832e, transparent 50%), var(--bg); }
.login-shell { max-width: 465px; }
.login-brand { margin-bottom: 34px; }
.login-card { position: relative; background: #080f24ed; border: 1px solid #335285; border-radius: 3px; padding: 38px; box-shadow: 8px 8px 0 #ff36b810, 0 0 65px #00ecff09; }
.login-card::before { content: ""; position: absolute; inset: -1px; pointer-events: none; background: linear-gradient(var(--accent),var(--accent)) top left/40px 2px, linear-gradient(var(--accent),var(--accent)) top left/2px 27px, linear-gradient(var(--pink),var(--pink)) top right/40px 2px, linear-gradient(var(--pink),var(--pink)) top right/2px 27px, linear-gradient(var(--pink),var(--pink)) bottom left/40px 2px, linear-gradient(var(--accent),var(--accent)) bottom right/40px 2px; background-repeat: no-repeat; }
.login-card .eyebrow { color: var(--accent); font-size: 9px; letter-spacing: 1.4px; }
.login-access { color: var(--pink); font-size: 8px; letter-spacing: 1px; }
.login-card h1 { color: #f2faff; text-shadow: 1px 1px #ff36b866; }
.login-card label { color: #b4c9e3; }.login-card label::before { content: ">"; color: var(--accent); font-family: Consolas, monospace; margin-right: 8px; }
.login-card input[type=password] { background: #03091a; border-color: #335b7d; border-radius: 2px; caret-color: var(--accent); }
.login-card input[type=password]:focus { box-shadow: 0 0 17px #00ecff15; }
.login-card input::placeholder { color: #7891b5; }
.login-note { color: #91a7c9; }.login-error { color: #ff88d3; }
.login-console { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed #2f446e; padding-top: 14px; margin-top: 25px; font: 8px Consolas, monospace; letter-spacing: 1.5px; color: #758fba; }
.console-cursor { color: var(--accent); font-size: 16px; line-height: 10px; animation: terminal-cursor 1.8s steps(1) infinite; }
.login-footer { color: #9b8abf; }.login-footer span { color: var(--pink); }
@keyframes orbit-drift { from { transform: translate(-50%, -50%) rotate(-20deg); } to { transform: translate(-50%, -50%) rotate(340deg); } }
@keyframes terminal-cursor { 0%, 65%, 100% { opacity: 1; } 66%, 99% { opacity: .2; } }
@media (max-width: 1050px) {
    .connection-art { margin-right: 0; flex-basis: 290px; }
    .hero h1 { font-size: 43px; }
    .hero-tags { gap: 12px; }
    .terminal-strip { letter-spacing: 1px; }
}
@media (max-width: 760px) {
    .header-inner { padding-top: 14px; padding-bottom: 14px; }
    .terminal-strip { padding: 13px 0; font-size: 8px; gap: 12px; letter-spacing: .5px; }
    .terminal-strip-center { display: none; }
    .hero { padding-top: 39px; padding-bottom: 43px; }
    .hero::before { inset: 0 -16px; }
    .hero h1 { font-size: 35px; }
    .hero::after { left: 38%; bottom: 0; right: 0; height: 100px; opacity: .7; }
    .hero .eyebrow { font-size: 9px; letter-spacing: 1px; }
    .hero-tags { gap: 13px; }
    .client-tab { padding-top: 17px; padding-bottom: 17px; }
    .section-heading h2::before { font-size: 15px; margin-right: 7px; }
    .subscription-input { border-color: #244262; }
    .client-panel::before { opacity: .8; }
    .login-card { padding: 32px 27px; }
}
@media (max-width: 420px) {
    .terminal-strip > span:first-child { max-width: 170px; }
    .terminal-access { font-size: 7px; gap: 5px; white-space: nowrap; }
    .hero h1 { font-size: 31px; }
    .hero-tags { gap: 9px; }
    .client-tab { padding-top: 15px; padding-bottom: 15px; }
    .client-tab strong { font-size: 14px; }
    .login-card .eyebrow { gap: 7px; font-size: 8px; }
    .login-access { font-size: 7px; }
}
@media (max-width: 360px) {
    .terminal-strip { font-size: 7px; }
    .terminal-strip > span:first-child { max-width: 150px; }
    .hero-tags { gap: 7px; }
    .client-tab { flex-direction: column; align-items: flex-start; gap: 8px; }
    .client-tab-info { width: 100%; }
    .client-tab strong { font-size: 13px; }
    .client-tab .tab-arrow { position: absolute; top: 13px; right: 12px; }
    .login-card { padding: 28px 22px; }
    .login-access { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .orbit-one, .console-cursor { animation: none; }
}
@media print {
    body::before, body::after, .terminal-strip, .client-panel::before { display: none; }
    .client-panel { background: white; box-shadow: none; }
    .step-copy h4, .client-intro h2, .step-copy > p, .step-tip p { color: #111; text-shadow: none; }
    .subscription-bar { background: white; }
    .subscription-input { color: #111; }
}
