/* =========================================================
   Lumi — AI companion landing page
   Aesthetic: warm twilight, glowing presence, intimate
   ========================================================= */

:root {
  /* Night canvas */
  --bg: #0c0a16;
  --bg-2: #14101f;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-line: rgba(255, 255, 255, 0.09);

  /* Warm glow accents */
  --coral: #ff8a6b;
  --peach: #ffb38a;
  --rose: #ff6b9d;
  --gold: #ffd58a;
  --lilac: #b8a4e8;

  /* Ink */
  --cream: #f6efe6;
  --muted: #b3acc4;
  --faint: #8a84a0;

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --grad-warm: linear-gradient(120deg, var(--peach), var(--rose) 55%, var(--lilac));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: clamp(15px, 1vw + 13px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
em { font-style: italic; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peach);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

/* =========================================================
   Ambient background
   ========================================================= */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.ambient__mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 78% 18%, rgba(255, 107, 157, 0.30), transparent 60%),
    radial-gradient(36% 40% at 12% 30%, rgba(184, 164, 232, 0.24), transparent 62%),
    radial-gradient(50% 50% at 50% 100%, rgba(255, 138, 107, 0.22), transparent 60%),
    radial-gradient(30% 30% at 90% 80%, rgba(255, 213, 138, 0.14), transparent 60%);
  filter: blur(20px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-3%,0) scale(1.08); }
}

.ambient__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.2px 1.2px at 70% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.6px 1.6px at 85% 60%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.2px 1.2px at 10% 80%, rgba(255,255,255,0.4), transparent);
  background-repeat: no-repeat;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.5; } 50% { opacity: 0.95; } }

.ambient__grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Brand mark
   ========================================================= */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, var(--peach) 40%, var(--rose) 75%, var(--coral));
  box-shadow: 0 0 18px rgba(255, 138, 107, 0.6), inset 0 0 6px rgba(255,255,255,0.5);
}
.brand__name {
  font-family: "Fraunces", serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.1rem clamp(1.1rem, 4vw, 2.5rem);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(12,10,22,0.7), rgba(12,10,22,0));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.nav.scrolled::before { opacity: 1; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav__links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.25s; }
.nav__links a:hover { color: var(--cream); }

.nav__cta {
  color: var(--bg) !important;
  background: var(--grad-warm);
  padding: 0.55rem 1.15rem; border-radius: 999px; font-weight: 600 !important;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 107, 157, 0.42); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Layout helpers
   ========================================================= */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.1rem, 4vw, 2.5rem);
}
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section__title em { color: var(--peach); }
.section__lede { color: var(--muted); margin-top: 1.1rem; font-size: 1.1rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 6rem);
  min-height: 82vh;
}
.hero__title {
  font-size: clamp(2.9rem, 7.5vw, 5.6rem);
  margin: 0.4rem 0 1.4rem;
}
.hero__title em { color: transparent; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }
.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 30ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
.hero__actions--center { justify-content: center; }

.store-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.25rem; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--panel-line);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.store-btn:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); border-color: rgba(255,179,138,0.5); }
.store-btn svg { width: 22px; height: 22px; fill: var(--cream); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.04em; }
.store-btn strong { font-size: 1.02rem; font-weight: 600; }

.hero__trust { display: flex; align-items: center; gap: 0.9rem; margin-top: 2.4rem; }
.hero__trust p { color: var(--muted); font-size: 0.92rem; }
.hero__trust strong { color: var(--cream); }
.avatars { display: flex; }
.avatars span {
  width: 32px; height: 32px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--bg);
  background:
    radial-gradient(circle at 35% 30%, #fff3, transparent 50%),
    conic-gradient(from calc(var(--a) * 90deg), var(--peach), var(--rose), var(--lilac), var(--gold), var(--peach));
}
.avatars span:first-child { margin-left: 0; }

/* Orb */
.hero__orb { position: relative; display: grid; place-items: center; min-height: 380px; }
.orb { position: relative; width: clamp(240px, 32vw, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.orb__core {
  position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, var(--peach) 32%, var(--rose) 66%, var(--coral) 100%);
  box-shadow: 0 0 60px rgba(255, 138, 107, 0.55), inset 0 0 40px rgba(255,255,255,0.35);
  animation: breathe 5.5s var(--ease) infinite;
}
.orb__halo {
  position: absolute; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,157,0.4), transparent 62%);
  filter: blur(14px); animation: breathe 5.5s var(--ease) infinite;
}
.orb__ring {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 179, 138, 0.35);
  animation: spin 18s linear infinite;
}
.orb__ring::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
}
.orb__ring--2 { width: 96%; border-color: rgba(184,164,232,0.28); animation-duration: 26s; animation-direction: reverse; }
.orb__ring--2::after { background: var(--lilac); box-shadow: 0 0 12px var(--lilac); }

