/* ============================================================
   WSG — Dark tech design system
   ============================================================ */

:root {
    --bg: #070b12;
    --bg-2: #0a101b;
    --surface: #0f1726;
    --surface-2: #141f33;
    --border: rgba(125, 175, 255, 0.12);
    --border-strong: rgba(125, 175, 255, 0.28);
    --text: #e7eefb;
    --muted: #8fa2c0;
    --primary: #2f7bff;
    --cyan: #22d3ee;
    --grad: linear-gradient(135deg, #22d3ee 0%, #2f7bff 100%);
    --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(47, 123, 255, .14));
    --glow: rgba(34, 211, 238, .35);
    --radius: 14px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --nav-h: 72px;
    --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

main { min-height: 60vh; }

/* ---------- Section headings ---------- */

.section { padding: 96px 0; position: relative; }
.section.tight { padding: 72px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.section-head p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
}

.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: #04101f;
    box-shadow: 0 8px 28px rgba(47, 123, 255, .35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(34, 211, 238, .45); }

.btn-outline {
    background: rgba(255, 255, 255, .03);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn-ghost { padding: 8px 0; color: var(--cyan); font-weight: 600; gap: 8px; }
.btn-ghost svg { transition: transform .2s ease; }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Navbar ---------- */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(7, 11, 18, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.logo .logo-mark { width: 34px; height: 34px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-links a {
    padding: 9px 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(125, 175, 255, .08); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .2s ease, color .2s ease;
}

.lang-switch:hover { border-color: var(--cyan); color: var(--cyan); }
.lang-switch svg { width: 15px; height: 15px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 80px;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(90, 140, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 140, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
}

.hero-glow {
    position: absolute;
    width: 720px;
    height: 720px;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(47, 123, 255, .22), transparent 62%);
    filter: blur(20px);
    animation: pulse 7s ease-in-out infinite;
}

.hero-glow.two {
    width: 460px;
    height: 460px;
    top: auto;
    bottom: -200px;
    left: auto;
    right: -120px;
    transform: none;
    background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 62%);
    animation-delay: 2.5s;
}

@keyframes pulse {
    0%, 100% { opacity: .75; }
    50% { opacity: 1; }
}

.hero-inner { position: relative; z-index: 2; max-width: 880px; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(34, 211, 238, .06);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--cyan);
    margin-bottom: 28px;
}

.hero-tag .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: .3; } }

.hero h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero h1 .line { display: block; }

.hero p.lead {
    margin-top: 24px;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--muted);
    max-width: 640px;
}

.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll .mouse {
    width: 22px; height: 34px;
    border: 1.5px solid var(--muted);
    border-radius: 12px;
    position: relative;
}

.hero-scroll .mouse::after {
    content: "";
    position: absolute;
    top: 6px; left: 50%;
    width: 3px; height: 7px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: var(--cyan);
    animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
    100% { opacity: 0; }
}

/* ---------- Stats ---------- */

.stats-band {
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    text-align: center;
    padding: 44px 16px;
    position: relative;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0; top: 22%;
    height: 56%;
    width: 1px;
    background: var(--border);
}

.stat .num {
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat .label { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- Cards: categories ---------- */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-card {
    position: relative;
    display: block;
    padding: 36px 30px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.cat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity .3s ease;
}

.cat-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.cat-card:hover::before { opacity: 1; }

.cat-icon {
    width: 58px; height: 58px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(34, 211, 238, .08);
    border: 1px solid var(--border-strong);
    color: var(--cyan);
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.cat-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1; }
.cat-card p { color: var(--muted); font-size: 14.5px; position: relative; z-index: 1; }

.cat-card .more {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan);
    position: relative;
    z-index: 1;
}

.cat-card:hover .more svg { transform: translateX(4px); }
.cat-card .more svg { transition: transform .25s ease; }

/* ---------- Cards: products ---------- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.product-thumb {
    height: 190px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(47, 123, 255, .16), transparent 70%),
        var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.product-thumb img { width: auto; height: auto; max-width: 78%; max-height: 150px; }

.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.product-body h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.product-body .tagline { color: var(--cyan); font-size: 13px; font-weight: 600; margin: 8px 0 10px; }
.product-body p { color: var(--muted); font-size: 14px; flex: 1; }

.product-body .card-foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.product-body .card-foot .link { font-size: 14px; font-weight: 600; color: var(--cyan); display: inline-flex; gap: 7px; align-items: center; }
.product-body .card-foot .link svg { transition: transform .2s ease; }
.product-card:hover .card-foot .link svg { transform: translateX(4px); }

/* ---------- Cards: application videos ---------- */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(47, 123, 255, .55);
    box-shadow: 0 18px 40px -18px rgba(47, 123, 255, .5);
}

