/* Zodiya · home styles
 *
 * Tailwind via CDN handles 95 % of the layout/utility classes — this file
 * carries the bits Tailwind doesn't ship out of the box: the cosmic
 * radial background, custom keyframes for the orbital glow, the
 * glassmorphism utility used on cards, and a small font-rendering tweak
 * to match the Flutter app's typography.
 */

:root {
  /* Warm-light "cosmic dawn" palette. Cream base + white cards + sandy
     lines + warm-dark chocolate text. The brand's violet and gold
     accents stay unchanged — they compose more luxuriously on cream
     than on neutral white, and the gold reads as a warm orange tint. */
  --bg: #FBF8F2;
  --surface: #FFFFFF;
  --surface-2: #F4EDE0;
  --border: #E5DCC9;
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --accent: #E4A85A;
  --text: #1F1810;
  --text-muted: #6B5F50;
}

html { background: var(--bg); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
}

/* Cosmic dawn radial — soft sunrise wash behind the hero. The metaphor
 * shifted from "night sky" to "sky just before sunrise" — peach, gold,
 * faint violet. Opacities tuned for visibility on a cream base. */
.cosmic-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(228, 168, 90, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 30% at 18% 32%, rgba(228, 168, 90, 0.16), transparent 55%),
    var(--bg);
}

/* Constellation dots — replaces the dark-theme starfield. Faint
 * gold + violet specks scattered across cream, evoking a sky map
 * without literal stars. */
.starfield {
  background-image:
    radial-gradient(1.5px 1.5px at 23% 12%, rgba(228, 168, 90, 0.55), transparent),
    radial-gradient(1px 1px at 67% 28%, rgba(167, 139, 250, 0.45), transparent),
    radial-gradient(1px 1px at 41% 51%, rgba(228, 168, 90, 0.40), transparent),
    radial-gradient(1px 1px at 88% 64%, rgba(167, 139, 250, 0.40), transparent),
    radial-gradient(1px 1px at 12% 78%, rgba(228, 168, 90, 0.50), transparent),
    radial-gradient(1.5px 1.5px at 73% 85%, rgba(228, 168, 90, 0.65), transparent),
    radial-gradient(1px 1px at 56% 36%, rgba(167, 139, 250, 0.50), transparent);
  background-size: 800px 600px;
  background-repeat: repeat;
  pointer-events: none;
}

/* Glassmorphism card — the workhorse for features, pricing, testimonials.
 * On the light theme: white-translucent surfaces lift off the cream bg
 * with a soft sand-coloured border. */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(229, 220, 201, 0.9);
  border-radius: 20px;
}
.glass-strong {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(229, 220, 201, 1);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
              0 8px 24px -12px rgba(31, 24, 16, 0.08);
}

/* Hover lift — cards rise with a soft amber-violet glow on cream.
 * Reduced-motion users get only the colour shift. */
.lift {
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 240ms cubic-bezier(0.2, 0, 0, 1),
              border-color 240ms;
}
.lift:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow:
    0 20px 40px -20px rgba(228, 168, 90, 0.30),
    0 0 0 1px rgba(139, 92, 246, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .lift { transition: border-color 240ms; }
  .lift:hover { transform: none; box-shadow: none; }
}

/* Gradient text — used for the wordmark accent and section headlines. */
.gradient-text {
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 55%, #E4A85A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Primary CTA — gradient pill with a soft halo. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: white;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  box-shadow:
    0 10px 30px -10px rgba(139, 92, 246, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 200ms, box-shadow 200ms;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 36px -10px rgba(139, 92, 246, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 200ms, background 200ms;
}
.btn-ghost:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(228, 168, 90, 0.06);
}

/* Faint dotted grid — adds depth behind the "How it works" section.
 * Slightly stronger amber dots on cream (light theme makes faint dots
 * vanish; bumped opacity so the texture stays visible). */
.dot-grid {
  background-image: radial-gradient(rgba(228, 168, 90, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Orbital ring — slow CSS rotation. */
@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.orbit-slow { animation: orbit 28s linear infinite; }
.orbit-mid  { animation: orbit 18s linear infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .orbit-slow, .orbit-mid { animation: none; }
}

/* Twinkle — single star pulse for the hero focal point. */
@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.twinkle { animation: twinkle 3.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .twinkle { animation: none; opacity: 1; }
}

/* Section divider — fades in/out at the edges so it doesn't look stamped on. */
.divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(167, 139, 250, 0.4) 30%,
    rgba(228, 168, 90, 0.5) 50%,
    rgba(167, 139, 250, 0.4) 70%,
    transparent 100%);
}

/* Form fields shared across contact + any future signup-on-home.
 * White on cream with sand borders — focuses to violet. */
.field {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
.field:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.field::placeholder { color: var(--text-muted); }

/* Improve link tap targets on mobile without overriding Tailwind hover. */
a, button { -webkit-tap-highlight-color: transparent; }

/* Scroll-margin so anchor links don't slide under the sticky nav. */
section[id] { scroll-margin-top: 88px; }
