:root {
  color-scheme: dark;
  --bg: #0e1015;
  --bg-soft: #151922;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2eee8;
  --muted: rgba(242, 238, 232, 0.72);
  --accent: #ff8b5d;
  --accent-soft: rgba(255, 139, 93, 0.16);
  --windows-accent: #6ab2ff;
  --windows-soft: rgba(106, 178, 255, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --hero-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --ui-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 139, 93, 0.2), transparent 24rem),
    radial-gradient(circle at left center, rgba(101, 168, 255, 0.14), transparent 26rem),
    linear-gradient(180deg, #171a22 0%, var(--bg) 44%, #090b0f 100%);
  color: var(--text);
  font-family: var(--ui-sans);
}

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

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

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0 0.8rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(14, 16, 21, 0.92), rgba(14, 16, 21, 0.48));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-copy {
  display: grid;
  gap: 0.14rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.brand-name {
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow,
.hero-kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.brand-copy .eyebrow {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a,
.header-cta,
.button,
.download-tile {
  outline: none;
}

.site-nav a:hover,
.release-links a:hover {
  color: var(--text);
}

.site-nav a:focus-visible,
.header-cta:focus-visible,
.button:focus-visible,
.download-tile:focus-visible,
.release-links a:focus-visible {
  outline: 2px solid rgba(255, 139, 93, 0.9);
  outline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: start;
  min-height: min(46rem, calc(100svh - 4.8rem));
  padding: 0.7rem 0 2.6rem;
}

.hero-copy,
.hero-visual,
.support-strip,
.feature-runway article,
.gallery-copy,
.gallery-card,
.release-panel {
  animation: rise 0.8s ease-out both;
}

.hero-copy {
  display: grid;
  gap: 1.05rem;
  animation-delay: 0.08s;
}

.hero-visual {
  animation-delay: 0.18s;
}

.hero h1,
.support-strip h2,
.gallery-copy h2,
.release-panel h2 {
  margin: 0;
  font-family: var(--hero-serif);
  line-height: 0.97;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.55rem, 6vw, 4.9rem);
  max-width: 10.5ch;
}

.hero-intro {
  display: grid;
  gap: 0.45rem;
}

.platform-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(242, 238, 232, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-pill-macos {
  border-color: rgba(255, 139, 93, 0.32);
  background: rgba(255, 139, 93, 0.12);
}

.platform-pill-windows {
  border-color: rgba(106, 178, 255, 0.32);
  background: rgba(106, 178, 255, 0.1);
}

.hero-body,
.support-copy p,
.feature-runway p,
.gallery-copy p,
.release-panel {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-body {
  max-width: 34rem;
  margin: 0;
}

.hero-download-label {
  margin: 0;
  color: rgba(242, 238, 232, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.download-tile {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-height: 9.6rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.download-tile::after {
  content: "";
  position: absolute;
  inset: auto -15% -45% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  opacity: 0.9;
  filter: blur(18px);
}

.download-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.download-platform {
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 238, 232, 0.7);
}

.download-tile strong {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  line-height: 1.02;
  font-weight: 600;
}

.download-note {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.45;
}

.download-cta {
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-cta::after {
  content: " →";
}

.download-macos {
  background:
    linear-gradient(135deg, rgba(255, 139, 93, 0.28), rgba(255, 139, 93, 0.08)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 139, 93, 0.32);
}

.download-macos::after {
  background: rgba(255, 139, 93, 0.28);
}

.download-windows {
  background:
    linear-gradient(135deg, rgba(106, 178, 255, 0.24), rgba(106, 178, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(106, 178, 255, 0.32);
}

.download-windows::after {
  background: rgba(106, 178, 255, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #1c120e;
  border-color: transparent;
}

.header-cta {
  min-height: 2.7rem;
  padding: 0 1.05rem;
  font-size: 0.94rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost {
  background: transparent;
}

.hero-trust {
  margin: 0;
  color: rgba(242, 238, 232, 0.82);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 30rem;
  padding-top: 0.35rem;
}

.app-stage {
  position: relative;
  min-height: 31rem;
}

.app-window {
  position: absolute;
  overflow: hidden;
  border-radius: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(19, 23, 31, 0.98), rgba(10, 13, 18, 0.99)),
    #0d1117;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.7rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.window-lights {
  display: inline-flex;
  gap: 0.32rem;
}

.window-lights span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.window-lights span:first-child {
  background: #ff8b5d;
}

.window-lights span:nth-child(2) {
  background: #ffcd66;
}

.window-lights span:nth-child(3) {
  background: #61d56d;
}

.window-title {
  color: rgba(242, 238, 232, 0.76);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.viewer-window {
  inset: 3% 9% 8% 5%;
  transform: rotate(-1.35deg);
  animation: drift 16s ease-in-out infinite;
}

.viewer-canvas {
  position: relative;
  height: calc(100% - 2.7rem);
  background: #0d1117;
}

.viewer-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}

.viewer-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgba(11, 13, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(242, 238, 232, 0.9);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-badge-top {
  top: 1rem;
  right: 1rem;
}

.viewer-badge-bottom {
  left: 1rem;
  bottom: 4.5rem;
}

.viewer-toolbar {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.viewer-toolbar span,
.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 15, 19, 0.82);
  color: rgba(242, 238, 232, 0.84);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-window {
  top: 8%;
  right: 1%;
  width: min(19rem, 42%);
  min-height: 23rem;
  z-index: 2;
}

.settings-mini {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.settings-mini-tabs {
  display: inline-flex;
  gap: 0.45rem;
}

.settings-mini-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 238, 232, 0.68);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-mini-tabs .active {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(207, 216, 255, 0.16);
  border-color: rgba(207, 216, 255, 0.22);
}

.settings-mini-pane {
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.settings-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
}

.settings-mini-row + .settings-mini-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-mini-row strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}

.settings-mini-row p {
  margin: 0.32rem 0 0;
  color: rgba(242, 238, 232, 0.62);
  font-size: 0.74rem;
  line-height: 1.45;
}

.mini-toggle {
  position: relative;
  width: 2.8rem;
  height: 1.7rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-toggle::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.mini-toggle.is-on {
  background: rgba(207, 216, 255, 0.32);
}

.mini-toggle.is-on::after {
  transform: translateX(1.05rem);
}

.visual-plane {
  position: absolute;
  inset: 10% 10% 10% 12%;
  border-radius: 2rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, rgba(255, 139, 93, 0.2), rgba(101, 168, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: blur(0.2px);
}

.shot {
  position: absolute;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: #0d1117;
}

.shot img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-main {
  --drift-rotate-start: -1.5deg;
  --drift-rotate-mid: -0.4deg;
  inset: 4% 7% 9% 10%;
  transform: rotate(-1.5deg);
  animation: drift 16s ease-in-out infinite;
}

.visual-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 16, 21, 0.82);
  box-shadow: var(--shadow);
  color: rgba(242, 238, 232, 0.92);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-badge-top {
  top: 3%;
  right: 4%;
}

.visual-badge-bottom {
  left: 4%;
  bottom: 2%;
}

.support-strip,
.gallery,
.release-panel {
  border-top: 1px solid var(--line);
}

.support-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  padding: 2.25rem 0 1.7rem;
}

.support-strip h2,
.gallery-copy h2,
.release-panel h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.support-audience {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.8rem;
}

.support-audience span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(242, 238, 232, 0.9);
  font-size: 0.92rem;
}

.feature-runway {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0.8rem 0 3.1rem;
}

.feature-runway article {
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.feature-runway h3 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.08;
  font-weight: 500;
}

.feature-runway p {
  margin: 0.9rem 0 0;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
  padding: 2.35rem 0 3rem;
}

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

.gallery-card {
  position: relative;
  min-height: 15rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 220ms ease;
}

.gallery-card:first-child {
  grid-column: span 2;
  min-height: 21rem;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(11, 13, 17, 0.12), rgba(11, 13, 17, 0.84));
  color: rgba(242, 238, 232, 0.92);
  font-size: 0.92rem;
  line-height: 1.45;
}

.release-panel {
  padding: 2.35rem 0 0;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.release-card,
.release-install {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.03);
}

.release-card {
  padding: 1.3rem 1.35rem;
}

.release-card-label {
  margin: 0 0 0.85rem;
  color: rgba(242, 238, 232, 0.86);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-facts {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.release-install {
  padding: 1.3rem 1.35rem;
}

.install-steps {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.install-steps span {
  color: var(--text);
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.1rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--drift-rotate-start, -3deg));
  }

  50% {
    transform: translateY(-10px) rotate(var(--drift-rotate-mid, -1.5deg));
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .support-strip,
  .gallery,
  .feature-runway {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    padding-bottom: 0.65rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero-visual {
    min-height: 22rem;
  }

  .app-stage {
    min-height: 24rem;
  }

  .settings-window {
    width: min(18rem, 48%);
  }

  .hero-downloads {
    grid-template-columns: 1fr;
  }

  .release-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1.25rem, 1200px);
  }

  .hero h1 {
    max-width: 11ch;
  }

  .hero-actions,
  .release-links,
  .site-nav,
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .button,
  .download-tile {
    width: 100%;
  }

  .gallery-grid,
  .feature-runway {
    grid-template-columns: 1fr;
  }

  .gallery-card:first-child {
    grid-column: auto;
  }

  .shot-main {
    inset: 0;
  }

  .app-stage {
    min-height: 26rem;
  }

  .viewer-window {
    inset: 0 0 4.8rem;
    transform: none;
  }

  .settings-window {
    position: absolute;
    right: 0.5rem;
    bottom: 0;
    left: auto;
    top: auto;
    width: min(17rem, calc(100% - 2rem));
    min-height: 16rem;
  }

  .viewer-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .visual-badge {
    font-size: 0.74rem;
  }

  .visual-badge-bottom {
    left: 0;
    bottom: -2.9rem;
  }
}
