/* ==========================================================================
   JustGo Landing Page — cinematic single-theme dark
   Big serif-accented type, aurora horizon, one glossy CTA, mockup at the fold.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #07090C;
  --bg-dot: rgba(148, 163, 184, 0.07);
  --surface: #14171C;
  --surface-2: #1B2027;
  --border: #242A33;
  --border-strong: #333B47;
  --text: #EDF0F4;
  --text-2: #9AA3AF;
  --text-3: #636C79;

  --accent: #38BDF8;
  --accent-strong: #7DD3FC;
  --accent-deep: #0EA5E9;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.30);

  --success: #34D399;
  --success-soft: rgba(52, 211, 153, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max-width: 1080px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 140ms;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* The hidden attribute must always win, even over display rules */
[hidden] { display: none !important; }

code, kbd { font-family: var(--font-mono); font-size: 0.88em; }

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}

kbd {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1.5px 0 var(--border-strong);
  border-radius: 6px;
  padding: 0.1em 0.5em;
  font-weight: 600;
}

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }

/* Scroll reveal — only hidden when JS is present to drive the observer */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Floating glass nav ---------- */

.nav {
  position: fixed;
  top: 1.1rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.5rem 0.7rem 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 16, 20, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.nav__wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav__logo-mark { width: 24px; height: 24px; border-radius: 6px; }

.nav__links { display: flex; gap: 1.1rem; }

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.nav__link:hover { color: var(--text); }

.nav__status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nav__links { display: none; }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(7rem, 16vh, 10rem) 1.25rem 0;
  overflow: hidden;
}

/* Aurora horizon behind everything */
.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% 108%, rgba(56, 189, 248, 0.32) 0%, rgba(14, 165, 233, 0.14) 42%, transparent 72%),
    radial-gradient(34% 26% at 32% 112%, rgba(125, 211, 252, 0.16) 0%, transparent 70%),
    radial-gradient(34% 26% at 68% 112%, rgba(52, 211, 153, 0.10) 0%, transparent 70%),
    radial-gradient(60% 34% at 50% -12%, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  background: rgba(20, 23, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  margin-bottom: 2.2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero__title {
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 1.4rem;
}

.hero__title em {
  font-weight: 400;
  letter-spacing: -0.015em;
  background: linear-gradient(100deg, var(--accent-strong), var(--accent) 55%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subhead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-2);
  margin-bottom: 2.4rem;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

/* Glossy pill CTA (rendered inert while the store listing is in review) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent-deep));
  color: #06202E;
  box-shadow:
    0 10px 34px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), filter var(--speed) var(--ease);
}

.btn-pill:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-pill:active { transform: translateY(0) scale(0.98); }

.btn-pill--disabled,
.btn-pill--disabled:hover {
  background: linear-gradient(180deg, #232A33, #1A1F26);
  color: var(--text-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-pill__badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero__alt-link {
  font-size: 0.9rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.hero__alt-link:hover { color: var(--accent); border-color: var(--accent); }

/* Product window rising from the fold */
.hero__window {
  position: relative;
  width: min(760px, 100%);
  margin-bottom: -1px;
}

.hero__window .demo {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  box-shadow:
    0 -20px 90px rgba(56, 189, 248, 0.14),
    0 30px 80px rgba(0, 0, 0, 0.6);
  min-height: 230px;
}

/* ---------- Demo window (shared) ---------- */

.demo {
  background: rgba(17, 20, 25, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo--static {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.demo__dots { display: flex; gap: 6px; }
.demo__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.demo__omni {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  min-height: 2.4rem;
}

.demo__chip {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
  flex-shrink: 0;
}

.demo__text { color: var(--text); white-space: pre; }

.demo__caret {
  width: 2px;
  height: 1.15rem;
  background: var(--accent);
  animation: blink 1.05s steps(1) infinite;
}

.demo__caret--static { animation: none; opacity: 0.6; }

@keyframes blink { 50% { opacity: 0; } }

.demo__drop { padding: 0.5rem; }

.demo__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
}

.demo__row--active { background: var(--accent-soft); }
.demo__row--active .demo__row-name { color: var(--accent); }

.demo__row-name { color: var(--text); font-weight: 700; min-width: 5.5rem; }
.demo__row-dash { color: var(--text-3); }
.demo__row-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.demo__result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 1rem 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--success-soft);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
  animation: resultIn 0.4s var(--ease-out);
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(13, 16, 20, 0.6);
  overflow: hidden;
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.chip b { color: var(--accent); font-weight: 700; }

/* ---------- Moments ---------- */

.moments {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 10vw, 8rem);
}

.moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.moment--flip .moment__copy { order: 2; }
.moment--flip .moment__visual { order: 1; }

@media (max-width: 820px) {
  .moment { grid-template-columns: 1fr; }
  .moment--flip .moment__copy { order: 1; }
  .moment--flip .moment__visual { order: 2; }
}

.moment__title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 1.1rem;
}

.moment__desc {
  font-size: 1.02rem;
  color: var(--text-2);
  max-width: 30rem;
}

/* ---------- Privacy band ---------- */

.privacy {
  text-align: center;
  padding: clamp(6rem, 12vw, 9rem) 1.5rem;
}

.privacy__inner { max-width: 46rem; margin: 0 auto; }

.privacy__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}

.privacy__desc {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 2rem;
}

.privacy__facts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-3);
}

.fact b { color: var(--accent); font-weight: 700; }
.fact__sep { opacity: 0.4; }

/* ---------- Outro ---------- */

.outro {
  position: relative;
  text-align: center;
  padding: clamp(6rem, 12vw, 9rem) 1.5rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.outro__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 118%, rgba(56, 189, 248, 0.24) 0%, transparent 70%);
}

.outro__inner { position: relative; }

.outro__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 2.2rem;
}

.outro__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.outro__note {
  font-size: 0.85rem;
  color: var(--text-3);
  max-width: 26rem;
  margin: 0 auto;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer__links { display: flex; gap: 1.4rem; }

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.footer__links a:hover { color: var(--accent); }
