:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --shadow-soft: 0 0 40px rgba(255, 255, 255, 0.14);
  --shadow-strong: 0 0 60px rgba(255, 255, 255, 0.22);
  --button-text: #0a0a0a;
  --page-padding: clamp(1rem, 3vw, 2rem);
  --content-width: 78rem;
  --card-radius: 1.35rem;
  --ring-duration: 2s;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.background-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}

.wave-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wave-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 0.95;
  animation: wave-fade 1.2s ease forwards;
}

.background-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.04), transparent 18rem),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 36%, rgba(0, 0, 0, 0.62));
}

.particle-layer {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.14);
  animation-name: float-particle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5rem) var(--page-padding) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.selector-label,
.selection-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.selector-pills {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.selector-pill {
  min-height: 2.65rem;
  padding: 0.62rem 1.08rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.selector-pill:hover,
.selector-pill:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.selector-pill.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.08);
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(2.4rem, 6vh, 3.4rem);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon,
.feature-chip svg,
.cta-icon,
.platform-icon {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-icon {
  width: clamp(2.8rem, 5vw, 3.4rem);
  height: clamp(2.8rem, 5vw, 3.4rem);
  color: rgba(255, 255, 255, 0.98);
}

.brand-mark h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.brand-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.92rem, 1.5vw, 1.2rem);
}

.feature-chip svg {
  width: 1rem;
  height: 1rem;
}

.system-pill {
  margin-bottom: 1.65rem;
  padding: 0.78rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.96rem;
  line-height: 1;
}

.system-pill span {
  font-weight: 700;
}

.is-hidden {
  display: none;
}

.hero-copy {
  max-width: 43rem;
  margin: 0 0 2rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
}

.cta-button {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  z-index: 20;
  margin: 0 0 2rem;
  padding: 1.15rem 2rem;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ffffff 0%, #f4f4f4 48%, #ffffff 100%);
  color: var(--button-text);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 700;
  cursor: pointer;
  overflow: visible;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.2);
}

.cta-button::before,
.cta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.cta-button::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 45%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translateX(-30%);
  transition:
    opacity 220ms ease,
    transform 320ms ease;
}

.cta-button::after {
  inset: -2px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  animation: pulse-ring var(--ring-duration) ease-out infinite;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-strong);
  outline: none;
}

.cta-button:hover::before,
.cta-button:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.cta-icon {
  width: 1.3rem;
  height: 1.3rem;
  transition: transform 220ms ease;
}

  .cta-button:hover .cta-icon,
.cta-button:focus-visible .cta-icon {
  transform: rotate(45deg);
}

.control-dock {
  width: min(100%, 54rem);
  display: grid;
  gap: 1.15rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.control-section {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.selection-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
}

.app-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.app-button {
  position: relative;
  min-height: 4rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.app-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-button:hover,
.app-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
  outline: none;
}

.app-button:hover::before,
.app-button:focus-visible::before {
  opacity: 1;
}

.app-button.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.app-button-label {
  position: relative;
  z-index: 1;
}

.control-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.95fr);
  gap: 0.8rem;
}

.deep-link-panel {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
}

.deep-link-value {
  min-height: 3.1rem;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-all;
}

.deep-link-buttons {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.dock-button {
  min-height: 3.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.dock-button:hover,
.dock-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.06);
  outline: none;
}

.dock-button--ghost {
  padding: 0.8rem 1rem;
}

.dock-button--download {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.15rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}

.dock-button.is-disabled,
.dock-button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.instruction-list {
  display: grid;
  gap: 0.75rem;
}

.instruction-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}

.instruction-step {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.92rem;
  font-weight: 800;
  flex-shrink: 0;
}

.instruction-content {
  display: grid;
  gap: 0.22rem;
}

.instruction-title {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.96rem;
  font-weight: 700;
}

.instruction-text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.5;
}

.platform-divider {
  width: min(100%, 26rem);
  margin-bottom: 2.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.platform-divider span {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.platform-divider p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.platform-grid {
  width: min(100%, 52rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.platform-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  padding: 1.35rem 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 280ms ease,
    border-color 280ms ease,
    background-color 280ms ease,
    box-shadow 280ms ease;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.platform-card:hover,
.platform-card:focus-visible {
  transform: translateY(-5px) scale(1.03);
  background: var(--card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.platform-card:hover::before,
.platform-card:focus-visible::before {
  opacity: 1;
}

.platform-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.platform-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 280ms ease;
}

.platform-card:hover .platform-icon,
.platform-card:focus-visible .platform-icon {
  color: rgba(255, 255, 255, 0.98);
}

.platform-name {
  font-size: 1.03rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.platform-store {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.48);
}

.hero-footer {
  margin-top: 2.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
}

.reveal {
  opacity: 1;
  transform: none;
  animation: reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

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

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes float-particle {
  0%,
  100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }

  30% {
    transform: translateY(-0.9rem) scale(1);
    opacity: 0.95;
  }

  65% {
    transform: translateY(-1.8rem) scale(1.08);
    opacity: 0.7;
  }
}

@keyframes wave-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .cta-button {
    padding-inline: 2.3rem;
  }
}

@media (max-width: 639px) {
  .hero-shell {
    padding-top: 2.2rem;
    padding-bottom: 2rem;
  }

  .selector-pills {
    justify-content: flex-start;
  }

  .selector-pill {
    min-height: 2.45rem;
    padding-inline: 0.95rem;
  }

  .brand-features {
    gap: 0.9rem;
  }

  .feature-chip {
    font-size: 0.95rem;
  }

  .hero-copy {
    margin-bottom: 1.4rem;
  }

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

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

  .control-dock {
    padding: 1rem;
    gap: 1rem;
  }

  .control-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .cta-button {
    width: min(100%, 24rem);
  }

  .cta-content {
    justify-content: center;
  }

  .hero-footer {
    margin-top: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .particle,
  .cta-button::after {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .platform-card,
  .cta-button,
  .cta-button::before,
  .platform-card::before,
  .cta-icon {
    transition: none;
  }
}
