:root {
  --bg: #050a0a;
  --ink: #eef8f8;
  --muted: #7e9696;
  --soft: #b7cccc;
  --cyan: #00e0e0;
  --cyan-hi: #5ff5f0;
  --cyan-lo: #00b4b4;
  --line: rgba(0, 224, 224, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(0, 224, 224, 0.28);
  color: var(--ink);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

.bg__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 42% at 50% 18%, rgba(0, 120, 120, 0.22), transparent 70%),
    linear-gradient(180deg, #071212 0%, #050a0a 48%, #040808 100%);
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}

.bg__orb--a {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  top: -8%;
  left: 50%;
  margin-left: min(-35vw, -210px);
  background: rgba(0, 200, 200, 0.22);
  animation: bg-drift-a 22s ease-in-out infinite alternate;
}

.bg__orb--b {
  width: min(55vw, 340px);
  height: min(55vw, 340px);
  bottom: -12%;
  left: 40%;
  background: rgba(0, 140, 140, 0.14);
  animation: bg-drift-b 28s ease-in-out infinite alternate;
}

@keyframes bg-drift-a {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translate(6%, 10%) scale(1.12);
    opacity: 1;
  }
}

@keyframes bg-drift-b {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }
  to {
    transform: translate(-10%, -8%) scale(1.15);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg__orb {
    animation: none;
  }
}

/* —— Top bar —— */
.top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: calc(0.9rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) 0.5rem;
  pointer-events: none;
}

.lang {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.lang__sep {
  width: 1px;
  height: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.1rem;
}

.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.lang__btn[aria-pressed="true"] {
  color: var(--cyan-hi);
}

.lang__btn:hover {
  color: var(--ink);
}

/* —— Page —— */
.page {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
  padding:
    calc(max(5rem, 14vh) + env(safe-area-inset-top))
    clamp(1.25rem, 5vw, 2rem)
    calc(2rem + env(safe-area-inset-bottom));
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand {
  display: block;
  width: clamp(7.5rem, 32vw, 9.5rem);
  height: auto;
  border-radius: 22%;
  margin-bottom: 0.35rem;
}

.name {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(2.35rem, 9vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.tagline {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cyan);
  min-height: 1.4em;
}

.lead {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  max-width: 17.5rem;
  min-height: 3.1em;
}

/* —— Download —— */
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  flex-shrink: 0;
}

.download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #031010;
  text-decoration: none;
  border-radius: 0.85rem;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 30px rgba(0, 224, 224, 0.22);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.download:hover {
  background: var(--cyan-hi);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 14px 34px rgba(0, 224, 224, 0.28);
}

.download:active {
  transform: translateY(0);
  background: var(--cyan-lo);
}

.meta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* —— How to —— */
.howto {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
  flex: 1 1 auto;
}

.howto__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1rem;
  text-align: center;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: step;
  min-height: 7.5rem;
}

.steps li {
  position: relative;
  padding-left: 2.35rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--soft);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--cyan);
  background: rgba(0, 224, 224, 0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
}

@media (min-width: 480px) {
  .page {
    max-width: 24rem;
    gap: 2rem;
  }
}
