:root {
  --bg: #0f1115;
  --ink: #f4f6f8;
  --muted: #aeb7c2;
  --soft: #d7dde5;
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(21, 24, 31, 0.78);
  --panel-strong: rgba(249, 250, 252, 0.09);
  --teal: #32afa0;
  --blue: #5e9cff;
  --amber: #f5b84b;
  --red: #ff6b65;
  --purple: #a889ff;
  --green: #70d56a;
  --orange: #ff9b52;
  --dock-size: clamp(34px, 4.3vw, 48px);
  --accent: var(--teal);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(50, 175, 160, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 18%, rgba(94, 156, 255, 0.2), transparent 32rem),
    linear-gradient(180deg, #0f1115 0%, #15120f 48%, #111418 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-light {
  position: fixed;
  left: var(--pointer-x, 50vw);
  top: var(--pointer-y, 80vh);
  width: 38rem;
  height: 38rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(245, 184, 75, 0.1), transparent 62%);
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: left 160ms ease, top 160ms ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin-top: 1rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(15, 17, 21, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0.55rem 0.2rem 0.25rem;
  font-weight: 750;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.header-download {
  padding: 0.64rem 0.85rem;
  border-radius: 8px;
  color: var(--soft);
  font-size: 0.9rem;
  transition: background 160ms ease, color 160ms ease;
}

.header-download:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-download {
  margin-left: auto;
  background: #f2f5f8;
  color: #12151a;
  font-weight: 700;
}

.header-download:hover {
  background: #fff;
  color: #12151a;
}

.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(min(100%, 420px), 1.1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  min-height: 100svh;
  padding-top: 7rem;
  padding-bottom: 3.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.1rem, 7vw, 4.35rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 42rem;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-button,
.save-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  background: #f2f5f8;
  color: #0f1115;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.primary-button:hover,
.save-preset:hover {
  transform: translateY(-2px);
}

.button-icon {
  display: inline-grid;
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.45rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.12);
}

.button-icon::before {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-1px) rotate(45deg);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.hero-facts span {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  font-size: 0.9rem;
}

.product-stage {
  perspective: 1200px;
}

.screen-preview {
  position: relative;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(94, 156, 255, 0.22), transparent 38%),
    linear-gradient(315deg, rgba(245, 184, 75, 0.16), transparent 35%),
    #11161d;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateX(1deg) rotateY(-2deg);
  transition: transform 220ms ease;
}

.screen-preview:hover {
  transform: rotateX(0deg) rotateY(0deg) translateY(-2px);
}

.desktop-surface {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
}

.dock-demo {
  position: absolute;
  left: 50%;
  bottom: 2.1rem;
  display: flex;
  align-items: end;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(245, 248, 252, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  transition: padding 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.dock-icon,
.mini-icon {
  position: relative;
  flex: 0 0 auto;
  width: var(--dock-size);
  height: var(--dock-size);
  border-radius: 12px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
  transform: translateY(0);
  transition: width 240ms ease, height 240ms ease, opacity 240ms ease, transform 240ms ease, margin 240ms ease;
}

.dock-icon img,
.mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.dock-icon img[alt="Safari"],
.mini-icon img[alt="Safari"] {
  object-fit: cover;
}

.dock-icon.active::after {
  position: absolute;
  left: 50%;
  bottom: -0.42rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translateX(-50%);
}

.dock-icon:hover {
  transform: translateY(-0.55rem) scale(1.08);
}

.dock-demo.is-changing {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(245, 248, 252, 0.24);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
}

.dock-demo.is-changing .dock-icon {
  opacity: 0;
  transform: translateY(0.28rem) scale(0.86);
}

.dock-icon.is-entering {
  animation: dockIconIn 280ms ease-out both;
}

@keyframes dockIconIn {
  0% {
    opacity: 0;
    transform: translateY(0.18rem) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.no-magnify .dock-icon:hover {
  transform: translateY(0) scale(1);
}

.minimal-mode .dock-icon.pinned {
  width: 0;
  margin-left: -0.5rem;
  opacity: 0;
  transform: translateY(1rem) scale(0.4);
}

.app-panel {
  position: absolute;
  top: 3.6rem;
  left: 50%;
  width: min(410px, calc(100% - 3rem));
  padding: 1.1rem;
  --ext-bg: rgba(14, 15, 18, 0.92);
  --ext-surface: rgba(255, 255, 255, 0.055);
  --ext-surface-strong: rgba(255, 255, 255, 0.082);
  --ext-line: rgba(255, 255, 255, 0.12);
  --ext-line-soft: rgba(255, 255, 255, 0.09);
  --ext-text: #f4f6f8;
  --ext-muted: #a4a7b0;
  --ext-panel-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  border: 1px solid var(--ext-line);
  border-radius: 8px;
  background: var(--ext-bg);
  box-shadow: var(--ext-panel-shadow);
  backdrop-filter: blur(26px);
  transform: translateX(-50%);
}

.app-panel.is-light {
  --ext-bg: rgba(238, 240, 244, 0.94);
  --ext-surface: rgba(255, 255, 255, 0.76);
  --ext-surface-strong: rgba(255, 255, 255, 0.92);
  --ext-line: rgba(38, 42, 50, 0.16);
  --ext-line-soft: rgba(38, 42, 50, 0.12);
  --ext-text: #181b20;
  --ext-muted: #676d78;
  --ext-panel-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.extension-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.extension-title {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
  color: var(--ext-text);
  font-size: 0.98rem;
}

.extension-title img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  object-fit: contain;
}

.extension-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.icon-button {
  min-height: 2.35rem;
  border: 1px solid var(--ext-line);
  border-radius: 8px;
  background: var(--ext-surface);
  color: var(--ext-muted);
  font-weight: 750;
}

.icon-button {
  display: grid;
  width: 2.35rem;
  padding: 0;
  place-items: center;
}

.sun-icon {
  position: relative;
  width: 0.74rem;
  height: 0.74rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.sun-icon::before {
  position: absolute;
  inset: -0.42rem;
  border: 2px dotted currentColor;
  border-radius: 50%;
  content: "";
}

.app-panel.is-light .sun-icon {
  background: currentColor;
  box-shadow: inset -0.25rem -0.12rem 0 0 var(--ext-surface-strong);
}

.app-panel.is-light .sun-icon::before {
  border-style: solid;
  opacity: 0;
}

.status-card {
  padding: 0.95rem;
  border: 1px solid rgba(50, 175, 160, 0.34);
  border-radius: 8px;
  background: rgba(31, 116, 99, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.minimal-mode .status-card {
  border-color: rgba(94, 156, 255, 0.34);
  background: rgba(41, 91, 148, 0.2);
}

.app-panel.is-light .status-card {
  background: rgba(50, 175, 160, 0.12);
}

.minimal-mode .app-panel.is-light .status-card {
  background: rgba(94, 156, 255, 0.12);
}

.status-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

.status-badge {
  position: relative;
  display: grid;
  width: 3.05rem;
  height: 3.05rem;
  place-items: center;
  border: 1px solid rgba(50, 175, 160, 0.42);
  border-radius: 50%;
  background: rgba(50, 175, 160, 0.12);
}

.minimal-mode .status-badge {
  border-color: rgba(94, 156, 255, 0.42);
  background: rgba(94, 156, 255, 0.12);
}

.status-badge::before,
.status-badge::after,
.mode-mark::before,
.mode-mark::after {
  position: absolute;
  content: "";
}

.status-badge::before,
.status-badge::after {
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  background: var(--accent);
  transform: translate(-50%, calc(-50% - 0.18rem)) rotate(45deg) skew(-8deg, -8deg);
}

.status-badge::after {
  background: transparent;
  border: 0.18rem solid var(--accent);
  opacity: 0.78;
  transform: translate(-50%, calc(-50% + 0.18rem)) rotate(45deg) skew(-8deg, -8deg);
}

.minimal-mode .status-badge::before {
  transform: translate(-50%, -50%) rotate(45deg) skew(-8deg, -8deg);
}

.minimal-mode .status-badge::after {
  width: 1.75rem;
  height: 0.22rem;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}

.status-top strong,
.status-top span {
  display: block;
}

.status-top strong {
  color: var(--ext-text);
  font-size: 1.55rem;
  line-height: 1.1;
}

.status-top span {
  margin-top: 0.4rem;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
}

.mode-switch {
  display: grid;
  gap: 0.25rem;
  padding: 0.25rem;
  grid-template-columns: 1fr 1fr;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.app-panel.is-light .mode-switch {
  background: rgba(29, 37, 44, 0.06);
}

.mode-switch button,
.preset-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ext-muted, var(--soft));
  font-weight: 700;
  min-height: 2.75rem;
}

.mode-switch button.is-active,
.preset-tabs button.is-active {
  border: 1px solid rgba(50, 175, 160, 0.34);
  background: rgba(50, 175, 160, 0.12);
  color: var(--accent);
}

.preset-tabs button.is-active {
  color: var(--teal);
}

.minimal-mode .mode-switch button.is-active {
  border-color: rgba(94, 156, 255, 0.38);
  background: rgba(94, 156, 255, 0.14);
}

.mode-mark {
  position: relative;
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
}

.mode-mark::before,
.mode-mark::after {
  left: 50%;
  top: 50%;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, calc(-50% - 0.12rem)) rotate(45deg) skew(-8deg, -8deg);
}

.mode-mark::after {
  background: transparent;
  border: 0.12rem solid var(--accent);
  opacity: 0.78;
  transform: translate(-50%, calc(-50% + 0.12rem)) rotate(45deg) skew(-8deg, -8deg);
}

.minimal-mark {
  opacity: 0.72;
}

.minimal-mark::before {
  transform: translate(-50%, -50%) rotate(45deg) skew(-8deg, -8deg);
}

.minimal-mark::after {
  width: 1.2rem;
  height: 0.16rem;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}

.extension-section-label {
  margin: 1.42rem 0 0.72rem;
  color: var(--ext-muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.extension-presets {
  border: 1px solid var(--ext-line);
  border-radius: 8px;
  background: var(--ext-surface);
  overflow: hidden;
}

.extension-preset-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.9rem;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--ext-line-soft);
  color: var(--ext-text);
}

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

.extension-preset-row.is-loaded {
  background: rgba(50, 175, 160, 0.07);
}

.minimal-mode .extension-preset-row.is-loaded {
  background: rgba(94, 156, 255, 0.08);
}

.extension-preset-row div {
  min-width: 0;
  margin-right: auto;
}

.extension-preset-row strong,
.extension-preset-row span {
  display: block;
}

.extension-preset-row strong {
  color: var(--ext-text);
  font-size: 0.98rem;
}

.extension-preset-row div span {
  margin-top: 0.22rem;
  color: var(--ext-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.extension-preset-row button {
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(50, 175, 160, 0.38);
  border-radius: 8px;
  background: rgba(50, 175, 160, 0.1);
  color: var(--accent);
  font-weight: 800;
}

.minimal-mode .extension-preset-row button {
  border-color: rgba(94, 156, 255, 0.38);
  background: rgba(94, 156, 255, 0.1);
}

.app-panel.is-light .extension-preset-row button {
  background: rgba(50, 175, 160, 0.12);
}

.minimal-mode .app-panel.is-light .extension-preset-row button {
  background: rgba(94, 156, 255, 0.12);
}

.extension-preset-row.is-loaded button {
  background: rgba(50, 175, 160, 0.2);
  color: #d9fff7;
}

.minimal-mode .extension-preset-row.is-loaded button {
  background: rgba(94, 156, 255, 0.2);
  color: #e4efff;
}

.app-panel.is-light .extension-preset-row.is-loaded button {
  color: #216f67;
}

.save-preset {
  width: 100%;
  margin-top: 0.95rem;
  border-color: rgba(50, 175, 160, 0.36);
  background: rgba(50, 175, 160, 0.12);
  color: #d8fff8;
  min-height: 3.25rem;
  box-shadow: 0 16px 34px rgba(50, 175, 160, 0.08);
}

.app-panel.is-light .save-preset {
  color: #21786e;
}

.minimal-mode {
  --accent: var(--blue);
}

.minimal-mode .save-preset {
  border-color: rgba(94, 156, 255, 0.42);
  background: rgba(94, 156, 255, 0.14);
  color: #e4efff;
}

.feature-band,
.presets-section,
.download-section {
  padding: 5rem 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 0.92fr);
  column-gap: clamp(2rem, 8vw, 6rem);
  row-gap: 1rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.section-heading .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0.3rem;
}

.section-heading h2 {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 11ch;
  margin-bottom: 0;
}

.section-heading > p:not(.eyebrow) {
  grid-column: 1;
  grid-row: 2;
  max-width: 34rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 15.5rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(17, 19, 24, 0.68);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(17, 19, 24, 0.78);
  transform: translateY(-4px);
}

.feature-mark {
  display: block;
  width: 2rem;
  height: 0.35rem;
  margin-bottom: 1.35rem;
  border-radius: 999px;
}

.mark-teal {
  background: var(--teal);
}

.mark-blue {
  background: var(--blue);
}

.mark-amber {
  background: var(--amber);
}

.mark-red {
  background: var(--red);
}

.presets-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(min(100%, 360px), 1fr);
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: center;
}

.preset-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  max-width: 23rem;
  margin-top: 1.8rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.preset-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(50, 175, 160, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(168, 137, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.preset-window {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(15, 17, 21, 0.72);
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}

.preset-window.is-changing {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(20, 24, 31, 0.82);
  transform: translateY(-2px);
}

.preset-summary span,
.download-card span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preset-summary,
.preset-metrics {
  transition: opacity 180ms ease, transform 180ms ease;
}

.preset-window.is-changing .preset-summary,
.preset-window.is-changing .preset-metrics {
  opacity: 0;
  transform: translateY(0.45rem);
}

.preset-summary strong {
  display: block;
  margin: 0.35rem 0 0.5rem;
  font-size: 2rem;
}

.preset-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 4.6rem;
  margin: 1.5rem 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 180ms ease, border-color 180ms ease;
}

.preset-window.is-changing .preset-stack {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
}

.mini-icon {
  width: 2.8rem;
  height: 2.8rem;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.26));
  transition: opacity 180ms ease, transform 180ms ease;
}

.preset-window.is-changing .mini-icon {
  opacity: 0;
  transform: translateY(0.35rem) scale(0.92);
}

.mini-icon.is-entering {
  animation: presetIconIn 260ms ease-out both;
}

@keyframes presetIconIn {
  0% {
    opacity: 0;
    transform: translateY(0.22rem) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.preset-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.preset-metrics span {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.preset-metrics strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(94, 156, 255, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(245, 184, 75, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.06);
}

.download-card {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.76);
}

.download-card img {
  width: 5rem;
  height: 5rem;
  border-radius: 8px;
}

.download-card strong {
  font-size: 1.25rem;
}

.download-card small {
  color: var(--muted);
  text-align: center;
}

.security-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.full-width {
  width: 100%;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .presets-section,
  .download-panel,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow,
  .section-heading h2,
  .section-heading > p:not(.eyebrow) {
    grid-column: 1;
    grid-row: auto;
    max-width: 44rem;
  }

  .section-heading h2 {
    max-width: 18ch;
  }

  .hero {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .screen-preview {
    min-height: 760px;
  }

  .app-panel {
    top: 2rem;
    left: 50%;
    right: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .brand span {
    display: none;
  }

  .header-download {
    margin-left: auto;
  }

  .section-shell {
    width: min(100% - 1rem, 1120px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .product-stage {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .screen-preview {
    min-height: 760px;
    transform: none;
  }

  .screen-preview:hover {
    transform: none;
  }

  .app-panel {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    transform: none;
  }

  .dock-demo {
    max-width: calc(100% - 1rem);
    gap: 0.38rem;
    padding: 0.52rem;
  }

  .dock-icon {
    width: min(var(--dock-size), 40px);
    height: min(var(--dock-size), 40px);
  }

  .feature-band,
  .presets-section,
  .download-section {
    padding: 3.5rem 0;
  }

  .feature-card {
    min-height: auto;
  }

  .download-panel {
    padding: 1rem;
  }

  .preset-metrics,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 0.5rem;
    padding: 0.45rem;
  }

  .header-download {
    padding: 0.58rem 0.7rem;
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-facts span {
    flex: 1 1 100%;
    text-align: center;
  }

  .screen-preview {
    min-height: 700px;
  }

  .app-panel {
    top: 0.75rem;
    right: 0.65rem;
    left: 0.65rem;
    padding: 0.78rem;
  }

  .extension-bar {
    margin-bottom: 0.9rem;
  }

  .extension-title {
    font-size: 0.92rem;
  }

  .icon-button {
    width: 2.1rem;
    min-height: 2.1rem;
  }

  .status-card {
    padding: 0.72rem;
  }

  .status-top {
    gap: 0.68rem;
  }

  .status-badge {
    width: 2.45rem;
    height: 2.45rem;
  }

  .status-top strong {
    font-size: 1.22rem;
  }

  .status-top span {
    font-size: 0.84rem;
  }

  .mode-switch button {
    min-height: 2.3rem;
    font-size: 0.86rem;
  }

  .extension-section-label {
    margin-top: 1rem;
  }

  .extension-preset-row {
    min-height: 3.3rem;
    padding: 0.58rem 0.65rem;
  }

  .extension-preset-row strong {
    font-size: 0.9rem;
  }

  .extension-preset-row div span {
    font-size: 0.76rem;
  }

  .extension-preset-row button {
    min-height: 2rem;
    padding: 0 0.62rem;
    font-size: 0.84rem;
  }

  .save-preset {
    min-height: 2.8rem;
    font-size: 0.9rem;
  }

  .dock-demo {
    bottom: 1.35rem;
    gap: 0.3rem;
    padding: 0.44rem;
  }


  .dock-icon {
    width: min(var(--dock-size), 34px);
    height: min(var(--dock-size), 34px);
    border-radius: 9px;
  }

  .preset-tabs {
    max-width: none;
  }

  .preset-board,
  .download-panel {
    padding: 0.75rem;
  }

  .preset-summary strong {
    font-size: 1.55rem;
  }

  .mini-icon {
    width: 2.35rem;
    height: 2.35rem;
  }
}

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