/* ============================================
   MIRACLEY — DESIGN TOKENS (v2, light theme)
   A premium, futuristic, LIGHT purple system —
   built from the app's own real in-app tokens.
   ============================================ */

:root {
  /* Core palette — matches real in-app tokens */
  --bg: #FAF8FE;
  --bg-soft: #F2EDFA;
  --bg-raised: #FFFFFF;
  --ink: #1F1730;
  --ink-soft: rgba(31, 23, 48, 0.66);
  --ink-faint: rgba(31, 23, 48, 0.42);
  --ink-hair: rgba(31, 23, 48, 0.09);

  --violet: #6B5B95;
  --violet-deep: #4E3F72;
  --violet-soft: rgba(107, 91, 149, 0.10);
  --violet-glow: rgba(107, 91, 149, 0.30);

  --clay: #C08552;
  --clay-soft: #F2E1D1;

  --glass-fill: rgba(255, 255, 255, 0.62);
  --glass-fill-hover: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(31, 23, 48, 0.08);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 52px;
  --space-xxl: 76px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 500ms;
  --dur-slow: 900ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-md); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--space-md); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}

.glass-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 20px 50px -24px rgba(78, 63, 114, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #7C6BA8, var(--violet-deep));
  color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 30px -10px var(--violet-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 16px 36px -8px var(--violet-glow);
}

.btn-ghost {
  background: rgba(31, 23, 48, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(31, 23, 48, 0.07); }

.container-photo {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: linear-gradient(160deg, #F2EDFA, #E8E0F5);
  position: relative;
}
.container-photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: var(--space-md);
}

::selection { background: var(--violet-glow); color: var(--ink); }

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

.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty-slow { animation: floaty 9s ease-in-out infinite; animation-delay: -3s; }

body {
  background-image:
    radial-gradient(closest-side at 15% 8%, rgba(107,91,149,0.07), transparent 60%),
    radial-gradient(closest-side at 85% 28%, rgba(192,133,82,0.06), transparent 55%),
    radial-gradient(closest-side at 20% 62%, rgba(107,91,149,0.06), transparent 55%),
    radial-gradient(closest-side at 90% 85%, rgba(107,91,149,0.08), transparent 55%);
  background-attachment: fixed;
}
