/* ═══════════ Curiyo teaser — official violet brand
 * Brand palette ("Discover What Matters"):
 *   --violet         #6B3CFF  primary brand violet
 *   --violet-bright  #A855FF  highlights / mid-gradient
 *   --violet-blue    #2D9BFF  bright sky-blue (end of brand sweep)
 *   --violet-lavender #F2EEFF light surfaces
 *   --indigo-deep    #0D0B1D  deepest indigo (dark surfaces)
 * Brand gradient: linear-gradient(135deg, #6B3CFF 0%, #A855FF 45%, #2D9BFF 100%)
 */
:root {
  --bg: #000218;
  --bg-raised: #181233;
  --bg-elevated: #221947;

  --ink: #ececf0;
  --ink-muted: #9B95B0;
  --ink-dim: #65607A;

  --line: #2E2456;
  --line-soft: #1F1840;

  --violet:        #6B3CFF;
  --violet-mid:    #8B5CF6;  /* intermediate hover/glow stop */
  --violet-bright: #A855FF;
  --violet-soft:   #C58CFF;
  --violet-lavender: #F2EEFF;
  --violet-blue:   #2D9BFF;
  --violet-deep:   #5828E0;
  --violet-deeper: #2E1065;
  --violet-deepest: #0D0B1D;
  --accent-glow:   rgba(107,60,255,0.32);

  --success: #22c55e;
  --danger:  #ef4444;

  --font-serif: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Quicksand', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max: 1180px;
  --gutter: 36px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(900px 600px at 78% 22%, rgba(168,85,255,0.16), transparent 65%),
    radial-gradient(700px 500px at 18% 88%, rgba(13,11,29,0.55), transparent 70%),
    var(--bg);
}

/* ═══════════ Topbar ═══════════ */
.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.brand-lockup {
  height: 88px;
  width: auto;
  display: block;
}
.brand-name {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;   /* match the app/landing CURIYO wordmark */
  color: var(--violet-bright);
  text-align: center;
}
.launch-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--violet-bright);
  text-transform: uppercase;
}

/* ═══════════ Hero ═══════════ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { max-width: 540px; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--violet-bright);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.eyebrow.center { text-align: center; }

.headline {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(48px, 6.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
  color: var(--ink);
}
.headline em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, #C58CFF 0%, #A855FF 35%, #6B3CFF 70%, #2D9BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.subhead {
  color: var(--ink-muted);
  font-size: 1.025rem;
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 460px;
}

/* ── Hero artwork ── */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  isolation: isolate;
}
/* Violet ombre that radiates outward from the hero focal point.
   Sits behind the artwork; far edge fades to transparent so it
   blends seamlessly into the page background. */
.hero-art::before {
  content: '';
  position: absolute;
  inset: -10% -15%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 50% 50%,
      rgba(107,60,255,0.55) 0%,
      rgba(107,60,255,0.32) 28%,
      rgba(168,85,255,0.18) 52%,
      rgba(45,155,255,0.08) 72%,
      transparent 92%);
  filter: blur(8px);
  pointer-events: none;
}
/* Frame wraps the artwork + sparkle overlay so they float together
   and the sparkle coordinates stay aligned with the image. */
.hero-art-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}
/* Soft-mask the rectangular image edge so the artwork's own dark
   backdrop dissolves into the page bg + violet ombre underneath. */
.hero-artwork {
  width: min(380px, 90%);
  height: auto;
  display: block;
  border-radius: 18px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(closest-side at 50% 50%, #000 62%, transparent 100%);
}
@keyframes floatArt {
  0%   { transform: translateY(0)    rotate(-1deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}

/* Twinkling sparkles over the gem cluster in the hero artwork. */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--s, 6px);
  height: var(--s, 6px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.98) 0%,
    rgba(255,225,170,0.75) 35%,
    rgba(168,85,255,0.25) 70%,
    transparent 100%);
  filter:
    drop-shadow(0 0 6px rgba(255, 220, 170, 0.9))
    drop-shadow(0 0 12px rgba(168, 85, 255, 0.6));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  animation: twinkle 3.4s ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0;    transform: translate(-50%, -50%) scale(0.3); }
  45%      { opacity: 1;    transform: translate(-50%, -50%) scale(1); }
  55%      { opacity: 0.95; transform: translate(-50%, -50%) scale(1.05); }
}

/* Spinning pearl overlay — sits on top of the existing pearl in the
   artwork. A rotating conic-gradient highlight reads as the pearl
   slowly turning. */
