:root {
  --bg: #07080b;
  --bg-deep: #040507;
  --ink: #efece6;
  --mute: #9a968c;
  --line: rgba(239, 236, 230, 0.12);
  --accent: #3de0c5;
  --accent-dim: #1f9f8c;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(61, 224, 197, 0.09), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(40, 55, 80, 0.35), transparent 50%),
    linear-gradient(165deg, #0c0e14 0%, var(--bg) 45%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-wave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.hero-fade {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.92) 0%, rgba(7, 8, 11, 0.55) 42%, rgba(7, 8, 11, 0.2) 70%, transparent 100%),
    linear-gradient(180deg, transparent 55%, rgba(4, 5, 7, 0.85) 100%);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 3.75rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 4rem;
  overflow: visible;
}

.hero-copy {
  max-width: 36rem;
  padding-bottom: 1rem;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
  color: var(--ink);
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--mute);
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.35rem;
  border-radius: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.btn-download:hover {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.meta {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mute) 75%, transparent);
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

.install {
  margin-top: 1.5rem;
  max-width: 34rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--bg-deep) 55%, transparent);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

.install summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.install summary::-webkit-details-marker {
  display: none;
}

.install summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--mute);
}

.install[open] summary::after {
  content: '\2212';
}

.install-mark {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.install-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
}

.install-body p {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mute);
}

.install-steps {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mute);
}

.install-steps li + li {
  margin-top: 0.35rem;
}

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

.install-cmd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
}

.install-cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.76rem;
  color: var(--accent);
}

.install-copy {
  flex: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--mute);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.install-copy:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.install-copy.is-copied {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-shot {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 56rem);
  max-width: calc(100% + 1.5rem);
  margin-right: -0.5rem;
  padding: 0.85rem;
  transform: perspective(1800px) rotateY(-5.5deg) rotateZ(2.75deg) translateY(0.2rem);
  transform-origin: 55% 50%;
  opacity: 0;
  animation: shot-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero-shot-glow {
  position: absolute;
  inset: 4% -10% -12% -2%;
  z-index: 0;
  border-radius: 2.75rem;
  background:
    radial-gradient(55% 50% at 50% 45%, rgba(61, 224, 197, 0.28), transparent 70%),
    radial-gradient(40% 45% at 70% 70%, rgba(120, 100, 255, 0.12), transparent 72%);
  filter: blur(32px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-shot-frame {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  padding: 0.55rem;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 55%, transparent),
      color-mix(in srgb, var(--ink) 18%, transparent) 42%,
      color-mix(in srgb, var(--accent) 22%, transparent)
    );
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent),
    0 0 56px rgba(61, 224, 197, 0.12);
}

.hero-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.05rem;
  border: 1px solid color-mix(in srgb, var(--bg-deep) 55%, transparent);
}

.feature {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding: 0 clamp(2rem, 6vw, 4.5rem) 3.25rem;
  margin-top: -0.5rem;
}

.feature-mix {
  margin-top: 0;
  padding-bottom: 5.5rem;
}

.feature-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

.feature-lede {
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--mute) 92%, var(--ink));
}

.feature-body {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--mute);
}

.foot {
  position: relative;
  z-index: 2;
  padding: 1.25rem clamp(2rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}

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

@keyframes shot-in {
  from {
    opacity: 0;
    transform: perspective(1800px) rotateY(-5.5deg) rotateZ(2.75deg) translateY(2.2rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: perspective(1800px) rotateY(-5.5deg) rotateZ(2.75deg) translateY(0.2rem) scale(1);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
    padding-right: clamp(1.5rem, 5vw, 3rem);
  }

  .hero-shot {
    order: -1;
    justify-self: center;
    width: min(100%, 36rem);
    max-width: 100%;
    margin-right: 0;
    padding: 0.65rem;
    transform: perspective(1400px) rotateY(-3.5deg) rotateZ(2.25deg);
    animation-name: shot-in-sm;
  }

  .hero-fade {
    background:
      linear-gradient(180deg, rgba(7, 8, 11, 0.45) 0%, rgba(7, 8, 11, 0.82) 42%, rgba(4, 5, 7, 0.95) 100%);
  }
}

@keyframes shot-in-sm {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(-3.5deg) rotateZ(2.25deg) translateY(1.5rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(-3.5deg) rotateZ(2.25deg) translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-download {
    justify-content: center;
  }

  .hero-shot {
    width: 100%;
    padding: 0.5rem;
    transform: rotateZ(2deg);
    animation-name: shot-in-xs;
  }
}

@keyframes shot-in-xs {
  from {
    opacity: 0;
    transform: rotateZ(2deg) translateY(1.2rem);
  }
  to {
    opacity: 1;
    transform: rotateZ(2deg) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  h1,
  .lede,
  .cta,
  .meta,
  .install,
  .hero-shot {
    opacity: 1;
    animation: none;
  }

  .hero-shot {
    transform: perspective(1800px) rotateY(-5.5deg) rotateZ(2.75deg);
  }

  .btn-download {
    transition: none;
  }
}