@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes spin { to { transform: rotate(360deg); } }

.chat-bubble {
  position: absolute; padding: 0.6rem 0.95rem; border-radius: 16px;
  background: rgba(22, 17, 34, 0.82); border: 1px solid var(--panel-line);
  backdrop-filter: blur(8px); font-size: 0.86rem; color: var(--cream);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  animation: float 6s ease-in-out infinite;
}
.chat-bubble .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5be0a0; box-shadow: 0 0 8px #5be0a0; margin-right: 4px; }
.chat-bubble--1 { top: 12%; left: -6%; }
.chat-bubble--2 { bottom: 14%; right: -8%; max-width: 200px; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* =========================================================
   Stats
   ========================================================= */
.stats {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden;
  width: calc(100% - clamp(2.2rem, 8vw, 5rem));
}
.stat { background: rgba(12,10,22,0.6); padding: 1.6rem 1rem; text-align: center; }
.stat strong { display: block; font-family: "Fraunces", serif; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--peach); }
.stat span { color: var(--muted); font-size: 0.86rem; }

/* =========================================================
   Features
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card {
  position: relative; padding: 2rem 1.8rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-line); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(60% 60% at 20% 0%, rgba(255,138,107,0.12), transparent 70%);
  transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,179,138,0.4); background: rgba(255,255,255,0.05); }
.card:hover::before { opacity: 1; }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.2rem;
  font-size: 1.25rem; background: rgba(255,179,138,0.12); border: 1px solid rgba(255,179,138,0.25); color: var(--peach);
}
.card h3 { font-size: 1.4rem; margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card em { color: var(--peach); font-style: italic; }

/* =========================================================
   How it works
   ========================================================= */
.how { position: relative; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-line); }
.step__num {
  font-family: "Fraunces", serif; font-size: 2.4rem; color: transparent;
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; display: block; margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

/* =========================================================
   Companions
   ========================================================= */
.companions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.companion {
  padding: 1.9rem 1.6rem; border-radius: var(--radius); text-align: center;
  background: var(--panel); border: 1px solid var(--panel-line);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.companion:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.22); }
.companion__face {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.1rem;
  background:
    radial-gradient(circle at 34% 28%, #ffffffcc, transparent 45%),
    radial-gradient(circle at 70% 75%, var(--c2), transparent 55%),
    linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: 0 0 30px color-mix(in srgb, var(--c1) 45%, transparent);
  position: relative;
}
.companion__face::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
}
.companion h3 { font-size: 1.5rem; }
.companion__tag { display: block; color: var(--peach); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0.3rem 0 0.9rem; }
.companion p { color: var(--muted); font-size: 0.95rem; font-style: italic; }

/* =========================================================
   Stories
   ========================================================= */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.quote {
  padding: 2rem 1.8rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-line);
}
.quote blockquote {
  font-family: "Fraunces", serif; font-size: 1.3rem; line-height: 1.4; color: var(--cream); font-style: italic;
}
.quote figcaption { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; color: var(--muted); font-size: 0.92rem; }
.who { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, var(--c1), var(--c2)); flex: none; }

/* =========================================================
   Download CTA
   ========================================================= */
.download {
  position: relative; max-width: 940px; margin: clamp(2rem,5vw,4rem) auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem; text-align: center;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,179,138,0.10), rgba(255,107,157,0.07));
  border: 1px solid rgba(255,179,138,0.25);
  width: calc(100% - clamp(2.2rem, 8vw, 5rem));
}
.download__glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,157,0.4), transparent 60%); filter: blur(30px);
  animation: breathe 6s var(--ease) infinite;
}
.download h2 { position: relative; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.download p { position: relative; color: var(--muted); margin-top: 0.8rem; font-size: 1.1rem; }
.download .hero__actions { position: relative; margin-top: 2.2rem; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--panel-line);
}
.footer__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 2.5rem; }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 34ch; font-size: 0.95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__cols h4 { font-family: "Hanken Grotesk", sans-serif; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.95rem; padding: 0.28rem 0; transition: color 0.2s; }
.footer__cols a:hover { color: var(--peach); }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--panel-line);
  color: var(--faint); font-size: 0.85rem;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 1.5rem; min-height: auto; }
  .hero__sub { max-width: 46ch; margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__orb { order: -1; min-height: 320px; margin-bottom: 1rem; }
  .chat-bubble--1 { left: 2%; }
  .chat-bubble--2 { right: 2%; }
  .section__head { margin-inline: auto; text-align: center; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; z-index: 60; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 2.5rem; background: rgba(14,11,24,0.96); backdrop-filter: blur(18px);
    border-left: 1px solid var(--panel-line);
    transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 55;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }
  .nav__cta { margin-top: 0.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .hero__title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .store-btn { flex: 1; justify-content: center; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; }
}
