:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --page: #080c12;
    --panel: #101722;
    --panel-soft: #151e2b;
    --text: #f5f7fb;
    --muted: #a5b1c2;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #67e8f9;
    --accent-strong: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.12);
    --green: #34d399;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

body,
button,
a {
    font: inherit;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.product-page {
    min-height: 100vh;
    color: var(--text);
    background:
            radial-gradient(circle at 88% 5%, rgba(99, 102, 241, 0.16), transparent 28rem),
            radial-gradient(circle at 8% 30%, rgba(34, 211, 238, 0.09), transparent 24rem),
            var(--page);
    line-height: 1.7;
}

.clash-page {
    --accent: #5eead4;
    --accent-strong: #2dd4bf;
    --accent-soft: rgba(45, 212, 191, 0.12);
}

.product-header,
.product-footer,
.product-hero,
.content-section,
.directory-hero,
.directory-grid {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
}

.product-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.product-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.product-nav a,
.product-footer a {
    text-decoration: none;
}

.product-nav a:hover,
.product-nav a:focus-visible,
.product-footer a:hover,
.product-footer a:focus-visible,
.info-card a:hover,
.info-card a:focus-visible {
    color: var(--accent);
}

.product-hero {
    min-height: 670px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
    padding-block: 72px;
}

.hero-copy h1,
.directory-hero h1 {
    margin: 16px 0 0;
    max-width: 760px;
    color: var(--text);
    font-size: clamp(2.9rem, 6vw, 5.4rem);
    font-weight: 880;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.hero-copy h1 em {
    color: var(--accent);
    font-style: normal;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12);
}

.hero-lead,
.section-heading > p,
.directory-hero > p:last-child {
    max-width: 760px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
}

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

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    color: #051014;
    background: var(--accent);
}

.button-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.button:hover,
.button:focus-visible,
.plan-card:hover,
.plan-card:focus-visible,
.directory-card:hover,
.directory-card:focus-visible {
    transform: translateY(-2px);
}

.fact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.fact-list li,
.release-note,
.availability-note {
    color: #cbd5e1;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.78rem;
}

.fact-list li {
    padding: 5px 11px;
}

.release-note,
.availability-note {
    width: fit-content;
    margin-top: 18px;
    padding: 7px 12px;
}

.hero-visual {
    margin: 0;
}

.hero-visual img {
    display: block;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.hero-visual figcaption {
    margin-top: 12px;
    color: #738195;
    font-size: 0.78rem;
    text-align: center;
}

.line-status {
    display: grid;
    gap: 12px;
}

.line-status article {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(16, 23, 34, 0.86);
    backdrop-filter: blur(16px);
}

.line-status span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.line-status h2,
.line-status p {
    margin: 0;
}

.line-status h2 {
    font-size: 1rem;
}

.line-status p {
    color: var(--muted);
    font-size: 0.84rem;
}

.clash-hero {
    position: relative;
}

.clash-hero::before {
    position: absolute;
    inset: 10% -30vw 10% 40%;
    z-index: -1;
    content: "";
    opacity: 0.2;
    background: linear-gradient(90deg, var(--page), transparent), url("/static/clash-hero.png") center / cover;
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.content-section {
    padding-block: clamp(64px, 9vw, 112px);
    border-top: 1px solid var(--line);
}

.section-heading h2,
.info-card h2 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.step-grid,
.feature-grid,
.trust-grid,
.plan-grid {
    display: grid;
    gap: 16px;
    margin-top: 42px;
}

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

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

.plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card,
.notice-card,
.plan-card,
.directory-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(21, 30, 43, 0.94), rgba(12, 18, 27, 0.92));
}

.info-card,
.notice-card {
    padding: clamp(24px, 4vw, 36px);
}

.info-card b {
    color: var(--accent);
    font-size: 0.8rem;
}

.info-card h3,
.notice-card h3 {
    margin: 14px 0 0;
    font-size: 1.2rem;
}

.info-card p,
.notice-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.info-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
}

code {
    padding: 2px 6px;
    color: #c4b5fd;
    border-radius: 5px;
    background: rgba(139, 92, 246, 0.13);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
}

.comparison-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
    padding: 15px 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.comparison-row:first-child {
    border-top: 0;
}

.comparison-row strong {
    color: var(--accent);
}

.comparison-head {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 800;
}

.instruction-list {
    display: grid;
    gap: 14px;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
}

.instruction-list li {
    display: grid;
    grid-template-columns: minmax(190px, 0.5fr) 1fr;
    gap: 28px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.instruction-list span {
    color: var(--muted);
}

.plan-card {
    min-height: 190px;
    display: grid;
    align-content: space-between;
    padding: 26px;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.plan-card:hover,
.plan-card:focus-visible {
    border-color: var(--accent-strong);
}

.plan-card h3,
.plan-card p {
    margin: 0;
}

.plan-card p {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 850;
}

.plan-card span,
.directory-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.empty-state {
    margin-top: 36px;
    padding: 24px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.notice-card {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(120, 53, 15, 0.18);
}

.faq-list {
    display: grid;
    gap: 10px;
    margin-top: 40px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(16, 23, 34, 0.72);
}

.faq-list summary {
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 800;
}

.faq-list p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--muted);
}

.product-footer {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #7f8da0;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

.product-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.directory-hero {
    padding-block: clamp(80px, 12vw, 150px) 70px;
}

.directory-hero h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 110px;
}

.directory-card {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.directory-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    background: var(--panel-soft);
}

.directory-card div {
    padding: 26px;
}

.directory-card h2,
.directory-card p {
    margin: 0;
}

.directory-card h2 {
    font-size: 1.3rem;
}

.directory-card p {
    margin-top: 12px;
    color: var(--muted);
}

.directory-card span {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
}

@media (max-width: 900px) {
    .product-hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .product-hero {
        min-height: auto;
        padding-block: 64px;
    }

    .step-grid,
    .feature-grid,
    .trust-grid,
    .directory-grid {
        grid-template-columns: 1fr;
    }

    .clash-hero::before {
        inset: 0 -1rem;
        opacity: 0.12;
    }
}

@media (max-width: 680px) {
    .product-header {
        align-items: flex-start;
        padding-block: 16px;
    }

    .product-nav {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px 14px;
        font-size: 0.74rem;
    }

    .product-nav a:nth-child(-n+2) {
        display: none;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .comparison-head {
        display: none;
    }

    .instruction-list li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 28px;
    }
}

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

    * {
        transition: none !important;
    }
}
