/* =========================================================
   余尚雷 · 项目展示
   单页静态站，无外部依赖
   ========================================================= */

:root {
  --ink: #141412;
  --ink-soft: #3b3a36;
  --muted: #77746c;
  --paper: #f6f3ec;
  --paper-2: #efebe1;
  --white: #fffdf8;
  --line: rgba(20, 20, 18, .14);
  --line-strong: rgba(20, 20, 18, .28);
  --accent: #2457ff;
  --accent-2: #ff5c35;
  --green: #1f8a5b;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --shadow: 0 24px 70px rgba(20, 20, 18, .10);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 999;
  background: var(--ink); color: var(--white); padding: 10px 16px;
  border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 243, 236, .94); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--ink); color: var(--white); border-radius: 10px;
  font-family: var(--serif); font-size: 14px; letter-spacing: .02em;
}
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.brand-text span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--ink); transition: right .25s;
}
.site-nav a:hover::after { right: 0; }
.nav-cta {
  background: var(--ink); color: var(--white) !important; padding: 9px 16px;
  border-radius: 999px; transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-size: 12px; letter-spacing: .13em;
  text-transform: uppercase; font-weight: 600;
}
.eyebrow.light { color: rgba(255,255,255,.62); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); display: inline-block; }
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2, .hero h1, .about h2, .contact h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.045em; line-height: 1.14;
}
.section-head h2 { font-size: clamp(38px, 5vw, 64px); margin: 18px 0 20px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 620px; }
.split { max-width: none; display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 40px; }
.split .section-lead { justify-self: end; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 0; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(36, 87, 255, .10), transparent 65%),
    radial-gradient(700px 500px at 8% 88%, rgba(255, 92, 53, .08), transparent 62%),
    linear-gradient(rgba(20,20,18,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,18,.035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 64px; align-items: center; padding-bottom: 58px; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(50px, 6.2vw, 88px); margin: 22px 0 26px; }
.hero-line { white-space: nowrap; }
.accent { color: var(--accent); font-style: italic; }
.hero-lead { max-width: 570px; color: var(--ink-soft); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 46px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 600;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.3); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--white); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); max-width: 590px; }
.hero-stats div { padding: 18px 16px 0 0; }
.hero-stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero-stats dt { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.hero-stats dd { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }

/* hero visual */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.console-card {
  width: min(100%, 390px); background: #1a1a18; color: #e9e7df;
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(1.5deg); border: 1px solid rgba(255,255,255,.08);
}
.console-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: rgba(255,255,255,.55); }
.lights { display: inline-flex; gap: 5px; }
.lights i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.console-live { margin-left: auto; color: #7ee2a8; letter-spacing: .1em; font-size: 10px; }
.console-body { padding: 22px 20px 18px; }
.console-line { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; padding: 10px 0; font-size: 13px; border-bottom: 1px dashed rgba(255,255,255,.1); }
.console-line .muted { color: rgba(255,255,255,.35); font-family: ui-monospace, monospace; }
.console-line .ok { color: #7ee2a8; font-size: 11px; }
.console-line .wip { color: #ffb36b; font-size: 11px; }
.console-line .queued { color: rgba(255,255,255,.4); font-size: 11px; }
.console-progress { height: 4px; background: rgba(255,255,255,.12); border-radius: 99px; margin: 20px 0 14px; overflow: hidden; }
.console-progress span { display: block; width: 67%; height: 100%; background: linear-gradient(90deg, #7ee2a8, #ffb36b); border-radius: inherit; }
.console-meta { display: flex; justify-content: space-between; color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .08em; }
.floating-chip { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 12px; box-shadow: 0 8px 24px rgba(20,20,18,.08); }
.chip-a { top: 34px; right: 6%; transform: rotate(4deg); }
.chip-b { bottom: 74px; left: 2%; transform: rotate(-4deg); }
.chip-c { right: 0; bottom: 30px; transform: rotate(2deg); }
.floating-note { position: absolute; left: 10%; top: 34px; color: var(--muted); font-family: var(--serif); font-size: 14px; transform: rotate(-2deg); }
.tech-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.tech-strip span::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; padding: 30px 28px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.16); transition: background .25s, transform .25s; }
.service-card:hover { background: var(--white); transform: translateY(-3px); }
.service-no { font-family: ui-monospace, monospace; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.service-card h3 { font-family: var(--serif); font-size: 25px; margin: 16px 0 10px; letter-spacing: -.03em; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.75; min-height: 74px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { font-size: 11px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }

/* ---------- work ---------- */
.work { background: var(--paper-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 28px; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 15px; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.case-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(20,20,18,.09); }
.case-card.is-hidden { display: none; }
.case-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; }
.case-media { position: relative; background: #e7e2d6; overflow: hidden; min-height: 260px; }
.case-featured .case-media { min-height: 420px; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-media img { transform: scale(1.025); }
.browser-frame { padding: 30px 24px 0; background: #dfd9cb; }
.case-featured .browser-frame { padding: 40px 32px 0; }
.browser-frame img { border-radius: 12px 12px 0 0; border: 1px solid rgba(20,20,18,.14); border-bottom: 0; box-shadow: 0 16px 40px rgba(20,20,18,.12); }
.frame-bar { position: absolute; top: 12px; left: 24px; right: 24px; height: 18px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.case-featured .frame-bar { top: 16px; left: 32px; right: 32px; }
.frame-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(20,20,18,.2); }
.frame-bar em { margin-left: 8px; font-style: normal; opacity: .7; }
.phone-frame { display: grid; place-items: center; padding: 28px 20px 0; background: #dfe5dc; }
.phone-frame img { width: auto; max-height: 360px; border-radius: 24px 24px 0 0; border: 6px solid #1d1d1b; border-bottom: 0; box-shadow: 0 18px 40px rgba(20,20,18,.18); object-fit: cover; object-position: top; }
.phone-notch { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); width: 52px; height: 6px; border-radius: 99px; background: #1d1d1b; opacity: .75; }
.case-body { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.case-featured .case-body { padding: 42px 38px; justify-content: center; }
.case-topline { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.case-body h3 { font-family: var(--serif); font-size: 28px; letter-spacing: -.035em; margin: 10px 0 9px; }
.case-featured .case-body h3 { font-size: clamp(32px, 3.6vw, 46px); }
.case-body p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.case-points { margin: 16px 0 0; display: grid; gap: 7px; color: var(--ink-soft); font-size: 13px; }
.case-points li { display: flex; gap: 8px; }
.case-points li::before { content: "↳"; color: var(--accent); }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: auto; padding-top: 22px; }
.text-btn { border: 0; background: transparent; padding: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.text-btn span { transition: transform .2s; }
.text-btn:hover span { transform: translateX(3px); }
.text-btn:hover { color: var(--accent); }
.muted-link { color: var(--muted); font-weight: 500; }
.work-note { margin-top: 28px; color: var(--muted); font-size: 13px; }

/* mockups */
.mockup { min-height: 290px; display: grid; place-items: center; position: relative; }
.mock-label { position: absolute; left: 18px; bottom: 16px; font-size: 10px; letter-spacing: .12em; color: rgba(20,20,18,.45); text-transform: uppercase; }
.mock-map { background: #dfe9e1; overflow: hidden; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(20,20,18,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(20,20,18,.08) 1px, transparent 1px); background-size: 32px 32px; transform: rotate(-8deg) scale(1.25); }
.map-route { position: absolute; width: 58%; height: 44%; border: 2px dashed var(--accent); border-radius: 45% 55% 40% 60%; transform: rotate(-10deg); opacity: .8; }
.map-pin { position: absolute; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--accent-2); transform: rotate(-45deg); box-shadow: 0 0 0 5px rgba(255,92,53,.15); }
.map-pin.p1 { left: 28%; top: 36%; } .map-pin.p2 { left: 54%; top: 26%; } .map-pin.p3 { left: 62%; top: 60%; }
.mock-dashboard { background: #e6e4dc; padding: 24px; align-content: center; }
.dash-top { display: flex; gap: 5px; position: absolute; top: 14px; left: 18px; }
.dash-top span { width: 6px; height: 6px; border-radius: 50%; background: rgba(20,20,18,.2); }
.dash-kpis { display: flex; gap: 8px; margin-bottom: 14px; }
.dash-kpis i { width: 54px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.8); border: 1px solid rgba(20,20,18,.08); }
.dash-chart { width: 100%; height: 92px; display: flex; align-items: end; gap: 8px; padding: 12px; background: rgba(255,255,255,.75); border: 1px solid rgba(20,20,18,.08); border-radius: 10px; }
.dash-chart span { flex: 1; background: var(--accent); opacity: .75; border-radius: 3px 3px 0 0; }
.dash-chart span:nth-child(1) { height: 38%; } .dash-chart span:nth-child(2) { height: 62%; } .dash-chart span:nth-child(3) { height: 48%; } .dash-chart span:nth-child(4) { height: 78%; } .dash-chart span:nth-child(5) { height: 58%; } .dash-chart span:nth-child(6) { height: 88%; }
.mock-phone { background: #ece3dc; }
.mini-phone { width: 126px; height: 238px; border-radius: 22px; background: #fffdf8; border: 5px solid #1d1d1b; padding: 14px 10px; box-shadow: 0 18px 30px rgba(20,20,18,.16); display: flex; flex-direction: column; gap: 8px; }
.mini-bar { width: 38px; height: 5px; border-radius: 99px; background: #1d1d1b; margin: 0 auto 6px; }
.mini-line { height: 6px; border-radius: 99px; background: rgba(20,20,18,.13); }
.mini-line.w70 { width: 70%; } .mini-line.w45 { width: 45%; }
.mini-card { height: 54px; border-radius: 8px; background: #f0ece2; } .mini-card.short { height: 38px; }
.mini-btn { height: 22px; border-radius: 99px; background: var(--accent); margin-top: auto; opacity: .85; }
.mock-ledger { background: #e8e6df; }
.ledger-card { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); width: 68%; background: #fffdf8; border: 1px solid rgba(20,20,18,.1); border-radius: 12px; padding: 16px; box-shadow: 0 14px 30px rgba(20,20,18,.1); }
.ledger-label { display: block; color: var(--muted); font-size: 10px; }
.ledger-card strong { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: -.03em; margin: 4px 0 2px; }
.ledger-sub { color: var(--green); font-size: 10px; }
.ledger-row { position: absolute; left: 18%; right: 18%; display: flex; align-items: center; gap: 8px; }
.ledger-row:nth-of-type(2) { top: 66%; } .ledger-row:nth-of-type(3) { top: 76%; }
.ledger-row i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); }
.ledger-row span { flex: 1; height: 5px; border-radius: 99px; background: rgba(20,20,18,.1); }
.ledger-row em { width: 34px; height: 5px; border-radius: 99px; background: rgba(20,20,18,.14); } .ledger-row em.ok { background: var(--green); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps li { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 190px; }
.step-no { font-family: ui-monospace, monospace; font-size: 11px; color: var(--accent); }
.steps h3 { font-family: var(--serif); font-size: 23px; margin: 16px 0 8px; letter-spacing: -.03em; }
.steps p { color: var(--muted); font-size: 13px; line-height: 1.75; }

/* ---------- about ---------- */
.about { background: var(--ink); color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; }
.about h2 { font-size: clamp(42px, 5.5vw, 72px); margin: 18px 0 24px; }
.about-copy p { color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.9; margin-bottom: 16px; max-width: 540px; }
.about-actions { margin-top: 28px; }
.about-panels { align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-panel { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 22px; background: rgba(255,255,255,.03); }
.about-panel h3 { font-size: 14px; margin-bottom: 12px; letter-spacing: .05em; }
.about-panel li { color: rgba(255,255,255,.62); font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; gap: 8px; }
.about-panel li::before { content: "·"; color: var(--accent-2); }
.about-panel li:last-child { border-bottom: 0; }
.muted-panel { opacity: .8; }
.about-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); margin-top: 6px; }
.about-facts div { padding: 18px 12px 0 0; }
.about-facts strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.about-facts span { color: rgba(255,255,255,.5); font-size: 11px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.contact h2 { font-size: clamp(48px, 6vw, 82px); margin: 18px 0 22px; }
.contact-lead { color: var(--muted); font-size: 16px; max-width: 520px; }
.contact-list { margin: 28px 0 30px; display: grid; gap: 10px; max-width: 480px; }
.contact-list li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.contact-list span { font-family: ui-monospace, monospace; font-size: 10px; color: var(--accent); }
.contact-card { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-card-head { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 24px; }
.contact-item { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-label { width: 54px; color: rgba(255,255,255,.45); font-size: 11px; }
.contact-item a, .contact-value { color: var(--white); text-decoration: none; font-size: 14px; }
.contact-item a:hover { color: #9db4ff; }
.copy-btn { margin-left: auto; border: 1px solid rgba(255,255,255,.24); background: transparent; color: rgba(255,255,255,.72); font-size: 11px; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.1); }
.contact-note { color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.8; margin: 20px 0 18px; }
.qr-placeholder { display: flex; gap: 10px; }
.qr-box { width: 72px; height: 72px; border: 1px dashed rgba(255,255,255,.25); border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.35); font-size: 10px; text-align: center; line-height: 1.5; }
.qr-image { width: 96px; height: 96px; border: 0; background: #fff; padding: 4px; text-decoration: none; }
.qr-image img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ===== FAQ ===== */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { display: flex; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); font-size: 13px; line-height: 1.85; margin-top: 12px; max-width: 520px; }

.template-btn { margin: 0 0 16px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.template-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 42px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.footer-inner > div:first-child { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 11px; }

/* ---------- dialog ---------- */
.case-dialog { width: min(680px, calc(100% - 36px)); border: 0; border-radius: 20px; padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 30px 100px rgba(20,20,18,.3); }
.case-dialog::backdrop { background: rgba(20,20,18,.5); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.dialog-body { padding: 38px 38px 34px; }
.dialog-body h2 { font-family: var(--serif); font-size: 38px; letter-spacing: -.04em; margin: 10px 0 12px; }
.dialog-desc { color: var(--muted); font-size: 15px; line-height: 1.85; }
.dialog-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-meta span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.dialog-meta strong { font-size: 13px; font-weight: 600; }
.dialog-points { display: grid; gap: 9px; margin: 20px 0 0; }
.dialog-points li { display: flex; gap: 9px; color: var(--ink-soft); font-size: 13px; }
.dialog-points li::before { content: "↳"; color: var(--accent); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dialog-actions .btn { min-height: 44px; font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { animation: revealIn .8s cubic-bezier(.2,.7,.2,1) both; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { min-height: 360px; }
  .console-card { transform: rotate(0.8deg); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-featured { grid-template-columns: 1fr; }
  .case-featured .case-media { min-height: 320px; }
  .case-featured .case-body { padding: 30px; }
  .split { grid-template-columns: 1fr; }
  .split .section-lead { justify-self: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .site-nav { gap: 20px; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: 64px; }
  .brand-text span { display: none; }
  .site-header .header-inner { position: relative; }
  .nav-toggle { display: block !important; position: absolute; right: 0; top: 11px; width: 42px; height: 42px; background: var(--ink); border-color: var(--ink); z-index: 60; }
  .nav-toggle span { height: 2px; background: var(--white); }
  .site-nav {
    position: absolute; left: 16px; right: 16px; top: 70px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: 14px; padding: 10px; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; border-radius: 9px; }
  .site-nav a:hover { background: var(--paper-2); }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 4px; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(37px, 10.8vw, 48px); }
  .hero-line { white-space: normal; }
  .hero-lead { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { padding: 12px 8px 0 0; }
  .hero-stats div + div { padding-left: 12px; border-left: 1px solid var(--line); border-top: 0; }
  .hero-stats dt { font-size: 21px; }
  .hero-stats dd { font-size: 10px; }
  .hero-visual { min-height: 300px; }
  .floating-note { display: none; }
  .chip-a { top: 8px; } .chip-b { bottom: 8px; left: 0; } .chip-c { display: none; }
  .section { padding: 72px 0; }
  .section-head h2 { font-size: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card p { min-height: 0; }
  .case-grid { grid-template-columns: 1fr; gap: 18px; }
  .case-featured { grid-column: auto; }
  .case-media, .mockup { min-height: 230px; }
  .case-featured .case-media { min-height: 240px; }
  .browser-frame { padding: 26px 14px 0; }
  .case-featured .browser-frame { padding: 28px 16px 0; }
  .frame-bar, .case-featured .frame-bar { left: 16px; right: 16px; }
  .case-body, .case-featured .case-body { padding: 22px 20px; }
  .case-body h3 { font-size: 26px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; padding: 22px; }
  .about h2, .contact h2 { font-size: 44px; }
  .about-panels { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .contact-card { padding: 24px; }
  .contact-item { flex-wrap: wrap; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .dialog-body { padding: 30px 22px 24px; }
  .dialog-body h2 { font-size: 30px; }
  .dialog-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
