/* ============================================================
   刘星雨的技术博客 — Design System
   Theme: 深空科技风 · VR / 数字孪生 / 游戏开发
   Accent: 青 Cyan (#22D3EE) → 紫 Violet (#8B5CF6)
   ============================================================ */

:root {
  --bg-0: #05070d;
  --bg-1: #0a101f;
  --bg-2: #101a30;
  --bg-3: #16233f;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #e7edf8;
  --text-soft: #c3cddf;
  --muted: #8fa1bd;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-3: #60a5fa;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --grad: linear-gradient(120deg, #22d3ee 0%, #60a5fa 45%, #8b5cf6 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.16));
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 24px rgba(2, 6, 16, 0.5);
  --shadow-md: 0 18px 48px rgba(2, 6, 16, 0.55);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 18px 60px rgba(34, 211, 238, 0.18);
  --font-head: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav-h: 76px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.22; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-1); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #243350; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2f4268; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap; line-height: 1.2; position: relative;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--grad); color: #04121c; box-shadow: 0 12px 32px rgba(56, 189, 248, 0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(139, 92, 246, 0.4); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(34, 211, 238, 0.15); }
.btn-white { background: #fff; color: #0a1020; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255, 255, 255, 0.25); }
.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 640px; }
.section-head.center .section-sub { margin-inline: auto; }

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

/* ---------- Background effects ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.orb-cyan { background: rgba(34, 211, 238, 0.22); }
.orb-violet { background: rgba(139, 92, 246, 0.24); }
.orb-blue { background: rgba(96, 165, 250, 0.18); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(2, 6, 16, 0.5);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
  color: #04121c; font-family: var(--font-head); font-weight: 700; font-size: 20px;
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: var(--accent); background: rgba(34, 211, 238, 0.1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 22px; font-size: 14px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); place-items: center; background: rgba(255, 255, 255, 0.04); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.open .icon-close { display: block; }
.menu-toggle.open .icon-open { display: none; }

/* ============================================================
   Mobile menu
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: rgba(5, 7, 13, 0.98);
  backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-head); font-size: 26px; font-weight: 600; padding: 12px 20px; color: var(--text-soft); }
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .btn { margin-top: 18px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 96px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px; font-weight: 500; color: var(--text-soft); margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.7; } }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); margin-bottom: 24px; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 54px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 560px; }
.stat .num { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: #fff; }
.stat .num sup { font-size: 16px; color: var(--accent); }
.stat .label { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 20px; }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md); transform: rotate(1.2deg);
}
.hero-visual .frame img { width: 100%; height: 520px; object-fit: cover; }
.hero-visual .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(34, 211, 238, 0.16), transparent 40%, rgba(139, 92, 246, 0.22));
  mix-blend-mode: screen;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; z-index: 3;
  background: rgba(10, 16, 31, 0.9); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-md); backdrop-filter: blur(12px);
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.float-card .fc-ic svg { width: 20px; height: 20px; }
.float-card b { display: block; font-size: 14px; }
.float-card span { font-size: 12px; color: var(--muted); }
.float-card.fc-1 { top: 34px; left: -38px; animation-delay: 0.4s; }
.float-card.fc-2 { bottom: 44px; right: -30px; animation-delay: 1.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   Trust strip
   ============================================================ */
.trust { border-block: 1px solid var(--line); background: rgba(10, 16, 31, 0.5); }
.trust .container { padding: 30px 0; }
.trust-label { text-align: center; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text-soft); font-weight: 600; font-size: 15px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.trust-chip svg { width: 17px; height: 17px; color: var(--accent); }
.trust-chip:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ============================================================
   Feature cards
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  position: relative; padding: 34px 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s ease;
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.feature-card:hover::before { opacity: 1; }
.fc-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, 0.28); color: var(--accent);
  transition: transform 0.3s ease;
}
.fc-icon svg { width: 26px; height: 26px; }
.feature-card:hover .fc-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Service cards
   ============================================================ */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-8px); border-color: rgba(34, 211, 238, 0.5); box-shadow: var(--shadow-glow); }
