:root {
    --bg: #f7f4ef;
    --bg-soft: #fffdf9;
    --surface: rgba(255, 253, 249, 0.72);
    --surface-solid: #fffdf9;
    --text: #2b1e3a;
    --text-soft: #5d5370;
    --text-muted: #8a8099;
    --primary: #6b4c9a;
    --primary-deep: #2b1e3a;
    --accent: #e8c07d;
    --accent-soft: #f3ddb4;
    --line: rgba(43, 30, 58, 0.12);
    --line-strong: rgba(43, 30, 58, 0.22);
    --shadow-sm: 0 4px 16px rgba(43, 30, 58, 0.07);
    --shadow-md: 0 12px 36px rgba(43, 30, 58, 0.12);
    --shadow-lg: 0 24px 64px rgba(43, 30, 58, 0.18);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --blur: 18px;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14101c;
        --bg-soft: #1b1526;
        --surface: rgba(38, 30, 52, 0.62);
        --surface-solid: #221a30;
        --text: #f2ecf7;
        --text-soft: #cfc4dd;
        --text-muted: #9c90ae;
        --primary: #b79ce6;
        --primary-deep: #e8c07d;
        --accent: #e8c07d;
        --accent-soft: #4a3a2a;
        --line: rgba(242, 236, 247, 0.12);
        --line-strong: rgba(242, 236, 247, 0.22);
        --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 8% -8%, rgba(107, 76, 154, 0.16), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(232, 192, 125, 0.16), transparent 55%),
        radial-gradient(800px 600px at 50% 120%, rgba(107, 76, 154, 0.10), transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: var(--accent);
    color: #2b1e3a;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
}

h1 {
    font-size: clamp(1.7rem, 4.2vw, 2.9rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    position: relative;
    padding-left: 0.9em;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

h3 {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    margin-top: 1.6em;
    color: var(--text);
}

p {
    margin: 0 0 1em;
    color: var(--text-soft);
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
    color: var(--text-soft);
}

li {
    margin-bottom: 0.5em;
}

li::marker {
    color: var(--primary);
}

strong {
    color: var(--text);
    font-weight: 700;
}

time {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.4em;
}

/* ============ Header ============ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 14px clamp(16px, 4vw, 40px);
    background: var(--surface);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--text);
    white-space: nowrap;
}

.brand svg {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(43, 30, 58, 0.28);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover svg {
    transform: rotate(-6deg) scale(1.06);
    box-shadow: 0 10px 26px rgba(232, 192, 125, 0.4);
}

header nav {
    flex: 1 1 auto;
    min-width: 0;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav li {
    margin: 0;
}

header nav a {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    position: relative;
    transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: translateX(-50%);
    transition: width 0.3s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
    color: var(--text);
    background: rgba(107, 76, 154, 0.1);
    transform: translateY(-1px);
}

header nav a:hover::after {
    width: 60%;
}

/* ============ Main ============ */
main {
    display: block;
    width: 100%;
}

section {
    width: min(var(--maxw), calc(100% - 2 * clamp(16px, 4vw, 40px)));
    margin: 0 auto;
    padding: clamp(36px, 6vw, 64px) 0;
    position: relative;
    animation: fadeUp 0.7s var(--ease) both;
}

section + section {
    border-top: 1px solid var(--line);
}

section > *:last-child {
    margin-bottom: 0;
}

/* ============ Hero ============ */
#hero {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(48px, 9vw, 100px) clamp(16px, 4vw, 40px) clamp(56px, 9vw, 110px);
    text-align: center;
    color: #fdf8ef;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(135deg, #2b1e3a 0%, #4a2e6e 38%, #6b4c9a 68%, #a87fb8 100%);
    background-size: 200% 200%;
    animation: heroShift 18s ease infinite, fadeUp 0.8s var(--ease) both;
}

#hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 22%, rgba(232, 192, 125, 0.35), transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(232, 192, 125, 0.22), transparent 46%),
        radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.08), transparent 30%);
    animation: drift 22s ease-in-out infinite alternate;
}

#hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(2px 2px at 12% 30%, rgba(255, 255, 255, 0.9), transparent 60%),
        radial-gradient(1.5px 1.5px at 28% 72%, rgba(232, 192, 125, 0.9), transparent 60%),
        radial-gradient(2px 2px at 46% 18%, rgba(255, 255, 255, 0.75), transparent 60%),
        radial-gradient(1.5px 1.5px at 64% 58%, rgba(232, 192, 125, 0.85), transparent 60%),
        radial-gradient(2px 2px at 78% 34%, rgba(255, 255, 255, 0.8), transparent 60%),
        radial-gradient(1.5px 1.5px at 90% 76%, rgba(255, 255, 255, 0.65), transparent 60%),
        radial-gradient(1.5px 1.5px at 8% 84%, rgba(232, 192, 125, 0.7), transparent 60%);
    opacity: 0.85;
    animation: twinkle 6s ease-in-out infinite alternate;
}

