: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 Animated Showcase */
.stage-card {
  position: relative;
  border-radius: 26px;
  padding: 24px 28px 22px;
  background:
    radial-gradient(640px 280px at 50% 0%, rgba(56, 189, 248, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.92), rgba(9, 12, 19, 0.96));
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

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

.scene-pill {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scene-pill.active {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.desk-scene {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr auto 1.38fr;
  align-items: end;
  gap: 14px;
  padding: 10px 6px 4px;
  min-height: 270px;
}

/* MacBook Pro silhouette */
.device-macbook {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.macbook-lid {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: 12px 12px 4px 4px;
  padding: 8px 8px 6px;
  background: linear-gradient(180deg, #1b2232, #0d111a);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  transform-origin: bottom center;
}

.macbook-screen {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background:
    radial-gradient(circle at 20% 25%, rgba(59, 130, 246, 0.42), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.28), transparent 55%),
    #0b1020;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.macbook-base {
  width: 110%;
  height: 11px;
  border-radius: 2px 2px 10px 10px;
  background: linear-gradient(180deg, #64748b, #334155);
  position: relative;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

.macbook-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: #1e293b;
}

/* Clamshell mode visual */
.desk-scene[data-scene="clamshell"] .macbook-lid {
  transform: scaleY(0.16);
  filter: brightness(0.28);
}

.desk-scene[data-scene="clamshell"] .macbook-screen * {
  opacity: 0;
}

.device-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* 27" 5K iMac silhouette */
.device-imac {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imac-bezel {
  width: 100%;
  aspect-ratio: 16 / 10.2;
  border-radius: 14px;
  background: #090b10;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62), 0 0 40px rgba(56, 189, 248, 0.12);
}

.imac-display {
  flex: 1;
  margin: 9px 9px 0;
  border-radius: 6px;
  background:
    radial-gradient(circle at 75% 22%, rgba(56, 189, 248, 0.3), transparent 52%),
    radial-gradient(circle at 18% 82%, rgba(59, 130, 246, 0.26), transparent 55%),
    #080c16;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.imac-chin {
  height: 24px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.08em;
}

.imac-stand-neck {
  width: 58px;
  height: 22px;
  background: linear-gradient(180deg, #94a3b8, #cbd5e1 65%, #64748b);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

.imac-stand-foot {
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #64748b, #e2e8f0, #64748b);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* Mini macOS Menu Bar & Dock inside screens */
.mini-menubar {
  height: 15px;
  padding: 0 8px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
}

.mini-win {
  position: absolute;
  border-radius: 8px;
  background: rgba(13, 18, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-align: left;
}

.mini-win-head {
  height: 14px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: var(--text-secondary);
}

.mini-win-head b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.mini-win-head b:nth-child(1) { background: #ff5f56; }
.mini-win-head b:nth-child(2) { background: #ffbd2e; }
.mini-win-head b:nth-child(3) { background: #27c93f; }

.mini-win-body {
  padding: 7px 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  color: #cbd5e1;
}

/* Animated cross-screen window & cursor */
.win-left-static {
  top: 26px;
  left: 10px;
  width: 68%;
  height: 62%;
}

.win-left-glider {
  top: 32px;
  left: 24%;
  width: 62%;
  border-color: rgba(56, 189, 248, 0.55);
  animation: glideOutLeft 5.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.win-right-glider {
  top: 28px;
  left: 14%;
  width: 58%;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 14px 36px rgba(14, 165, 233, 0.24);
  animation: glideInRight 5.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.win-right-preview {
  bottom: 14px;
  right: 12px;
  width: 44%;
  border-color: rgba(134, 239, 172, 0.35);
}

.desk-scene[data-scene="mirror"] .win-left-glider,
.desk-scene[data-scene="mirror"] .win-right-glider {
  animation: mirrorFloat 3.6s ease-in-out infinite;
  opacity: 1;
  transform: none;
}

.desk-scene[data-scene="clamshell"] .win-right-glider {
  animation: clamshellHero 4s ease-in-out infinite;
  width: 66%;
  left: 10%;
}

@keyframes glideOutLeft {
  0%, 14%   { transform: translateX(0); opacity: 1; }
  36%       { transform: translateX(135%); opacity: 0; }
  74%       { transform: translateX(135%); opacity: 0; }
  90%, 100% { transform: translateX(0); opacity: 1; }
}

@keyframes glideInRight {
  0%, 24%   { transform: translateX(-130%); opacity: 0; }
  46%, 72%  { transform: translateX(0); opacity: 1; }
  88%, 100% { transform: translateX(-130%); opacity: 0; }
}

@keyframes mirrorFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes clamshellHero {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.015); }
}

/* Native <1ms cursor animation on iMac */
.anim-cursor {
  position: absolute;
  width: 14px;
  height: 18px;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
  animation: cursorDance 5.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cursorDance {
  0%, 26%   { left: -12%; top: 44%; opacity: 0; }
  34%       { left: 18%; top: 38%; opacity: 1; }
  55%       { left: 54%; top: 34%; opacity: 1; }
  72%       { left: 68%; top: 68%; opacity: 1; }
  84%, 100% { left: -10%; top: 48%; opacity: 0; }
}

/* Animated Thunderbolt Cable Pulse */
.cable-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 4px 44px;
}

.cable-track {
  position: relative;
  width: 112px;
  height: 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.cable-pulse {
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #38bdf8, #ffffff, #38bdf8, transparent);
  box-shadow: 0 0 14px #38bdf8;
  animation: cableFlow 1.5s linear infinite;
}

.cable-pulse.delay {
  animation-delay: 0.75s;
}

@keyframes cableFlow {
  from { left: -45%; }
  to   { left: 105%; }
}

.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;
  white-space: nowrap;
}

/* Interactive macOS Volume HUD overlay inside iMac */
.imac-hud {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) scale(0.92);
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 8;
}

.imac-hud.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.hud-bars {
  display: flex;
  gap: 3px;
}

.hud-bars span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease;
}

.hud-bars span.on {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
}

.hud-keys-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mac-key-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.1s ease, border-color 0.18s ease, background 0.18s ease;
}

.mac-key-btn:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.15);
}

.mac-key-btn:active {
  transform: translateY(2px);
}

.telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  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;
}

/* Interactive Drag Before/After Slider for 4:4:4 Crisp Text */
.split-compare {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: #090d14;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  min-height: 230px;
}

.split-layer {
  padding: 28px 26px;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.55vw, 15.5px);
  line-height: 1.85;
  background: #0b1019;
}

.split-layer-crisp {
  position: relative;
  z-index: 1;
}

.split-layer-legacy {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0b1019;
  clip-path: inset(0 50% 0 0);
}

.split-layer-legacy .split-code {
  filter: blur(0.85px) saturate(0.72) contrast(0.92);
  opacity: 0.88;
}

.split-layer-crisp .split-code {
  text-rendering: geometricPrecision;
}

.split-badge {
  position: absolute;
  top: 12px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.split-badge-left {
  left: 14px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.split-badge-right {
  right: 14px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.9);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.split-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  border: 2px solid #ffffff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.split-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

/* Smooth scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .win-left-glider, .win-right-glider, .anim-cursor, .cable-pulse, .live-indicator i {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 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; }
  .desk-scene { grid-template-columns: 1fr; gap: 20px; }
  .cable-bridge { padding: 4px 0; }
  .cable-track { width: 160px; }
  .compat-shell { grid-template-columns: 1fr; }
  .bento-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .cable-grid, .compare-viewport { grid-template-columns: 1fr; }
}
