/* ============================================================
   设计规范
   - 断点：sm 700 / md 900 / lg 1100 / xl 1200（媒体查询内直接写值，
     CSS 变量不能用于 @media，按此口径统一书写）
   - token：间距 --space-*、字号 --fs-*、行高 --lh-*、
     语义色 --success/--danger/--warning/--brand-*、阴影 --shadow-*、动效 --motion-*
   ============================================================ */
:root {
    --bg-color: #fff;
    --content-bg: #fff;
    --text-main: #1a1a1a;
    --brand-blue: #2563eb;
    --brand-cyan: #00e5ff;
    --purple: #60a5fa;
    --font-main: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
    --font-mono: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;

    /* design tokens: spacing scale (token 名 = 像素值) */
    --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px;
    --space-20: 20px; --space-24: 24px; --space-28: 28px; --space-32: 32px;
    --space-36: 36px; --space-40: 40px; --space-48: 48px; --space-56: 56px;
    --space-64: 64px; --space-80: 80px;

    /* design tokens: type scale */
    --fs-9: 9px; --fs-10: 10px; --fs-11: 11px; --fs-12: 12px; --fs-13: 13px;
    --fs-14: 14px; --fs-15: 15px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px;
    --fs-22: 22px; --fs-24: 24px; --fs-26: 26px; --fs-28: 28px; --fs-32: 32px;
    --fs-36: 36px; --fs-40: 40px; --fs-50: 50px; --fs-58: 58px; --fs-60: 60px;
    --fs-80: 80px;

    /* design tokens: line-height */
    --lh-solid: 1; --lh-compact: 1.1; --lh-tight: 1.2; --lh-heading: 1.3;
    --lh-default: 1.4; --lh-base: 1.5; --lh-copy: 1.6; --lh-copy-lg: 1.7;
    --lh-copy-xl: 1.75; --lh-loose: 1.8; --lh-loose-lg: 1.85; --lh-loose-xl: 1.9;

    /* design tokens: semantic colors */
    --brand-blue-dark: #1d4ed8;
    --brand-blue-light: #60a5fa;
    --brand-blue-pale: #93b4f5;
    --brand-blue-tint-06: rgba(37, 99, 235, .06);
    --brand-blue-tint-07: rgba(37, 99, 235, .07);
    --brand-blue-tint-08: rgba(37, 99, 235, .08);
    --brand-blue-tint-10: rgba(37, 99, 235, .1);
    --brand-blue-tint-12: rgba(37, 99, 235, .12);
    --brand-blue-tint-15: rgba(37, 99, 235, .15);
    --brand-blue-tint-18: rgba(37, 99, 235, .18);
    --brand-blue-tint-20: rgba(37, 99, 235, .2);
    --brand-blue-tint-24: rgba(37, 99, 235, .24);
    --brand-blue-tint-30: rgba(37, 99, 235, .3);
    --brand-blue-tint-40: rgba(37, 99, 235, .4);
    --success: #22c55e;
    --success-strong: #00c261;
    --success-deep: #00a40c;
    --danger: #dc2626;
    --danger-bright: #e11d48;
    --danger-light: #f87171;
    --danger-vivid: #ff4d4f;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --warning-light: #fbbf24;
    --orange: #ff9d00;
    --violet: #7c3aed;
    --violet-light: #a78bfa;
    --purple-deep: #a855f7;
    --sky: #0ea5e9;
    --rose: #ef4444;
    --emerald: #10b981;
    --indigo-soft: #6366f1;
    --gray-3: #d2d6dc;
    --gray-4: #aeb4bd;
    --gray-5: #6b7280;
    --gray-6: #9ca3af;
    --toast-bg: #27cc94;

    /* design tokens: shadow & motion */
    --shadow-focus: 0 0 0 3px var(--brand-blue-tint-08);
    --shadow-modal: 0 20px 50px rgba(0, 0, 0, .2);
    --shadow-toast: 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, .12);
    --shadow-dropdown: 0 4px 24px rgba(0, 0, 0, .12);
    --motion-100: .1s; --motion-120: .12s; --motion-140: .14s; --motion-fast: .15s;
    --motion-mid: .18s; --motion-base: .2s; --motion-250: .25s; --motion-slow: .3s;
    --modal-accent: #2563eb;

    /* semantic theme tokens */
    --surface: #ffffff;
    --surface-2: #ffffff;
    --surface-muted: #fafafa;
    --border-soft: rgba(0, 0, 0, .05);
    --border: rgba(0, 0, 0, .08);
    --border-strong: rgba(0, 0, 0, .16);
    --grid-line: rgba(0, 0, 0, .03);
    --grid-line-strong: rgba(0, 0, 0, .18);
    --text-2: #555;
    --text-3: #666;
    --text-4: #888;
    --text-5: #999;
    --text-6: #aaa;
    --text-dim: rgba(26, 26, 26, .65);
    --text-dimmer: rgba(26, 26, 26, .5);
    --text-ghost: rgba(26, 26, 26, .2);
    --title-watermark: rgba(0, 0, 0, .03);
    --btn-bg: #1a1a1a;
    --btn-text: #ffffff;
    --btn-hover-bg: #000000;
    --accent-tint: rgba(0, 0, 0, .04);
    --accent-tint-strong: rgba(0, 0, 0, .1);
    --card-line-grad: linear-gradient(90deg, #eee, transparent);
    --shadow-soft: rgba(0, 0, 0, .05);
    --card-border-layer: rgba(0, 0, 0, .1);
    --toggle-shadow: var(--brand-blue);

    /* footer-specific tokens (light) */
    --footer-bg: #f0f2f5;
    --footer-bg-2: #e6e9ef;
    --footer-card-bg: #f7f8fa;
    --footer-card-bg-hover: #ffffff;
    --footer-cyan: #0891b2;
    --footer-cyan-faint: rgba(8, 145, 178, .22);
    --footer-cyan-divider: rgba(8, 145, 178, .35);
    --nav-bg: rgba(255, 255, 255, .82);
    --card-border: rgba(0, 0, 0, .06);
    --divider: rgba(0, 0, 0, .05);
    --accent-soft: rgba(37, 99, 235, .06);
    --gradient-hero: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
}

