/* ============================================================
   SudoBoard Official Site — design system
   Theme: "Ops Terminal" — deep obsidian navy, electric blue data
   bars, amber signal dot. Display: Chakra Petch · Data: IBM Plex
   Mono · CJK: Noto Sans SC.
   ============================================================ */

:root {
  /* surfaces */
  --bg-0: #06080c;
  --bg-1: #0b0e13;
  --bg-2: #10151d;
  --panel: #131a25;
  --panel-2: #182231;
  --line: #233141;
  --line-soft: rgba(56, 194, 255, 0.14);

  /* brand */
  --blue: #38c2ff;
  --blue-deep: #0077e8;
  --blue-grad: linear-gradient(180deg, #38c2ff 0%, #0077e8 100%);
  --blue-grad-x: linear-gradient(90deg, #38c2ff 0%, #0077e8 100%);
  --amber: #ffcf5c;
  --ok: #43d17c;
  --warn: #ff7a5c;

  /* text */
  --ink: #e8f6ff;
  --ink-2: #a9bed2;
  --ink-3: #6d8299;
  --ink-4: #4a5d72;

  /* fonts */
  --font-display: "Chakra Petch", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* metrics */
  --container: 1160px;
  --radius: 12px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- atmospheric background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(0, 119, 232, 0.20), transparent 60%),
    radial-gradient(900px 560px at 92% 4%, rgba(0, 119, 232, 0.10), transparent 55%),
    radial-gradient(1400px 900px at 50% 118%, rgba(120, 60, 255, 0.07), transparent 60%),
    var(--bg-0);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(56, 194, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 194, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.68 0 0 0 0 0.8 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(56, 194, 255, 0.30); color: #fff; }

/* ---------- typography helpers ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.section-kicker::before { content: "▸ "; color: var(--blue); }
.section-title { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 14px; }
.section-sub { color: var(--ink-2); max-width: 640px; font-size: 15.5px; }

.grad-text {
  background: var(--blue-grad-x);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.amber-dot { color: var(--amber); }

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

section { position: relative; padding: 96px 0; }
section.alt { background: linear-gradient(180deg, transparent, rgba(16, 21, 29, 0.75) 12%, rgba(16, 21, 29, 0.75) 88%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 12, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 18px rgba(0, 119, 232, 0.45); }
.brand .b-sub { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.18em; display: block; font-weight: 400; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  font-family: var(--font-body);
}
.nav-links a:hover { color: var(--ink); background: rgba(56, 194, 255, 0.09); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--blue) !important;
  background: transparent !important;
  border: 1px solid rgba(56, 194, 255, 0.4);
  border-radius: 8px;
  padding: 7px 15px !important;
  box-shadow: none;
}
.nav-cta:hover { border-color: var(--blue); background: rgba(56, 194, 255, 0.08) !important; color: var(--blue) !important; filter: none; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 8, 12, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    display: none;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { text-align: center; }
}

/* ---------- hero ---------- */
.hero { padding: 92px 0 70px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: rgba(16, 21, 29, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  letter-spacing: 0.08em;
  margin-bottom: 26px;
}
.sig-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 207, 92, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 207, 92, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 207, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 207, 92, 0); }
}
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; letter-spacing: -0.015em; }
.hero h1 .thin { font-weight: 400; color: var(--ink-3); display: block; font-size: 0.62em; letter-spacing: 0.02em; }
.hero h1 .grad-text { display: block; white-space: nowrap; }
.hero p.lead { margin: 22px 0 30px; color: var(--ink-2); font-size: 16.5px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  font-family: var(--font-mono);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border-radius: 9px;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  border: 1px solid transparent;
}
.btn-primary { color: #04121f; background: var(--blue-grad-x); font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 119, 232, 0.9); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(16, 21, 29, 0.6); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }
.hero-stats { display: flex; gap: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(12, 17, 24, 0.65); }
.stat {
  flex: 1;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat b em { font-style: normal; color: var(--blue); }
.stat span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- phone mockup ---------- */
.hero-stage { position: relative; display: flex; justify-content: center; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 2% 0;
  background: radial-gradient(60% 55% at 50% 30%, rgba(56, 194, 255, 0.16), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(180deg, #202c3d, #0c111a 55%);
  border: 1px solid #32455c;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 60px -18px rgba(0, 119, 232, 0.35);
  transform: perspective(1200px) rotateY(-9deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.phone:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 20px;
  border-radius: 999px;
  background: #0a0e15;
  z-index: 3;
  border: 1px solid #1d2a3a;
}
.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid #0a0e15;
  height: 560px;
  display: flex;
  flex-direction: column;
}
.scr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 14px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.scr-topbar .t-name { color: var(--ink); display: flex; align-items: center; gap: 6px; }
.scr-live { color: var(--ok); display: flex; align-items: center; gap: 6px; }
.scr-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
.scr-body { flex: 1; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.mock-card {
  background: linear-gradient(180deg, rgba(24, 34, 51, 0.9), rgba(17, 24, 36, 0.9));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.mock-card .m-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; display: flex; justify-content: space-between; }
.mock-card .m-del { color: var(--ok); }
.mock-card .m-val { font-family: var(--font-display); font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; line-height: 1.1; }
.mock-card .m-val small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.m-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 10px; }
.m-bars i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #38c2ff, #0077e8);
  animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transform-origin: bottom;
}
.m-bars i:nth-child(1) { height: 42%; animation-delay: 0.05s; opacity: 0.62; }
.m-bars i:nth-child(2) { height: 68%; animation-delay: 0.12s; opacity: 0.72; }
.m-bars i:nth-child(3) { height: 34%; animation-delay: 0.19s; opacity: 0.55; }
.m-bars i:nth-child(4) { height: 86%; animation-delay: 0.26s; }
.m-bars i:nth-child(5) { height: 56%; animation-delay: 0.33s; opacity: 0.68; }
.m-bars i:nth-child(6) { height: 74%; animation-delay: 0.4s; opacity: 0.8; }
.m-bars i:nth-child(7) { height: 44%; animation-delay: 0.47s; opacity: 0.6; }
.m-bars i:nth-child(8) { height: 62%; animation-delay: 0.54s; opacity: 0.75; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.m-trend { display: flex; align-items: flex-end; height: 46px; margin-top: 8px; gap: 20px; }
.m-trend svg { width: 100%; height: 100%; }
.m-trend path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s 0.5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scr-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.16em;
}
.hero-float {
  position: absolute;
  z-index: 2;
  background: rgba(13, 19, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
  white-space: nowrap;
}
.hero-float.f1 { top: 16%; left: 4px; }
.hero-float.f2 { bottom: 24%; right: 10px; animation-delay: 2.4s; }
.hero-float .ok { color: var(--ok); }
.hero-float .sync { color: var(--amber); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { transform: scale(0.94); margin-top: 10px; }
  .phone { transform: none; }
}

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(9, 13, 19, 0.85); overflow: hidden; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 13px 26px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.ticker-track span::after { content: "◆"; color: var(--blue); font-size: 8px; }
.ticker-track span b { color: var(--ink); font-weight: 500; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- problem / why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  background: linear-gradient(180deg, rgba(19, 26, 37, 0.85), rgba(15, 20, 29, 0.85));
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.why-card:hover { border-color: rgba(56, 194, 255, 0.5); transform: translateY(-4px); }
.why-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue-grad-x);
  opacity: 0;
  transition: opacity 0.2s;
}
.why-card:hover::after { opacity: 1; }
.why-num { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: 0.2em; }
.why-card h3 { font-size: 19px; margin: 10px 0 8px; }
.why-card p { color: var(--ink-2); font-size: 14.5px; }
.why-card .fix {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--blue);
  letter-spacing: 0.06em;
  border: 1px dashed rgba(56, 194, 255, 0.4);
  border-radius: 7px;
  padding: 5px 10px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 26, 37, 0.8), rgba(14, 19, 28, 0.9));
  padding: 26px 24px 24px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.feat:hover { border-color: rgba(56, 194, 255, 0.5); transform: translateY(-4px); }
.feat-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 119, 232, 0.14);
  border: 1px solid rgba(56, 194, 255, 0.3);
  margin-bottom: 16px;
}
.feat-ico svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 17.5px; }
.feat p { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.feat ul { list-style: none; margin-top: 14px; display: grid; gap: 7px; }
.feat li { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: baseline; }
.feat li::before { content: "＋"; color: var(--blue); font-size: 10px; }
.feat-tag {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.18em;
}
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- pipeline / how it works ---------- */
.how-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.how-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  background: rgba(16, 21, 29, 0.7);
}
.how-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 194, 255, 0.5);
  position: absolute;
  top: 16px; right: 18px;
}
.how-step .hs-num { font-family: var(--font-mono); font-size: 11px; color: var(--amber); letter-spacing: 0.18em; }
.how-step h3 { font-size: 17px; margin: 10px 0 8px; }
.how-step p { color: var(--ink-2); font-size: 14px; }
.how-arrow { position: absolute; top: 50%; right: -17px; color: var(--blue); z-index: 2; font-size: 14px; transform: translateY(-50%); }
.how-step:last-child .how-arrow { display: none; }
@media (max-width: 980px) {
  .how-row { grid-template-columns: repeat(2, 1fr); }
  .how-arrow { display: none; }
}
@media (max-width: 560px) { .how-row { grid-template-columns: 1fr; } }

