:root {
  --bg: #090f19;
  --text: #f4f8ff;
  --muted: #b7c5d9;
  --line: rgba(255, 255, 255, 0.18);
  --c1: #ff8a56;
  --c2: #47c3ff;
  --c3: #5de0b6;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: radial-gradient(900px 420px at 8% 0%, #3d2f2b 0%, transparent 60%),
    radial-gradient(880px 420px at 92% 0%, #1c3950 0%, transparent 62%),
    linear-gradient(150deg, #0b101b 10%, #08101d 62%, #070b14 100%);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.screen {
  height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.65px, transparent 0.65px);
  background-size: 3px 3px;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  z-index: -2;
}

.glow-left {
  width: 300px;
  height: 300px;
  left: -70px;
  top: 10%;
  background: rgba(255, 138, 86, 0.24);
}

.glow-right {
  width: 360px;
  height: 360px;
  right: -90px;
  bottom: 8%;
  background: rgba(71, 195, 255, 0.24);
}

.topbar {
  height: clamp(64px, 10vh, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 clamp(18px, 2.3vw, 24px) "Outfit", sans-serif;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--c1), var(--c2));
}

.hero {
  align-self: center;
  padding: clamp(4px, 2vh, 16px) 0;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(300px, 430px);
  gap: clamp(14px, 2vw, 26px);
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0b121b;
  font: 700 11px "Outfit", sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffd8c2, #98e8ff);
}

h1 {
  margin: 14px 0 12px;
  max-width: 12ch;
  font: 800 clamp(34px, 7vw, 78px) / 0.98 "Outfit", sans-serif;
  letter-spacing: -0.02em;
}

.desc {
  margin: 0;
  max-width: none;
  color: #d2deee;
  font-size: clamp(14px, 2vw, 19px);
  line-height: 1.75;
  white-space: nowrap;
}

.inline-icon {
  display: inline-flex;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  margin: 0 0.25em;
  color: currentColor;
}

.inline-icon svg {
  width: 100%;
  height: 100%;
}

.keyword-pill {
  display: inline-block;
  appearance: none;
  border: 1px solid rgba(255, 228, 162, 0.9);
  border-radius: 999px;
  padding: 0.16em 0.72em;
  color: #111827;
  font-weight: 700;
  font-size: 0.95em;
  font-family: inherit;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffe8a2, #ffd37a 52%, #ffbe62);
  box-shadow: 0 0 0 2px rgba(255, 190, 98, 0.22), 0 6px 18px rgba(255, 190, 98, 0.35);
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.passcode-panel {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 214, 122, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 199, 102, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: 0 10px 24px rgba(255, 190, 98, 0.25);
}

.passcode-label {
  font-size: 12px;
  color: #ffd8a2;
  letter-spacing: 0.06em;
}

.passcode-pill {
  font-size: 1.08em;
  padding: 0.22em 0.86em;
}

.passcode-tip {
  font-size: 12px;
  color: #ffe9c2;
}

.keyword-pill .char {
  display: inline-block;
  animation: keyword-bob 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

.keyword-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(255, 190, 98, 0.3), 0 10px 22px rgba(255, 190, 98, 0.42);
}

.keyword-pill:active {
  transform: translateY(0);
}

.keyword-pill:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(14px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(8, 16, 28, 0.9);
  color: #f4f8ff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tutorial-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.68);
  z-index: 40;
}

.tutorial-modal.show {
  display: flex;
}

.tutorial-dialog {
  width: min(460px, 94vw);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: #0b1322;
  padding: 10px;
}

.tutorial-dialog img {
  width: 100%;
  height: auto;
  max-height: 78dvh;
  border-radius: 10px;
  display: block;
  background: #000;
  object-fit: contain;
}

.modal-close {
  margin: 0 0 10px auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
}

@keyframes keyword-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.actions {
  margin-top: clamp(16px, 2.7vh, 28px);
  display: flex;
  gap: 12px;
}

.desktop-video {
  width: 100%;
  display: flex;
  justify-content: center;
}

.iphone-shell {
  width: min(100%, 360px);
  aspect-ratio: 1284 / 2778;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(145deg, #2a2f3a, #11151e 45%, #070a10);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
}

.iphone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 30px;
  border-radius: 0 0 18px 18px;
  background: #000;
  z-index: 3;
}

.iphone-home-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-lg {
  min-height: 46px;
  padding: 0 22px;
  font-size: 1.02em;
}

.btn-block {
  display: inline-flex;
}

.btn-primary {
  color: #081019;
  background: linear-gradient(135deg, var(--c1), #ffbe62 46%, var(--c3));
}

.btn-ghost {
  color: #f3f8ff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.chips {
  margin: clamp(16px, 2.7vh, 28px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: #d5e1f4;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
}

.footer {
  height: clamp(48px, 8vh, 64px);
  display: flex;
  align-items: center;
  color: #95a8c0;
}

@media (max-width: 900px) {
  .hero {
    align-self: center;
    display: block;
    padding-top: clamp(4px, 2vh, 16px);
    transform: translateY(-64px);
  }

  .desktop-video {
    display: none;
  }

  .actions {
    width: 100%;
  }

  .btn {
    flex: 1;
  }

  h1 {
    max-width: none;
    font-size: clamp(30px, 11vw, 48px);
  }

  .desc {
    font-size: 14px;
    line-height: 1.7;
  }

  .passcode-panel {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .chips {
    gap: 8px;
  }

  .footer {
    height: 48px;
  }
}

@media (max-height: 680px) {
  .chips li:nth-child(3) {
    display: none;
  }

  .desc {
    max-width: 46ch;
  }
}
