/* Trend Play — light lavender shell + app-purple accents (prompt light theme) */

:root {
  --bg: #f7f4fc;
  --bg-elevated: #ffffff;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(123, 92, 255, 0.18);
  --text: #1a1228;
  --text-muted: rgba(26, 18, 40, 0.68);
  --magenta: #d93598;
  --violet: #6b4cff;
  --orange: #ff8a4c;
  --gradient: linear-gradient(120deg, var(--magenta), var(--violet) 55%, #5a7dff);
  --gradient-soft: linear-gradient(145deg, rgba(217, 53, 152, 0.12), rgba(107, 76, 255, 0.1));
  --shadow: 0 20px 48px rgba(58, 36, 102, 0.14);
  --radius: 20px;
  --radius-pill: 999px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: #5a3fc0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Aurora background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 50% -8%, #e8dcff, var(--bg) 58%);
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.aurora__blob--a {
  width: 420px;
  height: 420px;
  background: var(--magenta);
  top: 10%;
  left: -8%;
}

.aurora__blob--b {
  width: 360px;
  height: 360px;
  background: var(--violet);
  top: 35%;
  right: -5%;
}

.aurora__blob--c {
  width: 280px;
  height: 280px;
  background: var(--orange);
  bottom: 5%;
  left: 30%;
  opacity: 0.35;
}

/* Dock header */
.dock-header {
  position: fixed;
  top: 0.85rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.dock-header__shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: min(920px, 100%);
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(58, 36, 102, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.dock-header.is-scrolled .dock-header__shell {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.dock-header__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.dock-header__brand img {
  border-radius: 10px;
}

.dock-header__nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

.dock-header__nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.dock-header__nav a:hover {
  color: var(--text);
}

.dock-header__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--glass);
  cursor: pointer;
}

.dock-header__menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .dock-header__nav {
    display: flex;
  }

  .dock-header__menu {
    display: none;
  }

  .dock-header .btn--sm {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .dock-header .btn--sm {
    display: none;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  background: rgba(247, 244, 252, 0.98);
  backdrop-filter: blur(12px);
}

.nav-sheet[hidden] {
  display: none;
}

.nav-sheet a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--glow {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 28px rgba(224, 64, 160, 0.35);
}

.btn--glass {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.85rem 1.45rem;
}

.btn--xl {
  padding: 1rem 1.65rem;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 2rem) 1.25rem 4rem;
  max-width: 1180px;
  margin: 0 auto;
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.hero__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero__title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.hero__chips span {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__stage {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__device {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: #000;
}

.hero__device img {
  width: auto;
  max-height: min(480px, 62vh);
  object-fit: contain;
}

.hero__device--main {
  position: relative;
  z-index: 3;
  transform: rotate(-2deg);
}

.hero__device--back {
  position: absolute;
  z-index: 1;
  left: 0;
  opacity: 0.85;
  transform: rotate(-12deg) scale(0.88);
}

.hero__device--front {
  position: absolute;
  z-index: 2;
  right: 0;
  opacity: 0.9;
  transform: rotate(10deg) scale(0.82);
}

@media (max-width: 959px) {
  .hero__device--back,
  .hero__device--front {
    display: none;
  }

  .hero__device--main {
    transform: none;
  }

  .hero__stage {
    min-height: auto;
  }
}

/* Section head */
.section-head {
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.section-head--row .section-head__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.section-head h2 span {
  color: var(--violet);
}

.section-head__lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 3rem 0 4rem;
}

.features__grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(58, 36, 102, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(224, 64, 160, 0.45);
  transform: translateY(-4px);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: #fff;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Screenshot gallery — equal phone frames, no scroll strip */
.showcase {
  padding: 2rem 0 4.5rem;
}

.showcase__grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1rem;
  justify-items: center;
}

@media (min-width: 720px) {
  .showcase__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }
}

.showcase__card {
  margin: 0;
  width: 100%;
  max-width: 220px;
  text-align: center;
}

@media (min-width: 720px) {
  .showcase__card {
    max-width: 260px;
  }
}

.showcase__phone {
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  padding: 0.35rem;
  border-radius: 26px;
  background: linear-gradient(145deg, #ffffff, #ede6ff);
  border: 1px solid rgba(107, 76, 255, 0.22);
  box-shadow:
    0 16px 36px rgba(58, 36, 102, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase__phone::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  z-index: 2;
  width: 28%;
  max-width: 72px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  pointer-events: none;
}

.showcase__card:hover .showcase__phone,
.showcase__card:focus-within .showcase__phone {
  transform: translateY(-6px);
  box-shadow:
    0 28px 52px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(224, 64, 160, 0.25);
}

.showcase__phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 22px;
  background: #120a1e;
}

.showcase__card figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* Download */
.download {
  padding: 1rem 1.25rem 5rem;
  max-width: 720px;
  margin: 0 auto;
}

.download__panel {
  text-align: center;
  padding: 2.5rem 1.75rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(232, 220, 255, 0.9));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 18px;
}

.download__panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.download__panel p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.footer {
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.65);
}

.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer__brand img {
  border-radius: 8px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.9rem;
}

.footer__copy {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 40, 0.45);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  text-align: center;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
}

.modal__glow {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.85;
}

.modal__panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
}

.modal__panel p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
