/*
  MacMini NAS OS product website
  Static, dependency-free design system
*/

:root {
  color-scheme: dark;
  --bg: #05090e;
  --bg-deep: #020508;
  --bg-soft: #081018;
  --panel: rgba(9, 18, 25, 0.78);
  --panel-strong: rgba(11, 23, 31, 0.94);
  --panel-line: rgba(94, 139, 158, 0.22);
  --panel-line-strong: rgba(92, 190, 216, 0.38);
  --text: #eaf5f7;
  --text-strong: #f7fcfd;
  --muted: #91a8b3;
  --muted-2: #637c89;
  --cyan: #31d1f5;
  --cyan-soft: rgba(49, 209, 245, 0.14);
  --lime: #b8f345;
  --lime-soft: rgba(184, 243, 69, 0.12);
  --amber: #ffbd4e;
  --amber-soft: rgba(255, 189, 78, 0.13);
  --danger: #ff6b5f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 6%, rgba(49, 209, 245, 0.14), transparent 34rem),
    radial-gradient(circle at 84% 18%, rgba(184, 243, 69, 0.09), transparent 30rem),
    radial-gradient(circle at 50% 92%, rgba(255, 189, 78, 0.07), transparent 34rem),
    linear-gradient(180deg, #071019 0%, var(--bg) 34rem, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 119, 139, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 119, 139, 0.075) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.36) 55%, rgba(0, 0, 0, 0.72));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(49, 209, 245, 0.035) 48%, transparent 56%),
    radial-gradient(ellipse at center, transparent 0, rgba(0, 0, 0, 0.36) 100%);
}

::selection {
  color: #031014;
  background: var(--cyan);
}

img,
svg {
  display: block;
}

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

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

p,
h1,
h2,
h3,
figure,
ul,
ol,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

li {
  list-style: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

code,
pre {
  font-family: var(--font-mono);
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 8px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #031014;
  background: var(--lime);
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-noise,
.scanline {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.page-noise {
  opacity: 0.095;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.8) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.55) 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.38) 0 0.5px, transparent 0.7px);
  background-size: 19px 19px, 31px 31px, 43px 43px;
}

.scanline {
  opacity: 0.075;
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(172, 225, 240, 0.2) 7px, transparent 8px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  border-color: rgba(112, 164, 184, 0.18);
  background: rgba(3, 8, 12, 0.76);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 18px rgba(49, 209, 245, 0.22));
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.18em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-menu a {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--text-strong);
  background: rgba(124, 175, 194, 0.1);
}

.nav-menu a.is-active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.nav-menu .nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(91, 176, 203, 0.28);
  color: #d7f5fb;
  background: rgba(49, 209, 245, 0.08);
}

