:root {
    --bg: #020617;
    --surface: #0F172A;
    --ink: #F8FAFC;
    --muted: #CBD5E1;
    --border: #334155;
    --accent: #22C55E;
    --accent-ink: #052E16;
    --link: #86EFAC;
    --header: 72px;
    --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 24px; }
h3 { font-size: 1.125rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 20;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 8px 16px;
    text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: var(--header);
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.nav {
    min-height: var(--header);
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.brand:hover { color: var(--link); }
.nav-list {
    display: flex;
    gap: 4px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nav-list a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    border-radius: 8px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.btn-cta {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.28);
}
.btn-cta:hover { background: #4ADE80; color: var(--accent-ink); text-decoration: none; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--link); color: var(--ink); }

.hero { padding: 48px 0 24px; position: relative; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--link);
    font-family: var(--mono);
    font-size: 13px;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.hero-lead {
    color: var(--muted);
    max-width: 42rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-photo {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.12);
}
.hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.band { padding: 64px 0; scroll-margin-top: calc(var(--header) + 16px); }
.band-surface { background: var(--surface); }
.card-grid, .case-grid, .news-grid {
    display: grid;
    gap: 16px;
}
.panel {
    background: #0B1220;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
}
.band-surface .panel { background: var(--bg); }
.panel p:last-child { margin-bottom: 0; }

.about-grid { display: grid; gap: 32px; align-items: start; }
.about-facts { margin: 0; display: grid; gap: 12px; }
.about-facts div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.about-facts dt { color: var(--link); font-family: var(--mono); font-size: 13px; }
.about-facts dd { margin: 0; }

.stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 16px; color: var(--muted); }
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #14532D;
    color: var(--ink);
    font-weight: 700;
}

.case-card {
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.case-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.case-copy { padding: 16px 20px 20px; }
.section-cta { margin: 24px 0 0; }

.faq-wrap { max-width: 760px; }
.faq-list details {
    border-bottom: 1px solid var(--border);
}
.faq-list summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    padding: 8px 0;
}
.faq-list details p { color: var(--muted); }

.meta, .legal { color: var(--muted); font-size: 14px; }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--link); text-decoration: underline; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--link); }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    background: #01040f;
}
.footer-grid { display: grid; gap: 32px; margin-bottom: 24px; }
.site-footer h2 { font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.legal { border-top: 1px solid var(--border); padding-top: 16px; }

.crumbs { padding: 16px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.layout {
    display: grid;
    gap: 24px;
    padding: 32px 0 64px;
}
.page-title h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.error-code { font-family: var(--mono); color: var(--link); font-size: 14px; margin-bottom: 8px; }
.article-title { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
    color: var(--link);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    min-height: 32px;
}
.prose { max-width: 68ch; }
.prose a { text-decoration: underline; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.stack { display: grid; gap: 16px; align-content: start; }
.card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--link); }
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.page-link {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}
.page-item.active .page-link { background: var(--accent); color: var(--accent-ink); }

@media (min-width: 768px) {
    .hero-grid, .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .card-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}

@media (min-width: 1280px) {
    #features .card-grid, #services .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1279px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-panel {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header);
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 8px 16px 16px;
    }
    .nav-panel.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; }
    .site-header { position: sticky; }
    .nav { position: static; }
    .site-header .wrap { position: relative; }
}

@media (max-width: 767px) {
    .hero-actions .btn-cta,
    .section-cta .btn-cta,
    .about-grid .btn-cta,
    .page-actions .btn-cta,
    .band-note .btn-cta,
    .panel .btn-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .status-dot { box-shadow: none; }
    .btn, .btn-cta { transition: none; }
}
