.app-hero {
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--accent-soft) 100%);
}
.app-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.app-hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--headline);
  margin-top: 18px;
}
.app-hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent-base);
}
.app-hero .strap {
  margin-top: 22px;
  font-size: 17px;
  color: var(--body);
  line-height: 1.65;
  font-weight: 400;
  max-width: 48ch;
}
.app-store-row {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--navy-1);
  color: #fff;
  border-radius: var(--radius-md);
  transition: background 200ms, transform 320ms var(--bounce);
}
.store-btn:hover { background: var(--accent-base); transform: translateY(-3px); }
.store-btn span {
  display: flex; flex-direction: column;
  gap: 2px; text-align: left;
}
.store-btn b { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.store-btn i {
  font-size: 11px;
  font-style: normal;
  font-family: var(--mono);
  letter-spacing: 0.2em;
  opacity: 0.7;
  text-transform: uppercase;
}
.app-hero__device {
  display: flex; align-items: center; justify-content: center;
}
.device-frame {
  position: relative;
  width: 340px; height: 680px;
  border-radius: 56px;
  background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
  padding: 18px;
  box-shadow: var(--shadow-deep);
}
.device-frame::after {
  content: "";
  position: absolute;
  inset: -20% -20% -20% -20%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}
.device-screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: radial-gradient(circle at center, #122B5A 0%, #050B1E 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
  position: relative;
}
.device-orb {
  width: 220px; height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent-base) 80%, white) 0%, transparent 70%),
    radial-gradient(circle at center, var(--accent-base) 0%, var(--navy-1) 70%);
  box-shadow: 0 0 80px var(--accent-base);
  animation: orbPulse 3.4s ease-in-out infinite;
}
@keyframes orbPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.85; } }
.device-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}
.device-notch {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #000;
  border-radius: 16px;
  z-index: 3;
}

.store-btn--lg { padding: 18px 28px; }
.download-store-pair {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
}
.download-code {
  max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}
.download-code__label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 14px;
}
.download-code pre {
  position: relative;
  background: var(--navy-1);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 15px;
  overflow-x: auto;
}
.download-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.download-companion-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lift);
}
.download-companion-card__copy h3 {
  font-family: var(--display);
  font-size: 28px; font-weight: 300;
  color: var(--headline);
  margin-bottom: 14px;
}
.download-companion-card__copy p {
  color: var(--body); line-height: 1.65; font-size: 15px;
}
.download-companion-card .download-cta-row { justify-content: flex-start; }
.download-companion-card__list {
  list-style: none; display: grid; gap: 14px;
}
.download-companion-card__list li {
  font-size: 14px; color: var(--body);
  padding-left: 18px; position: relative;
}
.download-companion-card__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-base);
}
.download-companion-card__list strong { color: var(--headline); font-weight: 600; }
.download-pkg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.download-pkg {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}
.download-pkg h3 {
  font-family: var(--display);
  font-size: 24px; font-weight: 300;
  color: var(--headline);
}
.download-pkg p { color: var(--body); line-height: 1.6; font-size: 14px; }
.download-pkg pre {
  position: relative;
  width: 100%;
  background: var(--navy-1);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 14px;
  overflow-x: auto;
}

.download-code pre,
.download-pkg pre { padding-right: 104px; }

.copy-code-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.copy-code-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.copy-code-btn.is-copied {
  color: var(--accent-base);
  border-color: var(--accent-base);
  background: rgba(103, 208, 168, 0.12);
}

.section--downloads-top { padding-top: 150px; }
@media (max-width: 900px) { .section--downloads-top { padding-top: 120px; } }

