:root {
  color-scheme: dark;
  --bg: #08090c;
  --surface: #101217;
  --surface-raised: #161922;
  --tint: #1d212c;
  --ink: #f5f7fb;
  --muted: #9ca3b4;
  --subtle: #70788c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #106cea;
  --accent-hover: #2580f7;
  --link: #64a8ff;
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.78), 0 10px 32px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.62), 0 6px 20px rgba(0, 0, 0, 0.42);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.prose {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating translucent glass header (lets volumetric hero light shine right behind & above) */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 0 18px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 16px;
  background: rgba(14, 16, 22, 0.56);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 680;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  color: rgba(235, 240, 252, 0.72);
  transition: color 0.16s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #ffffff;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  background: #f5f7fb;
  color: #08090c !important;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.nav-cta svg {
  width: 13px;
  height: 15px;
  fill: currentColor;
}

.nav-cta:hover {
  background: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Subpages spacer under fixed floating header */
.page-main {
  padding: 108px 0 88px;
}

/* Hero Stage — Raycast diagonal optical light ribbons x Termius volumetric cobalt depth */
.hero {
  position: relative;
  overflow: hidden;
  padding: 124px 0 88px;
  background: #07080b;
}

.hero-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.ribbon-field {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 1460px;
  height: 920px;
  margin-left: -730px;
  transform: rotate(-28deg);
  opacity: 0.96;
  animation: svFieldDrift 14s ease-in-out infinite;
  will-change: transform;
}

.ribbon {
  position: absolute;
  border-radius: 999px;
  will-change: transform, opacity;
}

.ribbon-1 {
  top: 70px;
  left: 18%;
  width: 68%;
  height: 130px;
  background: linear-gradient(
    90deg,
    rgba(16, 108, 234, 0) 0%,
    rgba(30, 128, 255, 0.52) 28%,
    rgba(130, 200, 255, 0.82) 52%,
    rgba(24, 114, 240, 0.44) 76%,
    rgba(16, 108, 234, 0) 100%
  );
  filter: blur(22px);
  animation: svRibbonPulse 9s ease-in-out infinite;
}

.ribbon-2 {
  top: 210px;
  left: 10%;
  width: 78%;
  height: 165px;
  background: linear-gradient(
    90deg,
    rgba(14, 72, 186, 0) 0%,
    rgba(22, 108, 238, 0.64) 30%,
    rgba(88, 174, 255, 0.78) 54%,
    rgba(20, 82, 198, 0.42) 78%,
    rgba(14, 72, 186, 0) 100%
  );
  filter: blur(28px);
  animation: svRibbonPulse 11s ease-in-out -3s infinite;
}

.ribbon-3 {
  top: 390px;
  left: 22%;
  width: 64%;
  height: 135px;
  background: linear-gradient(
    90deg,
    rgba(16, 86, 204, 0) 0%,
    rgba(36, 126, 255, 0.48) 34%,
    rgba(120, 194, 255, 0.62) 56%,
    rgba(16, 86, 204, 0) 100%
  );
  filter: blur(26px);
  animation: svRibbonPulse 10s ease-in-out -6s infinite;
}

.ribbon-core {
  top: 274px;
  left: 26%;
  width: 48%;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(200, 232, 255, 0.85), transparent);
  filter: blur(5px);
  animation: svRibbonPulse 8s ease-in-out -2s infinite;
}

.hero-volumetric {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 1200px;
  height: 820px;
  margin-left: -600px;
  background:
    radial-gradient(ellipse 52% 46% at 50% 24%, rgba(28, 114, 240, 0.34), transparent 72%),
    radial-gradient(ellipse 38% 36% at 68% 32%, rgba(92, 176, 255, 0.18), transparent 68%);
  filter: blur(42px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 28%, #000 0%, rgba(0, 0, 0, 0.38) 54%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 58% at 50% 28%, #000 0%, rgba(0, 0, 0, 0.38) 54%, transparent 100%);
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 9, 12, 0) 54%, var(--bg) 100%);
}

@keyframes svFieldDrift {
  0%, 100% { transform: rotate(-28deg) translate3d(0, 0, 0) scale(1); }
  50% { transform: rotate(-24deg) translate3d(-44px, 24px, 0) scale(1.05); }
}

@keyframes svRibbonPulse {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(1); opacity: 0.76; }
  50% { transform: translate3d(34px, -12px, 0) scaleX(1.06); opacity: 1; }
}

.hero-head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