/* ---------- skill section ---------- */
.skill-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
  margin-top: 44px;
}
.terminal {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0a0f16;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #121a26;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #ff5f56; }
.term-bar i:nth-child(2) { background: #ffbd2e; }
.term-bar i:nth-child(3) { background: #27c93f; }
.term-bar .t-title { margin-left: 10px; }
.term-body { padding: 18px 18px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; min-height: 300px; }
.term-body .ln { display: block; white-space: pre-wrap; word-break: break-all; }
.term-body .prompt { color: var(--blue); }
.term-body .ok { color: var(--ok); }
.term-body .sync { color: var(--amber); }
.term-body .dim { color: var(--ink-4); }
.term-body .cmd { color: var(--ink); }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: var(--blue); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.skill-points { display: grid; gap: 16px; margin-top: 34px; }
.skill-point { display: flex; gap: 14px; align-items: flex-start; }
.skill-point .sp-ico { flex: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(56, 194, 255, 0.3); background: rgba(0, 119, 232, 0.12); display: grid; place-items: center; color: var(--blue); font-family: var(--font-mono); font-size: 15px; }
.skill-point h4 { font-size: 16px; font-family: var(--font-display); }
.skill-point p { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
@media (max-width: 980px) { .skill-wrap { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery { margin-top: 44px; }
.gallery-head { text-align: center; }
.gallery-head .section-sub { margin-left: auto; margin-right: auto; }

/* 设备实拍：两张竖图等高、同基线、整组居中（不再错位） */
.gallery-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: 32px;
}
.frame {
  position: relative;
  width: 240px;
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(180deg, #202c3d, #0c111a);
  border: 1px solid #32455c;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9);
}
.frame img { display: block; width: 100%; border-radius: 22px; border: 1px solid #0a0e15; }
.frame figcaption { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.14em; margin-top: 14px; text-transform: uppercase; }

/* 图片长廊：横版界面用大图横向滑动，避免挤成三列看不清 */
.shot-strip { position: relative; margin-top: 46px; }
.shot-strip-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shot-strip-track::-webkit-scrollbar { display: none; }
.shot-strip-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 18px; }
.frame.wide {
  flex: 0 0 clamp(300px, 54vw, 640px);
  width: auto;
  scroll-snap-align: center;
  border-radius: 16px;
  padding: 9px;
  background: linear-gradient(180deg, #202c3d, #0c111a);
  border: 1px solid #32455c;
  box-shadow: 0 34px 70px -32px rgba(0, 0, 0, 0.85);
}
.frame.wide img { border-radius: 9px; aspect-ratio: 16 / 9; object-fit: cover; }
.frame.wide figcaption { margin-top: 11px; }

.strip-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 0 2px 14px;
}
.strip-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.strip-tools { display: flex; align-items: center; gap: 8px; }
.strip-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 21, 29, 0.7);
  color: var(--ink-2);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: color .15s, border-color .15s, opacity .15s, background .15s;
}
.strip-btn:hover { color: var(--blue); border-color: var(--blue); background: rgba(56,194,255,0.08); }
.strip-btn[disabled] { opacity: .3; cursor: default; color: var(--ink-4); border-color: var(--line); background: rgba(16,21,29,0.7); }

/* 右侧渐隐：提示还有内容可滑动（滑到末尾自动消失） */
.shot-strip::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 40px; width: 96px;
  background: linear-gradient(90deg, rgba(6, 8, 12, 0) 0%, rgba(6, 8, 12, 0.92) 82%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .25s;
}
.shot-strip.at-end::after { opacity: 0; }
.shot-strip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 40px; width: 96px;
  background: linear-gradient(270deg, rgba(6, 8, 12, 0) 0%, rgba(6, 8, 12, 0.92) 82%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .25s;
  z-index: 1;
}
.shot-strip.at-start::before { opacity: 0; }

.strip-hint {
  margin: 6px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.strip-hint b { color: var(--ink-2); font-weight: 600; }

@media (max-width: 900px) {
  .strip-tools { display: none; }
  .strip-head { justify-content: center; }
  .frame.wide { flex: 0 0 min(86vw, 560px); scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .gallery-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gallery-phones .frame { width: 100%; padding: 7px; border-radius: 22px; }
  .gallery-phones .frame img { border-radius: 16px; }
  .gallery-phones .frame figcaption { font-size: 10px; letter-spacing: .08em; }
}

/* ---------- how-to address strip ---------- */
.addr-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 34px;
  padding: 16px 20px;
  border: 1px solid rgba(56, 194, 255, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 26, 37, 0.85), rgba(12, 17, 25, 0.9));
  font-size: 13.5px;
  color: var(--ink-2);
}
.addr-strip .as-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--amber); text-transform: uppercase; }
.addr-strip .as-cell { white-space: nowrap; }
.addr-strip code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
  background: rgba(56, 194, 255, 0.1);
  border: 1px solid rgba(56, 194, 255, 0.25);
  border-radius: 6px;
  padding: 3px 9px;
}
.addr-strip .as-part { white-space: nowrap; color: var(--ink-3); }
.addr-strip .as-part code { color: var(--amber); border-color: rgba(255, 207, 92, 0.3); background: rgba(255, 207, 92, 0.08); }
.addr-strip .as-arr { color: var(--blue); font-family: var(--font-mono); }
.gal-note { color: var(--ink-3); font-size: 13px; font-family: var(--font-mono); }
.gal-note code { color: var(--blue); }

/* ---------- i18n ---------- */
.i18n-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.i18n-cell { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; text-align: center; background: rgba(16, 21, 29, 0.6); }
.i18n-cell .big { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); }
.i18n-cell .code { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em; display: block; margin-top: 4px; text-transform: uppercase; }
.i18n-cell p { color: var(--ink-2); font-size: 13.5px; margin-top: 10px; }
.i18n-cell.current { border-color: rgba(255, 207, 92, 0.55); }
.i18n-cell.current .code { color: var(--amber); }
@media (max-width: 720px) { .i18n-grid { grid-template-columns: 1fr; } }

