/* ProfilePilot site — flight-deck instrument theme, matching the app */

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../public/assets/fonts/chakra-petch-500.woff2") format("woff2");
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../public/assets/fonts/chakra-petch-600.woff2") format("woff2");
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../public/assets/fonts/chakra-petch-700.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../public/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../public/assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0a1014;
  --bg-deep: #070b0e;
  --panel: #101920;
  --panel-raise: #15202a;
  --panel-soft: #0d141a;
  --text: #e6eef2;
  --muted: #8fa1ad;
  --line: #1f2d37;
  --line-strong: #31454f;
  --accent: #38e1a0;
  --accent-bright: #6ff2c0;
  --accent-dark: #9defc9;
  --accent-ink: #052016;
  --accent-soft: rgba(56, 225, 160, 0.13);
  --accent-line: rgba(56, 225, 160, 0.38);
  --warn: #f2b13e;
  --warn-bright: #ffd27a;
  --warn-soft: rgba(242, 177, 62, 0.12);
  --warn-line: rgba(242, 177, 62, 0.38);
  --info: #5fb6ff;
  --info-bright: #92cdff;
  --info-soft: rgba(95, 182, 255, 0.1);
  --info-line: rgba(95, 182, 255, 0.34);
  --focus: rgba(56, 225, 160, 0.3);
  --glow-accent: 0 0 18px rgba(56, 225, 160, 0.22);
  --shadow: 0 30px 80px rgba(2, 6, 9, 0.6);
  --display: "Chakra Petch", "PingFang SC", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Noto Sans SC",
    "Microsoft YaHei", ui-sans-serif, sans-serif;
  font-family: var(--sans);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(56, 225, 160, 0.3);
  color: #f4fffa;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1200px 520px at 14% -6%, rgba(56, 225, 160, 0.08), transparent 60%),
    radial-gradient(1000px 480px at 94% 4%, rgba(95, 182, 255, 0.06), transparent 58%),
    repeating-linear-gradient(0deg, rgba(143, 161, 173, 0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(143, 161, 173, 0.04) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #0c1318 0%, var(--bg) 36%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
}

button,
a {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---- scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.revealed {
  opacity: 1;
  transform: none;
}

/* ---- topbar ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  border-bottom: 1px solid transparent;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(10, 16, 20, 0.72);
  backdrop-filter: blur(18px);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.topbar.scrolled {
  border-color: var(--line);
  background: rgba(8, 12, 15, 0.9);
}

.brand,
.nav-links,
.hero-actions,
.proof-strip,
.workflow-tabs,
.terminal-bar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: max-content;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(56, 225, 160, 0.25),
    0 8px 22px rgba(2, 6, 9, 0.6);
}

.nav-links {
  justify-content: center;
  gap: clamp(16px, 3vw, 30px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.16s ease,
    border-color 0.16s ease;
}

.nav-links a:hover {
  color: var(--accent-bright);
  border-color: var(--accent-line);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 0.16s ease;
}

.nav-github:hover {
  color: var(--accent-bright);
}

.nav-github svg {
  flex: 0 0 auto;
}

.nav-cta {
  justify-self: end;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 750;
  padding: 9px 16px;
  box-shadow: var(--glow-accent);
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.nav-cta:hover {
  box-shadow: 0 0 26px rgba(56, 225, 160, 0.4);
  transform: translateY(-1px);
}

/* ---- hero ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 72px);
}

.hero-scene {
  order: 2;
  position: relative;
}

.hero-scene::before {
  position: absolute;
  inset: 12% -6% -10% -6%;
  content: "";
  background: radial-gradient(60% 55% at 50% 60%, rgba(56, 225, 160, 0.14), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-copy {
  order: 1;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(56, 225, 160, 0.9);
  content: "";
  animation: beacon 2.6s ease-in-out infinite;
}

@keyframes beacon {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.02;
}

.hero-lede {
  margin: 18px 0 26px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 700;
  transition:
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.button.primary {
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  box-shadow: var(--glow-accent);
}

.button.primary:hover {
  box-shadow: 0 0 28px rgba(56, 225, 160, 0.42);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--accent-line);
  box-shadow: var(--glow-accent);
}

.proof-strip {
  gap: 0;
  margin: 34px 0 0;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  overflow: hidden;
}

.proof-strip > div {
  padding: 14px 22px;
  border-right: 1px solid var(--line);
}

.proof-strip > div:last-child {
  border-right: 0;
}

.proof-strip dt {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-bright);
  text-shadow: 0 0 16px rgba(56, 225, 160, 0.45);
  font-variant-numeric: tabular-nums;
}

.proof-strip dd {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---- hero miniature app ---- */

.product-shell {
  position: relative;
  perspective: 1400px;
}

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-raise), var(--panel-soft));
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(56, 225, 160, 0.08),
    var(--glow-accent);
  transform: rotateX(4deg) rotateY(-6deg);
  transition: transform 0.5s ease;
}

