/* yangle.app — shared stylesheet
   Dark-first, no external dependencies. */

:root {
  --bg: #0a0c11;
  --bg-soft: #0f121a;
  --panel: #12161f;
  --panel-2: #171c27;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf5;
  --muted: #98a2b6;
  --faint: #6b7688;
  --accent: #8b93ff;
  --accent-soft: rgba(139, 147, 255, 0.14);
  --radius: 16px;
  --maxw: 1120px;
}

/* per-product accents */
.accent-clip { --accent: #8b7cff; --accent-soft: rgba(139, 124, 255, 0.15); }
.accent-senseek { --accent: #2fd4b6; --accent-soft: rgba(47, 212, 182, 0.14); }
.accent-dlna { --accent: #ff8a4c; --accent-soft: rgba(255, 138, 76, 0.14); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 78% -12%, var(--accent-soft), transparent 70%),
    radial-gradient(700px 420px at 8% 4%, rgba(120, 140, 255, 0.08), transparent 65%);
  z-index: 0;
}

.wrap { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 17, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  gap: 3px;
}

.brand-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1;
}

.brand small {
  color: var(--faint);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: block;
}

.brand-mark svg {
  display: block;
  width: 30px;
  height: 30px;
}

.nav { display: flex; gap: 22px; margin-left: 12px; }

.nav a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 6px 0;
  transition: color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--text); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.top-link {
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.15s;
}
.top-link:hover { color: var(--text); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
}
.lang-switch a {
  padding: 5px 12px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.on { background: var(--panel-2); color: var(--text); }

/* ---------- hero ---------- */

.hero { padding: 76px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 680;
}

h1 .grad {
  background: linear-gradient(100deg, var(--accent), #ffffff 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 17.5px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 46em;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 560;
  border: 1px solid transparent;
  transition: transform 0.14s, background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #0a0b10;
  box-shadow: 0 10px 26px -10px var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }

.btn-note { font-size: 12.5px; color: var(--faint); }

/* screenshot frame */
.shot-frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 6px;
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.shot-frame img { border-radius: 11px; width: 100%; height: auto; }

.shot-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
}

/* ---------- sections ---------- */

.section { padding: 64px 0; border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 36px; }

h2 {
  font-size: clamp(23px, 2.6vw, 31px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 640;
  line-height: 1.25;
}

.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.16s, transform 0.16s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.card .ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 16px;
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.gallery figure { margin: 0; }
.gallery img {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.gallery figcaption {
  margin-top: 9px;
  font-size: 13px;
  color: var(--faint);
}

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 560; font-size: 13px; letter-spacing: 0.03em; background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: none; }
td.yes { color: var(--accent); }
td.no { color: var(--faint); }

/* split list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--text); font-weight: 580; }

/* product grid (home) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.product-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0c0f16;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.product-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }

.product-card .tag {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.015em; }
.product-card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.product-card .more {
  margin-top: auto;
  font-size: 14px;
  color: var(--accent);
  font-weight: 540;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--faint);
  font-size: 13.5px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
}
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a:hover { color: var(--text); }

/* inline code + keycaps */
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.89em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: #d5dcea;
}

kbd {
  font-family: inherit;
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: #dfe6f3;
  white-space: nowrap;
}

/* utility */
.mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }

/* mobile nav */
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .nav { display: none; }
  .header-right .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 18px;
    background: rgba(10, 12, 17, 0.97);
    border-bottom: 1px solid var(--line);
  }
  body { font-size: 15.5px; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