[data-theme="dark"] {
    --bg-color: #0a0a12;
    --content-bg: #0f0f1a;
    --text-main: #e8e8f0;
    --surface: #16161f;
    --surface-2: #1a1a26;
    --surface-muted: #14141f;
    --border-soft: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .1);
    --border-strong: rgba(255, 255, 255, .22);
    --grid-line: rgba(0, 229, 255, .04);
    --grid-line-strong: rgba(255, 255, 255, .18);
    --text-2: #b8b8c8;
    --text-3: #a8a8b8;
    --text-4: #888896;
    --text-5: #787888;
    --text-6: #5a5a6a;
    --text-dim: rgba(232, 232, 240, .65);
    --text-dimmer: rgba(232, 232, 240, .5);
    --text-ghost: rgba(232, 232, 240, .28);
    --title-watermark: rgba(255, 255, 255, .04);
    --btn-bg: #e8e8f0;
    --btn-text: #0a0a12;
    --btn-hover-bg: #ffffff;
    --accent-tint: rgba(255, 255, 255, .04);
    --accent-tint-strong: rgba(255, 255, 255, .12);
    --card-line-grad: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent);
    --shadow-soft: rgba(0, 0, 0, .35);
    --card-border-layer: rgba(255, 255, 255, .14);
    --toggle-shadow: var(--brand-cyan);

    /* footer-specific tokens (dark) */
    --footer-bg: #0f0f1a;
    --footer-bg-2: #0a0a12;
    --footer-card-bg: rgba(255, 255, 255, .02);
    --footer-card-bg-hover: rgba(255, 255, 255, .04);
    --footer-cyan: #00e5ff;
    --footer-cyan-faint: rgba(0, 229, 255, .25);
    --footer-cyan-divider: rgba(0, 229, 255, .35);
    --nav-bg: rgba(15, 15, 26, .82);
    --card-border: rgba(255, 255, 255, .06);
    --divider: rgba(255, 255, 255, .06);
    --accent-soft: rgba(37, 99, 235, .08);
    --gradient-hero: linear-gradient(135deg, #d97706 0%, #be185d 50%, #6d28d9 100%);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
    transition: none !important;
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: .3s;
}

/* ========== Hero Section ========== */
.hero-wrapper {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    background: linear-gradient(to bottom, transparent, transparent 85%, var(--content-bg) 98%), linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), var(--bg-color);
    background-size: 100% 100%, 40px 40px, 40px 40px, 100% 100%;
    padding-bottom: var(--space-80);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-container {
    width: 1350px;
    height: 100%;
    max-width: 100%;
    padding: 0 var(--space-20);
    transform: translateY(-20px);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-text-group {
    z-index: 10;
    position: relative;
    width: 60%;
}

.tag-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: .4px;
    margin-bottom: var(--space-16);
}

.tag-line span.dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #93c5fd;
    display: inline-block;
}

.tag-line span.line {
    width: 44px;
    height: 1px;
    background: var(--grid-line-strong);
    display: inline-block;
}

.tag-line .tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px var(--space-8);
    border-radius: 6px;
    font-size: var(--fs-11);
    font-weight: 900;
    letter-spacing: .8px;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border-strong);
}

.main-title {
    font-size: var(--fs-80);
    line-height: var(--lh-tight);
    font-weight: 900;
    font-style: italic;
    position: relative;
    margin-bottom: 30px;
}

.title-row-1 {
    display: block;
    color: var(--text-main);
    letter-spacing: -2px;
}

.title-row-2 {
    display: block;
    position: relative;
    margin-left: 35px;
    opacity: 1;
    color: transparent;
}

.title-row-2::before {
    content: "专业IDC云服务";
    position: absolute;
    top: 0;
    left: 20px;
    z-index: -1;
    background: #3b82f6;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 4px transparent;
    padding-right: 14px;
    margin-right: -14px;
}

.title-row-2::after {
    content: "专业IDC云服务";
    position: absolute;
    top: 0;
    left: 20px;
    z-index: 0;
    color: var(--bg-color);
    -webkit-text-stroke: 0;
}

.desc-box {
    display: flex;
    gap: var(--space-20);
    margin-top: var(--space-40);
    align-items: flex-start;
}

.desc-decor {
    width: 4px;
    align-self: stretch;
    background: linear-gradient(to bottom, var(--brand-blue), var(--purple));
}

.desc-text {
    max-width: 400px;
    color: var(--text-2);
    font-size: var(--fs-15);
    line-height: var(--lh-loose);
    text-align: justify;
}

.btn-group {
    margin-top: 50px;
    display: flex;
    gap: var(--space-20);
}

.cyber-btn {
    position: relative;
    padding: 15px var(--space-40);
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 700;
    font-style: italic;
    font-size: var(--fs-16);
    clip-path: polygon(10px 0, 100% 0, 100% 70%, calc(100% - 10px) 100%, 0 100%, 0 30%);
    transition: var(--motion-base);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cyber-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--brand-cyan);
    background: var(--btn-hover-bg);
}

.cyber-btn.ghost {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
    clip-path: none;
    border-radius: 4px;
}

.cyber-btn.ghost:hover {
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: 5px 5px 0 var(--brand-blue);
}

.hud-circle {
    position: absolute;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    z-index: 0;
}
.hud-circle--bg-a {
    width: 50vw;
    height: 50vw;
    right: -10vw;
    top: -10vw;
    border-color: rgba(0, 0, 0, .05);
}
.hud-circle--bg-b {
    width: 30vw;
    height: 30vw;
    right: 10vw;
    bottom: -10vw;
    border: 2px dashed rgba(106, 0, 255, .1);
}

.hud-code {
    position: absolute;
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    color: var(--text-ghost);
    writing-mode: vertical-rl;
    left: 25px;
    bottom: 180px;
    z-index: 1;
}

.hero-char-area {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.char-placeholder {
    position: absolute;
    right: -150px;
    bottom: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, var(--brand-blue-tint-15), transparent 70%);
    z-index: 0;
}

.character-image {
    position: absolute;
    z-index: 1;
    height: 90%;
    width: auto;
    right: -130px;
    bottom: 30px;
    object-fit: contain;
    filter: drop-shadow(-10px 0 20px rgba(0, 0, 0, .1));
    transition: all .1s ease;
}

/* ========== Marquee ========== */
.hero-marquee {
    position: absolute;
    bottom: 100px;
    left: -10%;
    width: 120%;
    padding: var(--space-16) 0;
    transform: rotate(-2.5deg);
    transform-origin: center bottom;
    background: linear-gradient(90deg, var(--brand-blue-light), var(--brand-blue-dark));
    box-shadow: 0 5px 20px var(--brand-blue-tint-40);
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
    z-index: 15;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: marquee-scroll 40s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 60px;
    font-family: var(--font-mono);
    font-size: var(--fs-16);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.marquee-item span.dot {
    width: 8px;
    height: 8px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 0 0 8px hsla(0, 0%, 100%, .8);
    display: inline-block;
}

/* ========== Content Sections ========== */
.content-section {
    position: relative;
    z-index: 10;
    padding-bottom: var(--space-80);
    width: 100%;
}

.content-inner {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-20);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-top: var(--space-20);
}

