:root {
  --bg-0: #0e0e10;
  --bg-1: #1a1b1e;
  --bg-2: #232427;
  --text: #f2f3f5;
  --muted: #b9bec8;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.04);
  --accent: #64dbc2;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial,
    sans-serif;
  color: var(--text);
  background: linear-gradient(120deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(80% 60% at 25% 52%, rgba(0, 164, 198, 0.16) 0%, transparent 68%),
    radial-gradient(60% 60% at 85% 50%, rgba(186, 125, 45, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.page {
  width: min(1200px, calc(100% - 3rem));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1rem, 3.2vw, 3rem);
  padding: clamp(1.2rem, 2.4vw, 2.1rem) 0 0.8rem;
}

.hero-left {
  max-width: 560px;
}

.logo-wrap {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); */
  /* border: 1px solid var(--line); */
  margin-bottom: 1rem;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.logo-fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.05em;
  background: linear-gradient(145deg, #efcf84 8%, #a16c17 46%, #e9ecef 56%, #535b61 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 0.9rem 0 0;
  color: #d3d8e1;
  max-width: 48ch;
  line-height: 1.45;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.cta-row {
  margin-top: 1rem;
}

.app-store-badge {
  display: inline-flex;
}

.app-store-badge img {
  width: 172px;
  height: auto;
  display: block;
}

.feature-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 38rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #cbd0d9;
  font-size: 0.98rem;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--panel), rgba(255, 255, 255, 0.01));
  border-radius: 999px;
  padding: 0.47rem 0.8rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  box-shadow: 0 0 10px rgba(100, 219, 194, 0.4);
}

.hero-right {
  display: grid;
  justify-items: center;
  align-items: center;
}

.device-image {
  width: min(100%, 360px);
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
}

.device-fallback {
  display: none;
  width: min(100%, 360px);
  min-height: 520px;
  border-radius: 34px;
  border: 1px dashed var(--line);
  color: var(--muted);
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #9ea5b1;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: #cad2de;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

#created-trigger {
  cursor: pointer;
  text-decoration: underline dotted rgba(202, 210, 222, 0.55);
  text-underline-offset: 2px;
}

.easter-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.84rem;
  color: #ecf3ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(150deg, rgba(27, 32, 39, 0.95), rgba(27, 32, 39, 0.76));
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.spotlight-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.spotlight-layer.active {
  animation: spotlightFade 10s ease-out forwards;
  background:
    radial-gradient(75% 120% at 0% 100%, rgba(102, 220, 197, 0.28), rgba(102, 220, 197, 0.08) 38%, transparent 72%),
    radial-gradient(75% 120% at 100% 100%, rgba(224, 166, 74, 0.3), rgba(224, 166, 74, 0.09) 36%, transparent 72%);
}

@keyframes spotlightFade {
  0% {
    opacity: 0;
    filter: blur(6px);
  }
  20% {
    opacity: 1;
    filter: blur(0);
  }
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .page {
    width: min(980px, calc(100% - 1.4rem));
    min-height: 100svh;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.4rem;
    padding-top: max(1.1rem, env(safe-area-inset-top));
    padding-bottom: 1rem;
  }

  .hero-left {
    max-width: none;
    display: grid;
    gap: 0.35rem;
    align-content: start;
  }

  .hero-right {
    display: none;
  }

  .subtitle {
    margin-top: 1rem;
  }

  .feature-list {
    margin-top: 1.2rem;
  }

  .cta-row {
    margin-top: 1.15rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .site-footer nav {
    justify-content: center;
  }
}

.legal-page {
  width: min(760px, calc(100% - 1.4rem));
  margin: 4rem auto;
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #d8dce4;
}

.legal-page h1 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.legal-page p {
  line-height: 1.6;
}

.legal-page h2 {
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.legal-page a {
  color: #d8e3f3;
}

.support-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.65rem;
}

.support-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 0.9rem;
}

.support-card p {
  margin: 0.35rem 0;
}

.support-card ul {
  margin: 0.35rem 0 0;
  padding-left: 1.05rem;
}

.support-card li {
  margin: 0.28rem 0;
}

.support-faq {
  margin-top: 1rem;
}

.legal-footer {
  width: min(760px, calc(100% - 1.4rem));
  margin: -2rem auto 2rem;
}

.legal-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.legal-body .legal-page {
  flex: 1 0 auto;
  margin-bottom: 1.2rem;
}

.legal-body .site-footer {
  margin-top: auto;
}

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