:root {
  --ink: #0c1f1c;
  --ink-soft: #4a625c;
  --paper: #eef4f1;
  --accent: #0f766e;
  --accent-mid: #0d635c;
  --accent-deep: #0b4f4a;
  --accent-glow: rgba(15, 118, 110, 0.28);
  --line: rgba(12, 31, 28, 0.1);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --shadow: 0 24px 64px rgba(12, 31, 28, 0.1);
  --shadow-cta: 0 16px 40px var(--accent-glow);
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius-lg: 22px;
  --radius-md: 14px;
  --spot-x: 50%;
  --spot-y: 0%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 70% at 85% -10%, rgba(15, 118, 110, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(11, 79, 74, 0.1), transparent 50%),
    linear-gradient(165deg, #f6faf8 0%, var(--paper) 48%, #e4ebe7 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading .pulse-dot {
  animation-duration: 0.65s;
}

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

.grid-fade {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(12, 31, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 31, 28, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite;
  will-change: transform;
}

.mesh-a {
  width: min(56vw, 560px);
  height: min(56vw, 560px);
  top: -16%;
  right: -10%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.38), transparent 68%);
}

.mesh-b {
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  bottom: -20%;
  left: -12%;
  background: radial-gradient(circle, rgba(45, 100, 80, 0.26), transparent 70%);
  animation-delay: -7s;
}

.mesh-c {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(180, 210, 195, 0.45), transparent 70%);
  animation-delay: -11s;
  opacity: 0.4;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.topbar,
.hero,
.downloads,
.features,
.install,
.page-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 64px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(11, 79, 74, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-sub {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.ghost-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--accent-deep);
  background: var(--surface-strong);
}

.ghost-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 12px clamp(20px, 4vw, 64px) 8px;
}

.hero-copy {
  max-width: 640px;
  animation: rise 0.7s ease-out both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
  margin-top: 0.08em;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}

.lede {
  margin: 20px 0 0;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.125rem);
  font-weight: 500;
  line-height: 1.65;
}

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

.trust-row li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.preview-card {
  justify-self: end;
  width: min(100%, 420px);
  animation: rise 0.8s ease-out 0.08s both;
}

.preview-window {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.2);
  overflow: hidden;
}

.preview-chrome {
  display: grid;
  grid-template-columns: 10px 10px 10px 1fr;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.preview-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7e4df;
}

.preview-chrome span:first-child {
  background: #f0b4b0;
}

.preview-chrome p {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.preview-body {
  display: grid;
  justify-items: center;
  padding: 36px 28px 32px;
  text-align: center;
}

.preview-body img {
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(11, 79, 74, 0.22);
}

.preview-title {
  margin: 18px 0 0;
  font-size: 1.15rem;
  font-weight: 750;
}

.preview-meta {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.preview-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.preview-pills span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.downloads,
.features,
.install {
  padding: 28px clamp(20px, 4vw, 64px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.features h3,
.install h3,
.os-card h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-note {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.os-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background:
    radial-gradient(240px circle at var(--spot-x) var(--spot-y), rgba(15, 118, 110, 0.12), transparent 55%),
    var(--surface);
  box-shadow: 0 16px 40px rgba(12, 31, 28, 0.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
  animation: rise 0.75s ease-out both;
}

.os-card:nth-child(2) {
  animation-delay: 0.06s;
}

.os-card:nth-child(3) {
  animation-delay: 0.12s;
}

.os-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 22px 48px rgba(12, 31, 28, 0.12);
}

.os-card.is-recommended {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow:
    0 22px 48px rgba(15, 118, 110, 0.16),
    inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.os-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.os-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-deep);
}

.recommend-badge {
  display: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #f4fffb;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.os-card.is-recommended .recommend-badge {
  display: inline-flex;
}

.os-card h3 {
  margin-top: 18px;
  font-size: 1.2rem;
}

.os-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

.os-meta {
  margin-top: 14px !important;
  color: var(--ink) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

.os-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.cta-primary,
.cta-secondary,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.cta-primary {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #f4fffb;
  box-shadow: var(--shadow-cta);
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.32);
}

.cta-primary[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.cta-secondary {
  border: 1px solid transparent;
  background: var(--accent-deep);
  color: #f4fffb;
}

.cta-secondary:hover {
  transform: translateY(-1px);
  background: var(--accent);
}

.cta-icon {
  display: grid;
  place-items: center;
}

.copy-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
}

.copy-btn:hover:not(:disabled) {
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--accent-deep);
  background: #fff;
}

.copy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.copy-btn:focus-visible,
.ghost-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.release-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.bar-sep {
  opacity: 0.4;
}

.status {
  margin: 12px 0 0;
  min-height: 1.4em;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45);
  animation: pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

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

.features article,
.install article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(12, 31, 28, 0.05);
}

.features p,
.install p,
.install li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
}

.features p {
  margin: 10px 0 0;
}

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

.install ol {
  margin: 14px 0 0;
  padding-left: 18px;
}

.install li + li {
  margin-top: 8px;
}

.install strong {
  color: var(--ink);
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px clamp(20px, 4vw, 64px) 32px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.page-footer .dot {
  opacity: 0.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #f4fffb;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: center;
  box-shadow: 0 16px 40px rgba(12, 31, 28, 0.28);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -22px, 0) scale(1.06);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(15, 118, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
  }
}

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

  .mesh,
  .hero-copy,
  .preview-card,
  .os-card,
  .pulse-dot,
  .toast {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .download-grid,
  .features,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .topbar {
    align-items: flex-start;
  }
}
