:root {
  color-scheme: light;
  --app-background: #faf9f6;
  --pane: #ffffff;
  --pane-raised: #f1f0ec;
  --pane-soft: #f7f6f2;
  --border: #ece8e0;
  --border-strong: #d9d3c7;
  --text-primary: #0f0f10;
  --text-secondary: #353232;
  --text-muted: #76706a;
  --accent: #5b54ff;
  --accent-soft: #ece9ff;
  --accent-blue: #2563eb;
  --accent-mint: #16a34a;
  --accent-mint-soft: #dcfce7;
  --accent-rose: #ff4d5e;
  --shadow-soft: 0 1px 2px rgba(15, 15, 16, 0.04), 0 8px 24px rgba(15, 15, 16, 0.04);
  --shadow-card: 0 1px 2px rgba(15, 15, 16, 0.04), 0 12px 40px rgba(15, 15, 16, 0.06);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--app-background);
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: var(--app-background);
  color: var(--text-primary);
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    monospace;
}

/* Ambient backdrop ----------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}

.ambient-blob--violet {
  top: -240px;
  right: -180px;
  background: radial-gradient(circle at 30% 30%, #c8c3ff 0%, rgba(200, 195, 255, 0) 60%);
}

.ambient-blob--mint {
  top: 320px;
  left: -260px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle at 70% 50%, #b8f0d2 0%, rgba(184, 240, 210, 0) 60%);
  opacity: 0.45;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 15, 16, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 15, 16, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 1100px 700px at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 1100px 700px at 50% 0%, #000 35%, transparent 80%);
}

/* Layout shell --------------------------------------------------------- */

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

/* Topbar --------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
  background: var(--pane);
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.topbar-nav a:hover {
  background: var(--pane);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 84, 255, 0.18);
}

.eyebrow-dot--mint {
  background: var(--accent-mint);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.title-accent {
  background: linear-gradient(110deg, #5b54ff 0%, #2563eb 50%, #16a34a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.55;
}

.intro code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--pane);
  font-size: 0.95em;
}

/* Trust row ------------------------------------------------------------ */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.trust-row svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.trust-row li:nth-child(1) svg {
  color: var(--accent-mint);
}

.trust-row li:nth-child(3) svg {
  color: var(--accent-blue);
}

/* Install panel -------------------------------------------------------- */

.install-panel {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin-top: 32px;
}

.panel-label {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--pane);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.command-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.command-row code {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--text-primary);
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 500;
}

button,
.download-button {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: var(--pane-raised);
  color: var(--text-primary);
  padding: 0 18px;
  white-space: nowrap;
}

button:hover {
  background: var(--pane-soft);
}

.copy-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--accent-mint);
  font-size: 13px;
  font-weight: 600;
}

.download-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  text-decoration: none;
  background: linear-gradient(180deg, #6c66ff 0%, #5b54ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 1px 2px rgba(91, 84, 255, 0.25),
    0 12px 28px rgba(91, 84, 255, 0.28);
}

.download-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 1px 2px rgba(91, 84, 255, 0.3),
    0 16px 36px rgba(91, 84, 255, 0.32);
}

.download-button:active {
  transform: translateY(0);
}

button:focus-visible,
.download-button:focus-visible,
.brand:focus-visible,
.topbar-nav a:focus-visible {
  outline: 3px solid #70a7ff;
  outline-offset: 3px;
}

/* App preview ---------------------------------------------------------- */

.app-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  position: relative;
  z-index: 0;
}

.device-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.device-glow {
  position: absolute;
  inset: 8% -10% 8% -10%;
  background: radial-gradient(closest-side, rgba(91, 84, 255, 0.45) 0%, rgba(91, 84, 255, 0) 70%);
  filter: blur(32px);
  z-index: 0;
  pointer-events: none;
}

.device-glow--two {
  inset: 30% -25% -10% -25%;
  background: radial-gradient(closest-side, rgba(22, 163, 74, 0.32) 0%, rgba(22, 163, 74, 0) 70%);
  filter: blur(48px);
}

.app-preview-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(118%, 580px);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(15, 15, 16, 0.18))
    drop-shadow(0 8px 16px rgba(15, 15, 16, 0.08));
  animation: device-float 8s ease-in-out infinite;
}

@keyframes device-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.device-badge {
  position: absolute;
  z-index: 2;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.device-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Steps ---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.step:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, var(--pane-soft) 100%);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.step code {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--pane);
  font-size: 0.92em;
}

/* Security strip ------------------------------------------------------- */

.security {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 246, 242, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.security::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 0% 0%, rgba(91, 84, 255, 0.08), transparent 60%),
    radial-gradient(closest-side at 100% 100%, rgba(22, 163, 74, 0.08), transparent 60%);
  pointer-events: none;
}

.security-icon {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, var(--pane-soft) 100%);
  color: var(--accent-mint);
  box-shadow: var(--shadow-soft);
}

.security-icon svg {
  width: 26px;
  height: 26px;
}

.security-copy {
  position: relative;
  min-width: 0;
}

.security-copy .eyebrow {
  margin-bottom: 12px;
  color: var(--accent-mint);
}

.security-copy h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
}

.security-copy p {
  margin: 8px 0 0;
  max-width: 620px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 15px;
}

.security-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  min-width: 320px;
}

.security-stats > div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--pane);
}

.security-stats dt {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.security-stats dd {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Footer --------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

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

.footer-meta {
  margin: 0;
  flex-basis: 100%;
  text-align: left;
  color: var(--text-muted);
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 980px) {
  .topbar {
    margin-bottom: 40px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }

  .app-preview {
    justify-content: center;
    min-height: auto;
    margin-top: 8px;
  }

  .app-preview-image {
    width: min(100%, 480px);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .security {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .security-icon {
    margin-bottom: 4px;
  }

  .security-stats {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 1160px);
    padding: 20px 0 40px;
  }

  .topbar {
    align-items: center;
  }

  h1 {
    font-size: 40px;
    letter-spacing: -0.03em;
  }

  .intro {
    font-size: 16.5px;
  }

  .trust-row li {
    font-size: 12.5px;
    padding: 7px 12px;
  }

  .command-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-row code {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 13.5px;
  }

  button {
    border-top: 1px solid var(--border);
    border-left: 0;
    justify-content: center;
  }

  .download-button {
    width: 100%;
  }

  .app-preview-image {
    width: min(100%, 380px);
  }

  .security {
    padding: 24px;
  }

  .security-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-preview-image,
  .device-badge-dot {
    animation: none;
  }

  .step:hover,
  .download-button:hover,
  .topbar-nav a:hover {
    transform: none;
  }
}
