:root {
    --bg: #070d18;
    --bg-soft: #0a1322;
    --panel: #0e1a2d;
    --panel-2: #12213a;
    --line: #1d2d48;
    --line-2: #29405f;
    --text: #e9f0fa;
    --muted: #8fa3c0;
    --accent: #34d399;
    --accent-dark: #06231a;
    --blue: #60a5fa;
    --amber: #fbbf24;
    --red: #f87171;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px rgba(0, 0, 0, .28);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
code { font-family: var(--mono); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; line-height: 1.6; }
.block { display: block; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 26px; }

.topbar {
    background: #050a12;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar-right { color: #6f819c; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 13, 24, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), #0ea5e9);
    color: #04110c; font-size: 13px; font-weight: 900;
}
.brand-text { font-size: 18px; }
.brand-dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.nav a { color: #b9c7dc; }
.nav a:hover { color: #fff; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 2px;
    border: 1px solid var(--line); border-radius: 999px; padding: 3px;
    margin-left: 4px;
}
.lang-switch a { padding: 4px 8px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.lang-switch a.active { background: var(--panel-2); color: var(--text); }
.header-cta { margin-left: auto; }
.nav-toggle {
    display: none; margin-left: auto;
    width: 40px; height: 40px; border: 1px solid var(--line);
    border-radius: 10px; background: transparent; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
    font-weight: 650; font-size: 14.5px; line-height: 1.2;
    cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #04140d; }
.btn-primary:hover { background: #6ee7b7; color: #04140d; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
    border: 1px solid transparent; white-space: nowrap;
}
.badge-green, .region-open { background: rgba(52, 211, 153, .12); color: #6ee7b7; border-color: rgba(52, 211, 153, .35); }
.badge-blue { background: rgba(96, 165, 250, .12); color: #93c5fd; border-color: rgba(96, 165, 250, .35); }
.region-restricted { background: rgba(251, 191, 36, .12); color: #fcd34d; border-color: rgba(251, 191, 36, .35); }
.region-closed { background: rgba(248, 113, 113, .12); color: #fca5a5; border-color: rgba(248, 113, 113, .35); }
.region-unknown { background: rgba(143, 163, 192, .1); color: #b6c4d8; border-color: rgba(143, 163, 192, .3); }

.hero {
    position: relative;
    padding: 70px 0 54px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: "";
    position: absolute; inset: -30% 30% auto -10%; height: 620px;
    background: radial-gradient(closest-side, rgba(52, 211, 153, .18), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute; right: -10%; top: 10%; width: 520px; height: 520px;
    background: radial-gradient(closest-side, rgba(96, 165, 250, .14), transparent 70%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr .9fr; gap: 46px; align-items: center; }
.eyebrow {
    display: inline-block; margin-bottom: 12px;
    color: var(--accent); font-size: 12px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
}
.hero h1 { max-width: 780px; font-size: clamp(30px, 4vw, 50px); text-wrap: balance; }
.hero-sub { color: #b7c6da; font-size: 17px; max-width: 640px; }
.hero-sub p { margin-bottom: 10px; }
.hero-note { color: var(--muted); font-size: 13.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.stats { display: flex; gap: 38px; margin: 0; }
.stats dt { color: var(--muted); font-size: 12.5px; }
.stats dd { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hero-card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-2);
    border-radius: 18px; padding: 20px; box-shadow: var(--shadow);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hero-card-head h2 { font-size: 17px; margin: 0; }
.coupon-list { list-style: none; margin: 4px 0 14px; }
.coupon-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.coupon-list li:last-child { border-bottom: 0; }
.coupon-list strong { display: block; font-size: 14px; }
.coupon-list .muted { font-size: 12px; }
.coupon {
    border: 1px dashed rgba(52, 211, 153, .6);
    background: rgba(52, 211, 153, .08);
    color: #6ee7b7; font-family: var(--mono); font-size: 12.5px; font-weight: 700;
    padding: 6px 9px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.coupon:hover { background: rgba(52, 211, 153, .16); }
.coupon.wide { width: 100%; margin-top: 10px; padding: 10px; font-size: 13px; }

.section { padding: 58px 0; }
.section-tight { padding: 30px 0 46px; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-cta { padding-top: 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: 6px; }
.link-arrow { color: var(--accent); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.link-arrow:hover { color: #a7f3d0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.firm-card {
    background: linear-gradient(180deg, var(--panel), #0b1526);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column; gap: 12px;
    transition: .2s ease;
}
.firm-card:hover { border-color: #33527a; transform: translateY(-2px); box-shadow: var(--shadow); }
.firm-card-top { display: flex; align-items: flex-start; gap: 12px; }
.firm-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #fff; }
.firm-logo.lg { width: 72px; height: 72px; border-radius: 16px; }
.firm-title-wrap { flex: 1; min-width: 0; }
.firm-title-wrap h3 { margin: 2px 0 3px; font-size: 17px; }
.firm-title-wrap p { margin: 0; font-size: 12.5px; }
.logo-fallback {
    width: 56px; height: 56px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #1e3a5f, #0f2a44);
    color: #9fd7ff; font-weight: 900; font-size: 20px;
}
.logo-fallback.sm { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.logo-fallback.lg { width: 72px; height: 72px; border-radius: 16px; font-size: 26px; }
.firm-tagline { margin: 0; color: #c5d2e4; font-size: 13.5px; }
.firm-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-size: 12.5px; color: var(--muted); }
.firm-meta strong { color: var(--text); font-size: 15px; }
.firm-promo {
    font-size: 12px; color: #fcd34d;
    background: rgba(251, 191, 36, .08);
    border: 1px solid rgba(251, 191, 36, .2);
    padding: 6px 9px; border-radius: 8px;
}
.firm-promo code { color: #fde68a; }
.firm-actions { display: flex; gap: 8px; margin-top: auto; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #0a1424; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(96, 165, 250, .04); }
.table-firm { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.table-firm small { font-weight: 400; font-size: 12px; }
.table-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: #fff; }
.table-actions { white-space: nowrap; }
.table-actions a { margin-right: 10px; font-size: 12.5px; color: var(--muted); }
.table-actions a:hover { color: var(--accent); }
.table-challenges { min-width: 980px; }
.table-lg td { padding-top: 15px; padding-bottom: 15px; }
.empty { text-align: center; color: var(--muted); padding: 30px !important; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 22px; }
.feature-icon { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.feature h3 { margin: 8px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-box {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: linear-gradient(120deg, rgba(52, 211, 153, .1), rgba(96, 165, 250, .08));
    border: 1px solid var(--line-2); border-radius: 18px; padding: 26px;
}
.cta-box h2 { margin-bottom: 4px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.page-head { padding: 40px 0 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 4px 0 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head-stat { text-align: right; }
.page-head-stat strong { display: block; font-size: 40px; font-weight: 800; line-height: 1; color: var(--accent); }
.page-head-stat span { font-size: 12px; color: var(--muted); }
.page-intro { max-width: 760px; color: #b7c6da; font-size: 15px; }
.page-intro p { margin-bottom: 6px; }

.filters {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 15px;
}
.filters label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.filters select {
    min-width: 150px; background: #0a1424; color: var(--text);
    border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px;
    font-size: 13.5px; font-family: var(--font);
}
.filters .btn { margin-bottom: 1px; }

.firm-hero { display: grid; grid-template-columns: 1.45fr .85fr; gap: 34px; align-items: start; }
.firm-hero-title { display: flex; align-items: flex-start; gap: 16px; }
.firm-hero-title h1 { margin: 6px 0 4px; font-size: clamp(28px, 3.4vw, 42px); }
.firm-hero-title p { margin: 0; font-size: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.firm-summary { color: #b7c6da; margin: 16px 0 18px; max-width: 680px; }
.firm-summary p:last-child { margin-bottom: 0; }
.firm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.firm-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.side-card-head span:first-child { color: var(--text); font-weight: 700; font-size: 14px; }
.fact-list { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.fact-list > div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.fact-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list dt { color: var(--muted); font-size: 12.5px; }
.fact-list dd { margin: 0; text-align: right; font-size: 12.5px; font-weight: 600; }
.promo-card { background: linear-gradient(160deg, rgba(251, 191, 36, .1), var(--panel)); border-color: rgba(251, 191, 36, .25); }
.promo-card strong { display: block; font-size: 18px; margin: 4px 0; }

.notice {
    border-left: 3px solid var(--accent);
    background: rgba(52, 211, 153, .06);
    border-radius: 0 10px 10px 0;
    padding: 13px 16px; color: #cfe3dc; font-size: 14px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { margin-bottom: 12px; }
.check-list, .cross-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.check-list li, .cross-list li { position: relative; padding-left: 24px; color: #c5d2e4; font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.cross-list li::before { content: "×"; position: absolute; left: 2px; color: var(--red); font-weight: 800; }

.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-card {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 15px 16px; font-size: 14px;
}
.link-card:hover { border-color: var(--accent); }

.sources { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.sources h3 { font-size: 14px; color: var(--muted); }
.sources ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.sources a { color: #93c5fd; font-size: 12px; word-break: break-all; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; font-size: 26px; }
.prose h3 { margin-top: 1.2em; }
.prose p { color: #c5d2e4; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { color: #c5d2e4; }
.prose a { color: #93c5fd; text-decoration: underline; text-underline-offset: 3px; }

.site-footer { background: #050a12; border-top: 1px solid var(--line); padding: 42px 0 22px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { margin-bottom: 12px; }
.footer-desc { font-size: 13px; max-width: 320px; }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a { display: block; font-size: 13.5px; color: #b9c7dc; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }
.footer-bottom p { color: #6f819c; font-size: 11.5px; margin: 0 0 4px; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .firm-hero { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .link-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .header-inner { gap: 12px; }
    .header-cta { display: none; }
    .nav-toggle { display: block; }
    .lang-switch { margin-left: auto; }
    .nav {
        display: none; position: absolute; top: 66px; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 4px;
        background: #081120; border-bottom: 1px solid var(--line); padding: 14px 22px 18px;
    }
    .nav a { width: 100%; padding: 9px 0; border-bottom: 1px solid rgba(29, 45, 72, .6); }
    .nav-open .nav { display: flex; }
    .page-head-row { flex-direction: column; align-items: flex-start; }
    .page-head-stat { text-align: left; }
    .cta-box { flex-direction: column; align-items: flex-start; }
    .section { padding: 44px 0; }
    .hero { padding-top: 46px; }
    .stats { gap: 24px; }
}

@media (max-width: 620px) {
    .container { padding: 0 16px; }
    .topbar-right { display: none; }
    h1 { font-size: 30px; }
    .card-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .link-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .filters { flex-direction: column; align-items: stretch; }
    .filters select { width: 100%; }
    .filters .btn { width: 100%; }
    .firm-actions .btn { flex: 1; }
    .stats dd { font-size: 24px; }
    .hero-card { padding: 16px; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}
