:root {
  --bg: #07090e;
  --bg-elevated: #0d111a;
  --bg-card: rgba(18, 23, 35, 0.76);
  --bg-card-hover: rgba(24, 31, 47, 0.92);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --text-secondary: #a1adc4;
  --text-muted: #707d96;
  --accent: #3b82f6;
  --accent-bright: #38bdf8;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -120px, rgba(59, 130, 246, 0.22), transparent 65%),
    radial-gradient(700px 420px at 85% 12%, rgba(56, 189, 248, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(7, 9, 14, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #fff;
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 12px 34px rgba(14, 165, 233, 0.48);
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-lg {
  font-size: 15px;
  padding: 13px 26px;
}

.btn-sm {
  font-size: 13px;
  padding: 7px 14px;
}

.text-link {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero {
  padding: 74px 0 54px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 840px;
  font-size: clamp(36px, 5.8vw, 62px);
  line-height: 1.09;
  letter-spacing: -0.035em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #a9bddb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 680px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.68;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 46px;
}

/* Studio Diagram Showcase */
.stage-card {
  position: relative;
  border-radius: 26px;
  padding: 28px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(56, 189, 248, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 40, 0.88), rgba(11, 14, 22, 0.94));
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr;
  align-items: center;
  gap: 20px;
}

.mac-frame {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0a0d14;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.mac-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.traffic-lights {
  display: inline-flex;
  gap: 6px;
}

.traffic-lights i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.traffic-lights i:nth-child(1) { background: #ff5f56; }
.traffic-lights i:nth-child(2) { background: #ffbd2e; }
.traffic-lights i:nth-child(3) { background: #27c93f; }

.mac-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #cbd5e1;
}

.imac-screen .mac-body {
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.14), transparent 55%),
    #080b12;
}

.code-kw { color: #7dd3fc; }
.code-fn { color: #60a5fa; }
.code-str { color: #86efac; }
.code-num { color: #fcd34d; }
.code-cm { color: #64748b; }

.cable-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
}

.cable-line {
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee, #3b82f6);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.75);
}

.cable-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.telemetry-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d7e3f4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

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

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

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

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Compatibility Checker */
.compat-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.compat-group {
  margin-bottom: 18px;
}

.compat-group:last-child {
  margin-bottom: 0;
}

.compat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}

.choice-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.choice-chip.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.65);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.compat-result {
  background: rgba(7, 10, 16, 0.86);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.compat-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}

.verdict-great { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.verdict-warn  { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.verdict-no    { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }

.compat-result h3 {
  margin: 10px 0 6px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.compat-result p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.compat-bullets {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: #cbd5e1;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

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

/* Interactive Crisp Text Comparison */
.compare-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.compare-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.mode-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.mode-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-tab.active {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #fff;
}

.compare-viewport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compare-pane {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #06080d;
  padding: 18px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.compare-pane.highlighted {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 16px 36px rgba(14, 165, 233, 0.12);
}

.pane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sample-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  padding: 14px;
  border-radius: 10px;
  background: #0d1117;
}

.sample-soft {
  filter: blur(0.65px) saturate(0.78);
  opacity: 0.86;
}

.sample-crisp {
  filter: none;
  text-rendering: geometricPrecision;
}

.sample-red { color: #ff6b6b; }
.sample-blue { color: #58a6ff; }
.sample-green { color: #3fb950; }
.sample-yellow { color: #e3b341; }

/* Studio Display Value Anchor Table */
.anchor-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.anchor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}

.anchor-table th,
.anchor-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.anchor-table tr:last-child td {
  border-bottom: 0;
}

.anchor-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.anchor-table th.col-bolt,
.anchor-table td.col-bolt {
  background: rgba(56, 189, 248, 0.06);
}

.anchor-table td:first-child {
  font-weight: 700;
  color: var(--text);
  width: 22%;
}

.anchor-highlight {
  font-weight: 700;
  color: #7dd3fc;
}

.anchor-note {
  padding: 14px 22px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

/* Cable Table */
.cable-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cable-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.cable-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tier-best { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.tier-good { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.tier-mid  { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.tier-bad  { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.cable-speed {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.price-card.featured {
  border-color: rgba(56, 189, 248, 0.6);
  background:
    radial-gradient(360px 200px at 50% 0%, rgba(56, 189, 248, 0.16), transparent 70%),
    rgba(16, 22, 35, 0.92);
  box-shadow: 0 24px 60px rgba(14, 165, 233, 0.16);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 22px;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}

.price-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.price-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  margin-right: 9px;
}

.price-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 20px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-bright);
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* Guide Prose */
.guide-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.guide-article h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}

.guide-article h2 {
  font-size: 23px;
  margin: 36px 0 12px;
  letter-spacing: -0.02em;
}

.guide-article p, .guide-article li {
  color: var(--text-secondary);
  font-size: 15.5px;
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-meta {
  max-width: 660px;
}

.sha-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  word-break: break-all;
  margin-top: 8px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: #101521;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
}

.code-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #070a10;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin: 12px 0 16px;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .stage-grid { grid-template-columns: 1fr; }
  .cable-line { width: 4px; height: 42px; }
  .compat-shell { grid-template-columns: 1fr; }
  .bento-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .cable-grid, .compare-viewport { grid-template-columns: 1fr; }
}