.title-main {
    font-size: 70px;
    font-weight: 900;
    font-style: italic;
    color: var(--title-watermark);
    line-height: var(--lh-default);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.title-sub {
    font-size: var(--fs-32);
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    z-index: 2;
    margin-top: 30px;
    letter-spacing: 2px;
}

.title-sub .slash {
    color: var(--brand-blue);
    margin: 0 10px;
    font-weight: 400;
}

/* ========== Feature Cards ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tech-card {
    position: relative;
    background: var(--card-border-layer);
    padding: 1px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
    transition: transform .1s ease, background .1s ease;
    z-index: 1;
}

.tech-card::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: var(--surface);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
    z-index: -1;
}

.tech-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    opacity: .8;
    z-index: 2;
    transition: opacity .1s;
}

.tech-card:hover {
    transform: translateY(-10px);
    background: var(--accent);
}

.tech-card:hover::before {
    opacity: 1;
}

.card-bg-num {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: var(--fs-60);
    font-weight: 700;
    color: var(--text-main);
    opacity: .05;
    pointer-events: none;
    z-index: 0;
    transition: all .1s ease;
}

.tech-card:hover .card-bg-num {
    color: var(--accent);
    opacity: .5;
}

.card-header {
    position: relative;
    z-index: 2;
    padding: 35px 30px 0 30px;
    gap: 15px;
    margin-bottom: var(--space-20);
    display: flex;
    align-items: center;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-tint);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--motion-fast);
    flex-shrink: 0;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.tech-card:hover .card-icon {
    background: var(--accent);
    color: #fff;
}

.tech-card h3 {
    font-size: var(--fs-20);
    font-weight: 800;
    font-style: italic;
    margin: 0;
}

.tech-card>p {
    padding: 0 30px;
    font-size: var(--fs-14);
    color: var(--text-3);
    line-height: var(--lh-copy);
    text-align: left;
    word-break: break-all;
    margin-bottom: 25px;
    min-height: 45px;
    position: relative;
    z-index: 2;
}

.card-line {
    width: 100%;
    height: 1px;
    background: var(--card-line-grad);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.card-footer {
    position: relative;
    z-index: 2;
    padding: 0 30px 25px 30px;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--text-6);
    font-weight: 700;
    letter-spacing: 1px;
}

/* ========== Service Cards (svc-*) ========== */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: var(--space-40);
}

.svc-card .svc-bg-num {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: var(--fs-60);
    font-weight: 700;
    color: var(--text-main);
    opacity: .05;
    pointer-events: none;
    z-index: 0;
    transition: all .1s ease;
}

.svc-card:hover .svc-bg-num {
    color: var(--accent);
    opacity: .5;
}

.svc-card .svc-head {
    position: relative;
    z-index: 2;
    padding: 35px 30px 0 30px;
    gap: 15px;
    margin-bottom: var(--space-20);
    display: flex;
    align-items: center;
}

.svc-card .svc-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-tint);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--motion-fast);
    flex-shrink: 0;
}

.svc-card .svc-icon svg {
    width: 22px;
    height: 22px;
}

.svc-card:hover .svc-icon {
    background: var(--accent);
    color: #fff;
}

.svc-card .svc-head h3 {
    font-size: var(--fs-20);
    font-weight: 800;
    font-style: italic;
    margin: 0;
}

.svc-card > p {
    padding: 0 30px;
    font-size: var(--fs-14);
    color: var(--text-3);
    line-height: var(--lh-copy);
    text-align: left;
    word-break: break-all;
    margin-bottom: 25px;
    min-height: 45px;
    position: relative;
    z-index: 2;
}

.svc-line {
    width: 100%;
    height: 1px;
    background: var(--card-line-grad);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.svc-foot {
    position: relative;
    z-index: 2;
    padding: 0 30px 25px 30px;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--text-6);
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 1100px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .svc-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Domain Grid ========== */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-20);
    margin-top: var(--space-40);
}

.domain-card {
    position: relative;
    background: var(--surface);
    padding: 25px var(--space-20);
    border: 1px solid var(--border-soft);
    transition: var(--motion-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    --accent: var(--brand-cyan);
}

.domain-card:nth-child(4n+2) {
    --accent: var(--brand-blue);
}
.domain-card:nth-child(4n+3) {
    --accent: var(--brand-blue-dark);
}
.domain-card:nth-child(4n+4) {
    --accent: var(--orange);
}

/* per-card accent/brand helpers (replaces inline --accent/--brand) */
.acc-cyan { --accent: var(--brand-cyan); }
.acc-blue { --accent: var(--brand-blue); }
.acc-indigo { --accent: var(--brand-blue-dark); }
.acc-amber { --accent: var(--warning); }
.acc-emerald { --accent: var(--emerald); }
.acc-red { --accent: var(--danger-bright); }
.acc-rose { --accent: var(--rose); }
.acc-sky { --accent: var(--sky); }
.acc-purple { --accent: var(--purple-deep); }
.acc-orange { --accent: var(--orange); }
.acc-indigo-soft { --accent: var(--indigo-soft); }
.brand-tencent { --brand: #0052d9; }
.brand-aliyun { --brand: #ff6a00; }
.brand-huawei { --brand: #c7000b; }
.brand-baidu { --brand: #2932e1; }
.brand-aws { --brand: #f38020; }
.brand-azure { --brand: #00b377; }
.brand-google { --brand: #ff9900; }
.brand-jd { --brand: #4285f4; }
.brand-ct { --brand: #0078d4; }
.brand-cu { --brand: #e1251b; }
.brand-cm { --brand: #00b89b; }
.brand-equinix { --brand: #0098e1; }

.domain-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
    opacity: .1;
    transform: rotate(-90deg);
    transition: var(--motion-slow);
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-soft);
    border-color: var(--accent);
}

.domain-card:hover::before {
    opacity: 1;
}

.domain-name {
    font-family: var(--font-mono);
    font-size: var(--fs-20);
    font-weight: 800;
    color: var(--text-main);
    position: relative;
}

.domain-meta {
    font-size: var(--fs-12);
    color: var(--text-5);
    margin-bottom: 10px;
}

.domain-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: var(--space-8);
    border: 1px dashed var(--border-strong);
    background: transparent;
    font-size: var(--fs-13);
    font-weight: 700;
    color: var(--text-5);
    cursor: pointer;
    transition: var(--motion-slow);
}

.domain-card:hover .domain-btn {
    border-style: solid;
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== Pricing ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
    margin-top: var(--space-40);
}

/* ---- Split Card (dual-zone) ---- */
.v-card {
    position: relative;
    background: var(--card-border-layer);
    padding: 1px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 1;
}

.v-card::after {
    content: "";
    position: absolute;
    top: 1px; left: 1px; right: 1px; bottom: 1px;
    background: var(--surface);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
    z-index: -1;
}

.v-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    opacity: .85;
    z-index: 3;
}

.v-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -10px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Top zone — accent dark */
.v-card-top {
    position: relative;
    z-index: 2;
    padding: var(--space-28) var(--space-24) var(--space-20);
    text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface));
}

.v-card-idx {
    position: absolute;
    top: 10px;
    right: 14px;
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    font-weight: 700;
    color: var(--accent);
    opacity: .3;
    letter-spacing: 1px;
}

.v-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.v-card-icon svg {
    width: 24px;
    height: 24px;
}

.v-card-name {
    font-size: var(--fs-22);
    font-weight: 800;
    font-style: italic;
    margin: 0 0 var(--space-4);
    color: var(--text-main);
}

.v-card-sub {
    font-size: var(--fs-12);
    color: var(--text-5);
    font-family: var(--font-mono);
    letter-spacing: .3px;
}

.v-card-price {
    margin-top: 14px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.v-card-sym {
    font-size: var(--fs-16);
    font-weight: 700;
    color: var(--accent);
    align-self: flex-start;
    margin-top: var(--space-4);
}

.v-card-val {
    font-size: 44px;
    font-weight: 900;
    font-style: italic;
    color: var(--text-main);
    line-height: var(--lh-solid);
}

.v-card-per {
    font-size: var(--fs-13);
    color: var(--text-5);
    font-family: var(--font-mono);
    margin-left: 2px;
}

/* Bottom zone */
.v-card-bot {
    position: relative;
    z-index: 2;
    padding: var(--space-20) var(--space-24) var(--space-24);
}

/* Specs table */
.v-card-specs {
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-16);
}

.v-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft);
    transition: background var(--motion-fast);
}

.v-spec:last-child {
    border-bottom: none;
}

.v-card:hover .v-spec {
    background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.v-spec-label {
    font-size: var(--fs-12);
    color: var(--text-5);
    font-family: var(--font-mono);
    letter-spacing: .5px;
}

.v-spec-val {
    font-family: var(--font-mono);
    font-size: var(--fs-14);
    font-weight: 800;
    color: var(--text-main);
}

/* List */
.v-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-16);
}

.v-card-list li {
    padding: 6px 0;
    font-size: var(--fs-13);
    color: var(--text-3);
    font-family: var(--font-mono);
    border-bottom: 1px dashed var(--border-soft);
}

.v-card-list li:last-child {
    border-bottom: none;
}

.v-card-list li::before {
    content: ">";
    color: var(--accent);
    font-weight: 700;
    margin-right: 10px;
    font-size: var(--fs-10);
}

/* Button */
.v-card-btn {
    display: block;
    text-align: center;
    padding: var(--space-12) var(--space-24);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-14);
    font-style: italic;
    letter-spacing: .5px;
    clip-path: polygon(8px 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%, 0 30%);
    transition: transform var(--motion-base) ease, box-shadow .2s ease;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 25%, transparent);
}

.v-card-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--accent);
}

