/* =========================================================
   山东云小兵信息技术有限公司 · 官网
   Design System — 新中式 × 科技 (Heritage × AIGC)
   ========================================================= */

:root {
  /* Heritage palette */
  --ink: #18161c;
  --ink-2: #2a2730;
  --ink-3: #46424f;
  --paper: #f7f3ea;
  --paper-2: #fffdf8;
  --white: #ffffff;
  --line: #e7ded0;

  /* Brand accents */
  --red: #c5362b;
  --red-deep: #9f241c;
  --red-soft: #f4e4e0;
  --gold: #c2a25a;
  --gold-soft: #f1e7cf;
  --gold-light: #ecd28c;
  --jade: #0f766e;

  /* AIGC tech accent */
  --ai-1: #6366f1;
  --ai-2: #0ea5e9;
  --ai-grad: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);

  --text: #26222b;
  --text-soft: #5c5663;
  --text-faint: #8a8392;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(24, 22, 28, 0.06);
  --shadow: 0 14px 40px -18px rgba(24, 22, 28, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(24, 22, 28, 0.45);

  --maxw: 1180px;
  --header-h: 74px;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; color: var(--ink); letter-spacing: 0.01em; }

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

/* ---------- Eyebrow / section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

.section { padding: 92px 0; position: relative; }
.section.alt { background: var(--white); }
.section.dark {
  background: var(--ink);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(197,54,43,0.18), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(99,102,241,0.18), transparent 60%);
  color: #efeaf3;
}
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: var(--gold-light); }
.section.dark .eyebrow::before { background: var(--gold); }

.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.sec-head p { color: var(--text-soft); font-size: 17px; }
.section.dark .sec-head p { color: #c8c2d2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(197,54,43,0.7); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(197,54,43,0.8); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d8bd76); color: #2a200a; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(194,162,90,0.7); }
.btn-ai { background: var(--ai-grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(99,102,241,0.7); }
.btn-ai:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.section.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.section.dark .btn-ghost:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 100;
  background: rgba(247,243,234,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(247,243,234,0.94); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 800;
  box-shadow: 0 8px 18px -8px rgba(197,54,43,0.8); position: relative; overflow: hidden;
}
.brand .logo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%); }
.brand .logo-img {
  width: 38px; height: 38px; border-radius: 11px; flex: none; object-fit: contain;
  background: #fff; padding: 4px; box-shadow: 0 8px 18px -10px rgba(0,0,0,0.45);
}
.brand small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--text-faint); letter-spacing: 0.05em; margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--text); padding: 9px 15px; border-radius: 9px;
  position: relative; transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--red); background: rgba(197,54,43,0.06); }
.nav a.active { color: var(--red); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 72px) 0 96px;
  background: var(--ink);
  color: #f3eef7;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(800px 520px at 80% 0%, rgba(197,54,43,0.22), transparent 60%),
    radial-gradient(760px 520px at 8% 100%, rgba(99,102,241,0.20), transparent 60%);
}
.hero .deco-rings { position: absolute; right: -120px; top: 80px; width: 540px; height: 540px; opacity: 0.5; pointer-events: none; }

/* About page hero — distinct jade/teal gradient (different from heritage dark hero) */
.hero-about { background: linear-gradient(135deg, #0b3b39 0%, #0f766e 52%, #0a2e2c 100%); }
.hero-about::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(820px 540px at 82% 0%, rgba(194,162,90,0.30), transparent 60%),
    radial-gradient(760px 520px at 6% 100%, rgba(99,102,241,0.22), transparent 60%);
}
.hero-about .deco-rings circle:nth-child(3) { stroke: rgba(194,162,90,0.5); }

/* Education page hero — distinct AIGC indigo/sky-blue gradient (different from heritage dark & about teal) */
.hero-edu { background: linear-gradient(135deg, #0c0c22 0%, #122046 48%, #07243a 100%); }
.hero-edu::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(820px 540px at 82% 0%, rgba(14,165,233,0.22), transparent 60%),
    radial-gradient(760px 520px at 6% 100%, rgba(99,102,241,0.20), transparent 60%);
}
.hero-inner { position: relative; max-width: 880px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  color: var(--gold-light); font-size: 13.5px; font-weight: 500; margin-bottom: 26px;
  backdrop-filter: blur(4px);
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(194,162,90,0.25); }
.hero h1 {
  color: #fff; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.12; margin-bottom: 22px; letter-spacing: 0.01em;
}
.hero h1 .accent {
  color: var(--gold-light);
  background: linear-gradient(120deg, #ffcdb0, var(--gold-light));
  -webkit-background-clip: text; background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .accent { -webkit-text-fill-color: transparent; color: transparent; }
}
.hero p.lead { font-size: clamp(16px, 1.9vw, 20px); color: #cfc8da; max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-stats .stat .num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.hero-stats .stat .num span { color: var(--gold-light); }
.hero-stats .stat .lab { font-size: 13.5px; color: #b3acbf; margin-top: 6px; }

/* ---------- Pillars / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--red-soft); color: var(--red); font-size: 24px; flex: none;
}
.card.ai .ico { background: #e7e9fd; color: var(--ai-1); }
.card.gold .ico { background: var(--gold-soft); color: #9a7b27; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 15px; }
.card .num-tag { position: absolute; top: 18px; right: 22px; font-family: var(--serif); font-size: 38px; font-weight: 700; color: rgba(24,22,28,0.06); }

/* ---------- Services (heritage 6 systems) ---------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: .3s; position: relative;
}
.svc-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc-item .idx { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.svc-item h3 { font-size: 19px; margin: 8px 0 12px; }
.svc-item ul li { position: relative; padding-left: 18px; margin-bottom: 7px; color: var(--text-soft); font-size: 14.5px; }
.svc-item ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process .step { position: relative; padding: 0 22px; }
.process .step::before {
  counter-increment: step; content: counter(step);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 19px; margin-bottom: 16px;
  border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.process .step h4 { font-size: 17px; margin-bottom: 7px; }
.process .step p { font-size: 14px; color: var(--text-soft); }
.process .step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 68px; right: -22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}

/* ---------- Pricing / 套餐 ---------- */
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column; transition: .3s; position: relative; overflow: hidden;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.feature { border-color: var(--red); box-shadow: 0 18px 50px -24px rgba(197,54,43,0.5); }
.price-card .tier { font-family: var(--serif); font-size: 14px; letter-spacing: .1em; color: var(--red); font-weight: 700; }
.price-card h3 { font-size: 23px; margin: 6px 0 4px; }
.price-card .who { font-size: 13.5px; color: var(--text-faint); margin-bottom: 20px; min-height: 38px; }
.price-card ul { margin-bottom: 26px; flex: 1; }
.price-card ul li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 14.5px; color: var(--text); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700; }
.price-card .tag-line { font-size: 13px; color: var(--text-faint); margin-top: 14px; text-align: center; }

/* ---------- Case cards ---------- */
.case {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .3s; display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case .top { padding: 26px 26px 20px; background: linear-gradient(135deg, #201d27, #2c2733); color: #fff; position: relative; }
.case .top .kind { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.case .top h3 { color: #fff; font-size: 21px; margin-top: 8px; }
.case .top .meta { font-size: 13px; color: #b9b2c6; margin-top: 6px; }
.case .body { padding: 22px 26px; flex: 1; }
.case .body p { font-size: 14.5px; color: var(--text-soft); }
.case .result { padding: 16px 26px 24px; border-top: 1px dashed var(--line); }
.case .result .r-title { font-size: 12.5px; color: var(--red); font-weight: 600; letter-spacing: .08em; margin-bottom: 8px; }
.case .result .r-grid { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.case .result .r { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); }
.case .result .r small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--text-faint); }

/* ---------- Pain points ---------- */
.pain { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain-item { display: flex; gap: 14px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.pain-item .pc { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); font-size: 15px; }
.pain-item h4 { font-size: 15.5px; margin-bottom: 3px; font-family: var(--sans); font-weight: 700; }
.pain-item p { font-size: 13.5px; color: var(--text-soft); }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-box { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.stat-box .n { font-family: var(--serif); font-size: 42px; font-weight: 700; color: #fff; line-height: 1; }
.stat-box .n span { color: var(--gold-light); }
.stat-box .l { color: #c2bcd0; font-size: 14px; margin-top: 10px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split .visual {
  border-radius: var(--radius-lg); min-height: 360px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #201d27, #312a3b);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.split .visual svg { width: 100%; height: 100%; }

/* ---------- Table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
table.tbl th { background: var(--paper); font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 14px; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td b { color: var(--red); }

/* ---------- Tag chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 13.5px; padding: 7px 15px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--text-soft); }
.chip.ai { background: #eef0fe; border-color: #d9ddfb; color: var(--ai-1); }

/* ---------- Contact card (About page) ---------- */
.contact-card {
  background: linear-gradient(160deg, #ffffff 0%, #fbf7ef 100%);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 48px 46px;
}
.contact-card-head { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px dashed var(--line); }
.cc-ico { flex: none; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 27px; color: #fff; background: linear-gradient(135deg, var(--red), var(--gold)); box-shadow: 0 10px 22px rgba(197,54,43,0.28); }
.contact-card-head h3 { font-size: 25px; margin: 4px 0 7px; color: var(--ink); }
.contact-card-head p { color: var(--text-soft); font-size: 14.5px; margin: 0; line-height: 1.6; }
.contact-rows { display: grid; gap: 22px; }
.crow { display: flex; gap: 16px; align-items: flex-start; }
.ic-badge { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; color: var(--red); background: var(--gold-soft); }
.crow b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 5px; }
.crow span { color: var(--text-soft); font-size: 15px; line-height: 1.65; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 28px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Accordion (course days) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: none; }
.acc-head { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 16px; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink); }
.acc-head .day { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 15px; }
.acc-head .plus { margin-left: auto; font-size: 22px; color: var(--text-faint); transition: transform .3s; }
.acc-item.open .acc-head .plus { transform: rotate(45deg); color: var(--red); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body-inner { padding: 0 24px 22px 84px; color: var(--text-soft); font-size: 14.5px; }
.acc-body-inner .k { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc8da; padding: 64px 0 28px; }
.footer .f-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: var(--text-faint); }
.footer p.desc { font-size: 14.5px; color: #a79fb6; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14.5px; color: #b3acbf; transition: color .2s; }
.footer ul li a:hover { color: var(--gold-light); }
.footer .contact li { display: flex; gap: 10px; font-size: 14.5px; color: #b3acbf; align-items: flex-start; }
.footer .contact li .ic { color: var(--gold); flex: none; }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 13px; color: #8a8398; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .svc, .process, .stats-band { grid-template-columns: repeat(2, 1fr); }
  .process .step:not(:last-child)::after { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .footer .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper-2); padding: 14px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .nav.open a { padding: 13px 14px; font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .svc, .process, .stats-band, .pain { grid-template-columns: 1fr; }
  .footer .f-top { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
  .hero-stats { gap: 18px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- QR Modal ---------- */
.qr-modal {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,15,21,0.62); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  padding: 20px;
}
.qr-modal.open { opacity: 1; visibility: visible; }
.qr-card {
  position: relative; width: min(360px, 90vw);
  background: #fff; border-radius: 20px; padding: 28px 28px 24px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); text-align: center;
  transform: translateY(16px) scale(.98); transition: transform .25s ease;
}
.qr-modal.open .qr-card { transform: none; }
.qr-card .qr-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: #f1ede6; color: #26222b;
  font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s;
}
.qr-card .qr-close:hover { background: #e6e0d6; }
.qr-card .qr-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: grid; place-items: center; color: #fff; font-size: 24px;
  box-shadow: 0 10px 24px -10px rgba(197,54,43,.7);
}
.qr-card h3 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.qr-card .qr-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; line-height: 1.6; }
.qr-card .qr-frame {
  width: 280px; max-width: 100%; aspect-ratio: 1/1; margin: 0 auto;
  padding: 14px; background: linear-gradient(135deg, #fff, #faf6ef);
  border: 1px solid #ece4d6; border-radius: 16px;
}
.qr-card .qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-card .qr-tip { margin-top: 16px; font-size: 13px; color: var(--text-faint); }
.qr-card .qr-tip b { color: var(--red); }