.video-frame {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: #000;
    border-bottom: 1px solid var(--border);
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.video-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.video-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.video-body p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 9px; flex: 1; }

/* ---------- Cards: industries ---------- */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.industry-card {
    position: relative;
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.industry-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.industry-card .ind-icon {
    flex: 0 0 auto;
    width: 76px; height: 76px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--grad-soft);
    border: 1px solid var(--border-strong);
    color: var(--cyan);
}

.industry-card h3 { font-size: 20px; font-weight: 700; }
.industry-card p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.industry-card .arrow {
    position: absolute;
    top: 26px; right: 26px;
    color: var(--muted);
    transition: color .2s ease, transform .2s ease;
}

.industry-card:hover .arrow { color: var(--cyan); transform: translate(3px, -3px); }

/* ---------- Advantages ---------- */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.adv-card {
    padding: 30px 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .3s ease, border-color .3s ease;
}

.adv-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }

.adv-card .adv-icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(47, 123, 255, .1);
    color: var(--cyan);
    margin-bottom: 18px;
}

.adv-card h3 { font-size: 16.5px; font-weight: 700; }
.adv-card p { margin-top: 9px; font-size: 13.8px; color: var(--muted); }

/* ---------- CTA banner ---------- */

.cta-banner { margin-top: 24px; }

.cta-box {
    position: relative;
    border-radius: 20px;
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, .1), rgba(47, 123, 255, .14));
    border: 1px solid var(--border-strong);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 170, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 170, 255, .07) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 80%);
}

.cta-box h2 { position: relative; font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.cta-box p { position: relative; color: var(--muted); margin: 12px 0 28px; }
.cta-box .btn { position: relative; }

/* ---------- Page hero (sub pages) ---------- */

.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + 72px) 0 60px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    top: -160px; right: -100px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(47, 123, 255, .16), transparent 65%);
}

.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; letter-spacing: -1px; position: relative; }
.page-hero p { margin-top: 14px; color: var(--muted); max-width: 680px; position: relative; font-size: 17px; }

.breadcrumb {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 13.5px; color: var(--muted);
    margin-bottom: 22px;
    position: relative;
}

.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); }

/* ---------- Product detail ---------- */

.pd-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }

.pd-image {
    position: sticky; top: 110px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 40%, rgba(47, 123, 255, .15), transparent 70%),
        var(--bg-2);
    padding: 40px;
    display: grid; place-items: center;
    min-height: 420px;
}

.pd-image img { width: 88%; }

.pd-info h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.2; }
.pd-info .tagline { color: var(--cyan); font-weight: 600; margin: 12px 0 18px; font-size: 15px; }
.pd-info .desc { color: var(--muted); }

.pd-block { margin-top: 44px; }
.pd-block h2 {
    font-size: 19px; font-weight: 700; margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px;
}

.pd-block h2::before {
    content: ""; width: 4px; height: 20px; border-radius: 3px; background: var(--grad);
}

.feature-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    color: var(--text);
    font-size: 15px;
    border-bottom: 1px dashed var(--border);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 2px; top: 15px;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: rgba(34, 211, 238, .12);
}

.feature-list li::after {
    content: "";
    position: absolute;
    left: 7px; top: 19px;
    width: 7px; height: 4px;
    border-left: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: rotate(-45deg);
}