h1 {
  margin: 0 0 18px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3rem, 6.2vw, 5rem);
  font-weight: 720;
  letter-spacing: -0.046em;
  line-height: 1.01;
  background: linear-gradient(180deg, #ffffff 32%, rgba(206, 224, 252, 0.84) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 auto 30px;
  max-width: 600px;
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
  line-height: 1.5;
  color: rgba(226, 234, 248, 0.78);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 10px 22px;
  border-radius: 13px;
  background: #f5f7fb;
  color: #08090c;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(100, 168, 255, 0.16);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.store-badge:hover {
  text-decoration: none;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56), 0 0 32px rgba(100, 168, 255, 0.28);
}

.store-badge svg {
  width: 22px;
  height: 26px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.store-badge-top {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}

.store-badge-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 19, 28, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.secondary-link:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(24, 29, 42, 0.8);
  text-decoration: none;
}

.hero-meta {
  margin-top: 20px;
  font-size: 13.5px;
  color: rgba(202, 214, 236, 0.62);
  letter-spacing: -0.005em;
}

.hero-stage {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-frame {
  position: relative;
  border-radius: 26px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  box-shadow:
    var(--shadow-lg),
    0 -2px 44px rgba(52, 142, 255, 0.24);
}

.hero-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  z-index: 3;
  pointer-events: none;
}

.hero-screen {
  border-radius: 18px;
  overflow: hidden;
  background: #06070a;
}

.hero-screen img {
  width: 100%;
}

/* Spec bar — crafted icon wells + real measured moat stats */
.spec-strip {
  padding: 20px 0 36px;
  border-bottom: 1px solid var(--line);
}

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

.spec-item {
  position: relative;
  padding: 22px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.72), rgba(14, 16, 22, 0.86));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.spec-item:hover {
  border-color: rgba(100, 168, 255, 0.34);
  transform: translateY(-2px);
}

.spec-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(16, 108, 234, 0.24), rgba(16, 108, 234, 0.10));
  border: 1px solid rgba(100, 168, 255, 0.28);
  color: #7cc0ff;
}

.spec-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spec-num {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 5px;
}

.spec-label {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Feature sections */
.feature-band {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: center;
}

.feature-copy h2,
.section-head h2 {
  margin: 0 0 14px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.036em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.feature-copy p,
.section-head p {
  margin: 0 0 22px;
  color: var(--muted);
}

.feature-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.feature-list span {
  color: var(--subtle);
  font-size: 13.5px;
  white-space: nowrap;
}

/* Segmented interactive posture / HUD switcher */
.seg-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  gap: 4px;
}

.seg-btn {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.seg-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 108, 234, 0.36);
}

.seg-btn:not(.active):hover {
  color: var(--ink);
}

