:root {
  --color-bg: #1A1A1A;
  --color-panel: #202020;
  --color-surface: #2A2A2A;
  --color-text: #F5F5F5;
  --color-text-muted: #B3B3B3;
  --color-primary: #FFA72C;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  position: relative;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Ambient animated backdrop ---------- */
/* Fixed to the viewport (not the document), so every page and every
   section reveals the same drifting layer through its gaps — one
   continuous backdrop for the whole site, not a per-section image. */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  will-change: transform;
}

.blob--1 {
  width: 620px;
  height: 620px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 167, 44, 0.9), transparent 70%);
  animation: drift-1 26s ease-in-out infinite;
}

.blob--2 {
  width: 520px;
  height: 520px;
  top: 30%;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 111, 60, 0.8), transparent 70%);
  animation: drift-2 32s ease-in-out infinite;
}

.blob--3 {
  width: 560px;
  height: 560px;
  bottom: 12%;
  left: -100px;
  background: radial-gradient(circle, rgba(217, 82, 122, 0.75), transparent 70%);
  animation: drift-3 24s ease-in-out infinite;
}

.blob--4 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: 10%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.6), transparent 70%);
  animation: drift-4 30s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
}

@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 50px) scale(0.9); }
}

@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -60px) scale(1.1); }
}

@keyframes drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -70px) scale(1.05); }
}

.bg-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  opacity: 0.18;
  animation: icon-float 24s ease-in-out infinite;
}

.bg-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bg-icon--1 { top: 10%; left: 8%; width: 72px; height: 72px; animation-duration: 24s; }
.bg-icon--2 { top: 34%; right: 10%; width: 56px; height: 56px; animation-duration: 28s; animation-delay: -6s; }
.bg-icon--3 { top: 58%; left: 14%; width: 60px; height: 60px; animation-duration: 20s; animation-delay: -12s; }
.bg-icon--4 { top: 78%; right: 16%; width: 68px; height: 68px; animation-duration: 26s; animation-delay: -3s; }
.bg-icon--5 { top: 92%; left: 42%; width: 52px; height: 52px; animation-duration: 30s; animation-delay: -18s; }

@keyframes icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(6deg); }
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

a { color: var(--color-primary); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header-wrap.is-scrolled {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  transition: padding 0.3s ease;
}

.site-header-wrap.is-scrolled .site-header {
  padding: 12px 0;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text);
}

.site-header nav a:hover { color: var(--color-primary); }

.logo-mark {
  height: 26px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--color-primary);
  color: #1A1400;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.badge-soon {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(26, 20, 0, 0.35);
  color: inherit;
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.status-line {
  margin-top: 18px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  padding: 88px 0 72px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero-copy .tagline {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 0 32px;
}

.download-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Phone mockup ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 167, 44, 0.32), transparent 70%);
  filter: blur(6px);
  animation: glow-pulse 4.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* ---------- Device frame (real screenshots) ---------- */

.device-frame {
  --frame-width: 260px;
  position: relative;
  width: var(--frame-width);
  background: #0E0E0E;
  border-radius: 38px;
  padding: 14px 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-frame-camera {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  z-index: 1;
}

.device-frame-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  line-height: 0;
}

.device-frame-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.device-frame--compact {
  --frame-width: 260px;
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.hero-badge--top { top: 4%; right: -4%; }
.hero-badge--bottom { bottom: 8%; left: -8%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Glass panel (shared card treatment over the photo backdrop) ---------- */

.about-section .container,
.how-it-works {
  background: rgba(20, 18, 16, 0.45);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

/* ---------- About / mission ---------- */

.about-section {
  padding: 72px 0;
  text-align: center;
}

.about-section .container {
  border-radius: 24px;
  padding: 48px 40px;
}

.about-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 16px;
}

.about-section p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 17px;
}

/* ---------- Features ---------- */

.features {
  padding: 80px 0;
}

.features .section-sub {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.features h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.features .section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(42, 42, 42, 0.5);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(255, 167, 44, 0.4);
  border-color: var(--color-primary);
}

.feature-card .icon {
  font-size: 26px;
  display: inline-block;
  margin-bottom: 14px;
}

.feature-card h3 { font-size: 19px; margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

/* ---------- Showcase ---------- */

.showcase {
  padding: 24px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.showcase-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.showcase-row--reverse {
  flex-direction: row-reverse;
}

.showcase-copy {
  max-width: 440px;
}

.showcase-copy h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 12px;
}

.showcase-copy p {
  color: var(--color-text-muted);
  font-size: 16px;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.showcase-visual {
  display: flex;
  justify-content: center;
  flex: none;
}

@media (max-width: 860px) {
  .showcase-row,
  .showcase-row--reverse {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .showcase-copy { margin: 0 auto; }
}

/* ---------- How it works ---------- */

.how-it-works {
  margin: 8px auto 88px;
  border-radius: 24px;
  padding: 56px 40px 64px;
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.step { text-align: center; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { color: var(--color-text-muted); font-size: 15px; margin: 0; }

.step-visual {
  display: block;
  width: 100%;
  max-width: 180px;
  margin: 0 auto 16px;
  border-radius: 12px;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
}

.site-footer a {
  color: var(--color-text-muted);
  margin: 0 8px;
  text-decoration: none;
}

.site-footer a:hover { color: var(--color-primary); }

/* ---------- Legal pages ---------- */

.legal-page main {
  margin-top: 40px;
  margin-bottom: 96px;
  max-width: 680px;
  border-radius: 24px;
  padding: 48px 44px 56px;
  background: rgba(20, 18, 16, 0.5);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

.legal-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }

.legal-page .updated {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: -8px 0 32px;
}

.legal-page h2 {
  font-size: 19px;
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-page p {
  margin: 0 0 16px;
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-page li {
  margin-bottom: 6px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-badge, .phone-glow, .blob, .bg-icon { animation: none; }
  .feature-card:hover, .btn:active { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0 24px;
    text-align: center;
  }

  .hero-copy .tagline { margin-left: auto; margin-right: auto; }
  .download-row { justify-content: center; }
  .status-line { text-align: center; }

  .hero-visual { margin-top: 16px; }
  .hero-badge { display: none; }

  .steps { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 500px) {
  .device-frame { --frame-width: 220px; }
}

/* ---------- Share & beta pages (rendered by the shareLanding Cloud Function) ---------- */

.share-page {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.share-page .cover {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.share-page h1 { font-size: 22px; }

.share-page .updated { max-width: 480px; }

.share-page .stores {
  display: flex;
  gap: 12px;
  opacity: 0.5;
  margin-top: 4px;
}

.share-page .stores span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.beta-box {
  width: 100%;
  max-width: 360px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.beta-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 12px;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.beta-form input,
.beta-form select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--color-surface);
  color: var(--color-text);
}

.beta-form .btn {
  width: 100%;
  border: none;
}

.beta-error {
  color: #ff8a8a;
  font-size: 13px;
  margin: 10px 0 0;
}

.beta-success {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
}