/* Recommended */
.v-card--rec {
    transform: scale(1.03);
    z-index: 2;
}

.v-card--rec::before {
    height: 4px;
    opacity: 1;
}

.v-card--rec:hover {
    transform: scale(1.03) translateY(-8px);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .v-card--rec {
        transform: none;
    }
    .v-card--rec:hover {
        transform: translateY(-8px);
    }
}

/* ========== CTA Banner ========== */
.cta-banner {
    background: linear-gradient(var(--brand-blue-tint-06) 1px, transparent 0), linear-gradient(90deg, var(--brand-blue-tint-06) 1px, transparent 0), var(--brand-blue);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    padding: 60px var(--space-20) 50px var(--space-20);
    margin-top: 100px;
    position: relative;
    overflow: visible;
    border-top: 3px solid var(--brand-blue-tint-30);
}

.cta-banner::after {
    content: "01010011 01010100 01000001 01010010 01010100";
    position: absolute;
    right: 20px;
    top: 20px;
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    color: hsla(0, 0%, 100%, .15);
    letter-spacing: 2px;
    pointer-events: none;
}

.cta-inner {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-40);
    position: relative;
    z-index: 10;
}

.cta-content {
    color: #fff;
    position: relative;
    padding-top: var(--space-8);
}

.cta-content::before {
    content: "// SYSTEM.CTA";
    position: absolute;
    top: -28px;
    left: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-11);
    color: hsla(0, 0%, 100%, .5);
    letter-spacing: 1px;
}

.cta-title {
    font-size: 34px;
    font-weight: 800;
    font-style: normal;
    margin-bottom: var(--space-12);
    letter-spacing: .5px;
}

.cta-desc {
    font-size: var(--fs-14);
    opacity: .9;
    letter-spacing: .3px;
    padding-left: 15px;
    font-weight: 400;
    position: relative;
    font-family: var(--font-main);
}

.cta-desc::before {
    content: ">";
    position: absolute;
    left: 0;
    color: hsla(0, 0%, 100%, .7);
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: var(--space-16);
    margin-top: var(--space-24);
}

.cta-btn {
    padding: 14px var(--space-32);
    font-size: var(--fs-14);
    font-weight: 700;
    font-style: italic;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    font-family: var(--font-main);
    letter-spacing: .5px;
    display: inline-block;
}

.cta-btn.primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    clip-path: polygon(10px 0, 100% 0, 100% 70%, calc(100% - 10px) 100%, 0 100%, 0 30%);
}

.cta-btn.primary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 hsla(0, 0%, 100%, .3);
    background: var(--btn-hover-bg);
}

.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid hsla(0, 0%, 100%, .6);
    clip-path: none;
    border-radius: 4px;
}

.cta-btn.secondary:hover {
    background: hsla(0, 0%, 100%, .15);
    border-color: #fff;
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 hsla(0, 0%, 100%, .2);
}

.cta-character {
    position: absolute;
    bottom: -200px;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
}

.cta-character-img {
    height: 600px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .2));
}

/* ========== Footer ========== */
.site-footer {
    background-color: var(--footer-bg);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-2) 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    position: relative;
    z-index: 101;
    color: var(--text-3);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    border-top: 2px solid var(--brand-blue);
    border-left: 2px solid var(--brand-blue);
    clip-path: polygon(0 0, 100% 0, 100% 35%, 35% 100%, 0 100%);
    pointer-events: none;
    z-index: 3;
}

.site-footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    border-top: 2px solid var(--brand-cyan);
    border-right: 2px solid var(--brand-cyan);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 65% 100%, 0 35%);
    pointer-events: none;
    z-index: 3;
}

.footer-inner {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 34px var(--space-20) var(--space-24);
    position: relative;
    z-index: 2;
}

.footer-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-24);
    flex-wrap: wrap;
    gap: var(--space-12);
}

.footer-hud-label {
    font-family: var(--font-mono);
    font-size: var(--fs-11);
    font-weight: 700;
    color: var(--footer-cyan);
    letter-spacing: 1.5px;
}

.footer-hud-binary {
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    color: var(--footer-cyan-faint);
    letter-spacing: 2px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--space-20);
    margin-bottom: 22px;
}

.footer-brand-card,
.footer-nav-card {
    position: relative;
    padding: var(--space-20) 22px;
    background: var(--footer-card-bg);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
    transition: background .3s ease, border-color .3s ease;
}

.footer-brand-card {
    border-left: 2px solid var(--brand-blue);
}

.footer-nav-card:hover {
    background: var(--footer-card-bg-hover);
    border-color: var(--accent);
}

.footer-card-num {
    position: absolute;
    top: 10px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 42px;
    font-weight: 900;
    font-style: italic;
    color: var(--title-watermark);
    pointer-events: none;
    line-height: var(--lh-solid);
}

.footer-brand-title {
    display: flex;
    align-items: baseline;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

.footer-logo-text {
    font-size: var(--fs-28);
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 1px;
}

.footer-version {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--footer-cyan);
    padding: 2px var(--space-8);
    border: 1px solid var(--footer-cyan-divider);
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 12.5px;
    color: var(--text-4);
    line-height: var(--lh-copy-lg);
    margin: 0 0 14px 0;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 1px;
}