/* Interactive 3D-Folded iPhone Duo Pocket MacBook Stage */
.duo-stage {
  position: relative;
  perspective: 1200px;
  padding: 28px 18px 34px;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 72% 58% at 50% 42%, rgba(22, 108, 234, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(20, 23, 32, 0.72), rgba(10, 11, 16, 0.92));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.duo-device {
  width: min(460px, 100%);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.duo-top-half {
  position: relative;
  border-radius: 22px 22px 6px 6px;
  padding: 8px 8px 6px;
  background: linear-gradient(180deg, #272b36, #14171f);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  transform-origin: bottom center;
  transform: rotateX(-12deg);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.48);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.duo-screen-inner {
  position: relative;
  border-radius: 14px 14px 4px 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #06080d;
}

.duo-screen-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.duo-cursor {
  position: absolute;
  left: 52%;
  top: 46%;
  width: 16px;
  height: 20px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
  transition: left 0.12s ease-out, top 0.12s ease-out;
}

.duo-toast {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(12, 15, 24, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(100, 168, 255, 0.42);
  color: #e6f1ff;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Precision physical titanium hinge */
.duo-hinge {
  position: relative;
  height: 12px;
  margin: 0 2px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0b0d12 0%, #2d3240 46%, #454c5e 52%, #12151c 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
}

.duo-knuckle {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #545c70, #1f232e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Folded lower half — real interactive tactile Mac keyboard + trackpad deck */
.duo-bottom-half {
  position: relative;
  border-radius: 6px 6px 24px 24px;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, #131620, #0c0e14);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 0;
  transform-origin: top center;
  transform: rotateX(28deg);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.duo-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.duo-deck-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.duo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.7);
}

.duo-keys {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.duo-key {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #232837, #191d28);
  color: #edf2fc;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 0.08s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.duo-key:hover {
  border-color: rgba(100, 168, 255, 0.5);
  background: linear-gradient(180deg, #2a3145, #1f2433);
}

.duo-key:active,
.duo-key.pressed {
  transform: translateY(2px) scale(0.97);
  background: var(--accent);
  border-color: rgba(180, 218, 255, 0.75);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 108, 234, 0.55);
}

.duo-trackpad {
  height: 76px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(204, 214, 236, 0.55);
  font-size: 12px;
  font-weight: 500;
  cursor: crosshair;
  user-select: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.duo-trackpad:hover {
  border-color: rgba(100, 168, 255, 0.42);
  background: rgba(16, 108, 234, 0.09);
  color: #cde2ff;
}

.duo-open-view {
  display: none;
  width: min(390px, 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.duo-stage.is-open .duo-device {
  display: none;
}

.duo-stage.is-open .duo-open-view {
  display: block;
}

.duo-hint {
  margin-top: 22px;
  font-size: 13px;
  color: var(--subtle);
  text-align: center;
}

/* Section 2 — Wide Horizontal Multi-Mac Library */
.library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.library-head p {
  margin: 0;
  color: var(--muted);
}

.library-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
}

.meta-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  display: inline-block;
}

.ipad-library-frame {
  border-radius: 26px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-lg);
}

.ipad-library-shell {
  border-radius: 18px;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 24px 26px;
}

.ipad-lib-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ipad-lib-title {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.ipad-lib-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lib-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(235, 240, 252, 0.86);
  font-size: 12.5px;
  font-weight: 600;
}

.lib-pill.active {
  background: rgba(16, 108, 234, 0.24);
  border-color: rgba(100, 168, 255, 0.45);
  color: #a8d4ff;
}

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

.mac-card {
  position: relative;
  border-radius: 16px;
  padding: 8px 8px 12px;
  background: #131620;
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mac-card:hover,
.mac-card.selected {
  transform: translateY(-2px);
  border-color: rgba(100, 168, 255, 0.56);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(100, 168, 255, 0.2);
}

.mac-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  background: #080a0f;
}

.mac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mac-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.mac-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.mac-route {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--muted);
}

/* Section 3 — Real Session Diagnostics & Telemetry Showcase */
.hud-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shot-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  background: #08090d;
}

.shot-frame img {
  width: 100%;
}

/* Architecture / Security table */
.arch-band {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.detail-rows {
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row dt {
  font-weight: 650;
  color: var(--ink);
}

.detail-row dd {
  margin: 0;
  color: var(--muted);
}

/* Guides */
.guides-band {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.guide-list {
  border-top: 1px solid var(--line);
}

.guide-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.guide-item:hover {
  text-decoration: none;
}

.guide-item:hover h3 {
  color: var(--link);
}

.guide-item h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.14s ease;
}

.guide-item p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.guide-arrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  white-space: nowrap;
}

/* Final CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  text-align: center;
}

.cta-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 64% 76% at 50% 100%,
    rgba(22, 108, 234, 0.28) 0%,
    rgba(18, 52, 128, 0.10) 48%,
    rgba(8, 9, 12, 0) 76%
  );
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 14px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.08;
  color: var(--ink);
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--muted);
}

/* Article / Legal pages */
.page-title {
  margin: 0 0 12px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.036em;
  line-height: 1.08;
  color: var(--ink);
}

.page-sub {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 18px;
}

.prose h2 {
  margin: 38px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose p {
  margin: 0 0 16px;
  color: #d4d8e2;
}

.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #d4d8e2;
}

.prose li {
  margin-bottom: 9px;
}

.prose code {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
}

.crumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--subtle);
}

.crumb a {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--subtle);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
}

/* Compatibility for subpage nav-row */
.nav-row {
  pointer-events: auto;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 0 18px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 16px;
  background: rgba(14, 16, 22, 0.76);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

@media (max-width: 960px) {
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid,
  .library-head {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mac-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header { top: 10px; padding: 0 12px; }
  .nav-shell, .nav-row { height: 52px; padding: 0 10px 0 12px; gap: 8px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .nav-links { gap: 12px; font-size: 13.5px; }
  .nav-cta { padding: 0 11px; min-height: 32px; font-size: 12.5px; }
  .nav-hide-sm { display: none; }
  .hero { padding: 98px 0 56px; }
  .feature-band { padding: 60px 0; }
  .spec-grid { grid-template-columns: 1fr; }
  .mac-grid { grid-template-columns: 1fr; }
  .duo-stage { min-height: 430px; padding: 18px 12px 24px; }
  .duo-keys { gap: 4px; }
  .duo-key { height: 34px; font-size: 11.5px; }
  .guide-item { flex-direction: column; gap: 6px; }
}