.spec-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.spec-table .row {
    display: grid;
    grid-template-columns: 34% 66%;
}

.spec-table .row:nth-child(odd) { background: var(--surface); }
.spec-table .row:nth-child(even) { background: var(--bg-2); }

.spec-table .cell { padding: 14px 20px; font-size: 14.5px; }
.spec-table .cell.k { color: var(--muted); border-right: 1px solid var(--border); font-weight: 600; }
.spec-table .cell.v { color: var(--text); }

.app-tags { display: flex; flex-wrap: wrap; gap: 12px; }

.app-tags span {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--grad-soft);
    border: 1px solid var(--border-strong);
    font-size: 13.5px;
    font-weight: 500;
}

/* ---------- Industry detail ---------- */

.ind-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.ind-panel {
    padding: 34px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.ind-panel h2 {
    font-size: 19px; font-weight: 700; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}

.ind-panel h2 .picon {
    width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--grad-soft); color: var(--cyan);
}

.arrow-list li {
    position: relative;
    padding: 11px 0 11px 30px;
    font-size: 15px;
    border-bottom: 1px dashed var(--border);
}

.arrow-list li:last-child { border-bottom: none; }

.challenge-list li::before {
    content: "";
    position: absolute; left: 2px; top: 16px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
}

.solution-list li::before {
    content: "";
    position: absolute; left: 2px; top: 14px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(34, 211, 238, .14);
    border: 2px solid var(--cyan);
}

.solution-list li::after {
    content: "";
    position: absolute; left: 7.5px; top: 18px;
    width: 5px; height: 3px;
    border-left: 1.6px solid var(--cyan);
    border-bottom: 1.6px solid var(--cyan);
    transform: rotate(-45deg);
}

/* ---------- Case cards / case detail ---------- */

.case-card {
    display: flex; flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.case-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.case-thumb { height: 200px; background: var(--bg-2); display: grid; place-items: center; border-bottom: 1px solid var(--border); }
.case-thumb img { width: 70%; }
.case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.case-meta { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); }
.case-body h3 { margin: 10px 0 8px; font-size: 17px; font-weight: 700; }
.case-body p { color: var(--muted); font-size: 14px; flex: 1; }

.result-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.result-chips li {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(34, 211, 238, .08);
    border: 1px solid var(--border);
}

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }

.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 15.5px; }

.mv-cards { display: grid; gap: 18px; }

.mv-card {
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.mv-card h3 { font-size: 16px; font-weight: 700; color: var(--cyan); margin-bottom: 8px; }
.mv-card p { font-size: 14.5px; color: var(--muted); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.value-card {
    text-align: center;
    padding: 32px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .3s ease, border-color .3s ease;
}

.value-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.value-card .v-icon { width: 50px; height: 50px; margin: 0 auto 16px; color: var(--cyan); }
.value-card h3 { font-size: 15.5px; font-weight: 700; }
.value-card p { font-size: 13.3px; color: var(--muted); margin-top: 8px; }

.timeline { position: relative; max-width: 880px; margin: 0 auto; }

/* line runs through the centre of the 36px gap: 64 + 18 = 82 */
.timeline::before {
    content: "";
    position: absolute;
    left: 81px; top: 6px; bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--cyan), var(--primary));
    opacity: .5;
}

.tl-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 36px; padding: 18px 0; }

.tl-item .tl-year { font-size: 17px; font-weight: 800; color: var(--cyan); text-align: right; padding-top: 2px; }

.tl-item .tl-dot {
    position: absolute;
    left: 75px; top: 26px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--cyan);
    box-shadow: 0 0 12px var(--glow);
}

.tl-item .tl-body { padding-left: 0; }
.tl-item .tl-body h3 { font-size: 16px; font-weight: 700; }
.tl-item .tl-body p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- News ---------- */

.news-list { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }

.news-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .25s ease, border-color .25s ease;
}

.news-item:hover { transform: translateX(5px); border-color: var(--border-strong); }