.footer-meta-key {
    color: var(--text-ghost);
    font-weight: 700;
}

.footer-meta-val {
    color: var(--footer-cyan);
}

.footer-nav-title {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    font-weight: 800;
    font-style: italic;
    color: var(--text-main);
    margin: 0 0 14px 0;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--accent, var(--brand-blue));
}

.footer-title-sub {
    font-style: normal;
    font-weight: 400;
    color: var(--text-dimmer);
    font-size: var(--fs-11);
    letter-spacing: .5px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 7px;
}

.footer-nav-list a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    font-size: var(--fs-13);
    color: var(--text-3);
    transition: all .2s ease;
    font-family: var(--font-main);
}

.footer-nav-list a::before {
    content: ">";
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    color: var(--accent, var(--brand-blue));
    font-weight: 700;
    transition: all .2s ease;
}

.footer-nav-list a:hover {
    color: var(--text-main);
    transform: translateX(4px);
}

.footer-nav-list a:hover::before {
    letter-spacing: 2px;
}

.footer-divider {
    border-top: 1px dashed var(--border);
    margin-bottom: var(--space-20);
}

/* ---------- Footer Bottom ---------- */
.footer-bottom {
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    letter-spacing: .3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: var(--space-8) 0 var(--space-4);
}

.footer-bottom-top,
.footer-bottom-mid,
.footer-bottom-bot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
    flex-wrap: wrap;
}

.footer-bottom-top {
    color: var(--text-3);
}

.footer-bottom-top a {
    color: var(--text-3);
    transition: color .2s ease;
}
.footer-bottom-top a:hover {
    color: var(--brand-blue);
}

.footer-bottom-mid {
    color: var(--text-4);
    font-size: 12.5px;
}

.footer-bottom-bot {
    color: var(--text-5);
    font-size: 12.5px;
}

.footer-bottom-bot a {
    color: var(--text-5);
    transition: color .2s ease;
}
.footer-bottom-bot a:hover {
    color: var(--brand-blue);
}

.footer-gov-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-gov-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.footer-bottom-dot {
    color: var(--border-strong);
    font-size: var(--fs-12);
    user-select: none;
}

/* ========== Announcement Styles ========== */
.anno-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
    margin-bottom: var(--space-40);
}

.anno-tab {
    position: relative;
    padding: 10px var(--space-24);
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--motion-base);
}

.anno-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--border-strong);
    clip-path: polygon(8px 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%, 0 30%);
    z-index: -1;
    transition: var(--motion-base);
}

.anno-tab::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--surface);
    clip-path: polygon(8px 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%, 0 30%);
    z-index: -1;
    transition: var(--motion-base);
}

.anno-tab:hover::before {
    background: var(--text-ghost);
}

.anno-tab.active::before,
.anno-tab.active::after {
    background: var(--text-main);
}

.anno-tab.active {
    color: var(--bg-color);
}

.anno-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.anno-card {
    cursor: pointer;
}

.anno-card-header {
    padding: 35px 70px 0 30px;
    margin-bottom: var(--space-20);
}

.anno-card-header h3 {
    font-size: var(--fs-20);
    font-weight: 800;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.anno-desc {
    position: relative;
    z-index: 2;
    padding: 0 30px;
    font-size: var(--fs-14);
    color: var(--text-3);
    line-height: var(--lh-copy);
    text-align: left;
    margin-bottom: 10px;
    word-break: break-all;
}

.anno-pin {
    display: inline-block;
    background: var(--brand-blue, var(--brand-blue));
    color: #fff;
    padding: 1px var(--space-8);
    font-size: var(--fs-11);
    font-weight: 900;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    margin-right: var(--space-8);
    clip-path: polygon(4px 0, 100% 0, 100% 60%, calc(100% - 4px) 100%, 0 100%, 0 40%);
}
.anno-pin.hidden { display: none; }

.anno-views {
    margin-left: var(--space-8);
    font-family: var(--font-mono);
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-20);
    animation: fadeIn-anno .2s ease;
}
.modal-overlay.open { display: flex; }

/* hidden template containers for JS-rendered content */
.hidden-templates { display: none; }

@keyframes fadeIn-anno {
    0% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-card {
    position: relative;
    background: var(--card-border-layer);
    padding: 1px;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 94% 100%, 0 100%);
    width: 800px;
    max-width: 100%;
    max-height: 85vh;
    animation: slideUp-anno .25s ease;
    overflow-y: auto;
}

@keyframes slideUp-anno {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--modal-accent, var(--brand-blue));
    opacity: .8;
    z-index: 3;
}

.modal-card::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: var(--surface);
    clip-path: polygon(0 0, 100% 0, 100% 93%, 94% 100%, 0 100%);
    z-index: 0;
}

.modal-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-24) 30px var(--space-16);
    border-bottom: 1px solid var(--border);
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-category {
    padding: 3px var(--space-12);
    border-radius: 4px;
    border: 1px solid var(--modal-accent, var(--brand-blue));
    color: var(--modal-accent, var(--brand-blue));
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    letter-spacing: 1px;
}

.detail-time {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    letter-spacing: 1px;
    color: var(--text-dimmer);
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    color: var(--text-dim);
    transition: var(--motion-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--brand-blue, var(--brand-blue));
    color: #fff;
    border-color: var(--brand-blue, var(--brand-blue));
}