#hero > * {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

#hero h1 {
    color: #fffaf0;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.5em;
}

#hero p {
    color: rgba(253, 248, 239, 0.88);
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.9;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 2.2em;
}

.btn,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 13px 32px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
    will-change: transform;
}

.btn {
    color: #2b1e3a;
    background: linear-gradient(135deg, #f7e3b8, #e8c07d 55%, #d9a95c);
    box-shadow: 0 10px 28px rgba(232, 192, 125, 0.45);
}

.btn:hover,
.btn:focus-visible {
    color: #2b1e3a;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(232, 192, 125, 0.6);
}

.btn-outline {
    color: #fffaf0;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 250, 240, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    color: #2b1e3a;
    background: rgba(255, 250, 240, 0.95);
    border-color: transparent;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* ============ Cards ============ */
#brand,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#privacy,
#disclaimer,
#links {
    position: relative;
}

#brand,
#products,
#solutions,
#cases,
#contact {
    background: var(--surface);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
    backdrop-filter: blur(var(--blur)) saturate(150%);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
    margin-top: clamp(24px, 4vw, 40px);
    margin-bottom: clamp(24px, 4vw, 40px);
    transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

#brand:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#contact:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--line-strong);
}

/* Articles as cards */
#articles > article,
#news > article {
    background: var(--surface);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
    backdrop-filter: blur(var(--blur)) saturate(150%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3.5vw, 32px);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

#articles > article::before,
#news > article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease);
}

#articles > article:hover,
#news > article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

#articles > article:hover::before,
#news > article:hover::before {
    transform: scaleY(1);
}

#articles > article h3,
#news > article h3 {
    margin-top: 0;
    transition: color 0.3s var(--ease);
}

#articles > article:hover h3,
#news > article:hover h3 {
    color: var(--primary);
}

#articles > article a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(107, 76, 154, 0.1);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

#articles > article a::after {
    content: "→";
    transition: transform 0.3s var(--ease);
}

#articles > article a:hover {
    background: var(--primary);
    color: #fffaf0;
    transform: translateX(2px);
}

#articles > article a:hover::after {
    transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq details {
    background: var(--surface);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
    backdrop-filter: blur(var(--blur)) saturate(150%);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    padding: 0 clamp(16px, 3vw, 24px);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
    overflow: hidden;
}

#faq details:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

#faq details[open] {
    border-color: var(--primary);
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
}

#faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 40px 18px 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    position: relative;
    transition: color 0.3s var(--ease);
    user-select: none;
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(107, 76, 154, 0.12);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary {
    color: var(--primary);
}

#faq details[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
    background: var(--primary);
    color: #fffaf0;
}

#faq details > p {
    padding: 0 0 20px;
    margin: 0;
    animation: fadeIn 0.4s var(--ease) both;
    color: var(--text-soft);
    border-top: 1px dashed var(--line);
    padding-top: 16px;
}

/* ============ HowTo ============ */
#howto h3 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

#howto h3::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(232, 192, 125, 0.25);
    flex: 0 0 auto;
}

#howto ol {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

#howto ol li {
    counter-increment: step;
    position: relative;
    padding: 14px 18px 14px 60px;
    margin-bottom: 12px;
    background: var(--surface);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fffaf0;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(107, 76, 154, 0.3);
}

#howto ol li:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

#howto ul li {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(107, 76, 154, 0.06);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

#howto ul li:hover {
    background: rgba(107, 76, 154, 0.12);
    transform: translateX(3px);
}

/* ============ Contact ============ */
#contact p {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px dashed var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}

#contact p:hover {
    padding-left: 8px;
    background: linear-gradient(90deg, rgba(232, 192, 125, 0.1), transparent);
}

#contact p:last-of-type {
    border-bottom: none;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

#sitemap li,
#links li {
    margin: 0;
}

#sitemap a,
#links a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    background: var(--surface);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
    color: #fffaf0;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(107, 76, 154, 0.35);
}