.nav-menu .nav-github svg {
  width: 13px;
  height: 13px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(112, 164, 184, 0.24);
  border-radius: 14px;
  color: var(--text);
  background: rgba(8, 18, 25, 0.72);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #031014;
  background: linear-gradient(135deg, var(--cyan) 0%, #75e5f5 48%, var(--lime) 100%);
  box-shadow: 0 12px 34px rgba(49, 209, 245, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 16px 42px rgba(184, 243, 69, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  border-color: rgba(128, 180, 199, 0.26);
  color: #d9eef3;
  background: rgba(10, 22, 30, 0.58);
}

.btn-ghost:hover {
  border-color: rgba(49, 209, 245, 0.48);
  background: rgba(49, 209, 245, 0.09);
}

.btn-small {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 0.86rem;
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9edfec;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(49, 209, 245, 0.35);
  text-underline-offset: 5px;
}

.text-link:hover {
  color: #d5f7fc;
  text-decoration-color: var(--cyan);
}

/* Hero */
.hero {
  position: relative;
  padding: 166px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 90px -12% auto;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 63% 48%, rgba(49, 209, 245, 0.14), transparent 38%),
    radial-gradient(ellipse at 78% 54%, rgba(184, 243, 69, 0.1), transparent 34%);
  filter: blur(8px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
  align-items: center;
  gap: clamp(44px, 6vw, 86px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9edfec;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(184, 243, 69, 0.8);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(184, 243, 69, 0.5);
  border-radius: inherit;
  animation: pulse 2.2s ease-out infinite;
}

.hero h1 {
  margin-top: 22px;
  color: var(--text-strong);
  font-size: clamp(3.1rem, 7.2vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-weight: 850;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(115deg, #f7fcfd 0%, var(--cyan) 46%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(49, 209, 245, 0.13));
}

.hero-lede {
  max-width: 700px;
  margin-top: 26px;
  color: #a7bcc6;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(112, 164, 184, 0.2);
  border-radius: 999px;
  color: #aac0ca;
  background: rgba(5, 12, 17, 0.48);
  font-size: 0.86rem;
}

.hero-proof li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(49, 209, 245, 0.8);
}

.release-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: 760px;
  margin-top: 34px;
  padding: 14px 16px;
  border: 1px solid rgba(49, 209, 245, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(49, 209, 245, 0.1), rgba(184, 243, 69, 0.055)),
    rgba(4, 10, 15, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.86rem;
}

.release-strip strong {
  color: #e9fbff;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
}

.release-strip .release-label {
  padding: 4px 7px;
  border-radius: 7px;
  color: #061014;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.release-strip a {
  margin-left: auto;
  color: #a9ecfa;
  font-weight: 800;
}

.release-strip a:hover {
  color: #e4fbff;
}

/* Orbital visual */
.hero-visual {
  min-width: 0;
}

.orbit-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  isolation: isolate;
}

.orbit-stage::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(49, 209, 245, 0.12), transparent 44%),
    radial-gradient(circle, rgba(184, 243, 69, 0.08), transparent 60%);
  filter: blur(20px);
}

.orbit-stage::after {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(98, 153, 171, 0.16);
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(112, 164, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 164, 184, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, transparent 0 18%, #000 31%, #000 68%, transparent 78%);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(49, 209, 245, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(49, 209, 245, 0.07), inset 0 0 30px rgba(49, 209, 245, 0.045);
  transform-style: preserve-3d;
}

.ring-one {
  width: 86%;
  height: 42%;
  transform: translate(-50%, -50%) rotate(-18deg);
  animation: ringDrift 8s ease-in-out infinite;
}

.ring-two {
  width: 74%;
  height: 78%;
  border-color: rgba(184, 243, 69, 0.22);
  transform: translate(-50%, -50%) rotate(28deg);
  animation: ringDrift 10s ease-in-out infinite reverse;
}

.ring-three {
  width: 50%;
  height: 25%;
  border-color: rgba(255, 189, 78, 0.24);
  transform: translate(-50%, -50%) rotate(11deg);
}

.orbit-node {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(112, 164, 184, 0.28);
  border-radius: 999px;
  color: #cfecf2;
  background: rgba(5, 12, 17, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.orbit-node span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.node-a {
  top: 17%;
  left: 17%;
  color: var(--cyan);
}

.node-b {
  right: 11%;
  bottom: 29%;
  color: var(--lime);
}

.node-c {
  bottom: 15%;
  left: 24%;
  color: var(--amber);
}

.macmini-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 44%;
  transform: translate(-50%, -50%);
}

.macmini-shell {
  position: relative;
  aspect-ratio: 1.75 / 1;
  border: 1px solid rgba(226, 241, 244, 0.56);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(155, 180, 188, 0.8) 56%, rgba(80, 102, 111, 0.95)),
    #b8c9cf;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -12px 18px rgba(26, 46, 55, 0.36),
    0 22px 60px rgba(49, 209, 245, 0.18),
    0 36px 90px rgba(0, 0, 0, 0.42);
  transform: perspective(600px) rotateX(54deg) rotateZ(-8deg);
}

.macmini-shell::before {
  content: "";
  position: absolute;
  inset: 12% 14%;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0.65;
}

.status-light {
  position: absolute;
  right: 13%;
  bottom: 22%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime), 0 0 30px rgba(184, 243, 69, 0.7);
}

.slot {
  position: absolute;
  right: 13%;
  bottom: 33%;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: rgba(25, 44, 52, 0.48);
}

.core-shadow {
  width: 78%;
  height: 28px;
  margin: -4px auto 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(18px);
}

.telemetry-card {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 3px;
  min-width: 126px;
  padding: 13px 14px 14px;
  border: 1px solid rgba(112, 164, 184, 0.26);
  border-radius: 16px;
  background: rgba(4, 10, 15, 0.76);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.telemetry-card small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.telemetry-card strong {
  color: #effbff;
  font-size: 1.12rem;
  line-height: 1.1;
}

.telemetry-card i {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 14px rgba(49, 209, 245, 0.26);
}

.telemetry-cpu {
  top: 25%;
  right: 3%;
  animation: floatY 5.6s ease-in-out infinite;
}

.telemetry-disk {
  bottom: 25%;
  left: 2%;
  animation: floatY 6.4s ease-in-out infinite reverse;
}

.telemetry-net {
  right: 13%;
  bottom: 5%;
  animation: floatY 7s ease-in-out infinite;
}

/* Metrics */
.metrics {
  position: relative;
  padding: 22px 0 78px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(112, 164, 184, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(112, 164, 184, 0.14);
  box-shadow: var(--shadow-soft);
}

.metrics-grid article {
  min-height: 188px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(13, 27, 36, 0.88), rgba(5, 12, 17, 0.86)),
    var(--bg-soft);
}

.metric-value {
  display: block;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.metrics-grid p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Generic sections */
.section {
  position: relative;
  padding: 112px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(9, 19, 26, 0.44), rgba(4, 9, 13, 0.1)),
    radial-gradient(circle at 12% 10%, rgba(49, 209, 245, 0.07), transparent 28rem);
  border-block: 1px solid rgba(112, 164, 184, 0.12);
}

.section-header {
  max-width: 800px;
  margin-bottom: 52px;
}

.section-header.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  align-items: end;
  max-width: none;
  gap: 40px;
}

.section-header h2 {
  margin-top: 16px;
  color: var(--text-strong);
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 850;
}

.section-header p:not(.eyebrow) {
  margin-top: 18px;
  color: #9db2bd;
  font-size: 1.02rem;
  line-height: 1.88;
}

.section-header.split > p {
  margin-top: 0;
  padding-bottom: 6px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 336px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(112, 164, 184, 0.17);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(12, 24, 32, 0.84), rgba(5, 11, 16, 0.9)),
    var(--bg-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.28;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 18%;
  height: 180px;
  border-radius: 50%;
  background: rgba(49, 209, 245, 0.1);
  filter: blur(44px);
  opacity: 0;
  transition: opacity 190ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(49, 209, 245, 0.38);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(49, 209, 245, 0.24);
  border-radius: 15px;
  color: var(--cyan);
  background: rgba(49, 209, 245, 0.08);
  box-shadow: 0 0 28px rgba(49, 209, 245, 0.07);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-index {
  position: absolute;
  top: 25px;
  right: 24px;
  color: rgba(145, 168, 179, 0.38);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  color: var(--text-strong);
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

.feature-card ul {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.feature-card li {
  padding: 4px 8px;
  border: 1px solid rgba(112, 164, 184, 0.16);
  border-radius: 999px;
  color: #9ed2df;
  background: rgba(49, 209, 245, 0.055);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 750;
}

/* Interface */
.interface-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 28px;
}

.browser-frame,
.phone-shot,
.architecture-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(112, 164, 184, 0.22);
  background: rgba(5, 12, 17, 0.72);
  box-shadow: var(--shadow);
}

.browser-frame {
  border-radius: 24px;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 16px;
  border-bottom: 1px solid rgba(112, 164, 184, 0.17);
  background: rgba(10, 21, 29, 0.9);
}

.frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.frame-bar span:nth-child(1) { background: #ff6b5f; }
.frame-bar span:nth-child(2) { background: var(--amber); }
.frame-bar span:nth-child(3) { background: #55dc72; }

.frame-bar em {
  margin-left: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.browser-frame img,
.phone-shot img,
.architecture-figure img {
  width: 100%;
}

.browser-frame figcaption,
.phone-shot figcaption,
.architecture-figure figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(112, 164, 184, 0.13);
  color: var(--muted);
  background: rgba(4, 10, 15, 0.82);
  font-size: 0.86rem;
}

.mobile-panel {
  display: grid;
  gap: 18px;
}

.phone-shot {
  border-radius: 25px;
}

.phone-shot img {
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.interface-notes {
  padding: 22px;
  border: 1px solid rgba(184, 243, 69, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(184, 243, 69, 0.075), rgba(7, 14, 18, 0.72));
}

.interface-notes h3 {
  color: var(--text-strong);
  font-size: 1.08rem;
}

.interface-notes ul {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.interface-notes li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.interface-notes strong {
  color: #dff7c0;
}

/* Architecture */
.architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;
  gap: 28px;
}

.architecture-figure {
  border-radius: 24px;
}

.architecture-copy {
  display: grid;
  gap: 16px;
}

.architecture-copy article {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(112, 164, 184, 0.18);
  border-radius: var(--radius-md);
  background: rgba(7, 15, 21, 0.74);
}

.architecture-copy article::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(var(--cyan), var(--lime));
}

.architecture-copy span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.architecture-copy h3 {
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 1.18rem;
}

.architecture-copy p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

/* Download */
.section-download {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(184, 243, 69, 0.075), transparent 28rem),
    radial-gradient(circle at 7% 66%, rgba(49, 209, 245, 0.08), transparent 30rem);
}

.release-console {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(49, 209, 245, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(49, 209, 245, 0.12), rgba(184, 243, 69, 0.055) 58%, rgba(255, 189, 78, 0.045)),
    rgba(4, 10, 15, 0.82);
  box-shadow: var(--shadow-soft);
}

.release-console-main {
  display: grid;
  gap: 5px;
}

.release-kicker {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.release-console-main strong {
  color: #eaffff;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.release-date {
  color: #a8c2cc;
  font-size: 0.86rem;
}

.release-notes-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.release-notes-block li {
  padding: 6px 9px;
  border: 1px solid rgba(112, 164, 184, 0.18);
  border-radius: 999px;
  color: #b8d4dd;
  background: rgba(9, 19, 26, 0.64);
  font-size: 0.82rem;
}

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

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 352px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(112, 164, 184, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(12, 24, 32, 0.92), rgba(5, 11, 16, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.platform-card.highlighted {
  border-color: rgba(184, 243, 69, 0.32);
  background:
    radial-gradient(circle at 70% 0%, rgba(184, 243, 69, 0.12), transparent 17rem),
    linear-gradient(155deg, rgba(12, 24, 32, 0.94), rgba(5, 11, 16, 0.94));
}

.platform-topline {
  display: grid;
  gap: 10px;
}

.platform-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 7px;
  color: #061014;
  background: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.platform-card.highlighted .platform-badge {
  background: var(--lime);
}

.platform-card code {
  display: block;
  max-width: 100%;
  color: #88a8b5;
  font-size: 0.68rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.platform-card h3 {
  margin-top: 28px;
  color: var(--text-strong);
  font-size: 1.28rem;
  line-height: 1.25;
}

.platform-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.76;
}

.platform-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.install-note {
  color: #b2a988;
  font-size: 0.78rem;
  line-height: 1.55;
}

.cli-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  align-items: center;
  gap: 34px;
  margin-top: 44px;
  padding: 28px;
  border: 1px solid rgba(112, 164, 184, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(11, 22, 30, 0.9), rgba(5, 11, 16, 0.86)),
    var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.cli-copy h3 {
  margin-top: 14px;
  color: var(--text-strong);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cli-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.85;
}

.cli-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(49, 209, 245, 0.22);
  border-radius: 18px;
  background: #020609;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding-inline: 14px;
  border-bottom: 1px solid rgba(112, 164, 184, 0.14);
  background: rgba(11, 23, 31, 0.88);
}

.terminal-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #29424f;
}

.terminal-head span:first-child { background: #ff6b5f; }
.terminal-head span:nth-child(2) { background: var(--amber); }
.terminal-head span:nth-child(3) { background: #55dc72; }

.terminal-head em {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
}

.terminal-card pre {
  padding: 22px;
  color: #c9eef6;
  font-size: 0.86rem;
  line-height: 1.72;
}

/* Install */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  position: relative;
  min-height: 214px;
  padding: 23px;
  border: 1px solid rgba(112, 164, 184, 0.17);
  border-radius: var(--radius-md);
  background: rgba(7, 15, 21, 0.72);
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 20%;
  left: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(49, 209, 245, 0.6), transparent);
}

.step-card span {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-card h3 {
  margin-top: 16px;
  color: var(--text-strong);
  font-size: 1.18rem;
}

.step-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.75;
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
  margin-top: 24px;
}

.install-main,
.install-checklist {
  padding: 26px;
  border: 1px solid rgba(112, 164, 184, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(12, 24, 32, 0.82), rgba(5, 11, 16, 0.88));
}

.install-main h3,
.install-checklist h3 {
  color: var(--text-strong);
  font-size: 1.32rem;
}

.install-main > p {
  margin-top: 12px;
  color: var(--muted);
}

.code-card {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(112, 164, 184, 0.2);
  border-radius: 16px;
  background: #020609;
}

.code-card.compact {
  margin-top: 14px;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px 8px 15px;
  border-bottom: 1px solid rgba(112, 164, 184, 0.14);
  color: var(--muted-2);
  background: rgba(11, 23, 31, 0.86);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.copy-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(49, 209, 245, 0.28);
  border-radius: 999px;
  color: #a9ecfa;
  background: rgba(49, 209, 245, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.copy-button:hover {
  border-color: rgba(49, 209, 245, 0.55);
  background: rgba(49, 209, 245, 0.14);
}

.copy-button.is-copied {
  border-color: rgba(184, 243, 69, 0.55);
  color: #dff7c0;
  background: rgba(184, 243, 69, 0.12);
}

.code-card pre {
  padding: 18px;
  color: #cfeef6;
  font-size: 0.84rem;
  line-height: 1.75;
}

.fine-print {
  color: var(--muted-2) !important;
  font-size: 0.82rem;
  line-height: 1.7;
}

.install-checklist {
  border-color: rgba(184, 243, 69, 0.18);
  background: linear-gradient(145deg, rgba(184, 243, 69, 0.07), rgba(5, 11, 16, 0.9));
}

.install-checklist ul {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.install-checklist li {
  position: relative;
  padding-left: 25px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.install-checklist li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(184, 243, 69, 0.2);
  transform: translateY(-50%);
}

.install-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.install-detail,
.faq-grid details {
  border: 1px solid rgba(112, 164, 184, 0.18);
  border-radius: var(--radius-md);
  background: rgba(7, 15, 21, 0.72);
  overflow: hidden;
}

.install-detail summary,
.faq-grid summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  color: var(--text-strong);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.install-detail summary::-webkit-details-marker,
.faq-grid summary::-webkit-details-marker {
  display: none;
}

.install-detail summary::after,
.faq-grid summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.install-detail[open] summary::after,
.faq-grid details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.install-detail > div,
.faq-grid details p {
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.78;
}

.install-detail code,
.faq-grid code {
  padding: 2px 5px;
  border: 1px solid rgba(112, 164, 184, 0.17);
  border-radius: 6px;
  color: #c8edf5;
  background: rgba(49, 209, 245, 0.07);
  font-size: 0.82em;
}

/* Security */
.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
}

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

.security-principles article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(112, 164, 184, 0.18);
  border-radius: var(--radius-md);
  background: rgba(7, 15, 21, 0.74);
}

.security-icon {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 24px color-mix(in srgb, currentColor 18%, transparent);
}

.security-icon::before,
.security-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.security-icon::before {
  inset: 10px;
  border: 2px solid currentColor;
}

.security-icon::after {
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.security-icon.cyan { color: var(--cyan); }
.security-icon.lime { color: var(--lime); }
.security-icon.amber { color: var(--amber); }

.security-principles h3 {
  margin-top: 24px;
  color: var(--text-strong);
  font-size: 1.18rem;
}

.security-principles p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.76;
}

.hardening-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 189, 78, 0.22);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 189, 78, 0.14), transparent 16rem),
    linear-gradient(145deg, rgba(22, 19, 11, 0.72), rgba(5, 11, 16, 0.94));
}

.hardening-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 189, 78, 0.025) 10px);
  pointer-events: none;
}