.modal-title {
    position: relative;
    z-index: 2;
    padding: var(--space-20) 30px;
    font-size: var(--fs-24);
    font-weight: 800;
    font-style: italic;
    color: var(--text-main, #1a1a1a);
    margin: 0;
}

.modal-body {
    position: relative;
    z-index: 2;
    padding: 10px 30px var(--space-40);
    overflow-y: auto;
    max-height: calc(85vh - 140px);
    font-size: var(--fs-16);
    line-height: var(--lh-loose);
    color: var(--text-2);
}

.modal-body h2,
.modal-body h3 {
    font-weight: 800;
    font-style: italic;
    margin-top: 1.5em;
    margin-bottom: .5em;
    color: var(--text-main, #1a1a1a);
}
.modal-body p {
    margin: 0 0 1em;
}
.modal-body ul {
    padding-left: 1.5em;
}
.modal-body blockquote {
    border-left: 4px solid var(--brand-blue, var(--brand-blue));
    margin: 1em 0;
    padding: var(--space-12) var(--space-20);
    background: var(--brand-blue-tint-06);
    color: var(--text-2);
    font-style: italic;
}
.modal-body code {
    background: var(--accent-tint);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: var(--fs-14);
}

/* ========== Responsive ========== */
@media (min-width: 1920px) {
    .character-image {
        height: 90%;
        right: -200px;
        bottom: 40px;
    }
}
@media (max-width: 1600px) {
    .cta-character {
        transform: scale(.95);
    }
}
@media (max-width: 1366px) {
    .cta-character {
        transform: scale(.9);
    }
}
@media (max-width: 1100px) {
    .domain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-character {
        display: none;
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .footer-brand-card {
        grid-column: 1 / -1;
    }
}
@media (max-width: 1024px) {
    .main-title {
        font-size: var(--fs-60);
    }
    .title-row-2 {
        margin-left: 5px;
    }
    .character-image {
        height: 70%;
        right: -130px;
        bottom: 120px;
    }
    .char-placeholder {
        width: 500px;
        height: 500px;
        right: -120px;
    }
    .hero-container {
        transform: translateY(-15px);
    }
}
@media (max-width: 900px) {
    .content-section {
        margin-top: 0;
        padding-top: 50px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-20);
    }
    .title-main {
        font-size: var(--fs-50);
        top: 10px;
    }
    .content-inner {
        width: 100%;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-40);
    }
    .anno-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-card {
        width: 95%;
    }
}
@media (max-width: 768px) {
    .hero-wrapper {
        height: auto;
        padding: 60px 0 var(--space-80);
        min-height: 100vh;
        overflow: hidden;
    }
    .hero-container {
        flex-direction: column;
        transform: translateY(0);
    }
    .hero-text-group {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-40);
    }
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-title {
        font-size: var(--fs-22);
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cta-btn {
        width: 100%;
    }
    .cta-banner::after {
        display: none;
    }
    .footer-inner {
        padding: 30px var(--space-20) 22px;
    }
    .footer-hud-binary {
        display: none;
    }
    .footer-hud {
        margin-bottom: var(--space-20);
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: var(--space-20);
    }
    .footer-brand-card {
        grid-column: auto;
    }
    .footer-card-num {
        font-size: var(--fs-36);
    }
    .footer-logo-text {
        font-size: var(--fs-24);
    }
    .footer-bottom {
        gap: var(--space-8);
    }
    .footer-bottom-top,
    .footer-bottom-mid,
    .footer-bottom-bot {
        font-size: var(--fs-11);
        gap: 10px;
    }
    .footer-bottom-dot {
        font-size: var(--fs-10);
    }
    .tag-line {
        justify-content: center;
    }
    .cyber-btn.ghost {
        display: none;
    }
    .main-title {
        font-size: var(--fs-58);
    }
    .title-row-2 {
        margin-left: auto;
        margin-right: auto;
        width: max-content;
        max-width: 100%;
        transform: translateX(5px);
    }
    .title-row-2::after,
    .title-row-2::before {
        left: 0;
        width: 100%;
    }
    .desc-box {
        justify-content: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .desc-text {
        max-width: 100%;
        text-align: center;
    }
    .btn-group {
        justify-content: center;
    }
    .hero-char-area {
        position: relative;
        width: 100%;
        height: 300px;
        right: 0;
        opacity: .8;
        margin-top: var(--space-20);
        overflow: visible;
    }
    .character-image {
        height: 100%;
        bottom: 0;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .char-placeholder {
        width: 300px;
        height: 300px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .hero-marquee {
        bottom: 0;
        padding: 10px 0;
        box-shadow: 0 3px 15px var(--brand-blue-tint-40);
    }
    .content-section {
        margin-top: 15px;
        padding-top: 60px;
    }
    .section-title {
        margin-bottom: var(--space-40);
    }
    .title-main {
        font-size: var(--fs-40);
    }
    .title-sub {
        font-size: var(--fs-24);
    }
    .anno-grid {
        grid-template-columns: 1fr;
    }
    .anno-tabs {
        gap: var(--space-8);
    }
    .anno-tab {
        padding: 6px 14px;
        font-size: var(--fs-12);
    }
    .modal-body {
        padding: 10px var(--space-20) 30px;
    }
    .modal-title {
        padding: var(--space-16) var(--space-20);
        font-size: var(--fs-20);
    }
    .modal-header {
        padding: var(--space-16) var(--space-20) var(--space-12);
    }
}
@media (max-width: 480px) {
    .main-title {
        font-size: var(--fs-40);
    }
    .title-row-1,
    .title-row-2 {
        letter-spacing: -1px;
    }
    .title-row-2 {
        margin-left: auto;
        margin-right: auto;
        transform: translateX(3px);
    }
    .tag-line {
        gap: var(--space-8);
    }
    .hero-text-group {
        margin-bottom: var(--space-24);
    }
    .modal-card {
        width: 100%;
        max-height: 90vh;
    }
}

/* ============================================================
   UI Enhancements
   ============================================================ */

/* ----- Scroll Reveal (flash-free via html.js) ----- */
html.js .tech-card,
html.js .domain-card,
html.js .v-card,
html.js .section-title,
html.js .stats-card,
html.js .partner-strip,
html.js .cta-banner {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}
html.js .revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* ----- Focus states (a11y) ----- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
}

/* ----- Button sweep micro-interaction ----- */
.cyber-btn,
.cta-btn.primary,
.v-card-btn {
    position: relative;
    overflow: hidden;
}
.cyber-btn::after,
.cta-btn.primary::after,
.v-card-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
}
.cyber-btn:hover::after,
.cta-btn.primary:hover::after,
.v-card-btn:hover::after {
    left: 130%;
}

/* ----- Hero scroll hint ----- */
.hero-scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    letter-spacing: 2px;
    color: var(--text-dim);
    pointer-events: none;
}
.hero-scroll-hint .chev {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--brand-blue);
    border-bottom: 2px solid var(--brand-blue);
    transform: rotate(45deg);
    animation: chev-bob 1.6s ease-in-out infinite;
}
@keyframes chev-bob {
    0%, 100% { transform: rotate(45deg) translate(0,0); opacity: .55; }
    50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; }
}

