/* =========================================================
   QIANLIAN TECH — Theme v2
   深墨首屏 + 克制留白 + 单一品牌渐变强调
   仅依赖系统字体，无境外 CDN
   ========================================================= */

/* ---------- 0. Tokens ---------- */
:root {
    --ink: #0a0e27;
    --ink-2: #111634;
    --ink-3: #1b2145;
    --paper: #ffffff;
    --paper-soft: #f5f6fa;
    --text: #0b1030;
    --text-soft: #4a5068;
    --muted: #757b93;
    --line: rgba(11, 16, 48, 0.09);
    /* 深色区块（首屏 / 方法）可被浅色主题整体替换 */
    --dark-bg: #0a0e27;
    --dark-bg-2: #111634;
    --dark-fg: #ffffff;
    --dark-fg-soft: rgba(255, 255, 255, 0.68);
    --dark-fg-muted: rgba(255, 255, 255, 0.52);
    --dark-fg-faint: rgba(255, 255, 255, 0.36);
    --dark-line: rgba(255, 255, 255, 0.12);
    --dark-line-soft: rgba(255, 255, 255, 0.09);
    --dark-surface: rgba(255, 255, 255, 0.04);
    --dark-grid-1: rgba(255, 255, 255, 0.06);
    --dark-grid-2: rgba(255, 255, 255, 0.05);
    --dark-glow-1: rgba(122, 92, 255, 0.35);
    --dark-glow-2: rgba(47, 91, 255, 0.3);
    --dark-glow-3: rgba(51, 214, 200, 0.16);
    --dark-noise: 0.22;
    --dark-accent: #9db7ff;
    --line-strong: rgba(11, 16, 48, 0.16);
    --line-dark: rgba(255, 255, 255, 0.12);
    --blue: #2f5bff;
    --violet: #7a5cff;
    --cyan: #33d6c8;
    --grad: linear-gradient(120deg, #2f5bff 0%, #7a5cff 100%);
    --radius: 4px;
    --shadow-sm: 0 1px 2px rgba(10, 14, 39, 0.05);
    --shadow-md: 0 24px 60px -32px rgba(10, 14, 39, 0.28);
    --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-soft);
    background: var(--paper);
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* ---------- 1. Layout ---------- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: clamp(76px, 9vw, 132px) 0;
    position: relative;
}

section[id],
.about[id] {
    scroll-margin-top: 88px;
}

.section--soft {
    background: var(--paper-soft);
}

/* ---------- 2. Type helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow .num {
    font-variant-numeric: tabular-nums;
    color: var(--blue);
    letter-spacing: 0.08em;
}

.eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--line-strong);
}

.h2 {
    font-size: clamp(1.9rem, 3.1vw, 2.85rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.lead {
    font-size: clamp(1rem, 1.15vw, 1.06rem);
    color: var(--text-soft);
    max-width: 44em;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: clamp(36px, 4vw, 60px);
}

.section-head__left {
    max-width: 640px;
}

.section-head .eyebrow {
    margin-bottom: 18px;
}

/* ---------- 3. Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease),
        color 0.35s var(--ease), border-color 0.35s var(--ease),
        box-shadow 0.35s var(--ease);
}

.btn--primary {
    background: var(--text);
    color: #fff;
}

.btn--primary:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(47, 91, 255, 0.6);
}

.btn--ghost-dark {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: var(--line-dark);
    backdrop-filter: blur(6px);
}

.btn--ghost-dark:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn--light {
    background: #fff;
    color: var(--text);
}

.btn--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.5);
}

.btn .arrow {
    transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.link-arrow:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* ---------- 4. Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.header__inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 34px;
    width: auto;
}

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

.nav a {
    position: relative;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    padding: 4px 0;
    transition: color 0.25s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
    transform: scaleX(1);
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__tel {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.header .btn {
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s var(--ease);
}

.menu-btn span::before {
    top: -6px;
}

.menu-btn span::after {
    top: 6px;
}

.mobile-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 76px;
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 24px;
    display: none;
    flex-direction: column;
}

.mobile-panel.is-open {
    display: flex;
}

.mobile-panel a {
    padding: 15px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.mobile-panel .btn {
    margin-top: 18px;
}

/* ---------- 5. Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark-bg);
    color: #fff;
    padding: 168px 0 0;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 55% at 78% 18%, var(--dark-glow-1) 0%, transparent 62%),
        radial-gradient(50% 50% at 12% 72%, var(--dark-glow-2) 0%, transparent 65%),
        radial-gradient(45% 45% at 92% 88%, var(--dark-glow-3) 0%, transparent 70%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.45;
    background-image:
        linear-gradient(to right, var(--dark-grid-1) 1px, transparent 1px),
        linear-gradient(to bottom, var(--dark-grid-2) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
}

.hero__noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: var(--dark-noise);
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
    padding-bottom: clamp(64px, 7vw, 104px);
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dark-fg-muted);
    margin-bottom: 30px;
}

.hero__tag i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(51, 214, 200, 0.16);
}

.hero h1 {
    color: var(--dark-fg);
    font-size: clamp(2.5rem, 5.1vw, 4.55rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #8fb4ff 0%, #b9a6ff 55%, #8ee9e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__desc {
    margin-top: 26px;
    max-width: 33em;
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.9;
    color: var(--dark-fg-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
}

.hero__meta {
    margin-top: 54px;
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--dark-fg-muted);
}

.hero__meta li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__meta svg {
    opacity: 0.7;
}

/* 右侧能力栈 */
.hero__stack {
    position: relative;
}