.hardening-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
}

.hardening-head span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(255, 189, 78, 0.9);
}

.hardening-head h3 {
  color: #fff5d8;
  font-size: 1.28rem;
}

.hardening-card ol {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 22px;
  counter-reset: hardening;
}

.hardening-card li {
  position: relative;
  padding-left: 38px;
  color: #c4bda8;
  font-size: 0.92rem;
  line-height: 1.68;
  counter-increment: hardening;
}

.hardening-card li::before {
  content: counter(hardening, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* CTA */
.final-cta {
  padding: 100px 0;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(49, 209, 245, 0.26);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 20%, rgba(184, 243, 69, 0.16), transparent 22rem),
    radial-gradient(circle at 10% 100%, rgba(49, 209, 245, 0.16), transparent 26rem),
    linear-gradient(145deg, rgba(10, 22, 30, 0.95), rgba(4, 9, 13, 0.96));
  box-shadow: var(--shadow);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.26;
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
}

.cta-panel h2 {
  margin-top: 14px;
  color: var(--text-strong);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.cta-panel p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(112, 164, 184, 0.14);
  background: rgba(2, 5, 8, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(130px, 0.5fr));
  gap: 34px;
  padding: 54px 0 38px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-grid p {
  max-width: 480px;
  color: var(--muted-2);
  font-size: 0.86rem;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--text-strong);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
}

.footer-grid a:not(.brand) {
  display: block;
  width: fit-content;
  padding-block: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid a:not(.brand):hover {
  color: #e8fbff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(112, 164, 184, 0.11);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.15); opacity: 0; }
}

@keyframes ringDrift {
  0%, 100% { margin-top: -4px; opacity: 0.78; }
  50% { margin-top: 4px; opacity: 1; }
}

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

/* Responsive */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .metrics-grid,
  .feature-grid,
  .platform-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .interface-layout,
  .architecture-layout,
  .cli-panel,
  .install-layout,
  .security-layout {
    grid-template-columns: 1fr;
  }

  .mobile-panel {
    grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
    align-items: stretch;
  }

  .architecture-copy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .security-layout {
    gap: 18px;
  }
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 80px;
  }

  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    left: 18px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(112, 164, 184, 0.22);
    border-radius: 20px;
    background: rgba(3, 8, 12, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 170ms ease, visibility 170ms ease, transform 170ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-menu .nav-github {
    margin-left: 0;
    justify-content: center;
  }

  .hero {
    padding-top: 128px;
  }

  .section {
    padding: 84px 0;
  }

  .section-header.split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-header.split > p {
    margin-top: 0;
  }

  .release-console {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .release-console .btn {
    width: fit-content;
  }

  .mobile-panel,
  .architecture-copy,
  .install-details-grid,
  .faq-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(2.72rem, 15vw, 4.5rem);
  }

  .hero-actions,
  .cta-actions,
  .cli-downloads {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .cli-downloads .btn {
    width: 100%;
  }

  .release-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-strip a {
    margin-left: 0;
  }

  .orbit-stage {
    width: min(100%, 430px);
  }

  .telemetry-card {
    min-width: 104px;
    padding: 10px 11px;
  }

  .telemetry-card strong {
    font-size: 0.96rem;
  }

  .telemetry-cpu { right: 0; }
  .telemetry-disk { left: 0; }
  .telemetry-net { right: 6%; }

  .metrics-grid,
  .feature-grid,
  .platform-grid,
  .steps-grid,
  .security-principles {
    grid-template-columns: 1fr;
  }

  .metrics-grid article,
  .feature-card,
  .platform-card,
  .step-card {
    min-height: auto;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .section-header h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .browser-frame figcaption,
  .phone-shot figcaption,
  .architecture-figure figcaption {
    font-size: 0.8rem;
  }

  .phone-shot img {
    max-height: 430px;
  }

  .cli-panel,
  .install-main,
  .install-checklist,
  .hardening-card {
    padding: 20px;
  }

  .terminal-card pre,
  .code-card pre {
    font-size: 0.76rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