.product-shell:hover .app-window {
  transform: rotateX(0) rotateY(0);
}

.app-window::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 42%, rgba(111, 242, 192, 0.05) 50%, transparent 58%);
  background-size: 280% 100%;
  animation: scan-sweep 5.5s linear infinite;
  pointer-events: none;
}

@keyframes scan-sweep {
  from {
    background-position: 140% 0;
  }
  to {
    background-position: -140% 0;
  }
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 11px 14px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-bar span:nth-child(1) {
  background: #ff6159;
}

.window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.window-bar span:nth-child(3) {
  background: #28c840;
}

.window-bar strong {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.window-body {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
}

.profile-rail {
  border-right: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 13px 11px;
}

.rail-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-item {
  position: relative;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 9px 8px 24px;
  margin-bottom: 6px;
}

.profile-item::before {
  position: absolute;
  top: 13px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.profile-item.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.profile-item.active::before {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(56, 225, 160, 0.9);
  animation: beacon 2.2s ease-in-out infinite;
}

.profile-item b {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.profile-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.desk-panel {
  padding: 14px;
}

.desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.desk-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desk-head b {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sync-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 11px 12px;
}

.sync-flow small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sync-flow strong {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}

.sync-flow i {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px);
  animation: flow-dash 1.1s linear infinite;
}

.sync-flow i::after {
  position: absolute;
  top: 50%;
  right: -2px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

@keyframes flow-dash {
  to {
    background-position: 11px 0;
  }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}

.metric-grid div {
  background: var(--panel);
  padding: 9px 11px;
}

.metric-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-grid b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

.extension-list {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 11px 12px;
}

.extension-list > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.extension-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 7px 0;
}

.extension-row:last-child {
  padding-bottom: 0;
}

.extension-row b {
  font-size: 11px;
  font-weight: 650;
}

.extension-row em {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ---- sections ---- */

.section,
.compare-section,
.download-section {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px) 0;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(56, 225, 160, 0.9);
  content: "";
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.section-head h2,
.compare-copy h2,
.safety-layout h2,
.install-copy h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.section-head p,
.compare-copy p,
.install-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-head.compact {
  margin-bottom: 24px;
}

/* ---- workflows ---- */

.workflow-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.workflow-tabs button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.workflow-tabs button:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.workflow-tabs button.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-bright);
  box-shadow: var(--glow-accent);
}

.workflow-board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  box-shadow: 0 18px 44px rgba(2, 6, 9, 0.35);
}

.workflow-copy {
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  padding: clamp(20px, 3vw, 30px);
}

.workflow-copy span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.workflow-copy h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.35;
}

.workflow-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--panel-soft);
  padding: clamp(20px, 3vw, 30px);
}

.workflow-node {
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel);
  padding: 11px 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.workflow-node.on {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-bright);
  box-shadow: var(--glow-accent);
}

.workflow-node.accent {
  border-color: var(--info-line);
  background: var(--info-soft);
  color: var(--info-bright);
  box-shadow: 0 0 18px rgba(95, 182, 255, 0.18);
}

.workflow-line {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px);
  animation: flow-dash 1.1s linear infinite;
}

/* ---- features ---- */

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

