/* Dreamcore website — "Nocturnal Ethereal" design system.
   Tokens mirror the app's global.css @theme (keep in sync). */

:root {
  --void: #16041f;
  --night: #26093c;
  --panel: #1b0628;
  --edge: #281434;
  --night-2: #3a1655;
  --coral: #fe6f64;
  --lavender: #ddb9f6;
  --mist: #f7f5f8;
  --muted: #cec4cc;
  --faint: #978e96;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--muted);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 760px;
}

a {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--night-2);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--coral);
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--mist);
  line-height: 1.2;
}

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

.site-header {
  padding: 28px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mist);
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.lang-switch {
  font-size: 14px;
  color: var(--faint);
  text-decoration: none;
  border: 1px solid var(--night-2);
  border-radius: 999px;
  padding: 6px 16px;
}

.lang-switch:hover {
  color: var(--mist);
  text-decoration: none;
}

/* ---- Landing hero ---- */

.hero {
  padding: 72px 0 88px;
  text-align: center;
  position: relative;
}

/* Ethereal hero glow — luminescence, not shadow. Painted on the page body
   (landing pages opt in via .has-glow) rather than a clipped box, so it can
   bloom generously: the fade reaches zero exactly at the ellipse boundary,
   which lies inside the page on desktop; on small screens it can only meet
   the viewport edge, which reads as ambient light, never as a cut. */
body.has-glow {
  background-image: radial-gradient(
    ellipse 620px 520px at 50% 400px,
    rgba(254, 111, 100, 0.16) 0%,
    rgba(221, 185, 246, 0.07) 45%,
    rgba(221, 185, 246, 0) 100%
  );
  background-repeat: no-repeat;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--coral);
}

.hero p {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 18px;
}

.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  border: 1px solid var(--night-2);
  color: var(--mist);
  background: var(--panel);
  text-align: left;
  line-height: 1.3;
}

.store-button strong {
  font-weight: 500;
  font-size: 16px;
}

.store-button span {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-button--primary {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--void);
  box-shadow: 0 4px 24px rgba(254, 111, 100, 0.3);
}

.store-button--primary span {
  color: rgba(22, 4, 31, 0.65);
}

/* ---- Companions — one at a time, scattered across the page ---- */

.hero-creature {
  display: block;
  margin: 0 auto 32px;
  height: 96px;
  width: auto;
  filter: drop-shadow(0 12px 28px rgba(254, 111, 100, 0.18));
  animation: float 6s ease-in-out infinite;
}

.promise .card {
  position: relative;
}

.promise-creature {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  height: 68px;
  width: auto;
  filter: drop-shadow(0 8px 20px rgba(22, 4, 31, 0.6));
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-creature {
    animation: none;
  }
}

/* ---- Feature grid ---- */

.features {
  padding: 24px 0 72px;
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 24px;
  padding: 28px;
}

.card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
}

/* Illustrated feature card: full-bleed image header fading into the panel */

.card--illustrated {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--night);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 6, 40, 0) 45%, rgba(27, 6, 40, 0.55) 80%, var(--panel) 100%);
}

.card--illustrated .card-body {
  padding: 22px 28px 28px;
}


/* ---- Privacy blurb ---- */

.promise {
  padding: 48px 0 88px;
}

.promise .card {
  text-align: center;
  padding: 48px 32px;
}

.promise h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.promise p {
  max-width: 620px;
  margin: 0 auto;
}

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

.legal {
  padding: 24px 0 96px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 24px;
  margin: 44px 0 12px;
}

.legal h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  font-size: 16px;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal strong {
  color: var(--mist);
  font-weight: 500;
}

.placeholder {
  background: rgba(254, 111, 100, 0.15);
  border: 1px dashed var(--coral);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--coral);
}

.notice {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 24px;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 40px;
}

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

.site-footer {
  border-top: 1px solid var(--edge);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--faint);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--faint);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mist);
  text-decoration: underline;
}

.site-footer .langs a[aria-current="true"] {
  color: var(--mist);
}

.site-footer .langs {
  display: flex;
  gap: 12px;
}