/* ---------- stack / milestones / structure ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.stack span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: rgba(16, 21, 29, 0.6);
  transition: border-color 0.2s, color 0.2s;
}
.stack span:hover { border-color: rgba(56, 194, 255, 0.55); color: var(--blue); }
.tbl-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: rgba(16, 21, 29, 0.8); }
td { color: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(56, 194, 255, 0.05); }
.chip { font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.06em; white-space: nowrap; max-width: 100%; }
@media (max-width: 640px) {
  .chip { white-space: normal; overflow-wrap: anywhere; }
}
.chip.ok { color: var(--ok); border: 1px solid rgba(67, 209, 124, 0.4); background: rgba(67, 209, 124, 0.08); }
.chip.info { color: var(--blue); border: 1px solid rgba(56, 194, 255, 0.4); background: rgba(56, 194, 255, 0.08); }
.chip.warn { color: var(--amber); border: 1px solid rgba(255, 207, 92, 0.4); background: rgba(255, 207, 92, 0.08); }
.code-tree {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  background: #0a0f16;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
  margin-top: 28px;
  white-space: pre;
}
.code-tree .c { color: var(--blue); }
.code-tree .d { color: var(--amber); }
.code-tree .m { color: var(--ink-4); }

/* ---------- docs links ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.doc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink-2); background: rgba(16, 21, 29, 0.6); transition: border-color 0.2s, transform 0.2s; }
.doc-card:hover { border-color: rgba(56, 194, 255, 0.5); transform: translateY(-3px); }
.doc-card h4 { font-family: var(--font-mono); font-size: 14.5px; color: var(--ink); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.doc-card h4 .ext { color: var(--blue); }
.doc-card p { font-size: 13px; margin-top: 8px; }
.doc-card .dim { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); display: block; margin-top: auto; padding-top: 14px; }
@media (max-width: 900px) { .docs-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-box {
  border: 1px solid rgba(56, 194, 255, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(0, 119, 232, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(19, 26, 37, 0.9), rgba(11, 15, 22, 0.95));
  padding: 64px 30px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(56, 194, 255, 0.6), transparent 35%, transparent 65%, rgba(255, 207, 92, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(26px, 4vw, 38px); }
.cta-box p { color: var(--ink-2); max-width: 560px; margin: 14px auto 30px; }
.cta-box .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: rgba(6, 8, 12, 0.9); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--ink-3); font-size: 13.5px; max-width: 320px; margin-top: 14px; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color 0.15s; }
.foot-col a:hover { color: var(--blue); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); letter-spacing: 0.06em; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   skill.html specifics
   ============================================================ */