.feature-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  padding: 22px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.feature-grid article:hover {
  border-color: var(--accent-line);
  box-shadow: var(--glow-accent);
  transform: translateY(-3px);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.feature-grid h3 {
  font-size: 17px;
  font-weight: 600;
}

.feature-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---- compare ---- */

.compare-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.compare-copy h2 {
  margin-top: 0;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(2, 6, 9, 0.35);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr 1.4fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.55;
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row.head {
  background: var(--panel-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-row span:first-child {
  font-weight: 650;
}

.compare-row:not(.head) span:nth-child(2) {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.compare-row:not(.head) span:nth-child(3) {
  color: var(--muted);
}

.compare-row:not(.head) span:nth-child(4) {
  color: var(--accent-dark);
}

/* ---- safety ---- */

.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.safety-list {
  display: grid;
  gap: 12px;
}

.safety-list article {
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  padding: 16px 18px;
}

.safety-list h3 {
  font-size: 16px;
  font-weight: 600;
}

.safety-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---- download ---- */

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.install-copy p {
  max-width: 30em;
}

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

.download-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  padding: 18px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.download-card:hover {
  border-color: var(--accent-line);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.download-card span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.download-card strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.download-card small {
  color: var(--muted);
  font-size: 12px;
}

.download-card.primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(56, 225, 160, 0.16), rgba(56, 225, 160, 0.05));
  box-shadow: var(--glow-accent);
}

.download-card.primary strong {
  color: var(--accent-bright);
}

.download-card.primary small {
  color: var(--accent-dark);
}

.download-link {
  grid-column: 1 / -1;
  width: max-content;
  color: var(--info-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--info-line);
  padding-bottom: 2px;
}

.download-link:hover {
  color: var(--accent-bright);
  border-color: var(--accent-line);
}

.download-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.macos-help {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  margin-top: 6px;
  border: 1px solid var(--warn-line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(242, 177, 62, 0.07), rgba(242, 177, 62, 0.02));
  padding: 18px;
}

.macos-help-copy span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--warn-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.macos-help-copy h3 {
  font-size: 18px;
  font-weight: 600;
}

.macos-help-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.macos-help-grid > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 14px 16px;
}

.macos-help-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.macos-help-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.macos-help-grid code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warn-bright);
}

.macos-help-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ---- terminal ---- */

.terminal {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-deep);
  box-shadow: 0 18px 44px rgba(2, 6, 9, 0.45);
}

.terminal-bar {
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 10px 14px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.terminal-bar span:nth-child(1) {
  background: #ff6159;
}

.terminal-bar span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-bar button {
  margin-left: auto;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: transparent;
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.terminal-bar button:hover {
  background: var(--accent-soft);
  box-shadow: var(--glow-accent);
}

.terminal pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
}

.terminal code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--accent-dark);
}

.terminal code::before {
  content: "";
}

.download-section {
  padding-bottom: clamp(48px, 7vw, 88px);
}

/* ---- footer ---- */

.site-footer {
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
  padding: clamp(32px, 5vw, 48px) 20px;
  text-align: center;
}

.site-footer img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow:
    0 0 0 1px rgba(56, 225, 160, 0.25),
    0 10px 26px rgba(2, 6, 9, 0.6);
}

.site-footer strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}

.site-footer p {
  max-width: 46em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.site-footer a {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
  transition: color 0.16s ease;
}

.site-footer a:hover {
  color: var(--text);
}

/* ---- motion preferences ---- */

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .eyebrow::before,
  .section-kicker::before,
  .profile-item.active::before,
  .sync-flow i,
  .workflow-line,
  .app-window::after {
    animation: none;
  }

  .app-window {
    transform: none;
  }
}

/* ---- responsive ---- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    order: 2;
    max-width: 560px;
  }

  .app-window {
    transform: none;
  }

  .compare-section,
  .safety-layout,
  .download-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    justify-self: end;
  }

  .feature-grid,
  .download-panel,
  .macos-help-grid {
    grid-template-columns: 1fr;
  }

  .workflow-board {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    width: 100%;
  }

  .proof-strip > div {
    flex: 1;
    padding: 12px 14px;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .compare-row.head {
    display: none;
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .profile-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-rail .rail-title {
    display: none;
  }

  .profile-item {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
}
