/* Welcome page — dark mode uses indigo / slate (matches premium-ui). Light: Tailwind + subtle type. */
@import url("https://fonts.bunny.net/css?family=outfit:400,500,600,700|cormorant-garamond:600,700");

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"],
html:not([data-theme]) {
  color-scheme: light;
}

/* Light: subtle typography polish (Tailwind handles colors). */
html[data-theme="light"] body.premium-welcome,
html:not([data-theme]) body.premium-welcome {
  font-family: "Outfit", "Instrument Sans", system-ui, sans-serif !important;
}

html[data-theme="light"] .premium-welcome h1,
html:not([data-theme]) .premium-welcome h1 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

html[data-theme="dark"] body.premium-welcome {
  background: radial-gradient(ellipse 100% 70% at 50% -35%, rgba(99, 102, 241, 0.22), transparent 52%), #08080a !important;
  color: #e2e8f0 !important;
  font-family: "Outfit", "Instrument Sans", system-ui, sans-serif !important;
}

html[data-theme="dark"] .premium-welcome h1 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

html[data-theme="dark"] .premium-welcome .bg-white {
  background-color: #12121a !important;
  color: #e2e8f0 !important;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.18) !important;
}

html[data-theme="dark"] .premium-welcome .text-\[\#1b1b18\] {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .premium-welcome .text-\[\#706f6c\] {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .premium-welcome .text-\[\#f53003\],
html[data-theme="dark"] .premium-welcome .text-\[\#F53003\] {
  color: #a5b4fc !important;
}

html[data-theme="dark"] .premium-welcome .border-\[\#e3e3e0\] {
  border-color: rgba(129, 140, 248, 0.22) !important;
}

html[data-theme="dark"] .premium-welcome .bg-\[\#FDFDFC\] {
  background-color: #0c0c10 !important;
}

html[data-theme="dark"] .premium-welcome .bg-\[\#dbdbd7\] {
  background-color: #6366f1 !important;
}

html[data-theme="dark"] .premium-welcome .bg-\[\#fff2f2\] {
  background: linear-gradient(160deg, #1e1b2e 0%, #0c0a12 100%) !important;
}

html[data-theme="dark"] .premium-welcome .bg-\[\#1b1b18\] {
  background: linear-gradient(135deg, #4f46e5, #312e81) !important;
  color: #f8fafc !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
}

html[data-theme="dark"] .premium-welcome nav a {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease !important;
}

/* Toggle on welcome (this page does not load premium-ui.css). */
.premium-welcome .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.premium-welcome .theme-toggle:hover {
  color: #4f46e5;
  border-color: rgba(15, 23, 42, 0.14);
  background: #f1f5f9;
  box-shadow: none;
}

html[data-theme="dark"] .premium-welcome .theme-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(26, 24, 32, 0.85);
  color: #94a3b8;
}

html[data-theme="dark"] .premium-welcome .theme-toggle:hover {
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.premium-welcome .theme-toggle-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

html[data-theme="dark"] .premium-welcome .theme-toggle-moon {
  display: none;
}

html[data-theme="light"] .premium-welcome .theme-toggle-sun,
html:not([data-theme]) .premium-welcome .theme-toggle-sun {
  display: none;
}

/* --- Landing page (/) — mesh backdrop + display headings (Tailwind handles layout) --- */
.premium-welcome .landing-hero-bg {
  background: radial-gradient(ellipse 85% 55% at 50% -25%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.08), transparent 45%),
    radial-gradient(ellipse 50% 35% at 0% 20%, rgba(244, 114, 182, 0.06), transparent 40%);
}

html[data-theme="dark"] .premium-welcome .landing-hero-bg {
  background: radial-gradient(ellipse 90% 55% at 50% -35%, rgba(129, 140, 248, 0.22), transparent 52%),
    radial-gradient(ellipse 55% 45% at 95% 5%, rgba(99, 102, 241, 0.12), transparent 50%);
}

.premium-welcome .landing-display,
.premium-welcome .landing-wordmark {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

html[data-theme="light"] .premium-welcome .landing-nav,
html:not([data-theme]) .premium-welcome .landing-nav {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .premium-welcome .landing-nav {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Premium landing polish: atmosphere, glass, motion --- */
@keyframes landing-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(8px, -18px) scale(1.03);
  }
  66% {
    transform: translate(-12px, 10px) scale(0.98);
  }
}

@keyframes landing-shimmer-bar {
  0% {
    opacity: 0.85;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.15);
  }
  100% {
    opacity: 0.85;
    filter: brightness(1);
  }
}

@keyframes landing-reveal-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.premium-welcome .landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  animation: landing-float 18s ease-in-out infinite;
}

html[data-theme="dark"] .premium-welcome .landing-orb {
  opacity: 0.45;
}

.premium-welcome .landing-orb-a {
  left: -10%;
  top: 5%;
  width: min(42vw, 22rem);
  height: min(42vw, 22rem);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, transparent 70%);
}