/* ============ Footer ============ */
footer {
    margin-top: clamp(40px, 6vw, 72px);
    padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(28px, 4vw, 40px);
    text-align: center;
    color: rgba(253, 248, 239, 0.82);
    background:
        linear-gradient(160deg, #2b1e3a 0%, #3a2850 55%, #4a2e6e 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(232, 192, 125, 0.25);
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 30%, rgba(232, 192, 125, 0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1.5px 1.5px at 55% 25%, rgba(232, 192, 125, 0.6), transparent 60%),
        radial-gradient(1.5px 1.5px at 75% 65%, rgba(255, 255, 255, 0.45), transparent 60%),
        radial-gradient(1.5px 1.5px at 92% 40%, rgba(232, 192, 125, 0.55), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

footer p {
    position: relative;
    margin: 0 0 10px;
    color: rgba(253, 248, 239, 0.78);
    font-size: 0.88rem;
    line-height: 1.8;
}

footer p:last-child {
    margin-bottom: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(253, 248, 239, 0.15);
}

footer a {
    color: var(--accent);
    font-weight: 500;
}

footer a:hover {
    color: #fffaf0;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ============ Animations ============ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes drift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 1%, 0) scale(1.06);
    }
}

@keyframes twinkle {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

/* Staggered entrance for cards */
#articles > article:nth-child(2) { animation-delay: 0.05s; }
#articles > article:nth-child(3) { animation-delay: 0.1s; }
#articles > article:nth-child(4) { animation-delay: 0.15s; }
#articles > article:nth-child(5) { animation-delay: 0.2s; }
#articles > article:nth-child(6) { animation-delay: 0.25s; }
#articles > article:nth-child(7) { animation-delay: 0.3s; }
#articles > article:nth-child(8) { animation-delay: 0.35s; }
#articles > article:nth-child(9) { animation-delay: 0.4s; }
#articles > article:nth-child(10) { animation-delay: 0.45s; }
#articles > article:nth-child(11) { animation-delay: 0.5s; }

#faq details:nth-child(2) { animation-delay: 0.03s; }
#faq details:nth-child(3) { animation-delay: 0.06s; }
#faq details:nth-child(4) { animation-delay: 0.09s; }
#faq details:nth-child(5) { animation-delay: 0.12s; }
#faq details:nth-child(6) { animation-delay: 0.15s; }
#faq details:nth-child(7) { animation-delay: 0.18s; }
#faq details:nth-child(8) { animation-delay: 0.21s; }
#faq details:nth-child(9) { animation-delay: 0.24s; }
#faq details:nth-child(10) { animation-delay: 0.27s; }
#faq details:nth-child(11) { animation-delay: 0.3s; }
#faq details:nth-child(12) { animation-delay: 0.33s; }
#faq details:nth-child(13) { animation-delay: 0.36s; }
#faq details:nth-child(14) { animation-delay: 0.39s; }
#faq details:nth-child(15) { animation-delay: 0.42s; }
#faq details:nth-child(16) { animation-delay: 0.45s; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 16px;
    }

    .brand {
        justify-content: center;
        font-size: 1.05rem;
    }

    header nav ul {
        justify-content: center;
        gap: 4px;
    }

    header nav a {
        padding: 6px 11px;
        font-size: 0.84rem;
    }

    #hero {
        padding-top: clamp(40px, 8vw, 64px);
        padding-bottom: clamp(48px, 9vw, 80px);
    }

    .hero-actions {
        gap: 12px;
    }

    .btn,
    .btn-outline {
        min-width: 132px;
        padding: 12px 26px;
        font-size: 0.92rem;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
        line-height: 1.75;
    }

    h2 {
        padding-left: 0.7em;
    }

    h2::before {
        width: 4px;
    }

    section {
        width: calc(100% - 24px);
        padding: clamp(28px, 7vw, 44px) 0;
    }

    #brand,
    #products,
    #solutions,
    #cases,
    #contact {
        border-radius: var(--radius-lg);
        padding: 24px 18px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #articles > article,
    #news > article {
        padding: 18px 16px;
        border-radius: var(--radius-md);
        margin-bottom: 14px;
    }

    #faq details {
        padding: 0 14px;
        border-radius: var(--radius-sm);
    }

    #faq summary {
        font-size: 0.94rem;
        padding: 15px 36px 15px 0;
    }

    #howto ol li {
        padding: 12px 14px 12px 52px;
    }

    #howto ol li::before {
        left: 12px;
        width: 26px;
        height: 26px;
        font-size: 0.82rem;
    }

    #sitemap a,
    #links a {
        padding: 7px 14px;
        font-size: 0.84rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn,
    .btn-outline {
        width: 100%;
    }

    footer {
        padding: 28px 16px 24px;
    }

    footer p {
        font-size: 0.82rem;
    }
}

@media (max-width: 380px) {
    header nav a {
        padding: 5px 9px;
        font-size: 0.8rem;
    }

    .brand {
        font-size: 1rem;
    }

    .brand svg {
        width: 34px;
        height: 34px;
    }
}

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

    #hero::before,
    #hero::after {
        animation: none !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --line: rgba(43, 30, 58, 0.35);
        --line-strong: rgba(43, 30, 58, 0.55);
        --text-soft: #3a2f4a;
    }
}

/* Print */
@media print {
    header,
    .hero-actions,
    footer,
    #sitemap,
    #links {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    section {
        width: 100%;
        padding: 12px 0;
        border: none;
        box-shadow: none;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}