.news-thumb { border-radius: 10px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; height: 150px; }
.news-thumb img { width: 62%; }

.news-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.news-meta .ncat { color: var(--cyan); font-weight: 700; }
.news-item h3 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.news-item p { font-size: 14px; color: var(--muted); margin-top: 8px; }

.article { max-width: 820px; margin: 0 auto; }

.article .a-meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.article .a-meta .a-cat { color: var(--cyan); font-weight: 700; }
.article h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.article .a-hero { border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); padding: 36px; margin-bottom: 36px; display: grid; place-items: center; height: 260px; }
.article .a-hero img { height: 150px; }
.article .a-body p { color: #c4d2e8; font-size: 16px; margin-bottom: 22px; line-height: 1.85; }

.article-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }

.contact-info-list { display: grid; gap: 22px; }

.ci-item { display: flex; gap: 18px; align-items: flex-start; }
.ci-item .ci-icon {
    flex: 0 0 auto;
    width: 46px; height: 46px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--grad-soft); border: 1px solid var(--border-strong);
    color: var(--cyan);
}

.ci-item h3 { font-size: 14px; color: var(--muted); font-weight: 600; }
.ci-item p { font-size: 15.5px; font-weight: 500; }

.contact-form {
    padding: 36px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.contact-form h2 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }

.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.form-field label .req { color: var(--cyan); }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 9px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea { min-height: 130px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}

.form-field.invalid input,
.form-field.invalid textarea { border-color: #f87171; }

.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.form-status {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 14px;
    display: none;
}

.form-status.ok { display: block; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #4ade80; }
.form-status.err { display: block; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #f87171; }

/* ---------- 404 ---------- */

.error-page {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.error-code {
    font-size: clamp(110px, 18vw, 210px);
    font-weight: 800;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -6px;
}

.error-page h2 { font-size: 26px; margin: 10px 0; }
.error-page p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }

.footer h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 18px; }

.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.footer-links a:hover { color: var(--cyan); }

.footer-contact li {
    display: flex; gap: 10px; align-items: flex-start;
    color: var(--muted); font-size: 14px;
    margin-bottom: 13px;
}

.footer-contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--cyan); }

.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
    width: 38px; height: 38px;
    border-radius: 9px;
    display: grid; place-items: center;
    border: 1px solid var(--border-strong);
    color: var(--muted);
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.social-row a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a:hover { color: var(--cyan); }

/* ---------- Scroll reveal ---------- */

/* Scroll reveal only applies when JS is available; without JS content
   must remain visible. */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.in { opacity: 1; transform: none; }

/* stagger helpers */
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .categories-grid,
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }

    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    .pd-layout { grid-template-columns: 1fr; gap: 36px; }
    .pd-image { position: static; min-height: 320px; }

    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }

    .nav-links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(7, 11, 18, .97);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        padding: 18px 24px 26px;
        transform: translateY(-130%);
        transition: transform .3s ease;
    }

    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 13px 16px; font-size: 16px; }

    .nav-toggle { display: block; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)::before { display: none; }
    .stat + .stat::before { display: none; }
    .stat:nth-child(even)::before { display: block; }

    .industries-grid { grid-template-columns: 1fr; }
    .ind-two-col { grid-template-columns: 1fr; }

    .news-item { grid-template-columns: 1fr; gap: 18px; }
    .news-thumb { height: 180px; }

    .form-row { grid-template-columns: 1fr; }
    .cta-box { padding: 44px 24px; }
}

@media (max-width: 560px) {
    .categories-grid,
    .products-grid,
    .video-grid,
    .advantages-grid,
    .values-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .industry-card { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
    .spec-table .row { grid-template-columns: 40% 60%; }
    .contact-form { padding: 26px 20px; }

    .timeline::before { left: 7px; }
    .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
    .tl-item .tl-year { text-align: left; }
    .tl-item .tl-dot { left: 1px; top: 24px; }
    .tl-item .tl-body { padding-left: 0; }
}
