@import url("fonts.css");

/* ============================================================
   BLUR — landing site design system
   Dark, near-black disco identity. Mobile-first.
   Tokens mirror the app (DMColors + BrandDistortion).
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0a0a0b;
  --surface: #14141a;
  --surface-2: #1e1e28;
  --surface-3: #2a2a36;

  /* Warm-white text hierarchy (#F5F2EB) */
  --text: #f5f2eb;
  --text-62: rgba(245, 242, 235, 0.62);
  --text-40: rgba(245, 242, 235, 0.4);
  --hairline: rgba(245, 242, 235, 0.08);
  --hairline-soft: rgba(245, 242, 235, 0.05);

  /* Accents */
  --gold: #f5d080;
  --teal: #5cbbcf;

  /* Brand chromatic aberration (background glow only) */
  --ab-red: #cf3909;
  --ab-orange: #e86a14;
  --ab-magenta: #c02a9a;
  --ab-blue: #0692f3;
  --ab-indigo: #0552bc;

  /* Chrome / silver (disco) */
  --silver: linear-gradient(135deg, #ffffff 0%, #dfe3ea 38%, #b6bcc8 70%, #e8ebf0 100%);

  /* Type */
  --font-display: "Clash Display", "SF Pro Display", system-ui, -apple-system, sans-serif;
  --font-body: "Satoshi", "SF Pro Text", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-card: 20px;
  --r-btn: 14px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1120px;
  --pad: 22px;

  /* Shadow */
  --shadow-card: 0 18px 50px -22px rgba(0, 0, 0, 0.8);
  --shadow-float: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

/* ----------------------------- Reset ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
}

p {
  margin: 0;
}

::selection {
  background: rgba(245, 208, 128, 0.28);
  color: #fff;
}

/* ----------------------------- Layout ---------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(64px, 12vw, 132px);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-40);
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(34px, 6vw, 60px);
}

.section__title {
  font-size: clamp(2rem, 6vw, 3.1rem);
  margin-top: 14px;
}

.section__sub {
  margin-top: 16px;
  color: var(--text-62);
  font-size: clamp(1rem, 2.6vw, 1.18rem);
}

/* ------------------------------ Nav ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
}

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  height: 56px;
  padding-inline: 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--ghost {
  background: rgba(245, 242, 235, 0.05);
  border-color: var(--hairline);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(245, 242, 235, 0.1);
  border-color: rgba(245, 242, 235, 0.16);
}

.btn--sm {
  height: 42px;
  font-size: 14px;
  padding-inline: 18px;
}

/* Official App Store badge */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.18s ease, filter 0.25s ease;
  will-change: transform;
}
.appstore-btn img {
  height: 56px;
  width: auto;
}
.appstore-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}
.appstore-btn:active {
  transform: translateY(0) scale(0.98);
}
.appstore-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

/* ------------------------------ Hero ----------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 96px 64px;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: -20% -10% 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(38% 44% at 22% 26%, rgba(207, 57, 9, 0.5), transparent 70%),
    radial-gradient(34% 40% at 82% 20%, rgba(6, 146, 243, 0.42), transparent 70%),
    radial-gradient(40% 46% at 76% 78%, rgba(192, 42, 154, 0.38), transparent 72%),
    radial-gradient(46% 50% at 16% 84%, rgba(5, 82, 188, 0.4), transparent 74%),
    radial-gradient(60% 50% at 50% 50%, rgba(232, 106, 20, 0.16), transparent 72%);
  filter: blur(46px) saturate(125%);
  opacity: 0.9;
  animation: aberrationDrift 22s ease-in-out infinite alternate;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, var(--bg) 92%);
}

@keyframes aberrationDrift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(0, -2%, 0);
  }
}

.hero__sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: twinkle 4.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 0.9; transform: scale(1); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-inline: auto;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark {
  width: clamp(118px, 30vw, 168px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.65));
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__title {
  width: 100%;
  margin-top: 30px;
  font-size: clamp(2.05rem, 8.2vw, 4.7rem);
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
.hero__title .shimmer {
  background: linear-gradient(100deg, #ffffff 0%, #c9cdd6 28%, #ffffff 52%, #b6bcc8 78%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 6s linear infinite;
}
@keyframes sweep {
  to { background-position: -220% 0; }
}

.hero__sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--text-62);
}

.hero__actions {
  width: 100%;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------------------------- Carousel --------------------------- */
