/* PlumeImpactor — dark brown + pure white, iOS premium */

:root {
  --bg: #1c1410;
  --bg-deep: #120e0b;
  --bg-elevated: #2a1f18;
  --bg-soft: #33261e;
  --accent: #5c4033;
  --accent-warm: #8b6350;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --display: "Syne", "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
  --max: 1120px;
  --page-pad: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Shared content width — nav, hero, sections, footer align */
.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* Atmosphere — full-bleed brown depth */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 70% -10%, rgba(139, 99, 80, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 40%, rgba(92, 64, 51, 0.35), transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(18, 14, 11, 0.9), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, var(--bg-deep) 100%);
}

/* Nav — frosted iOS bar, same shell as content */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(28, 20, 16, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  position: relative;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  z-index: 2;
}

.nav__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

@media (min-width: 480px) {
  .nav__icon {
    width: 36px;
    height: 36px;
  }
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav.is-open .nav__toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav.is-open .nav__toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav__links {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  display: none;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
  white-space: nowrap;
}

.nav__cta:hover {
  transform: scale(1.03);
}

.nav__cta--mobile {
  display: inline-flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Mobile dropdown menu */
@media (max-width: 767px) {
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: calc(100% + 1px);
    left: var(--page-pad);
    right: var(--page-pad);
    padding: 0.75rem;
    background: rgba(42, 31, 24, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  }

  .nav.is-open .nav__links a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    color: var(--text);
  }

  .nav.is-open .nav__links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav.is-open .nav__cta--mobile {
    margin-top: 0.35rem;
  }
}

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__links {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav__cta--desktop {
    display: inline-flex;
  }

  .nav__cta--mobile {
    display: none;
  }
}

/* Hero — centered, no product image */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3.5rem, 10vw, 6.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 15% 20% auto;
  height: 42%;
  max-width: 640px;
  margin-inline: auto;
  left: 0;
  right: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 99, 80, 0.35) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(12px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: var(--max);
}

.hero__appicon {
  width: clamp(72px, 14vw, 96px);
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 22%;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.hero__brand {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0.85rem;
  padding: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.65rem, 8.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

.hero__headline {
  margin: 0 auto 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3.2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 28rem;
  text-align: center;
}

.hero__support {
  margin: 0 auto 2rem;
  max-width: 30rem;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  line-height: 1.55;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

/* Sections — same shell */
.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.section__header {
  max-width: 34rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__header h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.5vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

/* Features */
.features__grid {
  display: grid;
  gap: 2.25rem 2rem;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.75rem 2.5rem;
  }
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.feature__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  color: var(--accent-warm);
}

.feature__icon svg {
  width: 100%;
  height: 100%;
}

/* Showcase — same shell, image fills content column */
.showcase__frame {
  margin: 0;
}

.showcase__frame img {
  width: 100%;
  border-radius: clamp(14px, 3vw, var(--radius));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

/* Pairing */
.pairing__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .pairing__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.pairing__block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  letter-spacing: -0.03em;
}

.pairing__block p {
  margin: 0;
  color: var(--text-muted);
}

/* How it works */
.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.how__steps li {
  display: grid;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.how__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
}

.how__steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.how__steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.how__note {
  margin: 2.5rem 0 0;
  max-width: 40rem;
  padding: 1.15rem 1.25rem;
  border-left: 2px solid var(--accent-warm);
  color: var(--text-faint);
  font-size: 0.92rem;
}

/* Download */
.download__hint {
  margin: -1.5rem 0 1.5rem;
  color: var(--accent-warm);
  font-size: 0.95rem;
  font-weight: 500;
}

.download__platforms {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .download__platforms {
    grid-template-columns: repeat(3, 1fr);
  }
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.35s var(--ease), background 0.3s ease;
  min-width: 0;
}

.platform:hover,
.platform.is-preferred {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.platform__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.platform__meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.download__all {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.download__all a:hover {
  color: var(--text);
}

/* Footer — same shell */
.footer {
  padding-block: 3rem 3.5rem;
  border-top: 1px solid var(--line);
}

.footer__inner {
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-weight: 700;
}

.footer__brand img {
  border-radius: 7px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.5rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__credit {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 36rem;
  margin-inline: auto;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .nav__cta,
  .platform,
  .nav__toggle span {
    transition: none;
  }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .hero__actions .btn {
    width: 100%;
  }

  .platform {
    padding: 1.1rem 1rem;
  }
}

/* ========== Download page ========== */
.dl-hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.dl-hero__inner {
  max-width: var(--max);
}

.dl-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.dl-hero__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.dl-hero__support {
  margin: 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}

.dl-hero__hint {
  margin: 1.25rem 0 0;
  color: var(--accent-warm);
  font-size: 0.95rem;
  font-weight: 500;
}

.dl-builds {
  padding-top: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}

/* Windows / macOS / Linux — reference-style cards */
.dl-os-row {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .dl-os-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  min-width: 0;
  padding: 1.75rem 1.25rem 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.dl-card.is-preferred {
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 1px rgba(139, 99, 80, 0.35);
  background: var(--bg-soft);
}

.dl-card__badge {
  display: none;
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-warm);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.dl-card.is-preferred .dl-card__badge {
  display: inline-flex;
}

.dl-card__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.dl-card__icon img {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.dl-card__icon svg {
  width: 1.85rem;
  height: 1.85rem;
  color: #fff;
  fill: #fff;
}

.dl-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.dl-card.is-preferred .dl-card__title {
  color: var(--accent-warm);
}

.dl-card__sub {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dl-card__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.dl-card__primary svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.dl-card__primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.dl-card.is-preferred .dl-card__primary {
  background: var(--accent-warm);
  color: var(--text);
}

.dl-card__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
}

.dl-card__options a {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(18, 14, 11, 0.55);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.dl-card__options a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(18, 14, 11, 0.8);
}

/* CLI platform block */
.dl-platform {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: clamp(1.15rem, 2.5vw, 1.4rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(42, 31, 24, 0.35);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.dl-platform__head {
  margin-bottom: 1rem;
}

.dl-platform__head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.03em;
}

.dl-platform__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: none;
}

.dl-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.dl-grid--wide {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .dl-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .dl-grid--wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dl-file {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  min-width: 0;
  transition: border-color 0.3s ease, transform 0.35s var(--ease), background 0.3s ease;
}

.dl-file:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.dl-file__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.dl-file__meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.dl-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dl-checklist {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.dl-checklist li {
  display: grid;
  gap: 0.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.dl-checklist strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.dl-checklist span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dl-back {
  margin: 2.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dl-back a:hover {
  color: var(--text);
}

.nav__links a[aria-current="page"] {
  color: var(--text);
}
