:root {
  --bg: #080a0f;
  --bg-elev: #11151e;
  --bg-card: rgba(20, 25, 35, 0.72);
  --bg-card-solid: #141923;
  --border: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(255, 138, 61, 0.36);
  --text: #f5f7fb;
  --text-soft: #b6c0d2;
  --text-muted: #828ea6;
  --accent: #ff8a3d;
  --accent-bright: #ffa866;
  --accent-soft: rgba(255, 138, 61, 0.14);
  --green: #4ade80;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-w: 1140px;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 14% -4%, rgba(255, 138, 61, 0.16), transparent 62%),
    radial-gradient(760px 480px at 90% 8%, rgba(79, 124, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-bright); text-decoration: none; transition: color 0.18s ease, opacity 0.18s ease; }
a:hover { color: #ffd0ad; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(8, 10, 15, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(255, 138, 61, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
}
.nav-links a { color: var(--text-soft); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}
.lang-switch:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #ff964d 0%, #ff7a24 100%);
  color: #140b05;
  box-shadow: 0 10px 28px rgba(255, 138, 61, 0.32);
}
.btn-primary:hover {
  color: #140b05;
  box-shadow: 0 14px 36px rgba(255, 138, 61, 0.44);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm { padding: 8px 16px; font-size: 13.5px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 68px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: #ffbe8f;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(125deg, #ffffff 30%, #ffbe8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(16.5px, 1.8vw, 19px);
  color: var(--text-soft);
  margin: 0 0 28px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.platform-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* Hero Visual Composition */
.hero-visual {
  position: relative;
  padding-bottom: 26px;
}

.device-tv {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d1017;
  box-shadow: var(--shadow-lg), 0 0 70px rgba(255, 138, 61, 0.12);
}

.device-phone {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 24%;
  min-width: 112px;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.18);
  background: #0b0e14;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.72);
}

/* Protocol Strip */
.protocol-strip {
  padding: 20px 0 42px;
}

.protocol-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.protocol-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.protocol-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.protocol-items span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.protocol-items span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 780;
}

.section-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 16.5px;
}

/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.tab-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.tab-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: #ffd0ad;
}

.gallery-stage {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.gallery-panel { display: none; }
.gallery-panel.is-active { display: block; }

.gallery-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0d13;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-frame img { width: 100%; height: auto; }
.gallery-frame.is-portrait {
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 138, 61, 0.12), #0a0d13 70%);
}
.gallery-frame.is-portrait img {
  width: auto;
  max-height: 560px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.16);
}
.gallery-frame.is-ipad {
  padding: 18px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 138, 61, 0.1), #0a0d13 70%);
}
.gallery-frame.is-ipad img {
  width: auto;
  max-height: 560px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0 4px;
  font-size: 14px;
  color: var(--text-soft);
}

/* Feature Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 138, 61, 0.3);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: #ffbe8f;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 720;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 14.5px;
}
.card li { margin-bottom: 7px; }

/* Highlight Banner */
.engine-banner {
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(20, 25, 35, 0.9) 55%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Spec Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}
td { color: var(--text-soft); }
tr:last-child td { border-bottom: none; }

.tag-yes { color: var(--green); font-weight: 650; }
.tag-note { color: #ffbe8f; font-weight: 600; }

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color 0.18s ease;
}
details.faq-item[open] {
  border-color: var(--border-accent);
}
details.faq-item summary {
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 650;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--accent-bright);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .faq-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 15px;
}

/* CTA Box */
.cta-box {
  text-align: center;
  padding: 52px 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(255, 138, 61, 0.2), transparent 72%),
    var(--bg-card);
  border: 1px solid var(--border-accent);
}
.cta-box h2 { margin-bottom: 12px; }
.cta-box p {
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 26px;
  font-size: 16px;
}
.cta-box .hero-cta { justify-content: center; margin-bottom: 14px; }

/* Subpage Article */
.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-soft); }

.prose {
  max-width: 820px;
}
.prose h2 {
  margin-top: 38px;
  font-size: 24px;
}
.prose h3 {
  margin-top: 24px;
  font-size: 18px;
}
.prose p, .prose li {
  color: var(--text-soft);
  font-size: 15.5px;
}
.prose code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  color: #ffd0ad;
}

.notice-box {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  background: rgba(255, 138, 61, 0.08);
  color: var(--text-soft);
  font-size: 14.5px;
  margin: 22px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 46px 0 56px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14.5px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .device-phone { right: 8px; width: 23%; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(11, 14, 20, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 22px;
    gap: 14px;
  }
  .nav-links.is-open { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .hero { padding: 42px 0 36px; }
  .section { padding: 48px 0; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .gallery-stage { padding: 14px; }
  .engine-banner { padding: 22px; }
}