/* ----- Stats Band (compact strip) ----- */
.stats-band {
    padding: 26px var(--space-20);
    background: var(--content-bg);
}
.stats-inner {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.stats-card {
    text-align: center;
    padding: 18px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-num {
    font-family: var(--font-mono);
    font-size: var(--fs-32);
    font-weight: 900;
    font-style: italic;
    color: var(--brand-blue);
    line-height: var(--lh-solid);
}
.stats-num .unit {
    font-size: var(--fs-15);
    color: var(--text-4);
    font-style: normal;
    margin-left: 2px;
}
.stats-label {
    margin-top: var(--space-8);
    font-family: var(--font-mono);
    font-size: var(--fs-11);
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}
.stats-sub {
    margin-top: 3px;
    font-size: var(--fs-12);
    color: var(--text-4);
}

/* ----- Partners (premium logo wall) ----- */
.partner-strip {
    padding: var(--space-80) var(--space-20) 90px;
    background: var(--bg-color);
}
.partner-head {
    position: relative;
    text-align: center;
    margin-bottom: var(--space-48);
}
.partner-watermark {
    font-size: 82px;
    font-weight: 900;
    font-style: italic;
    color: var(--title-watermark);
    line-height: var(--lh-solid);
    letter-spacing: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.partner-head-label,
.partner-head-title,
.partner-head-desc {
    position: relative;
    z-index: 1;
}
.partner-head-label {
    font-family: var(--font-mono);
    font-size: var(--fs-11);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--footer-cyan);
}
.partner-head-title {
    font-size: var(--fs-26);
    font-weight: 800;
    color: var(--text-main);
    margin-top: 10px;
    letter-spacing: 1px;
}
.partner-head-desc {
    margin-top: 10px;
    font-size: var(--fs-13);
    color: var(--text-4);
    letter-spacing: .5px;
}
.partner-wall {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.partner-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 34px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background .1s ease;
}
.partner-cell:hover {
    background: color-mix(in srgb, var(--brand, var(--brand-blue)) 8%, transparent);
}
.partner-cell-name {
    font-size: var(--fs-16);
    font-weight: 800;
    color: var(--text-4);
    letter-spacing: .5px;
    transition: color var(--motion-fast) ease;
}
.partner-cell-en {
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    color: var(--text-5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color var(--motion-fast) ease;
}
.partner-cell:hover .partner-cell-name,
.partner-cell:hover .partner-cell-en {
    color: var(--brand, var(--brand-blue));
}

/* ----- Domain Search/Filter ----- */
.domain-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.domain-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 360px;
}
.domain-search input {
    width: 100%;
    padding: var(--space-12) var(--space-16) var(--space-12) var(--space-40);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    letter-spacing: .5px;
    clip-path: polygon(8px 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%, 0 30%);
    outline: none;
    transition: border-color .2s ease;
}
.domain-search input::placeholder { color: var(--text-5); }
.domain-search input:focus { border-color: var(--brand-blue); }
.domain-search .ds-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-5);
    pointer-events: none;
}
.domain-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.domain-filter-btn {
    padding: var(--space-8) var(--space-16);
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--motion-base);
    clip-path: polygon(6px 0, 100% 0, 100% 70%, calc(100% - 6px) 100%, 0 100%, 0 30%);
}
.domain-filter-btn:hover { color: var(--text-main); border-color: var(--text-3); }
.domain-filter-btn.active {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}
.domain-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-40);
    font-family: var(--font-mono);
    color: var(--text-4);
    font-size: var(--fs-13);
    letter-spacing: 1px;
    display: none;
}

/* ----- Pricing: popular badge + billing toggle ----- */
.price-card.popular { transform: translateY(-6px); }
.price-card.popular::before { height: 6px; opacity: 1; }
.price-popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 14px;
    background: var(--brand-blue);
    color: #fff;
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    font-weight: 900;
    letter-spacing: 1.5px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    z-index: 3;
}
.billing-wrap { display: flex; justify-content: center; }
.billing-toggle {
    display: inline-flex;
    align-items: center;
    padding: var(--space-4);
    margin: 0 auto var(--space-36);
    background: var(--accent-tint);
    border: 1px solid var(--border);
    clip-path: polygon(8px 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%, 0 30%);
}
.billing-toggle button {
    padding: var(--space-8) var(--space-20);
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--motion-base);
    clip-path: polygon(6px 0, 100% 0, 100% 70%, calc(100% - 6px) 100%, 0 100%, 0 30%);
}
.billing-toggle button.active {
    background: var(--text-main);
    color: var(--bg-color);
}
.billing-toggle .save-tag {
    font-size: var(--fs-9);
    color: var(--brand-blue);
    margin-left: var(--space-4);
    vertical-align: super;
}

/* ----- FAQ Accordion ----- */
.faq-section { padding: 0 20px; }
.faq-inner { width: 900px; max-width: 100%; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    margin-bottom: 14px;
    background: var(--surface);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 0 100%);
    transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--brand-blue); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    padding: 18px var(--space-24);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    font-size: var(--fs-15);
    font-weight: 700;
    color: var(--text-main);
}
.faq-q .faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--brand-blue);
    transition: transform .3s ease;
}
.faq-q .faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .faq-icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--text-3); font-size: var(--fs-14); line-height: var(--lh-loose); }

/* ----- Announcement read state ----- */
.anno-card.read .anno-pin { background: var(--text-5); }
.anno-card.read .card-bg-num { color: var(--text-5); opacity: .15; }

/* ----- Footer subscribe + social ----- */
.footer-subscribe { display: flex; gap: 10px; margin-top: 16px; }
.footer-subscribe input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: var(--footer-card-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    outline: none;
    transition: border-color .2s ease;
}
.footer-subscribe input::placeholder { color: var(--text-5); }
.footer-subscribe input:focus { border-color: var(--brand-blue); }
.footer-subscribe button {
    padding: 10px 18px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    clip-path: polygon(6px 0, 100% 0, 100% 70%, calc(100% - 6px) 100%, 0 100%, 0 30%);
    transition: var(--motion-base);
}
.footer-subscribe button:hover { background: var(--btn-hover-bg); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-3);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: var(--motion-base);
}
.footer-social a:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.footer-social svg { width: 16px; height: 16px; }

/* ----- Back to top ----- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    cursor: pointer;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    box-shadow: 3px 3px 0 var(--toggle-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--toggle-shadow); }
.back-to-top svg { width: 20px; height: 20px; }

/* ----- Responsive for new sections ----- */
@media (max-width: 900px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .partner-wall { grid-template-columns: repeat(3, 1fr); }
    .partner-watermark { font-size: var(--fs-58); }
}
@media (max-width: 480px) {
    .stats-inner { grid-template-columns: 1fr; }
    .stats-num { font-size: var(--fs-32); }
    .partner-wall { grid-template-columns: repeat(2, 1fr); }
    .partner-head-title { font-size: var(--fs-22); }
    .partner-watermark { font-size: 42px; }
    .back-to-top { width: 42px; height: 42px; bottom: 20px; right: 20px; }
}

/* ============================================================
   Auth Page (Login / Register) — BG image + center-right card
   ============================================================ */

/* Body override */
.auth-body {
    background: var(--bg-color);
    overflow: hidden;
}

/* Full-screen background image */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}
.auth-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.auth-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.45) 100%);
    z-index: 1;
}

/* Center-right main area */
.auth-main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-80) 6vw var(--space-40) var(--space-20);
}

/* Card */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,.88);
    padding: 1px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 92% 100%, 0 100%);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

[data-theme="dark"] .auth-card {
    background: rgba(22,22,31,.9);
}

.auth-card::after {
    content: "";
    position: absolute;
    top: 1px; left: 1px; right: 1px; bottom: 1px;
    background: transparent;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 92% 100%, 0 100%);
    z-index: -1;
}
.auth-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    z-index: 3;
}
.auth-card-inner {
    position: relative;
    z-index: 2;
    padding: var(--space-36) var(--space-36) var(--space-32);
}

/* Brand */
.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    margin-bottom: var(--space-28);
}
.auth-brand-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
}
.auth-brand-icon svg { width: 100%; height: 100%; }
.auth-brand-name {
    margin: 0;
    font-size: var(--fs-18);
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.auth-brand-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    color: var(--text-5);
    letter-spacing: .8px;
    margin-top: 1px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    position: relative;
    margin-bottom: var(--space-28);
    border-bottom: 2px solid var(--border-soft);
}
.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-12) 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: var(--motion-base);
    font-size: var(--fs-15);
    font-weight: 800;
    font-style: italic;
    color: var(--text-4);
}
.auth-tab-en {
    font-family: var(--font-mono);
    font-size: var(--fs-9);
    font-style: normal;
    font-weight: 700;
    color: var(--text-5);
    letter-spacing: 1px;
}
.auth-tab.active {
    color: var(--text-main);
}
.auth-tab.active .auth-tab-en {
    color: var(--brand-blue);
}
.auth-tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--brand-blue);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