.svc-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-size: 44px; font-weight: 700; color: rgba(148, 163, 184, 0.14); line-height: 1; }
.svc-card .fc-icon { width: 50px; height: 50px; border-radius: 13px; margin-bottom: 20px; }
.svc-card .fc-icon svg { width: 23px; height: 23px; }
.svc-card h3 { font-size: 19px; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags span { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(96, 165, 250, 0.1); color: var(--accent-3); border: 1px solid rgba(96, 165, 250, 0.22); }

/* ============================================================
   Portfolio cards
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: block;
}
.work-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.work-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.06); }
.work-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 13, 0.75)); }
.work-cat {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; color: #04121c; background: var(--grad);
}
.work-body { padding: 20px 22px 24px; }
.work-body h3 { font-size: 18px; margin-bottom: 6px; }
.work-body p { font-size: 14px; color: var(--muted); }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft);
  font-size: 14px; font-weight: 500; transition: all 0.25s ease; background: rgba(255, 255, 255, 0.02);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--grad); color: #04121c; border-color: transparent; font-weight: 600; box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25); }
.work-card.hide { display: none; }

/* ============================================================
   Testimonials
   ============================================================ */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tm-card {
  padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.tm-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.tm-stars { color: var(--amber); letter-spacing: 3px; font-size: 15px; margin-bottom: 16px; }
.tm-text { font-size: 15px; color: var(--text-soft); margin-bottom: 22px; }
.tm-person { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-head); font-weight: 700; color: #04121c; background: var(--grad); font-size: 16px;
}
.tm-person b { display: block; font-size: 15px; }
.tm-person span { font-size: 13px; color: var(--muted); }

/* ============================================================
   Split feature (about preview, image + text)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-md); }
.split-media .frame img { width: 100%; height: 460px; object-fit: cover; }
.split-media .badge-card {
  position: absolute; right: -24px; bottom: 34px; background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-md); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 14px;
}
.split-media .badge-card b { font-family: var(--font-head); font-size: 30px; color: var(--accent); }
.split-media .badge-card span { font-size: 13px; color: var(--muted); }
.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 15.5px; }
.check-list svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.split .btn { margin-top: 30px; }

/* ============================================================
   Process steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -14px; left: 24px; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: #04121c; background: var(--grad); padding: 5px 13px; border-radius: 999px;
}
.step-card .step-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); margin-bottom: 18px; }
.step-card .step-ic svg { width: 22px; height: 22px; }
.step-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; background: var(--bg-2); overflow: hidden; transition: border-color 0.3s ease; }
.faq-item.open { border-color: rgba(34, 211, 238, 0.5); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; text-align: left; font-family: var(--font-head); font-size: 16.5px; font-weight: 600; color: var(--text);
}
.faq-q .chev { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform 0.3s ease, background 0.3s ease; color: var(--accent); }
.faq-q .chev svg { width: 15px; height: 15px; }
.faq-item.open .chev { transform: rotate(180deg); background: var(--grad); color: #04121c; border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding: 0 26px 24px; color: var(--muted); font-size: 15px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 72px 56px; text-align: center; border: 1px solid var(--line-strong); }
.cta-band .grid-bg { mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 30%, transparent 100%); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0.1; pointer-events: none;
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; position: relative; font-size: 17px; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; position: relative; }
.cta-note { margin-top: 20px; font-size: 13px; color: var(--muted); position: relative; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { position: relative; padding: calc(var(--nav-h) + 84px) 0 72px; overflow: hidden; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 18px; }
.page-hero .hero-lead { margin-inline: auto; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ============================================================
   About page
   ============================================================ */
.mission-card {
  border-radius: var(--radius-lg); padding: 44px 42px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08));
}
.mission-card h3 { font-size: 24px; margin-bottom: 14px; }
.mission-card p { color: var(--text-soft); font-size: 16px; }
.stats-banner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-box { text-align: center; padding: 34px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.stat-box .num { font-family: var(--font-head); font-size: 40px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-box .label { color: var(--muted); font-size: 14px; margin-top: 6px; }
.value-card { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); height: 100%; }
.value-card .fc-icon { width: 48px; height: 48px; margin-bottom: 16px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--muted); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: start; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 18px; transition: transform 0.25s ease, border-color 0.25s ease;
}
.info-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.info-card .fc-ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.info-card .fc-ic svg { width: 21px; height: 21px; }
.info-card h3 { font-size: 16px; margin-bottom: 4px; }
.info-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.info-card a:hover { color: var(--accent); }

.form-card {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2); padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.form-field label span { color: var(--rose); }
.form-field input, .form-field textarea {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  color: var(--text); font-size: 15px; transition: border-color 0.25s ease, box-shadow 0.25s ease; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.form-err { color: var(--rose); font-size: 12.5px; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--rose); }
.form-field.invalid .form-err { display: block; }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin: 0 auto 18px; color: #04121c; }
.form-success .ok-ic svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 15px; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); margin-top: 0; filter: grayscale(0.35) invert(0.92) hue-rotate(190deg) saturate(1.4); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text-soft);
  transition: all 0.25s ease;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { color: #04121c; background: var(--grad); border-color: transparent; transform: translateY(-4px); box-shadow: 0 10px 26px rgba(56, 189, 248, 0.3); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding: 72px 0 54px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 18px 0 24px; max-width: 320px; }
.footer-col h4 { font-size: 15px; letter-spacing: 0.04em; margin-bottom: 20px; color: #fff; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13.5px; color: var(--muted); }
.footer-bottom a { color: var(--text-soft); }
.footer-bottom a:hover { color: var(--accent); }
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--accent);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.3s ease; box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--grad); color: #04121c; }
.back-top svg { width: 20px; height: 20px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .hero-visual .frame img { height: 440px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-media { max-width: 640px; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .main-nav, .nav-cta .btn-nav { display: none; }
  .menu-toggle { display: grid; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat .num { font-size: 24px; }
  .stat + .stat { padding-left: 12px; }
  .float-card.fc-1 { left: -6px; top: 20px; }
  .float-card.fc-2 { right: -6px; }
  .grid-3, .grid-6, .tm-grid, .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { padding: 52px 24px; }
  .hero-cta .btn { flex: 1; }
  .split-media .badge-card { right: 8px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
  .stat { padding-top: 14px; }
  .btn-lg { padding: 15px 26px; }
}

/* Reduced motion for float cards */
@media (prefers-reduced-motion: reduce) {
  .float-card, .hero-badge .dot { animation: none; }
}