.tour {
  padding-block: clamp(48px, 9vw, 104px);
}
.carousel {
  position: relative;
  width: 100%;
}
.carousel__viewport {
  overflow: hidden;
  touch-action: pan-y;
}
.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel__slide img {
  width: auto;
  max-width: 100%;
  max-height: min(86vh, 920px);
  border-radius: 22px;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.55));
}
.carousel.is-dragging .carousel__track {
  transition: none;
}
.carousel.is-dragging .carousel__slide img {
  pointer-events: none;
}

.carousel__controls {
  margin-top: clamp(24px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.carousel__btn {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(245, 242, 235, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.25s ease, border-color 0.25s ease;
}
.carousel__btn:hover {
  background: rgba(245, 242, 235, 0.1);
  border-color: rgba(245, 242, 235, 0.18);
}
.carousel__btn:active {
  transform: scale(0.93);
}
.carousel__btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.carousel__btn:disabled {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}
.carousel__btn svg {
  width: 22px;
  height: 22px;
}
.carousel__dots {
  display: flex;
  align-items: center;
  gap: 9px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 242, 235, 0.22);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.carousel__dot.is-active {
  background: var(--text);
  transform: scale(1.25);
}

/* ---------------------------- CTA band --------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--hairline-soft);
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(40% 60% at 20% 30%, rgba(207, 57, 9, 0.4), transparent 70%),
    radial-gradient(40% 60% at 80% 70%, rgba(6, 146, 243, 0.4), transparent 70%),
    radial-gradient(50% 60% at 60% 20%, rgba(192, 42, 154, 0.3), transparent 72%);
  filter: blur(60px);
  opacity: 0.85;
}
.cta__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.cta__mark {
  width: 92px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6));
}
.cta__title {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  max-width: 14ch;
}

/* ----------------------------- Footer ---------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface-lowest, #0f0f14);
}
.footer__inner {
  padding-block: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__blurb {
  max-width: 320px;
  color: var(--text-62);
  font-size: 14px;
  margin-top: 14px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.footer__links a {
  color: var(--text-62);
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.footer__links a:hover {
  color: var(--text);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--text-40);
  font-size: 13px;
}
.footer__contact a {
  color: var(--text);
  border-bottom: 1px solid rgba(245, 242, 235, 0.25);
  padding-bottom: 1px;
}

/* --------------------------- Legal pages ------------------------- */
.legal {
  padding-block: clamp(48px, 9vw, 92px);
}
.legal__head {
  max-width: 720px;
  margin-bottom: 40px;
}
.legal__head h1 {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
}
.legal__updated {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-40);
}
.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 42px 0 12px;
}
.prose h3 {
  font-size: 1.12rem;
  margin: 26px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
}
.prose p,
.prose li {
  color: var(--text-62);
  font-size: 16px;
  line-height: 1.7;
}
.prose p + p {
  margin-top: 14px;
}
.prose ul {
  margin: 12px 0;
  padding-left: 20px;
}
.prose li {
  margin: 6px 0;
}
.prose a {
  color: var(--text);
  border-bottom: 1px solid rgba(245, 242, 235, 0.25);
}
.prose strong {
  color: var(--text);
}

/* --------------------------- Scroll reveal ----------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

/* --------------------------- Reduced motion ---------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero__bg {
    opacity: 0.8;
  }
}

/* ------------------------------ Misc ----------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