.skill-hero { padding: 70px 0 56px; }
.skill-hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
.skill-hero .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.skill-body { max-width: 880px; }
.stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 26, 37, 0.8), rgba(14, 19, 28, 0.9));
  padding: 30px 28px;
  margin-top: 22px;
  position: relative;
}
.stage .stage-num { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: 0.2em; }
.stage h2 { font-size: 22px; margin: 8px 0 12px; }
.stage h3 { font-size: 15.5px; margin: 20px 0 8px; color: var(--blue); font-family: var(--font-display); }
.stage p, .stage li { color: var(--ink-2); font-size: 14.5px; }
.stage ul, .stage ol { padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.stage code, .inline-code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(56, 194, 255, 0.1); border: 1px solid rgba(56, 194, 255, 0.18); color: var(--blue); border-radius: 5px; padding: 1.5px 7px; }
pre.codebox {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  background: #0a0f16;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 14px 0 4px;
}
pre.codebox .cm { color: var(--ink-4); }
pre.codebox .ck { color: var(--amber); }
pre.codebox .cs { color: var(--ok); }
pre.codebox .cb { color: var(--blue); }
.callout {
  border-left: 3px solid var(--amber);
  background: rgba(255, 207, 92, 0.07);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 16px 0;
  color: var(--ink-2);
  font-size: 14px;
}
.flowline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 16px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0f16;
}
.flowline span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(56, 194, 255, 0.08);
  border: 1px solid rgba(56, 194, 255, 0.22);
  border-radius: 7px;
  padding: 5px 11px;
  white-space: nowrap;
}
.flowline i { font-style: normal; color: var(--blue); font-size: 12px; }
.callout.blue { border-left-color: var(--blue); background: rgba(56, 194, 255, 0.07); }
.callout.red { border-left-color: var(--warn); background: rgba(255, 122, 92, 0.07); }
.toc { position: sticky; top: 88px; align-self: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: rgba(12, 17, 24, 0.7); }
.toc h6 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc a { display: block; color: var(--ink-2); text-decoration: none; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed rgba(35, 49, 65, 0.6); }
.toc a:hover { color: var(--blue); }
.skill-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .skill-layout { grid-template-columns: 1fr; } .toc { position: static; } }
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); text-decoration: none; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; margin-bottom: 22px; }
.backlink:hover { color: var(--blue); }
.backlink::before { content: "←"; }