.stack-line {
    position: absolute;
    left: 22px;
    top: 26px;
    bottom: 26px;
    width: 1px;
    background: linear-gradient(to bottom, var(--dark-line), transparent);
}

.stack-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px 20px 0;
    border-bottom: 1px solid var(--dark-line-soft);
}

.stack-item:last-child {
    border-bottom: 0;
}

.stack-dot {
    position: relative;
    z-index: 1;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--dark-line);
    background: var(--dark-surface);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-dot svg {
    width: 17px;
    height: 17px;
    stroke: var(--dark-fg-soft);
}

.stack-body {
    flex: 1;
    min-width: 0;
}

.stack-body h3 {
    color: var(--dark-fg);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0;
}

.stack-body p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--dark-fg-muted);
    line-height: 1.6;
}

.stack-index {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--dark-fg-faint);
    font-variant-numeric: tabular-nums;
}

/* 首屏底部数据条 */
.hero__stats {
    border-top: 1px solid var(--dark-line);
}

.hero__stats .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
    padding: 34px 0 38px;
    border-right: 1px solid var(--dark-line);
}

.stat:last-child {
    border-right: 0;
}

.stat__num {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: var(--dark-fg);
    font-size: clamp(1.9rem, 2.6vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.stat__num span {
    font-size: 0.62em;
    color: var(--dark-fg-soft);
    font-weight: 500;
}

.stat__label {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--dark-fg-muted);
    letter-spacing: 0.02em;
}

/* ---------- 6. Services ---------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service {
    position: relative;
    padding: 38px 36px 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
    overflow: hidden;
}

.service::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 100%;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.service:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 91, 255, 0.28);
    box-shadow: var(--shadow-md);
}

.service:hover::before {
    transform: scaleX(1);
}

.service__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.service__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: background 0.4s var(--ease), color 0.4s var(--ease),
        border-color 0.4s var(--ease);
}

.service:hover .service__icon {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.service__index {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.service h3 {
    font-size: 1.32rem;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.service p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-soft);
}

.service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.tag {
    font-size: 12px;
    color: var(--muted);
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* ---------- 7. Cases ---------- */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.case {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
        border-color 0.5s var(--ease);
}

.case:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 16, 48, 0.16);
}

.case__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eceef4;
}

.case__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.case:hover .case__thumb img {
    transform: scale(1.045);
}

/* 案例：图片完整显示（高度占满、宽度自适应，不裁切） */
#cases .case__thumb,
.cases__grid--wide .case__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background: #fff;
}

#cases .case__thumb img,
.cases__grid--wide .case__thumb img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(11, 16, 48, 0.06);
    box-shadow: 0 14px 38px rgba(11, 16, 48, 0.16);
}

#cases .case:hover .case__thumb img,
.cases__grid--wide .case:hover .case__thumb img {
    transform: none;
}

.case__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 22px;
    border-top: 1px solid var(--line);
}

.case__label {
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
}

.case__title {
    margin-top: 6px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0;
}

.case__go {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.4s var(--ease), color 0.4s var(--ease),
        border-color 0.4s var(--ease);
}

