.brand-name,
.headline {
  letter-spacing: -0.02em;
}

.card p,
.dl-note,
.section-sub,
.subhead {
  color: var(--muted);
}

.card.in-view,
body.ready,
body.ready .reveal {
  opacity: 1;
  transform: none;
}

:root {
  --brand-1: #288d7c;
  --brand-2: #288d7c;
  --bg: #0b0b0f;
  --text: #f4f4f5;
  --muted: #c8c8ce;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.05);
  --success: #26c281;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      1200px 800px at 10% 0,
      color-mix(in oklab, var(--brand-1) 65%, transparent) 0,
      transparent 60%
    ),
    radial-gradient(
      1000px 700px at 100% 70%,
      color-mix(in oklab, var(--brand-2) 65%, transparent) 0,
      transparent 60%
    ),
    var(--bg);
  background-repeat: no-repeat;
  background-position:
    10% 0,
    100% 70%,
    center;
  background-size:
    160% 160%,
    160% 160%,
    auto;
}

@keyframes bg-drift {
  0%,
  100% {
    background-position:
      8% -2%,
      98% 72%,
      center;
  }

  50% {
    background-position:
      12% 2%,
      102% 68%,
      center;
  }
}

body.bg-animate {
  animation: 18s ease-in-out infinite bg-drift;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 15, 0.9),
    rgba(11, 11, 15, 0.55)
  );
  border-bottom: 1px solid var(--border);
  transition: transform 0.6s;
}

/* HIDE HEADER ONLY WHEN JS IS PRESENT */
.js header.site-header {
  transform: translateY(-100%);
}

.btn,
.hero,
img.hero-shot {
  position: relative;
}

body.ready header.site-header {
  transform: translateY(0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-name {
  font-weight: 800;
}

.nav-links {
  gap: 18px;
}

.nav-links a {
  opacity: 0.9;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a:hover {
  background: var(--glass);
  opacity: 1;
}

.hero {
  padding: 96px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.headline {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 900;
}

.btn,
.btn .tag {
  font-weight: 700;
}

.subhead {
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 60ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  letter-spacing: 0.01em;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border: none;
  box-shadow: 0 12px 40px color-mix(in oklab, var(--brand-2) 32%, transparent);
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: -20%;
  transform: translateX(-120%) rotate(12deg);
  filter: blur(6px);
  background: linear-gradient(
    90deg,
    transparent 0 45%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 55% 100%
  );
}

.btn.primary:hover::after {
  animation: 1s forwards sheen;
}

@keyframes sheen {
  to {
    transform: translateX(120%) rotate(12deg);
  }
}

.btn.secondary {
  background: var(--glass);
}

.btn .tag,
.card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn .tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* HERO IMAGE HIDE ONLY IF JS PRESENT */
.js img.hero-shot {
  border-radius: 20px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  transform: perspective(1200px) rotateX(0) rotateY(0) translateY(8px);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.8s;
}

img {
  width: 100%;
}

body.ready img.hero-shot {
  opacity: 1;
  transform: perspective(1200px) rotateX(0) rotateY(0) translateY(0);
}

section {
  padding: 72px 0;
}

.section-title {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-sub {
  margin: 0 0 28px;
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition:
    transform 0.25s,
    background 0.25s,
    border-color 0.25s,
    opacity 0.6s;
  opacity: 1;
  transform: translateY(16px) scale(0.98);
}

.card:hover {
  transform: translateY(-4px) scale(1);
  border-color: color-mix(in oklab, var(--brand-1) 40%, var(--border));
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
}

.check {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  margin-right: 10px;
}

.download-section {
  padding: 28px 0 112px;
}

.download-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.68fr);
  gap: 54px;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(34, 176, 178, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 5% 10%, rgba(22, 119, 141, 0.2), transparent 35%),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 34px 100px rgba(0, 0, 0, 0.2);
}

.terms-link:focus-visible {
  outline: 2px solid rgba(202, 66, 96, 0.85);
  outline-offset: 3px;
}
.terms-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px auto 0;
  color: #85858e;
  font-size: 10.5px;
  transition: color 0.18s ease;
}

.terms-link:hover {
  color: var(--muted-strong);
}

.download-panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -190px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.012),
    0 0 0 90px rgba(255, 255, 255, 0.008);
  pointer-events: none;
}

.download-panel {
  padding: 26px 20px;
  border-radius: 20px;
}

.download-copy .section-sub {
  margin-top: 14px;
  max-width: 52ch;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.download-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.download-btn {
  min-height: 60px;
  justify-content: flex-start;
  padding-inline: 14px 18px;
}

.download-btn > span:last-child {
  display: grid;
  gap: 1px;
  text-align: left;
}

.download-btn strong {
  font-size: 13px;
}

.download-btn small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 10.5px;
  font-weight: 520;
}

.download-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.download-actions .secondary .download-icon {
  background: rgba(255, 255, 255, 0.045);
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dl-note {
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

/* REVEAL HIDE ONLY IF JS PRESENT */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition:
    opacity 0.6s,
    transform 0.6s,
    filter 0.6s;
}

body.ready .reveal {
  filter: none;
}

.reveal[data-d] {
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  body {
    opacity: 1 !important;
    transform: none !important;
  }
}

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

  .download-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .nav {
    min-height: 64px;
  }

  .nav-links a:not(.nav-download) {
    display: none;
  }

  .nav-links .nav-download {
    margin-left: 0;
  }

  .hero {
    padding-top: 76px;
  }

  .headline {
    font-size: clamp(46px, 15vw, 68px);
  }

  .subhead {
    font-size: 15px;
  }

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

  .card {
    min-height: 176px;
  }

  .features-section {
    padding: 90px 0 96px;
  }

  .download-section {
    padding-bottom: 88px;
  }

  .download-panel {
    gap: 34px;
  }

  .footer-inner {
    min-height: 100px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding-block: 24px;
  }
}

@media (max-width: 840px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