/* ---------- chat mock (AI skill section) ---------- */
.chat {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0a0f16;
}
.chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #121a26;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.chat-bar i { width: 10px; height: 10px; border-radius: 50%; }
.chat-bar i:nth-child(1) { background: #ff5f56; }
.chat-bar i:nth-child(2) { background: #ffbd2e; }
.chat-bar i:nth-child(3) { background: #27c93f; }
.chat-bar .t-title { margin-left: 10px; }
.chat-body { padding: 18px 18px 20px; min-height: 320px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 88%;
  padding: 11px 15px;
  font-size: 13.5px;
  line-height: 1.7;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.bubble.in { opacity: 1; transform: none; }
.bubble .who { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, #1c3a58, #122f49); border: 1px solid rgba(56, 194, 255, 0.32); color: var(--ink); border-bottom-right-radius: 4px; }
.bubble.user .who { color: var(--blue); }
.bubble.ai { align-self: flex-start; background: #141c29; border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.bubble .ok { color: var(--ok); font-weight: 500; }
.typing-dots { align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; padding: 12px 16px; background: #141c29; border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.2s; }
.typing-dots i:nth-child(3) { animation-delay: 0.4s; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; display: grid; gap: 12px; max-width: 820px; }
details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 29, 0.6);
  padding: 4px 20px;
  transition: border-color 0.2s;
}
details.faq:hover { border-color: rgba(56, 194, 255, 0.4); }
details.faq summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "＋"; color: var(--blue); font-family: var(--font-mono); font-size: 13px; flex: none; }
details.faq[open] summary::before { content: "－"; }
details.faq p { color: var(--ink-2); font-size: 14px; padding: 0 0 16px 26px; margin: 0; }

/* responsive spacing */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
}
/* ---------- Agent 安装：按钮 / 提示 / 弹窗 ---------- */
.btn-agent {
  background: linear-gradient(180deg, rgba(56,194,255,0.18), rgba(0,119,232,0.14));
  border: 1px solid var(--line-soft);
  color: var(--ink);
}
.btn-agent:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,194,255,0.10); }
.hero-hint { margin: 14px 0 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.8; }
.hero-hint a { color: var(--blue); text-decoration: none; border-bottom: 1px dashed rgba(56,194,255,0.4); }

.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,6,10,0.78); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: min(760px, 100%); max-height: 86vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-2); font-size: 18px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--ink); border-color: var(--blue); }
.modal-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--blue); }
.modal-panel h3 { margin: 8px 0 8px; font-size: 22px; }
.modal-sub { color: var(--ink-2); font-size: 14px; line-height: 1.8; margin: 0 0 18px; }
.copy-box { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); margin-bottom: 14px; overflow: hidden; }
.copy-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink-3);
}
.copy-btn {
  border: 1px solid var(--line); background: rgba(56,194,255,0.08); color: var(--blue);
  border-radius: 7px; padding: 4px 12px; font-size: 12px; cursor: pointer; font-family: var(--font-mono);
}
.copy-btn:hover { border-color: var(--blue); }
.copy-btn.done { color: var(--ok); border-color: rgba(67,209,124,0.5); background: rgba(67,209,124,0.10); }
.copy-box pre {
  margin: 0; padding: 14px 16px; overflow: auto; max-height: 260px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.modal-foot { color: var(--ink-3); font-size: 12.5px; margin: 6px 0 0; }
.modal-foot a { color: var(--blue); text-decoration: none; }