.case:hover .case__go {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

/* ---------- 8. Method ---------- */
.method {
    position: relative;
    background: var(--dark-bg);
    color: #fff;
    overflow: hidden;
}

.method__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(45% 60% at 88% 12%, var(--dark-glow-1) 0%, transparent 60%),
        radial-gradient(40% 55% at 4% 92%, var(--dark-glow-2) 0%, transparent 65%);
}

.method .container {
    position: relative;
}

.method__head {
    max-width: 720px;
}

.method .eyebrow {
    color: var(--dark-fg-muted);
}

.method .eyebrow::after {
    background: var(--dark-line);
}

.method .eyebrow .num {
    color: #8fb4ff;
}

.method h2 {
    color: var(--dark-fg);
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    line-height: 1.26;
    letter-spacing: -0.025em;
}

.method h2 em {
    font-style: normal;
    color: var(--dark-accent);
}

.method__desc {
    margin-top: 22px;
    max-width: 40em;
    color: var(--dark-fg-soft);
    font-size: 15px;
    line-height: 1.9;
}

.method__steps {
    margin-top: clamp(40px, 5vw, 68px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--dark-line);
    border-top: 1px solid var(--dark-line);
    border-bottom: 1px solid var(--dark-line);
}

.step {
    background: var(--dark-bg);
    padding: 36px 30px 40px;
    transition: background 0.4s var(--ease);
}

.step:hover {
    background: var(--dark-bg-2);
}

.step__no {
    font-size: 12px;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

.step h3 {
    color: var(--dark-fg);
    font-size: 1.18rem;
    margin: 18px 0 12px;
}

.step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--dark-fg-muted);
}

/* ---------- 9. About ---------- */
.about {
    padding: clamp(76px, 9vw, 132px) 0;
}

.about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.about__quote {
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 24px;
}

.about__quote span {
    color: var(--blue);
}

.about__text {
    font-size: 15px;
    line-height: 1.95;
    color: var(--text-soft);
}

.about__facts {
    border-top: 1px solid var(--line);
}

.fact {
    display: flex;
    gap: 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.fact__no {
    flex: 0 0 34px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    padding-top: 3px;
}

.fact h4 {
    font-size: 15.5px;
    margin-bottom: 6px;
}

.fact p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--muted);
}

/* ---------- 10. Contact CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: clamp(72px, 8vw, 116px) 0;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 80% at 72% 40%, rgba(47, 91, 255, 0.3) 0%, transparent 62%),
        radial-gradient(40% 60% at 96% 100%, rgba(51, 214, 200, 0.14) 0%, transparent 60%);
}

.cta .container {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.cta h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3.4vw, 3.05rem);
    line-height: 1.24;
    letter-spacing: -0.03em;
    max-width: 15em;
}

.cta__sub {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.9;
}

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

/* ---------- 11. Footer ---------- */
.footer {
    padding: 64px 0 34px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line);
}

.footer .logo img {
    height: 40px;
    position: relative;
    left: -20px;
}

.footer__desc {
    margin-top: 18px;
    max-width: 26em;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted);
}

.footer__col h5 {
    margin: 0 0 16px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.footer__col li {
    margin-bottom: 10px;
}

.footer__col a,
.footer__col span {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
    transition: color 0.25s;
}

.footer__col a:hover {
    color: var(--blue);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 26px;
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- 12. Reveal motion ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: none;
    padding-left: 20px;
}

.reveal[data-delay="1"] {
    transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
    transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
    transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .case:hover,
    .service:hover,
    .btn:hover {
        transform: none;
    }
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__stack {
        max-width: 560px;
    }

    .nav {
        gap: 26px;
    }

    .header__tel {
        display: none;
    }

    .cases__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 860px) {
    .nav,
    .header__cta .btn {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .header__cta {
        gap: 10px;
    }

    .services__grid,
    .method__steps,
    .about__inner {
        grid-template-columns: 1fr;
    }

    .about__inner {
        gap: 40px;
    }

    .hero {
        padding-top: 132px;
    }

    .hero__stats .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--dark-line);
    }

    .stat:nth-child(odd) {
        border-right: 1px solid var(--dark-line);
    }

    .cta .container {
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 20px;
    }

    .header__inner {
        height: 68px;
    }

    .mobile-panel {
        top: 68px;
        padding: 4px 20px 20px;
    }

    .logo img {
        height: 28px;
    }

    .hero {
        padding-top: 116px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8.4vw, 2.6rem);
    }

    .hero__actions .btn {
        flex: 1 0 100%;
    }

    .cases__grid {
        grid-template-columns: 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