.premium-welcome .landing-orb-b {
  right: -5%;
  top: 25%;
  width: min(36vw, 18rem);
  height: min(36vw, 18rem);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
  animation-delay: -6s;
}

.premium-welcome .landing-orb-c {
  left: 30%;
  bottom: -5%;
  width: min(48vw, 26rem);
  height: min(48vw, 26rem);
  background: radial-gradient(circle, rgba(244, 114, 182, 0.22) 0%, transparent 72%);
  animation-delay: -12s;
}

.premium-welcome .landing-gradient-text {
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #c026d3 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html[data-theme="dark"] .premium-welcome .landing-gradient-text {
  background: linear-gradient(120deg, #a5b4fc 0%, #c4b5fd 40%, #f0abfc 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-welcome .landing-showcase {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
}

html[data-theme="dark"] .premium-welcome .landing-showcase {
  background: linear-gradient(145deg, rgba(39, 39, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
}

.premium-welcome .landing-showcase-inner {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .premium-welcome .landing-showcase-inner {
  background: rgba(24, 24, 27, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-welcome .landing-bar-shine {
  animation: landing-shimmer-bar 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .premium-welcome .landing-orb,
  .premium-welcome .landing-bar-shine {
    animation: none !important;
  }

  .premium-welcome .landing-reveal,
  .premium-welcome .landing-reveal-delay {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.premium-welcome .landing-reveal {
  animation: landing-reveal-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.premium-welcome .landing-reveal-delay {
  animation-delay: 0.12s;
}

.premium-welcome .landing-card {
  position: relative;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.premium-welcome .landing-card > * {
  position: relative;
  z-index: 1;
}

.premium-welcome .landing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 58%
  );
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

html[data-theme="dark"] .premium-welcome .landing-card::after {
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
}

.premium-welcome .landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -20px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.12);
}

html[data-theme="dark"] .premium-welcome .landing-card:hover {
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.2);
}

.premium-welcome .landing-card:hover::after {
  transform: translateX(120%) skewX(-12deg);
}

@media (min-width: 640px) {
  .premium-welcome .landing-steps ol {
    position: relative;
  }

  .premium-welcome .landing-steps ol::before {
    content: "";
    position: absolute;
    left: calc(16.666% + 1.75rem);
    right: calc(16.666% + 1.75rem);
    top: 1.75rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(99, 102, 241, 0.35) 15%,
      rgba(139, 92, 246, 0.45) 50%,
      rgba(99, 102, 241, 0.35) 85%,
      transparent
    );
    pointer-events: none;
  }

  html[data-theme="dark"] .premium-welcome .landing-steps ol::before {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(129, 140, 248, 0.25) 20%,
      rgba(167, 139, 250, 0.35) 50%,
      rgba(129, 140, 248, 0.25) 80%,
      transparent
    );
  }
}

.premium-welcome .landing-btn-primary {
  position: relative;
  overflow: hidden;
}

.premium-welcome .landing-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.premium-welcome .landing-btn-primary:hover::before {
  transform: translateX(100%);
}

.premium-welcome .landing-brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* FAQ chevron + focus */
.premium-welcome .landing-faq-item[open] .landing-faq-chevron {
  transform: rotate(180deg);
}

.premium-welcome .landing-faq summary:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
  border-radius: 0.75rem;
}

html[data-theme="dark"] .premium-welcome .landing-faq summary:focus-visible {
  outline-color: rgba(165, 180, 252, 0.55);
}

.premium-welcome .landing-quote {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-welcome .landing-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(99, 102, 241, 0.15);
}

html[data-theme="dark"] .premium-welcome .landing-quote:hover {
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .premium-welcome .landing-quote {
    transition: none;
  }

  .premium-welcome .landing-quote:hover {
    transform: none;
  }
}
