/* ============================================================
   Digital China AI — Main Stylesheet
   Theme: 科技 · 数字化 · AI · 大数据
   ============================================================ */

/* -------- Tokens -------- */
:root {
    --bg-0: #05081a;
    --bg-1: #0a0e27;
    --bg-2: #0f1540;
    --bg-3: #141b52;
    --surface: rgba(20, 28, 70, 0.55);
    --surface-line: rgba(0, 212, 255, 0.18);
    --text: #e6ecff;
    --text-dim: #9aa7d6;
    --text-mute: #6b78a8;
    --brand: #e30011;
    --brand-2: #ff2b3b;
    --cyan: #00d4ff;
    --cyan-2: #00a8ff;
    --blue: #0066ff;
    --violet: #7c4dff;
    --grad-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --grad-accent: linear-gradient(135deg, #ff2b3b 0%, #e30011 100%);
    --grad-text: linear-gradient(90deg, #00d4ff 0%, #7c4dff 60%, #ff2b3b 100%);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 10px 40px rgba(0, 102, 255, 0.15), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --container: 1280px;
}

/* -------- Reset / Base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Inter", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--cyan); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: .3px; }
p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* -------- Global tech grid background -------- */
.site-grid-bg {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(0, 102, 255, .35), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(124, 77, 255, .25), transparent 60%),
        radial-gradient(1000px 700px at 50% 120%, rgba(227, 0, 17, .18), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
}
.site-grid-bg::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* -------- Buttons -------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 999px;
    font-weight: 600; letter-spacing: .5px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 102, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 40px rgba(0, 212, 255, .45); }
.btn-ghost {
    border: 1px solid rgba(0, 212, 255, .35);
    color: var(--cyan);
    background: rgba(0, 212, 255, .05);
}
.btn-ghost:hover { background: rgba(0, 212, 255, .12); color: #fff; }

/* -------- Header -------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: rgba(5, 8, 26, .65);
    border-bottom: 1px solid rgba(0, 212, 255, .12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 36px; width: auto; }
.brand-text { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.site-nav .nav-menu { display: flex; gap: 32px; }
.site-nav a { font-size: 15px; color: var(--text-dim); position: relative; padding: 8px 0; }
.site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--grad-primary); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cyan); border-radius: 2px; }

/* -------- Hero Carousel -------- */
.hero-carousel {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    isolation: isolate;
}
.hero-fx {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 2;
    mix-blend-mode: screen;
    opacity: .85;
}
.tech-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; pointer-events: none;
}
.hero-track {
    position: relative;
    width: 100%;
    min-height: 760px;
}
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.04);
    transition: opacity 1s var(--ease), transform 6s var(--ease);
    pointer-events: none;
    margin: 0;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 20% 40%, rgba(0, 102, 255, .45), transparent 60%),
        linear-gradient(180deg, rgba(5, 8, 26, .55) 0%, rgba(5, 8, 26, .85) 60%, var(--bg-0) 100%);
}
.hero-particles {
    position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image:
        radial-gradient(2px 2px at 10% 20%, #00d4ff 0, transparent 2px),
        radial-gradient(2px 2px at 80% 30%, #7c4dff 0, transparent 2px),
        radial-gradient(1.5px 1.5px at 40% 80%, #00d4ff 0, transparent 2px),
        radial-gradient(1.5px 1.5px at 65% 65%, #ffffff 0, transparent 2px),
        radial-gradient(2px 2px at 25% 70%, #0066ff 0, transparent 2px);
    animation: twinkle 6s linear infinite;
}
@keyframes twinkle { 0%,100% { opacity: .35; } 50% { opacity: .8; } }

.hero-inner { position: relative; z-index: 3; padding: 120px 32px 180px; max-width: var(--container); width: 100%; margin: 0 auto; }
.hero-inner.align-center { text-align: center; }

/* Slide text reveal on active */
.hero-slide .hero-eyebrow,
.hero-slide .hero-title,
.hero-slide .hero-desc,
.hero-slide .hero-actions {
    opacity: 0; transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-slide.is-active .hero-eyebrow { opacity: 1; transform: none; transition-delay: .15s; }
.hero-slide.is-active .hero-title   { opacity: 1; transform: none; transition-delay: .30s; }
.hero-slide.is-active .hero-desc    { opacity: 1; transform: none; transition-delay: .45s; }
.hero-slide.is-active .hero-actions { opacity: 1; transform: none; transition-delay: .60s; }

/* Arrows */
.hero-arrow {
    position: absolute; top: 46%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(5, 8, 26, .45);
    border: 1px solid rgba(0, 212, 255, .3);
    color: var(--cyan);
    backdrop-filter: blur(10px);
    transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
    z-index: 3;
}
.hero-arrow:hover { background: rgba(0, 212, 255, .18); border-color: var(--cyan); color: #fff; transform: translateY(-50%) scale(1.06); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-prev { left: 28px; }
.hero-next { right: 28px; }

/* Pagination (thumbnails/dots) */
.hero-pagination {
    position: absolute; left: 0; right: 0; bottom: 110px;
    display: flex; justify-content: center; gap: 14px;
    padding: 0 32px;
    z-index: 3;
}
.hero-dot {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px;
    min-width: 90px; padding: 6px 0;
    color: var(--text-mute); font-family: inherit;
    transition: color .25s var(--ease);
}
.hero-dot:hover { color: var(--text-dim); }
.hero-dot.is-active { color: #fff; }
.hero-dot .dot-num { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.hero-dot .dot-bar {
    display: block; width: 100%; height: 2px;
    background: rgba(255, 255, 255, .15);
    position: relative; overflow: hidden; border-radius: 2px;
}
.hero-dot .dot-fill {
    position: absolute; inset: 0; width: 0;
    background: var(--grad-primary);
    transform-origin: left;
}
.hero-dot.is-active .dot-fill {
    width: 100%;
    animation: dot-progress var(--dot-duration, 6s) linear forwards;
}
@keyframes dot-progress { from { width: 0; } to { width: 100%; } }

/* Stats bar docked to bottom of hero */
.hero-stats-bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px 32px;
    z-index: 3;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 26, .55));
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0, 212, 255, .12);
}
.hero-stats-bar .hero-stats { margin: 0; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border: 1px solid rgba(0, 212, 255, .3);
    border-radius: 999px; background: rgba(0, 212, 255, .06);
    color: var(--cyan); font-size: 12px; letter-spacing: 3px; margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.15; margin-bottom: 24px; }
.hero-title .accent { color: var(--cyan); }
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero-desc { max-width: 680px; font-size: 18px; color: var(--text-dim); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    max-width: var(--container); margin: 0 auto;
}
.hero-stats li {
    display: flex; align-items: baseline; gap: 12px;
    padding: 6px 0;
    border-left: 1px solid rgba(0, 212, 255, .2);
    padding-left: 18px;
}
.hero-stats li:first-child { border-left: 0; padding-left: 0; }
.hero-stats strong { font-size: 30px; font-weight: 700; color: #fff; line-height: 1; }
.hero-stats sup { color: var(--cyan); font-size: 16px; margin-left: 2px; }
.hero-stats span { font-size: 13px; color: var(--text-mute); }

/* -------- Generic Section -------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-eyebrow { font-size: 12px; letter-spacing: 4px; color: var(--cyan); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 3.4vw, 44px); color: #fff; }

/* -------- Capabilities -------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cap-card {
    padding: 36px 28px; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(20, 28, 70, .6), rgba(10, 14, 39, .4));
    border: 1px solid var(--surface-line);
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
    position: relative; overflow: hidden;
}
.cap-card::before {
    content: ""; position: absolute; inset: -1px;
    background: linear-gradient(135deg, rgba(0, 212, 255, .0), rgba(0, 212, 255, .4), rgba(124, 77, 255, .0));
    opacity: 0; transition: opacity .35s var(--ease);
    border-radius: inherit; z-index: -1; filter: blur(12px);
}
.cap-card:hover { transform: translateY(-6px); border-color: rgba(0, 212, 255, .45); box-shadow: var(--shadow-card); }
.cap-card:hover::before { opacity: 1; }
.cap-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: grid; place-items: center; margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(0, 102, 255, .25), rgba(0, 212, 255, .15));
    color: var(--cyan); box-shadow: 0 6px 24px rgba(0, 102, 255, .3);
}
.cap-icon svg { width: 28px; height: 28px; }
.cap-card h3 { font-size: 20px; margin-bottom: 10px; color: #fff; }
.cap-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.cap-link { font-size: 13px; color: var(--cyan); }

/* -------- Products -------- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
    display: grid; grid-template-columns: 220px 1fr; gap: 0;
    background: var(--surface); border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.product-media { position: relative; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.08); }
.product-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5, 8, 26, 0) 60%, rgba(5, 8, 26, .65) 100%);
}
.product-body { padding: 28px 28px; display: flex; flex-direction: column; justify-content: center; }
.product-body h3 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.product-body p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.more-link { color: var(--cyan); font-size: 14px; font-weight: 600; }

/* -------- Industry Solutions (rich cards) -------- */
.section-industries {
    background:
        radial-gradient(900px 500px at 80% 0%, rgba(124, 77, 255, .18), transparent 60%),
        radial-gradient(900px 500px at 10% 100%, rgba(0, 102, 255, .15), transparent 60%);
}
.section-industries .section-head .section-sub {
    color: var(--text-dim); max-width: 760px; margin: 18px auto 0; font-size: 15px;
}
.industry-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.industry-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 28, 70, .55), rgba(10, 14, 39, .45));
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.industry-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(0, 212, 255, .0) 30%, rgba(0, 212, 255, .55), rgba(124, 77, 255, .0) 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .4s var(--ease);
}
.industry-card:hover { transform: translateY(-6px); border-color: rgba(0, 212, 255, .35); box-shadow: 0 24px 60px rgba(0, 20, 80, .45); }
.industry-card:hover::before { opacity: 1; }

.industry-link { display: block; color: inherit; }
.industry-link:hover { color: inherit; }

.industry-pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.industry-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.industry-card:hover .industry-pic img { transform: scale(1.08); }
.industry-pic-mask {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 26, .0) 40%, rgba(5, 8, 26, .65) 85%, rgba(10, 14, 39, .95)),
        linear-gradient(135deg, rgba(0, 102, 255, .12), transparent 60%);
}
.industry-icon {
    position: absolute; left: 24px; bottom: -26px;
    width: 58px; height: 58px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    box-shadow: 0 10px 26px rgba(0, 102, 255, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    z-index: 2;
}
.industry-icon img { width: 30px; height: 30px; object-fit: contain; filter: brightness(1.4) drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

.industry-body { padding: 44px 26px 28px; }
.industry-title {
    font-size: 26px; color: #fff; margin-bottom: 8px; letter-spacing: 1px;
    display: inline-flex; align-items: center; gap: 10px;
}
.industry-title::after {
    content: ""; width: 32px; height: 2px; border-radius: 2px;
    background: var(--grad-primary);
    display: inline-block;
}
.industry-tagline { color: var(--cyan); font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.industry-describe { color: var(--text-dim); font-size: 14px; line-height: 1.8; margin-bottom: 18px; min-height: 4.5em; }

.scenario-chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.scenario-chips li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; font-size: 12px; color: var(--text-dim);
    background: rgba(0, 212, 255, .06);
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 999px;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.scenario-chips li:hover {
    color: #fff; background: rgba(0, 212, 255, .18); border-color: rgba(0, 212, 255, .5);
}
.chip-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
}

.industry-more {
    display: inline-block; font-size: 13px; color: var(--cyan); font-weight: 600;
    padding-top: 6px; border-top: 1px dashed rgba(0, 212, 255, .2);
    width: 100%;
}
.industry-card:hover .industry-more { color: #fff; }

/* -------- About / Mission / Counters / Timeline -------- */
.section-about {
    position: relative;
    background:
        radial-gradient(900px 500px at 15% 20%, rgba(0, 102, 255, .18), transparent 60%),
        radial-gradient(900px 500px at 85% 80%, rgba(227, 0, 17, .14), transparent 60%);
}
.section-about .section-sub {
    color: var(--text-dim); max-width: 760px; margin: 18px auto 0; font-size: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 96px;
}
.about-mission {
    padding: 42px 36px;
    background:
        linear-gradient(140deg, rgba(0, 102, 255, .18), rgba(124, 77, 255, .1)),
        rgba(20, 28, 70, .55);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
}
.about-mission::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(400px 240px at 80% 120%, rgba(0, 212, 255, .25), transparent 60%);
    pointer-events: none;
}
.about-mission h3 { color: #fff; font-size: 22px; margin-bottom: 18px; }
.mission-text { font-size: 28px; color: #fff; line-height: 1.3; letter-spacing: 1px; margin-bottom: 24px; font-weight: 600; }
.mission-text span { display: block; font-size: 14px; font-weight: 400; color: var(--text-dim); margin-top: 10px; }
.mission-points { display: flex; flex-direction: column; gap: 12px; }
.mission-points li {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 14px; color: var(--text-dim); line-height: 1.7;
}
.mission-points strong { color: #fff; margin-right: 4px; font-weight: 600; }
.mission-points .point-ico { color: var(--cyan); font-size: 10px; line-height: 1.8; flex-shrink: 0; }

.about-counters {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.counter-card {
    padding: 28px 24px;
    background: linear-gradient(180deg, rgba(20, 28, 70, .55), rgba(10, 14, 39, .3));
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-md);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
    position: relative; overflow: hidden;
}
.counter-card::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform .6s var(--ease);
}
.counter-card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, .35); box-shadow: var(--shadow-card); }
.counter-card:hover::after { transform: scaleX(1); }
.counter-value {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.counter-num {
    font-size: 44px; font-weight: 700; line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    letter-spacing: -1px;
}
.counter-suffix { font-size: 18px; color: var(--cyan); font-weight: 600; }
.counter-label { color: var(--text-dim); font-size: 13px; line-height: 1.6; }

/* Timeline */
.about-timeline-head { text-align: center; margin-bottom: 48px; }
.about-timeline-head .section-eyebrow { margin-bottom: 12px; }
.timeline-title { font-size: 28px; color: #fff; }

.timeline {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding: 40px 0;
}
.timeline::before {
    content: ""; position: absolute;
    top: calc(50% - 1px); left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .5) 10%, rgba(0, 212, 255, .5) 90%, transparent);
}
.timeline-item {
    position: relative;
    padding: 0 16px;
    min-height: 200px;
    display: flex; flex-direction: column;
    justify-content: flex-start;
}
.tl-dot {
    position: absolute; top: calc(50% - 8px); left: calc(50% - 8px);
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--grad-primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, .15), 0 0 20px rgba(0, 212, 255, .6);
    z-index: 2;
}
.tl-year {
    position: absolute; top: calc(50% - 46px); left: 50%; transform: translateX(-50%);
    font-size: 22px; font-weight: 700; color: #fff;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    letter-spacing: 1px;
}
.tl-body {
    position: absolute;
    left: 16px; right: 16px;
    padding: 16px 18px;
    background: rgba(20, 28, 70, .55);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
}
.timeline-item:nth-child(odd) .tl-body { top: calc(50% + 34px); }
.timeline-item:nth-child(even) .tl-body { bottom: calc(50% + 34px); }
.tl-body h4 { color: #fff; font-size: 14px; margin-bottom: 6px; }
.tl-body p { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }

.timeline-item:hover .tl-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 212, 255, .25), 0 0 30px rgba(0, 212, 255, .9);
}

/* -------- Partners / Ecosystem Marquee -------- */
.section-partners {
    background:
        radial-gradient(900px 400px at 50% 0%, rgba(0, 102, 255, .18), transparent 60%),
        linear-gradient(180deg, transparent, rgba(10, 14, 39, .6));
    overflow: hidden;
}
.section-partners .section-head { margin-bottom: 48px; }
.section-sub { color: var(--text-dim); max-width: 720px; margin: 18px auto 22px; font-size: 15px; }
.section-partners .section-head .more-link { display: inline-block; font-size: 14px; }

.partners-marquee {
    position: relative;
    max-width: calc(var(--container) + 80px);
    margin: 0 auto;
    padding: 0 32px;
    display: flex; flex-direction: column; gap: 22px;
    /* fade edges */
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-row {
    overflow: hidden;
    position: relative;
}
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-left var(--marquee-duration, 48s) linear infinite;
    will-change: transform;
}
.marquee-row[data-dir="right"] .marquee-track {
    animation-name: marquee-right;
}
.marquee-row:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.logo-box {
    flex: 0 0 auto;
    width: 200px; height: 96px;
    display: grid; place-items: center;
    padding: 14px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(240, 244, 255, .88));
    border: 1px solid rgba(0, 212, 255, .1);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(0, 20, 80, .18), 0 1px 0 rgba(255, 255, 255, .4) inset;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.logo-box img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter .3s var(--ease), transform .3s var(--ease);
}
.logo-box:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, .5);
    box-shadow: 0 14px 30px rgba(0, 102, 255, .25), 0 0 0 1px rgba(0, 212, 255, .3);
}
.logo-box:hover img { filter: grayscale(0); transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* -------- News & Insights Slider -------- */
.section-news {
    background: linear-gradient(180deg, transparent, rgba(10, 14, 39, .4));
    overflow: hidden;
}
.section-head-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    text-align: left; gap: 24px; margin-bottom: 48px;
}
.section-head-row .section-eyebrow { margin-bottom: 10px; }
.section-head-row .more-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--cyan); font-size: 14px; font-weight: 600;
    padding: 8px 0; border-bottom: 1px solid rgba(0, 212, 255, .3);
    transition: color .25s var(--ease), border-color .25s var(--ease);
}
.section-head-row .more-link:hover { color: #fff; border-color: var(--cyan); }

.news-slider-wrap {
    position: relative;
    max-width: calc(var(--container) + 80px);
    margin: 0 auto;
    padding: 0 32px 24px;
}
.news-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 36px;
    scrollbar-width: none;
}
.news-track::-webkit-scrollbar { display: none; }

