:root {
    --font-display: 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
    --bg: #f6f1e9;
    --bg-alt: #fff7ec;
    --surface: #ffffff;
    --surface-strong: #f4ece1;
    --text: #1a1712;
    --muted: #585044;
    --accent: #ff4d5a;
    --accent-strong: #c4243a;
    --accent-alt: #1b9aaa;
    --border: rgba(26, 23, 18, 0.12);
    --shadow: 0 18px 40px rgba(26, 23, 18, 0.12);
    --radius: 22px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 10%, rgba(255, 77, 90, 0.16), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(27, 154, 170, 0.12), transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 183, 77, 0.18), transparent 50%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.5), rgba(255, 244, 230, 0.4));
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(26, 23, 18, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 23, 18, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
 a:focus-visible {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    padding-left: 1.2rem;
}

.container {
    width: min(var(--max-width), 92vw);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 16px;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.skip-link:focus {
    transform: translateY(70px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 241, 233, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.brand-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.brand-text em {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    align-items: center;
}

.site-nav a {
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.site-nav a.is-current::after,
.site-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 24px rgba(255, 77, 90, 0.22);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--border);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 77, 90, 0.12);
    color: var(--accent-strong);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin: 1rem 0;
}

.lead {
    color: var(--muted);
    max-width: 50ch;
}

.cta-group {
    margin: 1.5rem 0 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.hero-stats div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow);
}

.hero-stats dt {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-stats dd {
    font-weight: 700;
    margin-top: 0.2rem;
}

.hero-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -30% -20%;
    height: 60%;
    background: linear-gradient(120deg, rgba(255, 77, 90, 0.18), transparent);
}

.hero-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.hero-card li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.meter {
    background: rgba(26, 23, 18, 0.08);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
    width: var(--progress, 80%);
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

.section {
    padding: 3.5rem 0;
    position: relative;
}

.section--alt {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.85), rgba(255, 244, 226, 0.85));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.section p {
    color: var(--muted);
}

.two-col {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.highlight-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.highlight-list li {
    padding-left: 1.4rem;
    position: relative;
}

.highlight-list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.timeline {
    list-style: none;
    padding-left: 1.4rem;
    margin-top: 1.2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 1.4rem;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -0.55rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.quote-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.quote-list li {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow);
}

.download-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 1.6rem;
}

.download-card ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0 1.2rem;
    color: var(--muted);
}

.hash {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.6rem;
    word-break: break-all;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.spec-table th,
.spec-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.spec-table th {
    background: var(--surface-strong);
    font-weight: 600;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--muted);
}

.page-hero {
    padding: 3.5rem 0;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin: 0.8rem 0 1rem;
}

.faq-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item button {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    background: none;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.faq-panel {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-panel p {
    margin-bottom: 1rem;
    color: var(--muted);
}

.faq-item[aria-expanded="true"] .faq-panel {
    padding-bottom: 0.6rem;
}

.update-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.4rem;
}

.update-list li {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow);
}

.update-list strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.site-footer {
    padding: 3rem 0;
    background: #15120e;
    color: #f8f2e9;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.site-footer a {
    color: inherit;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .site-nav {
        position: absolute;
        right: 0;
        top: calc(100% + 0.6rem);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        box-shadow: var(--shadow);
        display: none;
        min-width: 200px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .btn--small {
        display: none;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