.dl-os-icon {
  display: inline-block;
  width: 40px; height: 40px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.92;
}
.dl-os-icon--win {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23257be4'><path d='M3 5.1 10.2 4v7.5H3zM3 12.5h7.2V20L3 18.9zM11.1 3.9 21 2.5v9H11.1zM11.1 12.5H21V21.5l-9.9-1.4z'/></svg>");
}
.dl-os-icon--mac {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2367d0a8'><path d='M16.5 0c.1 1.3-.4 2.5-1.2 3.4-.9 1-2.2 1.7-3.5 1.6-.1-1.3.5-2.5 1.3-3.4C14.1.6 15.4 0 16.5 0zm4 17.2c-.6 1.3-.9 1.9-1.6 3-1 1.6-2.5 3.6-4.3 3.7-1.6 0-2-1-4.2-1-2.2 0-2.7 1-4.2 1-1.8 0-3.2-1.8-4.2-3.4-2.8-4.5-3.1-9.9-1.4-12.7 1.2-2 3.1-3.2 4.9-3.2 1.8 0 3 1 4.5 1 1.5 0 2.4-1 4.5-1 1.6 0 3.3.9 4.5 2.4-4 2.2-3.3 7.9.5 10.2z'/></svg>");
}
.dl-os-icon--linux {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f0a32d'><path d='M12 2c-2.3 0-3.6 2-3.6 4.4 0 1.7.5 2.6.5 3.9 0 1.6-1.6 2.7-2.6 4.7-.9 1.7-1.9 3.4-1.9 5 0 1.6 1.2 2 2.4 2 1 0 1.6-.4 2.4-.4.7 0 1.5.4 2.8.4s2.1-.4 2.8-.4c.8 0 1.4.4 2.4.4 1.2 0 2.4-.4 2.4-2 0-1.6-1-3.3-1.9-5-1-2-2.6-3.1-2.6-4.7 0-1.3.5-2.2.5-3.9C15.6 4 14.3 2 12 2zm-1.6 4.1c.4 0 .7.4.7 1s-.3 1-.7 1-.7-.4-.7-1 .3-1 .7-1zm3.2 0c.4 0 .7.4.7 1s-.3 1-.7 1-.7-.4-.7-1 .3-1 .7-1z'/></svg>");
}

.dl-recommended {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.dl-recommended__glow {
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(circle, var(--accent-base), transparent 60%);
  opacity: 0.35;
  filter: blur(60px);
  pointer-events: none;
}
.dl-recommended__inner {
  position: relative;
  padding: 38px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "head btn" "hint hint";
  gap: 22px 32px;
  align-items: center;
}
.dl-recommended__head { grid-area: head; display: flex; align-items: center; gap: 20px; }
.dl-recommended__head .dl-os-icon { width: 52px; height: 52px; }
.dl-recommended__eyebrow {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-base);
}
.dl-recommended__meta h3 {
  font-family: var(--display);
  font-size: 28px; font-weight: 300;
  color: #fff;
  margin: 4px 0 6px;
}
.dl-recommended__meta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.dl-recommended__btn {
  grid-area: btn;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 30px;
  background: var(--accent-base);
  color: #fff;
  border-radius: var(--radius-md);
  transition: transform 320ms var(--bounce), box-shadow 280ms;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--accent-base) 45%, transparent);
}
.dl-recommended__btn:hover { transform: translateY(-3px); box-shadow: 0 20px 50px color-mix(in srgb, var(--accent-base) 55%, transparent); }
.dl-recommended__btn svg { width: 30px; height: 30px; }
.dl-recommended__btn span { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.dl-recommended__btn b { font-size: 17px; font-weight: 600; }
.dl-recommended__btn i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}
.dl-recommended__hint {
  grid-area: hint;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
}

.dl-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.dl-col {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dl-col__head { display: flex; align-items: center; gap: 14px; }
.dl-col__head h4 {
  font-family: var(--display);
  font-size: 20px; font-weight: 400;
  color: var(--headline);
}
.dl-col__note {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--mute);
}
.dl-col__builds { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dl-build {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "arch dl" "sub dl";
  align-items: center;
  gap: 2px 14px;
  padding: 14px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-md);
  background: var(--canvas);
  transition: border-color 200ms, transform 280ms var(--bounce), background 200ms;
}
.dl-build:hover {
  border-color: var(--accent-base);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.dl-build__arch { grid-area: arch; font-size: 15px; font-weight: 600; color: var(--headline); }
.dl-build__sub {
  grid-area: sub;
  font-family: var(--mono);
  font-size: 11px; color: var(--mute);
  display: flex; align-items: center; gap: 8px;
}
.dl-build__ext {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--navy-1);
  color: #fff;
  letter-spacing: 0.04em;
}
.dl-build__dl { grid-area: dl; width: 20px; height: 20px; color: var(--accent-base); }

.dl-foot { max-width: 1000px; margin: 30px auto 0; text-align: center; }
.dl-foot__checksums {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mute);
}
.dl-foot__checksums a { color: var(--accent-base); }

@media (max-width: 900px) {
  .app-hero__inner { grid-template-columns: 1fr; }
  .device-frame { width: 280px; height: 560px; }
  .device-orb { width: 180px; height: 180px; }
  .download-companion-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .download-pkg-grid { grid-template-columns: 1fr; }
  .dl-matrix { grid-template-columns: 1fr; }
  .dl-recommended__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "btn" "hint";
    padding: 28px 24px;
  }
  .dl-recommended__btn { justify-content: center; }
}