.news-card {
    flex: 0 0 calc((100% - 24px * 3) / 4);
    scroll-snap-align: start;
    background: linear-gradient(180deg, rgba(20, 28, 70, .55), rgba(10, 14, 39, .45));
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, .4);
    box-shadow: 0 24px 50px rgba(0, 20, 80, .4);
}
.news-link { display: block; color: inherit; }
.news-link:hover { color: inherit; }

.news-pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.news-pic img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease);
}
.news-card:hover .news-pic img { transform: scale(1.08); }
.news-pic-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 26, .55));
    pointer-events: none;
}

.news-body {
    padding: 22px 22px 24px;
    display: flex; flex-direction: column; gap: 16px;
    min-height: 170px;
}
.news-title {
    font-size: 16px;
    color: #e6ecff;
    line-height: 1.55;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s var(--ease);
}
.news-card:hover .news-title { color: #fff; }

.news-meta {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 212, 255, .18);
}
.news-date {
    display: inline-flex; align-items: baseline; gap: 4px;
    font-variant-numeric: tabular-nums; letter-spacing: 0.5px;
}
.news-date .day {
    font-size: 26px; font-weight: 700; color: #fff;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.news-date .month-year { font-size: 13px; color: var(--text-mute); }
.news-arrow {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: rgba(0, 212, 255, .08);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, .2);
    transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.news-card:hover .news-arrow {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    transform: translateX(4px);
}

/* Prev / Next arrows */
.news-arrow-btn {
    position: absolute; top: 30%;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(5, 8, 26, .6);
    border: 1px solid rgba(0, 212, 255, .25);
    color: var(--cyan);
    backdrop-filter: blur(10px);
    transition: background .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
    z-index: 3;
}
.news-arrow-btn:hover { background: rgba(0, 212, 255, .18); border-color: var(--cyan); color: #fff; }
.news-arrow-btn:disabled { opacity: .3; cursor: not-allowed; }
.news-arrow-btn svg { width: 20px; height: 20px; }
.news-prev { left: -4px; }
.news-next { right: -4px; }

/* Pagination dots */
.news-pagination {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 8px;
}
.news-pagination button {
    width: 28px; height: 4px; border-radius: 2px;
    background: rgba(0, 212, 255, .18);
    transition: background .25s var(--ease), width .25s var(--ease);
}
.news-pagination button.is-active {
    background: var(--grad-primary);
    width: 44px;
}
.news-pagination button:hover { background: rgba(0, 212, 255, .4); }

/* -------- CTA -------- */
.section-cta { padding: 80px 0; position: relative; overflow: hidden; }
.cta-fx { position: absolute; inset: 0; pointer-events: none; opacity: .7; z-index: 0; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner {
    text-align: center; padding: 64px 40px;
    background:
        radial-gradient(600px 300px at 20% 40%, rgba(0, 212, 255, .25), transparent 60%),
        radial-gradient(600px 300px at 80% 60%, rgba(227, 0, 17, .2), transparent 60%),
        linear-gradient(135deg, rgba(20, 28, 70, .8), rgba(10, 14, 39, .6));
    border: 1px solid var(--surface-line); border-radius: var(--radius-lg);
}
.cta-inner h2 { font-size: 36px; color: #fff; margin-bottom: 12px; }
.cta-inner p { color: var(--text-dim); margin-bottom: 28px; }

/* -------- Footer -------- */
.site-footer {
    position: relative; margin-top: 40px;
    background-size: cover; background-position: center;
    color: var(--text-dim);
}
.footer-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 26, .85), rgba(5, 8, 26, .95));
}
.footer-inner {
    position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 56px; padding: 80px 32px 48px;
}
.footer-logo { height: 40px; margin-bottom: 20px; }
.footer-slogan { color: #cfd7ff; margin-bottom: 18px; }
.footer-contact { font-size: 14px; line-height: 2; color: var(--text-mute); }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-menu li { margin-bottom: 12px; font-size: 14px; }
.qr-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qr-list figure { margin: 0; text-align: center; }
.qr-list img { width: 100%; border-radius: 8px; background: #fff; padding: 4px; }
.qr-list figcaption { font-size: 12px; color: var(--text-mute); margin-top: 6px; }
.footer-copyright {
    position: relative; border-top: 1px solid rgba(0, 212, 255, .1);
    padding: 18px 0; font-size: 13px; color: var(--text-mute);
}
.footer-copyright .container { display: flex; justify-content: space-between; gap: 16px; }

/* -------- Blog / Page / Single -------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
    background: var(--surface); border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); }
.post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-body { padding: 22px 24px; }
.post-body time { font-size: 13px; color: var(--cyan); }
.post-body h3 { margin: 8px 0 12px; font-size: 18px; color: #fff; }
.post-body p { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.pagination { margin-top: 48px; text-align: center; }
.page-content, .single-content { font-size: 16px; line-height: 1.9; color: #d6deff; }
.page-content h2, .single-content h2 { color: #fff; margin-top: 1.6em; }
.single-thumb { margin: 24px 0; border-radius: var(--radius-lg); overflow: hidden; }

/* -------- Responsive -------- */
@media (max-width: 1100px) {
    .news-card { flex-basis: calc((100% - 24px * 2) / 3); }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-counters { grid-template-columns: repeat(3, 1fr); }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 80px; }
    .timeline::before { display: none; }
    .timeline-item { min-height: auto; padding: 16px 16px 16px 48px; }
    .tl-dot { top: 30px; left: 16px; }
    .tl-year { top: 18px; left: 48px; transform: none; font-size: 18px; }
    .tl-body { position: static; margin-top: 28px; }
    .timeline-item:nth-child(odd) .tl-body,
    .timeline-item:nth-child(even) .tl-body { top: auto; bottom: auto; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 20px; background: rgba(5, 8, 26, .95); border-bottom: 1px solid var(--surface-line); }
    .site-nav.is-open { display: block; }
    .site-nav .nav-menu { flex-direction: column; gap: 14px; }
    .nav-toggle { display: flex; }
    .header-actions .btn { display: none; }
    .hero-carousel, .hero-track { min-height: 560px; }
    .hero-inner { padding: 80px 20px 200px; }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-prev { left: 10px; } .hero-next { right: 10px; }
    .hero-pagination { bottom: 150px; gap: 8px; padding: 0 16px; }
    .hero-dot { min-width: 54px; }
    .hero-dot .dot-num { font-size: 11px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-stats li { border-left: 0; padding-left: 0; }
    .hero-stats strong { font-size: 22px; }
    .hero-stats-bar { padding: 14px 16px; }
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
    .cap-grid, .industry-grid, .products-grid, .post-grid { grid-template-columns: 1fr; }
    .about-counters { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .counter-num { font-size: 32px; }
    .about-mission { padding: 28px 22px; }
    .mission-text { font-size: 22px; }
    .timeline { grid-template-columns: 1fr; row-gap: 32px; }
    .news-card { flex-basis: 78%; }
    .news-arrow-btn { display: none; }
    .section-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .logo-box { width: 150px; height: 76px; padding: 10px 16px; }
    .marquee-track { gap: 14px; }
    .product-card { grid-template-columns: 1fr; }
    .product-media { aspect-ratio: 16/9; }
    .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 60px 20px 32px; }
    .footer-copyright .container { flex-direction: column; text-align: center; }
}

/* -------- Reveal on scroll (via JS .in-view) -------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   Detail / Archive / Single page styles
   ============================================================ */

/* Breadcrumb */
.single-breadcrumb {
    font-size: 13px; color: var(--muted);
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin: 0 0 24px;
}
.single-breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.single-breadcrumb a:hover { color: var(--accent); }
.single-breadcrumb .sep { opacity: .5; }

/* ---------- Single post (news article) ---------- */
.section-single { padding-top: 120px; }
.single-wrap { max-width: 880px; }
.single-head { margin-bottom: 28px; }
.single-meta {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.meta-chip {
    padding: 4px 12px; border-radius: 999px;
    background: rgba(0, 102, 255, .14);
    color: #7fb3ff; border: 1px solid rgba(0, 102, 255, .3);
    font-weight: 600; letter-spacing: .4px;
}
.single-title {
    font-size: 40px; line-height: 1.25; font-weight: 700;
    color: var(--text); margin: 0 0 14px;
}
.single-lead {
    font-size: 17px; line-height: 1.7; color: var(--muted);
    border-left: 3px solid var(--accent); padding-left: 16px;
}
.single-thumb {
    margin: 0 0 32px; border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.single-thumb img { width: 100%; height: auto; display: block; }
.single-content {
    font-size: 16px; line-height: 1.85; color: var(--text-soft);
}
.single-content h2 { font-size: 26px; margin: 36px 0 14px; color: var(--text); }
.single-content h3 { font-size: 20px; margin: 28px 0 10px; color: var(--text); }
.single-content p  { margin: 14px 0; }
.single-content a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.single-content blockquote {
    border-left: 4px solid var(--accent-2);
    padding: 10px 18px; margin: 22px 0; color: var(--muted);
    background: rgba(255, 255, 255, .03); border-radius: 0 10px 10px 0;
}
.single-content pre {
    background: rgba(0, 0, 0, .35); padding: 16px 18px; border-radius: 10px;
    overflow-x: auto; font-size: 14px;
}
.single-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }

.single-foot {
    margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
}
.single-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.tag-label, .share-label { color: var(--muted); }
.tag-chip {
    padding: 4px 12px; border-radius: 999px; font-size: 13px;
    background: rgba(255, 255, 255, .04); color: var(--text-soft);
    border: 1px solid var(--border); text-decoration: none;
    transition: all .2s var(--ease);
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.share-link { color: var(--accent); text-decoration: none; font-size: 14px; cursor: pointer; }

.single-nav {
    margin-top: 28px;
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px;
    padding: 18px; border-radius: 14px;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
}
.single-nav-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.single-nav-next { text-align: right; }
.single-nav-label { font-size: 12px; color: var(--muted); letter-spacing: .8px; }
.single-nav-cell a {
    color: var(--text); text-decoration: none; font-size: 14px;
    line-height: 1.5; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.single-nav-cell a:hover { color: var(--accent); }
.single-nav-back {
    align-self: center; white-space: nowrap;
    padding: 8px 18px; border-radius: 999px;
    background: rgba(0, 102, 255, .12); color: var(--accent);
    text-decoration: none; font-size: 13px; font-weight: 600;
    border: 1px solid rgba(0, 102, 255, .3);
    transition: all .2s var(--ease);
}
.single-nav-back:hover { background: var(--accent); color: #fff; }

.single-related { margin-top: 80px; }
.single-related .section-head { margin-bottom: 28px; }
.related-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* ---------- Detail hero (industry / solution) ---------- */
.section-detail-hero {
    position: relative;
    padding: 180px 0 100px;
    background-size: cover; background-position: center;
    color: var(--text);
}
.section-detail-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
    pointer-events: none;
}
.detail-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.detail-hero-title {
    font-size: 52px; line-height: 1.2; font-weight: 700;
    margin: 8px 0 16px; color: #fff;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.detail-hero-tagline {
    font-size: 20px; line-height: 1.7; color: var(--text-soft);
    margin: 0 0 28px; max-width: 640px;
}
.detail-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Detail overview */
.section-head-center { text-align: center; }
.section-head-center .section-sub { margin: 10px auto 0; max-width: 640px; }
.detail-overview {
    max-width: 820px; margin: 0 auto 48px;
    font-size: 17px; line-height: 1.9; color: var(--text-soft);
}
.detail-overview p { margin: 14px 0; }

.detail-metrics {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: 40px;
}
.metric-card {
    padding: 26px 22px; border-radius: 14px;
    background: linear-gradient(160deg, rgba(0, 102, 255, .10), rgba(227, 0, 17, .06));
    border: 1px solid var(--border);
    text-align: center;
}
.metric-num {
    font-size: 38px; font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}
.metric-suffix { font-size: 22px; margin-left: 2px; }
.metric-label { font-size: 14px; color: var(--muted); }

/* Scenario grid */
.scenario-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.scenario-card {
    position: relative; padding: 28px 26px 26px;
    border-radius: 14px; background: var(--card);
    border: 1px solid var(--border);
    transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.scenario-card::before {
    content: ""; position: absolute; inset: 0;
    border-radius: 14px; padding: 1px;
    background: linear-gradient(135deg, rgba(0, 102, 255, .5), rgba(227, 0, 17, .3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s var(--ease);
    pointer-events: none;
}
.scenario-card:hover { transform: translateY(-4px); }
.scenario-card:hover::before { opacity: 1; }
.scenario-num {
    font-size: 44px; font-weight: 700; color: rgba(0, 102, 255, .25);
    font-family: 'Courier New', monospace; letter-spacing: 1px;
}
.scenario-title { font-size: 18px; margin: 8px 0 10px; color: var(--text); }
.scenario-desc { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }

/* Cases grid */
.cases-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.case-card {
    border-radius: 14px; overflow: hidden;
    background: var(--card); border: 1px solid var(--border);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.case-card__media { aspect-ratio: 16/10; overflow: hidden; }
.case-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease);
}
.case-card:hover .case-card__media img { transform: scale(1.06); }
.case-card__body { padding: 22px 22px 24px; }
.case-card__title { font-size: 18px; margin: 0 0 10px; color: var(--text); }
.case-card__desc { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- News archive ---------- */
.section-archive-hero {
    padding: 150px 0 60px;
    background: radial-gradient(900px 420px at 20% 30%, rgba(0, 102, 255, .20), transparent 60%),
                radial-gradient(800px 380px at 80% 70%, rgba(227, 0, 17, .14), transparent 60%),
                var(--bg);
    border-bottom: 1px solid var(--border);
}
.archive-title {
    font-size: 44px; font-weight: 700; margin: 6px 0 12px;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.archive-sub { color: var(--muted); font-size: 16px; max-width: 620px; margin: 0; }

.archive-filter {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 32px;
}
.filter-chip {
    padding: 8px 18px; border-radius: 999px;
    font-size: 14px; color: var(--text-soft);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .2s var(--ease);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
}

.news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.news-grid .news-card {
    flex-basis: auto; width: 100%; min-width: 0;
}

.archive-pagination {
    margin-top: 48px; display: flex; justify-content: center;
}
.archive-pagination ul.page-numbers {
    display: flex; flex-wrap: wrap; gap: 6px;
    list-style: none; padding: 0; margin: 0;
}
.archive-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: 10px; font-size: 14px;
    color: var(--text-soft); text-decoration: none;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    transition: all .2s var(--ease);
}
.archive-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.archive-pagination .page-numbers.current {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .single-title { font-size: 32px; }
    .detail-hero-title { font-size: 40px; }
    .detail-metrics { grid-template-columns: repeat(2, 1fr); }
    .scenario-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid, .news-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .section-single { padding-top: 100px; }
    .single-title { font-size: 26px; }
    .section-detail-hero { padding: 130px 0 70px; }
    .detail-hero-title { font-size: 30px; }
    .detail-hero-tagline { font-size: 16px; }
    .detail-metrics, .scenario-grid,
    .cases-grid, .news-grid, .related-grid { grid-template-columns: 1fr; }
    .single-nav { grid-template-columns: 1fr; text-align: left; }
    .single-nav-next { text-align: left; }
    .single-nav-back { justify-self: start; }
    .archive-title { font-size: 30px; }
}

/* ============================================================
   Contact page
   ============================================================ */
.section-contact { padding-top: 60px; }
.contact-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
    align-items: start;
}
.contact-form-wrap { min-width: 0; }
.contact-form {
    display: grid; gap: 18px;
    background: var(--card, rgba(255,255,255,.03));
    border: 1px solid var(--border, rgba(255,255,255,.08));
    padding: 32px; border-radius: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; color: var(--muted, #8892a6); }
.form-label em { color: var(--accent-2, #e31e3c); font-style: normal; margin-left: 2px; }
.contact-form input[type=text],
.contact-form input[type=tel],
.contact-form input[type=email],
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 11px 14px; font-size: 14px; color: var(--text, #fff);
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--border, rgba(255,255,255,.12));
    border-radius: 10px; outline: none;
    transition: border-color .2s var(--ease, ease), box-shadow .2s var(--ease, ease);
    font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent, #0066ff);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .18);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted, #8892a6) 50%),
                      linear-gradient(135deg, var(--muted, #8892a6) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px; background-repeat: no-repeat;
    padding-right: 36px;
}
.form-check {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--muted);
}
.form-check input { margin-top: 3px; accent-color: var(--accent, #0066ff); }
.form-check a { color: var(--accent, #7fb3ff); }
.dcai-hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; opacity: 0; }
.contact-form button[type=submit] { justify-self: start; }

.contact-alert {
    padding: 16px 20px; border-radius: 12px;
    display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.contact-alert.is-success { background: rgba(40, 180, 120, .12); border-color: rgba(40, 180, 120, .45); color: #7fe3b5; }
.contact-alert.is-error   { background: rgba(227, 30, 60, .10); border-color: rgba(227, 30, 60, .45); color: #ffb0bc; }
.contact-alert strong { font-weight: 700; }

.contact-aside { display: grid; gap: 20px; }
.contact-card {
    padding: 28px; border-radius: 14px;
    background: linear-gradient(160deg, rgba(0, 102, 255, .12), rgba(227, 0, 17, .06));
    border: 1px solid var(--border, rgba(255,255,255,.08));
}
.contact-card__title { font-size: 18px; margin: 0 0 14px; color: var(--text, #fff); }
.contact-hotline {
    font-size: 30px; font-weight: 700; letter-spacing: .5px;
    background: var(--grad-text, linear-gradient(135deg, #0066ff, #e30011));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-workhr { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.contact-divider { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.contact-methods { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.contact-methods li { display: flex; justify-content: space-between; gap: 10px; }
.contact-methods span { color: var(--muted); }
.contact-methods a { color: var(--text-soft, #c7cfdf); text-decoration: none; }
.contact-methods a:hover { color: var(--accent, #7fb3ff); }

.contact-qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-qr-grid figure { margin: 0; text-align: center; }
.contact-qr-grid img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    background: #fff; border-radius: 10px; padding: 6px;
}
.contact-qr-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

.section-offices { padding: 60px 0 100px; }
.office-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 32px;
}
.office-card {
    padding: 26px 22px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--border);
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.office-card:hover { transform: translateY(-4px); border-color: rgba(0, 102, 255, .45); }
.office-city {
    font-size: 20px; margin: 0 0 10px;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.office-addr { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; min-height: 44px; }
.office-phone { font-size: 15px; color: var(--text); text-decoration: none; font-weight: 600; }
.office-phone:hover { color: var(--accent); }

/* ============================================================
   Case Studies (CPT: dcai_case)
   ============================================================ */
.case-hero-bg {
    padding: 160px 0 90px;
    background-size: cover; background-position: center;
    position: relative;
}
.case-hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,8,22,.55) 0%, rgba(3,8,22,.88) 100%);
}
.case-hero-bg .container { position: relative; z-index: 1; }

.case-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.case-item {
    position: relative;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.case-item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.case-item__media { aspect-ratio: 16/10; overflow: hidden; }
.case-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case-item:hover .case-item__media img { transform: scale(1.06); }
.case-item__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-item__industry {
    align-self: flex-start; font-size: 12px; padding: 4px 10px; border-radius: 999px;
    background: rgba(0, 102, 255, .14); color: #7fb3ff; letter-spacing: .4px;
}
.case-item__title { font-size: 18px; margin: 0; color: var(--text); line-height: 1.4; }
.case-item__excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; flex: 1; }
.case-item__metrics {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px;
    padding-top: 12px; border-top: 1px dashed var(--border);
}
.case-item__metrics .m {
    font-size: 12px; color: var(--muted);
}
.case-item__metrics .m strong {
    display: block; font-size: 18px; color: var(--text);
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.single-case-hero {
    padding: 180px 0 80px;
    background-size: cover; background-position: center;
    position: relative; color: #fff;
}
.single-case-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,8,22,.45) 0%, rgba(3,8,22,.92) 100%);
}
.single-case-hero .container { position: relative; z-index: 1; max-width: 960px; }
.single-case-hero h1 { font-size: 44px; line-height: 1.2; margin: 8px 0 14px; }
.single-case-hero .case-brief { font-size: 17px; color: var(--text-soft); max-width: 720px; line-height: 1.75; }
.single-case-metrics-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: 36px;
}
.single-case-metrics-bar .m {
    padding: 18px 20px; border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
}
.single-case-metrics-bar .m strong {
    display: block; font-size: 28px; font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.single-case-metrics-bar .m span { font-size: 13px; color: var(--muted); }

.case-body-layout {
    display: grid; grid-template-columns: 2.3fr 1fr; gap: 48px; align-items: start;
}
.case-aside { position: sticky; top: 100px; }
.case-info-card {
    padding: 22px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
}
.case-info-card h4 { font-size: 13px; color: var(--muted); letter-spacing: 1px; margin: 0 0 14px; font-weight: 600; }
.case-info-card dl { margin: 0; display: grid; gap: 12px; font-size: 14px; }
.case-info-card dt { color: var(--muted); font-size: 12px; }
.case-info-card dd { margin: 2px 0 0; color: var(--text); }
.case-info-card .tech-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.case-info-card .tech-pills span {
    font-size: 12px; padding: 3px 10px; border-radius: 999px;
    background: rgba(0, 102, 255, .12); color: #7fb3ff;
}

/* ============================================================
   Products (CPT: dcai_product)
   ============================================================ */
.product-archive-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.product-item {
    display: flex; flex-direction: column; gap: 14px;
    padding: 32px 28px; border-radius: 16px;
    background: linear-gradient(170deg, rgba(0, 102, 255, .10), rgba(10, 14, 39, .6));
    border: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: transform .3s var(--ease), border-color .3s var(--ease);
    position: relative; overflow: hidden;
}
.product-item:hover { transform: translateY(-4px); border-color: rgba(0, 102, 255, .5); }
.product-item__icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(0, 102, 255, .2);
    display: grid; place-items: center;
}
.product-item__icon img { width: 32px; height: 32px; object-fit: contain; }
.product-item__name { font-size: 20px; margin: 0; color: var(--text); }
.product-item__tagline { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; flex: 1; }
.product-item__cta { font-size: 14px; color: var(--accent, #7fb3ff); }

.single-product-hero {
    padding: 160px 0 70px;
    background:
        radial-gradient(800px 420px at 20% 30%, rgba(0, 102, 255, .22), transparent 60%),
        radial-gradient(700px 380px at 80% 70%, rgba(227, 0, 17, .12), transparent 60%);
}
.single-product-hero h1 {
    font-size: 46px; line-height: 1.2; margin: 10px 0 14px;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.single-product-hero .tagline { font-size: 19px; color: var(--text-soft); max-width: 740px; line-height: 1.7; }
.product-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
    padding: 26px 24px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--border);
}
.feature-card__title {
    font-size: 17px; color: var(--text); margin: 0 0 10px;
    display: flex; align-items: center; gap: 10px;
}
.feature-card__title::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent, #0066ff);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, .18);
}
.feature-card__desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ============================================================
   About page (dedicated)
   ============================================================ */
.about-hero {
    padding: 180px 0 80px;
    background:
        radial-gradient(900px 450px at 15% 25%, rgba(0, 102, 255, .22), transparent 60%),
        radial-gradient(700px 380px at 85% 75%, rgba(227, 0, 17, .15), transparent 60%);
}
.about-hero h1 {
    font-size: 52px; line-height: 1.2;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 820px;
}
.about-hero .lead { font-size: 18px; color: var(--text-soft); max-width: 780px; line-height: 1.8; margin-top: 18px; }

.values-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.value-card {
    padding: 32px 28px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--border);
    transition: transform .3s var(--ease);
}
.value-card:hover { transform: translateY(-4px); }
.value-card__num {
    font-family: 'Courier New', monospace; font-size: 32px; font-weight: 700;
    color: rgba(0, 102, 255, .4); letter-spacing: 1px;
}
.value-card__title { font-size: 20px; margin: 6px 0 10px; color: var(--text); }
.value-card__desc { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; }

.leadership-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.leader-card {
    text-align: center;
    padding: 28px 20px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--border);
}
.leader-avatar {
    width: 96px; height: 96px; border-radius: 50%;
    margin: 0 auto 14px; overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 102, 255, .4), rgba(227, 0, 17, .3));
    display: grid; place-items: center;
    font-size: 36px; font-weight: 700; color: #fff;
    border: 2px solid var(--border);
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-name { font-size: 17px; margin: 0 0 4px; color: var(--text); }
.leader-title { font-size: 13px; color: var(--muted); margin: 0; }

.awards-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.award-item {
    padding: 18px; border-radius: 12px;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
    text-align: center; font-size: 13px; color: var(--text-soft);
    display: flex; flex-direction: column; justify-content: center;
    min-height: 110px;
}
.award-item strong {
    display: block; font-size: 15px; color: var(--text); margin-bottom: 6px;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   Legal / Search / 404
   ============================================================ */
.legal-content {
    max-width: 820px; margin: 0 auto;
    padding: 60px 0; color: var(--text-soft); line-height: 1.9; font-size: 15px;
}
.legal-content h2 { font-size: 22px; color: var(--text); margin: 34px 0 12px; }
.legal-content h3 { font-size: 18px; color: var(--text); margin: 26px 0 10px; }
.legal-content p  { margin: 12px 0; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 12px 0; }
.legal-content li { margin: 6px 0; }
.legal-meta { font-size: 13px; color: var(--muted); margin: 0 0 28px; }

.section-404 {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 20px;
    background:
        radial-gradient(700px 380px at 30% 30%, rgba(0, 102, 255, .18), transparent 60%),
        radial-gradient(700px 380px at 70% 70%, rgba(227, 0, 17, .14), transparent 60%);
}
.err-card { text-align: center; max-width: 640px; }
.err-code {
    font-size: 140px; font-weight: 800; line-height: 1; letter-spacing: -2px;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.err-title { font-size: 28px; margin: 10px 0 14px; color: var(--text); }
.err-sub { color: var(--muted); line-height: 1.75; margin: 0 0 28px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err-suggestions {
    margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
    font-size: 14px; color: var(--muted);
}
.err-suggestions a {
    display: inline-block; margin: 0 6px; color: var(--accent, #7fb3ff); text-decoration: none;
}
.err-suggestions a:hover { text-decoration: underline; }

.search-form-wrap {
    max-width: 640px; margin: 0 0 36px;
    display: flex; gap: 8px;
}
.search-form-wrap input[type=search] {
    flex: 1; padding: 12px 16px; font-size: 15px;
    background: rgba(0, 0, 0, .25); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px;
    font-family: inherit; outline: none;
}
.search-form-wrap input[type=search]:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 102, 255, .18);
}
.search-form-wrap button { white-space: nowrap; }
.search-summary { color: var(--muted); margin: 0 0 24px; }
.search-summary strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .contact-grid { grid-template-columns: 1fr; }
    .office-grid  { grid-template-columns: repeat(2, 1fr); }
    .case-grid, .product-archive-grid,
    .values-grid, .product-features { grid-template-columns: repeat(2, 1fr); }
    .single-case-metrics-bar { grid-template-columns: repeat(2, 1fr); }
    .case-body-layout { grid-template-columns: 1fr; }
    .case-aside { position: static; }
    .leadership-grid { grid-template-columns: repeat(3, 1fr); }
    .awards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .office-grid { grid-template-columns: 1fr; }
    .case-grid, .product-archive-grid,
    .values-grid, .product-features { grid-template-columns: 1fr; }
    .single-case-metrics-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .single-case-metrics-bar .m strong { font-size: 22px; }
    .single-case-hero h1, .single-product-hero h1, .about-hero h1 { font-size: 30px; }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .err-code { font-size: 88px; }
    .err-title { font-size: 22px; }
}

/* ============================================================
   404 page (extended)
   ============================================================ */
.err-hero {
    padding: 160px 0 80px;
    background:
        radial-gradient(900px 450px at 15% 25%, rgba(0, 102, 255, .22), transparent 60%),
        radial-gradient(700px 380px at 85% 75%, rgba(227, 0, 17, .15), transparent 60%);
}
.err-wrap { max-width: 780px; margin: 0 auto; text-align: center; }
.err-search {
    max-width: 560px; margin: 28px auto 20px;
    display: flex; gap: 8px;
}
.err-search input[type=search] {
    flex: 1; padding: 12px 16px; font-size: 15px;
    background: rgba(0, 0, 0, .25); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px;
    font-family: inherit; outline: none;
}
.err-search input[type=search]:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 102, 255, .18);
}
.err-links { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.err-links-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    max-width: 620px; margin: 0 auto;
}
.err-links-grid a {
    padding: 14px 8px; border-radius: 10px;
    background: var(--card); border: 1px solid var(--border);
    color: var(--text-soft); font-size: 14px;
    text-decoration: none; transition: all .25s var(--ease);
}
.err-links-grid a:hover {
    border-color: rgba(0, 102, 255, .5);
    color: var(--accent, #7fb3ff);
    transform: translateY(-2px);
}

/* ============================================================
   Search results
   ============================================================ */
.search-results-list {
    display: flex; flex-direction: column; gap: 18px;
}
.search-result {
    display: grid; grid-template-columns: 220px 1fr; gap: 22px;
    padding: 22px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--border);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.search-result:hover { border-color: rgba(0, 102, 255, .45); transform: translateY(-2px); }
.sr-media { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; }
.sr-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sr-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.sr-type {
    background: rgba(0, 102, 255, .14); color: #7fb3ff;
    padding: 3px 10px; border-radius: 999px; font-size: 12px;
}
.sr-title { margin: 2px 0 0; font-size: 19px; }
.sr-title a { color: var(--text); text-decoration: none; }
.sr-title a:hover { color: var(--accent, #7fb3ff); }
.sr-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.sr-cta { font-size: 14px; color: var(--accent, #7fb3ff); text-decoration: none; margin-top: 4px; align-self: flex-start; }
.search-empty { max-width: 620px; margin: 0 auto; text-align: center; padding: 40px 0; }
.search-empty ul { text-align: left; max-width: 420px; margin: 18px auto 0; }

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal-hero {
    padding: 150px 0 50px;
    background:
        radial-gradient(700px 360px at 20% 30%, rgba(0, 102, 255, .18), transparent 60%);
}
.legal-hero h1 {
    font-size: 40px; line-height: 1.25; margin: 8px 0 10px;
    color: var(--text);
}
.legal-hero .updated { color: var(--muted); font-size: 14px; }
.legal-layout {
    display: grid; grid-template-columns: 260px 1fr; gap: 48px;
    align-items: flex-start;
}
.legal-toc {
    position: sticky; top: 100px;
    padding: 22px 20px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
}
.legal-toc h4 { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.legal-toc ol { margin: 0; padding-left: 20px; list-style: decimal; }
.legal-toc li { margin: 6px 0; }
.legal-toc a { color: var(--text-soft); text-decoration: none; font-size: 14px; }
.legal-toc a:hover { color: var(--accent, #7fb3ff); }
.legal-content {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 40px 44px;
    color: var(--text-soft); line-height: 1.85;
}
.legal-content h2 {
    font-size: 22px; color: var(--text); margin: 36px 0 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 17px; color: var(--text); margin: 22px 0 10px; }
.legal-content p, .legal-content li { font-size: 15px; }
.legal-content ul, .legal-content ol { padding-left: 24px; }
.legal-content li { margin: 6px 0; }
.legal-content a { color: var(--accent, #7fb3ff); }

@media (max-width: 1100px) {
    .search-result { grid-template-columns: 180px 1fr; gap: 16px; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
}
@media (max-width: 768px) {
    .err-links-grid { grid-template-columns: repeat(2, 1fr); }
    .err-search { flex-direction: column; }
    .search-result { grid-template-columns: 1fr; }
    .sr-media { aspect-ratio: 16 / 8; }
    .legal-content { padding: 24px 20px; }
    .legal-hero h1 { font-size: 28px; }
}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.dcai-cookie {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 120;
    padding: 16px 0;
    background: rgba(5, 8, 26, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--surface-line);
    transform: translateY(100%);
    transition: transform .4s var(--ease);
}
.dcai-cookie.is-visible { transform: translateY(0); }
.dcai-cookie[hidden] { display: none; }
.dcai-cookie__inner {
    max-width: var(--container); margin: 0 auto;
    padding: 0 32px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.dcai-cookie__text {
    flex: 1 1 360px;
    font-size: 13px; line-height: 1.7; color: var(--text-dim);
    display: block;
}
.dcai-cookie__text strong { display: block; color: var(--text); margin-bottom: 4px; }
.dcai-cookie__text a { color: var(--cyan); text-decoration: underline; }
.dcai-cookie__text a:hover { color: #fff; }
.dcai-cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.dcai-cookie__actions .btn {
    padding: 9px 18px; font-size: 13px; letter-spacing: .4px;
}

@media (max-width: 640px) {
    .dcai-cookie__inner { padding: 0 20px; gap: 14px; }
    .dcai-cookie__actions { width: 100%; }
    .dcai-cookie__actions .btn { flex: 1; }
}

/* ============================================================
   Mobile nav drawer
   ============================================================ */
.nav-toggle {
    position: relative;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
}
.nav-toggle span {
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
    .site-nav {
        display: block;
        position: fixed;
        top: 76px; left: 0; right: 0; bottom: 0;
        padding: 28px 28px 48px;
        background: rgba(5, 8, 26, .97);
        backdrop-filter: saturate(180%) blur(14px);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid var(--surface-line);
        transform: translateX(100%);
        transition: transform .35s var(--ease);
        overflow-y: auto;
        z-index: 49;
    }
    .site-nav.is-open { transform: translateX(0); }
    .site-nav .nav-menu { flex-direction: column; gap: 6px; }
    .site-nav .nav-menu li { border-bottom: 1px solid var(--surface-line); }
    .site-nav .nav-menu li:last-child { border-bottom: 0; }
    .site-nav a {
        display: block;
        padding: 16px 4px;
        font-size: 17px;
        color: var(--text);
    }
    .site-nav a::after { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions .btn { display: none; }
}