/* Panels */
.auth-panel {
    display: none;
}
.auth-panel.active {
    display: block;
}

/* Method sub-tabs */
.auth-methods {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-20);
    background: var(--accent-tint);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
}
.auth-method {
    flex: 1;
    padding: var(--space-8) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    font-weight: 700;
    color: var(--text-5);
    letter-spacing: .5px;
    transition: var(--motion-fast);
    border-right: 1px solid var(--border-soft);
}
.auth-method:last-child { border-right: none; }
.auth-method:hover { color: var(--text-main); }
.auth-method.active {
    background: var(--surface);
    color: var(--text-main);
}

/* Forms */
.auth-form {
    display: none;
}
.auth-form.active { display: block; }

.auth-form-header {
    margin-bottom: 22px;
}
.auth-form-header h3 {
    margin: 0 0 var(--space-4);
    font-size: var(--fs-22);
    font-weight: 900;
    font-style: italic;
    color: var(--text-main);
}
.auth-form-header span {
    font-size: var(--fs-13);
    color: var(--text-4);
    font-family: var(--font-mono);
}

/* Fields */
.auth-field {
    margin-bottom: var(--space-16);
}
.auth-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-11);
    font-weight: 700;
    color: var(--text-4);
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--accent-tint);
    border: 1px solid var(--border);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-input-wrap:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 12%, transparent);
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    width: 16px; height: 16px;
    color: var(--text-5);
    pointer-events: none;
    transition: color .2s;
}
.auth-input-wrap:focus-within .auth-input-icon { color: var(--brand-blue); }
.auth-input-wrap input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px 11px var(--space-40);
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: var(--fs-14);
    color: var(--text-main);
}
.auth-input-wrap input::placeholder {
    color: var(--text-5);
    font-size: var(--fs-13);
}
.auth-eye {
    position: absolute;
    right: 10px;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-5);
    border-radius: 4px;
    transition: var(--motion-fast);
}
.auth-eye:hover { color: var(--text-main); background: var(--accent-tint); }
.auth-eye.active { color: var(--brand-blue); }
.auth-eye svg { width: 16px; height: 16px; }

/* Row */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.auth-check {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    cursor: pointer;
    font-size: var(--fs-12);
    color: var(--text-3);
}
.auth-check input { display: none; }
.auth-check-box {
    width: 16px; height: 16px;
    border: 1.5px solid var(--border-strong);
    background: var(--accent-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--motion-fast);
    position: relative;
}
.auth-check-box::after {
    content: "";
    width: 8px; height: 8px;
    background: var(--brand-blue);
    opacity: 0;
    transition: opacity var(--motion-fast);
}
.auth-check input:checked + .auth-check-box {
    border-color: var(--brand-blue);
}
.auth-check input:checked + .auth-check-box::after {
    opacity: 1;
}
.auth-check-text {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
}
.auth-link {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--brand-blue);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.auth-link:hover { text-decoration: underline; }

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 13px var(--space-32);
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    cursor: pointer;
    font-size: var(--fs-15);
    font-weight: 800;
    font-style: italic;
    clip-path: polygon(10px 0, 100% 0, 100% 70%, calc(100% - 10px) 100%, 0 100%, 0 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    transition: var(--motion-base);
    margin-bottom: 22px;
}
.auth-submit:hover {
    box-shadow: 5px 5px 0 var(--brand-cyan);
    background: var(--btn-hover-bg);
}
.auth-submit-en {
    font-family: var(--font-mono);
    font-size: var(--fs-10);
    opacity: .6;
    letter-spacing: 2px;
}

/* Divider row */
.auth-divider-row {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    margin: 18px 0 14px;
}
.auth-divider-row span:first-child,
.auth-divider-row span:last-child {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider-row span:nth-child(2) {
    font-family: var(--font-mono);
    font-size: var(--fs-11);
    color: var(--text-5);
    letter-spacing: .5px;
    white-space: nowrap;
}

/* Social */
.auth-social {
    display: flex;
    justify-content: center;
    gap: 14px;
}
.auth-social-btn {
    width: 42px; height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--accent-tint);
    border: 1px solid var(--border);
    cursor: pointer;
    color: var(--text-3);
    border-radius: 4px;
    transition: var(--motion-fast);
    padding: 6px;
}
.auth-social-btn span {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-5);
    letter-spacing: .5px;
}
.auth-social-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: color-mix(in srgb, var(--brand-blue) 8%, transparent);
}
.auth-social-btn:hover span { color: var(--brand-blue); }
.auth-social-btn svg { width: 18px; height: 18px; }

/* Code input with button */
.auth-input-wrap--code input {
    padding-right: 120px;
}
.auth-code-btn {
    position: absolute;
    right: 6px;
    padding: 6px 14px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: var(--fs-11);
    font-weight: 700;
    letter-spacing: .5px;
    clip-path: polygon(6px 0, 100% 0, 100% 70%, calc(100% - 6px) 100%, 0 100%, 0 30%);
    transition: var(--motion-fast);
    white-space: nowrap;
}
.auth-code-btn:hover {
    background: var(--btn-hover-bg);
}
.auth-code-btn:disabled {
    opacity: .5;
    cursor: default;
}

/* Back to login */
.auth-back-login {
    display: block;
    width: 100%;
    margin-top: var(--space-12);
    padding: 10px;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    font-weight: 700;
    color: var(--text-4);
    border-radius: 4px;
    transition: var(--motion-fast);
    text-align: center;
}
.auth-back-login:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

/* Toast */
.auth-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    padding: 10px var(--space-24);
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-mono);
    font-size: var(--fs-13);
    font-weight: 700;
    border-radius: 4px;
    box-shadow: var(--shadow-toast);
    z-index: 9999;
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.auth-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.auth-toast--error {
    background: var(--danger-bright);
    color: #fff;
}

/* Responsive */
@media (max-width: 860px) {
    .auth-main {
        justify-content: center;
        padding: var(--space-80) var(--space-20) var(--space-40);
    }
    .auth-card {
        max-width: 440px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
    }
    .auth-card::after {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
    }

}

@media (max-width: 480px) {
    .auth-main {
        padding: 70px var(--space-12) var(--space-24);
    }
    .auth-card-inner {
        padding: var(--space-28) var(--space-24) var(--space-24);
    }
    .auth-brand-name { font-size: var(--fs-16); }
    .auth-form-header h3 { font-size: 19px; }
    .auth-submit { padding: 12px 24px; font-size: var(--fs-14); }
    .auth-bg-overlay {
        background: rgba(0,0,0,.6);
    }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    html.js .tech-card,
    html.js .domain-card,
    html.js .v-card,
    html.js .section-title,
    html.js .stats-card,
    html.js .partner-strip,
    html.js .cta-banner {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }
    .hero-scroll-hint .chev { animation: none !important; }
}