.hero-pearl {
  position: absolute;
  left: var(--px, 50%);
  top: var(--py, 68%);
  width: var(--pr, 10%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(255, 215, 160, 0.55));
}
.hero-pearl::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 240, 210, 0.0)  40deg,
    rgba(255, 240, 210, 0.55) 95deg,
    rgba(255, 255, 255, 0.85) 110deg,
    rgba(255, 240, 210, 0.55) 125deg,
    transparent 180deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 78%);
          mask-image: radial-gradient(circle, #000 60%, transparent 78%);
  animation: pearlSpin 4.5s linear infinite;
}
@keyframes pearlSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art-frame,
  .hero-pearl::before { animation: none; }
  .sparkle { animation: none; opacity: 0.6; }
}

/* ═══════════ Waitlist form ═══════════ */
.waitlist-form { margin: 0 0 18px; max-width: 520px; }
.form-lede {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.65;
  color: var(--ink);
}
.field-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(18,13,36,0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 18px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
input[type="email"]::placeholder { color: #6a6478; }
input[type="email"]:focus {
  border-color: var(--violet);
  background: rgba(27,20,56,0.9);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input[type="email"][aria-invalid="true"] {
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(168,85,255,0.22);
}

.submit-btn {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--violet), var(--violet-mid));
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 26px;
  min-height: 50px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(107,60,255,0.55);
  transition: box-shadow 180ms ease, transform 120ms ease, filter 180ms ease, opacity 180ms ease;
}
.submit-btn:hover:not(:disabled) {
  box-shadow: 0 10px 32px rgba(107,60,255,0.70);
  filter: brightness(1.10);
}
.submit-btn:active:not(:disabled) { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.55; cursor: progress; }
.submit-btn-compact { padding: 0 22px; min-height: 48px; }

.form-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.form-status.is-error {
  color: var(--violet-bright);
  padding-left: 10px;
  border-left: 2px solid var(--violet-bright);
}
.form-status.is-success { color: var(--violet-bright); }

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  font-size: 0.82rem;
  margin: 0;
}
.privacy-icon {
  width: 16px;
  height: 16px;
  color: var(--ink-dim);
  flex-shrink: 0;
}

/* ═══════════ Features ═══════════ */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  text-align: center;
}
.section-headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 auto 64px;
  color: var(--ink);
  max-width: 800px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-bright);
  margin-bottom: 22px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--violet-bright);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.feature-copy {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════ CTA card ═══════════ */
.cta-card {
  max-width: var(--max);
  margin: 24px auto 80px;
  padding: 48px;
  background: linear-gradient(180deg, rgba(18,13,36,0.65), rgba(18,13,36,0.30));
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  position: relative;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 36px;
  width: 56px;
  height: 2px;
  background: var(--violet-bright);
}
.cta-headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.cta-copy {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0;
  max-width: 380px;
}

/* ═══════════ Footer ═══════════ */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.foot-logo {
  width: 36px;
  height: 36px;
  display: inline-block;
  object-fit: contain;
}
.foot-nav {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.foot-nav a {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 160ms ease;
}
.foot-nav a:hover { color: var(--violet-bright); }
.foot-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.foot-social a {
  width: 22px;
  height: 22px;
  display: inline-flex;
  color: var(--ink-muted);
  transition: color 160ms ease, transform 160ms ease;
}
.foot-social a:hover {
  color: var(--violet-bright);
  transform: translateY(-2px);
}
.foot-social svg { width: 100%; height: 100%; }
.foot-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin: 24px 0 0;
}

/* ═══════════ A11y / Reduced motion ═══════════ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════ Responsive ═══════════ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 64px;
    text-align: left;
  }
  .hero-art {
    order: -1;
    min-height: 340px;
    display: block;
    text-align: center;
  }
  .hero-art-frame {
    display: block;
    width: min(280px, 70%);
    margin: 0 auto;
  }
  .hero-artwork { width: 100%; }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }
  .cta-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 28px;
  }
}
@media (max-width: 600px) {
  .topbar { padding: 28px 20px 0; }
  .launch-tag { font-size: 0.66rem; letter-spacing: 0.18em; }
  .brand-name { font-size: 1.8rem; }
  .brand { gap: 0; }
  .brand-name { margin-left: 0; padding-left: 0; }
  .hero { padding: 24px 20px 48px; }
  .features { padding: 36px 20px 48px; }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 320px;
  }
  .cta-card { padding: 28px 22px; margin: 12px 16px 56px; }
  .foot { padding: 20px 20px 28px; }
  .foot-nav { gap: 20px; }
  .field-row { flex-wrap: wrap; }
  input[type="email"] { flex: 1 1 100%; }
  .submit-btn { width: 100%; }
}
