/* ─────────── Base ─────────── */
:root {
  --primary:    #7C5CBF;
  --primary-dk: #553C9A;
  --primary-lt: #B794F4;
  --secondary:  #4FD1C5;
  --tertiary:   #F6AD55;
  --ink:        #24213A;
  --ink-soft:   #6F6B85;
  --cream:      #FDFBF7;
  --line:       #E3DEEC;
}

html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "ss01", "cv11";
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ─────────── Decorative orbs (background blobs) ─────────── */
.orb-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 {
  width: 540px;
  height: 540px;
  background: radial-gradient(closest-side, #B794F4, transparent);
  top: -120px;
  left: -180px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(closest-side, #81E6D9, transparent);
  top: 25%;
  right: -160px;
  animation: drift2 26s ease-in-out infinite alternate;
}
.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(closest-side, #F6AD55, transparent);
  bottom: -120px;
  left: 30%;
  opacity: 0.30;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 {
  to { transform: translate(120px, 60px) scale(1.1); }
}
@keyframes drift2 {
  to { transform: translate(-100px, 80px) scale(0.95); }
}
@keyframes drift3 {
  to { transform: translate(80px, -90px) scale(1.05); }
}

/* All real content above the orbs */
nav, header, section, footer { position: relative; z-index: 1; }

/* ─────────── Logo mark ─────────── */
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: inline-block;
  position: relative;
  box-shadow: 0 4px 14px rgba(124, 92, 191, 0.35);
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--cream);
}
.logo-mark::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* ─────────── Reusable pieces ─────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124, 92, 191, 0.10);
  border-radius: 999px;
  padding: 6px 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(124, 92, 191, 0.35);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(85, 60, 154, 0.45);
}

.btn-pill-sm {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(124, 92, 191, 0.35);
  transition: background .18s, transform .18s;
}
.btn-pill-sm:hover {
  background: var(--primary-dk);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  padding: 14px 4px;
  transition: color .18s;
}
.btn-ghost:hover { color: var(--primary); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ─────────── Hero text reveal ─────────── */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroLine .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-line:nth-child(1) { animation-delay: .05s; }
.hero-line:nth-child(2) { animation-delay: .18s; }
.hero-line:nth-child(3) { animation-delay: .32s; }
@keyframes heroLine {
  to { opacity: 1; transform: translateY(0); }
}

/* Generic scroll-triggered reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────── Phone mockup ─────────── */
.phone-stage {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone {
  position: relative;
  width: 290px;
  height: 600px;
  border-radius: 44px;
  background: #1a1626;
  padding: 12px;
  box-shadow:
    0 60px 120px -30px rgba(124, 92, 191, 0.45),
    0 30px 60px -20px rgba(0, 0, 0, 0.25),
    inset 0 0 0 2px rgba(255,255,255,0.04);
  animation: phoneFloat 6s ease-in-out infinite;
  z-index: 1;
}
.phone::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 24px;
  background: #1a1626;
  border-radius: 0 0 14px 14px;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, rgba(124,92,191,0.35), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: phoneGlow 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes phoneGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  padding: 38px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ph-appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.ph-date { font-size: 16px; font-weight: 700; color: var(--ink); }
.ph-sub  { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.ph-streak {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(246, 173, 85, 0.18);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.ph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.ph-tile {
  aspect-ratio: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.ph-tile.selected {
  background: linear-gradient(135deg, rgba(124,92,191,.14), rgba(79,209,197,.14));
  border-color: var(--primary);
  border-width: 1.5px;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(124, 92, 191, 0.20);
}
.ph-icon { font-size: 18px; }
.ph-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
}
.ph-dots {
  display: flex;
  gap: 2px;
}
.ph-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}
.ph-dots span.filled {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.ph-ai {
  margin-top: auto;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(124,92,191,.40);
  position: relative;
  overflow: hidden;
}
.ph-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite 1s;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.ph-ai-icon { font-size: 14px; }
.ph-arrow { margin-left: auto; }

/* ─────────── Feature cards ─────────── */
.feature-card {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 191, .35);
  box-shadow: 0 24px 48px -16px rgba(124, 92, 191, .25);
}
.feature-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}

/* ─────────── Insight card ─────────── */
.insight-card {
  background: white;
  border-radius: 22px;
  border: 1px solid rgba(124,92,191,.25);
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(124, 92, 191, .25);
  position: relative;
  overflow: hidden;
}
.insight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.insight-head { margin-bottom: 16px; }
.insight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,92,191,.10);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.insight-section { margin-top: 20px; }
.insight-section-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}
.insight-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 8px;
}
.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.insight-disclaimer {
  margin-top: 22px;
  background: #FFF7E0;
  border: 1px solid var(--tertiary);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
}
.insight-cta {
  margin-top: 14px;
  width: 100%;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  transition: background .18s;
}
.insight-cta:hover { background: var(--primary-dk); }

/* Typewriter caret */
.caret {
  display: inline-block;
  margin-left: 1px;
  color: var(--primary);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─────────── Privacy ─────────── */
.privacy-card {
  text-align: center;
  background: white;
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.privacy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(124,92,191,.10), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(79,209,197,.12), transparent 60%);
  pointer-events: none;
}
.privacy-shield {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 18px 40px -10px rgba(124, 92, 191, .55);
}
.privacy-shield svg { width: 40px; height: 40px; }
.privacy-pill {
  background: white;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

/* ─────────── Email signup ─────────── */
.email-input {
  flex: 1;
  width: 100%;
  max-width: 360px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 92, 191, .15);
}

/* ─────────── Coming-soon Play badge ─────────── */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  border-radius: 14px;
  padding: 10px 18px;
  opacity: 0.9;
  cursor: not-allowed;
}

/* ─────────── Mobile polish ─────────── */
@media (max-width: 768px) {
  .phone {
    width: 240px;
    height: 500px;
    border-radius: 36px;
  }
  .phone-screen {
    border-radius: 26px;
    padding: 30px 12px 12px;
  }
  .ph-tile { padding: 6px 4px; }
  .ph-icon { font-size: 15px; }
  .ph-label { font-size: 8px; }
}
