/* ============================================================
   LEDURA — landing components: hero, phones, sections
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  transition: background .6s ease, color .6s ease;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--gutter) clamp(64px, 9vw, 110px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.0;
  letter-spacing: .004em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero .lede { margin: 0 0 36px; max-width: 40ch; }
.hero-ctas { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }

/* decorative gold orbit / glow behind phones */
.hero-glow {
  position: absolute;
  width: min(560px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .8;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%,
      color-mix(in srgb, var(--gold-soft) 70%, transparent) 0%,
      transparent 62%);
}
.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  z-index: 0;
}
.hero-orbit.o1 { width: 480px; height: 480px; }
.hero-orbit.o2 { width: 620px; height: 620px; opacity: .55; }
.hero-spark-deco {
  position: absolute; color: var(--gold); z-index: 1; font-size: 18px;
  opacity: .9;
}

/* hero phones */
.hero-phones { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.hero-phones .phone.back {
  position: absolute;
  transform: translateX(86px) translateY(26px) rotate(6deg) scale(.92);
  filter: brightness(.97);
  z-index: 1;
}
.hero-phones .phone.front { position: relative; z-index: 2; transform: translateX(-26px) rotate(-2deg); }

/* ---- light (parchment) skin ---- */
.hero[data-skin="parchment"] {
  background:
    radial-gradient(120% 90% at 78% 8%, var(--soft-tan) 0%, transparent 46%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  color: var(--ink);
}
.hero[data-skin="parchment"] .hero-eyebrow { color: var(--gold-deep); }
.hero[data-skin="parchment"] h1 { color: var(--ink); }
.hero[data-skin="parchment"] .lede { color: var(--body); }

/* ---- dark (cosmos) skin ---- */
.hero[data-skin="cosmos"] {
  background:
    radial-gradient(90% 70% at 72% 18%, color-mix(in srgb, var(--night-glow) 16%, transparent) 0%, transparent 50%),
    radial-gradient(120% 120% at 20% 0%, #1a140d 0%, var(--night-bg) 55%);
  color: var(--night-ink);
}
.hero[data-skin="cosmos"] h1 { color: var(--night-ink); }
.hero[data-skin="cosmos"] .lede { color: rgba(240,228,206,.72); }
.hero[data-skin="cosmos"] .hero-eyebrow { color: var(--night-glow); }
.hero[data-skin="cosmos"] .hero-glow {
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--night-glow) 34%, transparent) 0%, transparent 60%);
  opacity: .65;
}
.hero[data-skin="cosmos"] .hero-orbit { border-color: color-mix(in srgb, var(--night-glow) 40%, transparent); }
.hero[data-skin="cosmos"] .badge-soon { color: rgba(240,228,206,.5); }
.hero[data-skin="cosmos"] .hero-stars { opacity: 1; }
.hero-stars { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-stars span {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--night-glow); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--night-glow) 60%, transparent);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .hero-stars span { animation: none; } }

/* ---- cosmos canvas background (js/cosmos.js) ----
   The interactive starfield / constellation canvas mounts on [data-cosmos]
   (the hero) at z-index 1 — above the glow & orbit, behind the copy & phones. */
.hero-copy { position: relative; z-index: 2; } /* keep headline legible above the starfield */
.hero-stars { display: none; }                 /* static CSS starfield replaced by the canvas engine */
/* the central glow gently breathes like a living body (class toggled by cosmos.js) */
@keyframes cosmosBreathe {
  0%, 100% { transform: scale(1);    opacity: .62; }
  50%      { transform: scale(1.07); opacity: .82; }
}
.cosmos-breathe .hero-glow { animation: cosmosBreathe 7.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cosmos-breathe .hero-glow { animation: none; } }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { align-items: center; }
  .hero-ctas .badge-row { justify-content: center; }
  .hero .lede { margin-inline: auto; }
  .hero-art { min-height: 480px; order: 2; }
  .hero-eyebrow { display: inline-block; }
}

/* small phones — scale the device mockups so nothing clips off-screen */
@media (max-width: 560px) {
  .hero h1 { font-size: 40px; }
  .hero-art { min-height: 430px; }
  .phone { --pw: 260px; border-radius: 40px; }
  .phone-screen { border-radius: 31px; }
  .hero-phones .phone.back { transform: translateX(64px) translateY(20px) rotate(6deg) scale(.92); }
  .hero-phones .phone.front { transform: translateX(-34px) rotate(-2deg); }
  .hero-orbit.o1 { width: 340px; height: 340px; }
  .hero-orbit.o2 { width: 450px; height: 450px; }
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone {
  --pw: 300px;
  width: var(--pw);
  aspect-ratio: 300 / 620;
  background: #1A1714;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-phone);
  position: relative;
  flex: none;
}
.phone::after { /* side button hint */
  content: ""; position: absolute; right: -2px; top: 130px; width: 3px; height: 56px;
  background: #2a241d; border-radius: 2px;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #16120e; border-radius: 999px; z-index: 6;
}
.scr-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px 4px; font-size: 11px; font-weight: 500; color: var(--ink);
  letter-spacing: .02em; flex: none;
}
.scr-status .sig { display: flex; gap: 4px; align-items: center; opacity: .8; }
.scr-status .sig svg { width: 15px; height: 11px; }
.scr-body { flex: 1; overflow: hidden; padding: 6px 18px 0; }

/* bottom nav */
.scr-nav {
  flex: none;
  display: flex; justify-content: space-around; align-items: center;
  padding: 9px 10px 14px;
  border-top: 1px solid var(--hairline);
  background: var(--elevated);
}
.scr-nav .nv { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.scr-nav .nv.on { color: var(--gold-deep); }
.scr-nav .nv svg { width: 19px; height: 19px; }
.scr-nav .nv span { font-size: 8.5px; letter-spacing: .02em; }

/* shared screen bits */
.scr-eyebrow { font-size: 8.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.scr-serif { font-family: var(--serif); }

/* HOME screen */
.home-greet { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); margin: 8px 0 3px; }
.home-greet .spk { color: var(--gold); }
.home-sub { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin-bottom: 14px; }
.intent-card {
  background: linear-gradient(135deg, var(--soft-tan), color-mix(in srgb, var(--gold-soft) 50%, var(--soft-tan)));
  border-radius: 18px; padding: 14px 15px; position: relative; overflow: hidden; margin-bottom: 12px;
}
.intent-card .feather { position: absolute; right: -6px; top: -6px; width: 64px; opacity: .5; color: var(--gold); }
.intent-card .scr-eyebrow { color: var(--gold-deep); }
.intent-card .qt { font-family: var(--serif); font-size: 16px; line-height: 1.25; color: var(--ink); margin-top: 6px; max-width: 80%; }
.energy-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--elevated); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px;
}
.energy-num { font-family: var(--serif); font-weight: 300; font-size: 30px; color: var(--gold-deep); line-height: 1; }
.energy-num small { font-size: 13px; color: var(--muted); }
.energy-meta .lbl { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.energy-meta .hi { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.energy-meta .nt { font-size: 9px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.qa-tile {
  background: var(--elevated); border: 1px solid var(--hairline); border-radius: 13px;
  padding: 11px 4px 8px; text-align: center; box-shadow: 0 2px 6px rgba(60,45,25,.04);
}
.qa-tile svg { width: 21px; height: 21px; color: var(--gold-deep); margin-bottom: 5px; }
.qa-tile .nm { font-size: 8px; color: var(--ink); font-weight: 500; letter-spacing: .01em; }

/* HOROSCOPE screen */
.scr-header { display: flex; align-items: center; gap: 8px; padding: 6px 0 12px; }
.scr-header .bk { width: 22px; height: 22px; color: var(--ink); }
.scr-header .ttl { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 0 auto; padding-right: 22px; }
.horo-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.horo-tabs span { font-size: 9px; color: var(--muted); padding: 5px 10px; border-radius: 999px; letter-spacing: .04em; }
.horo-tabs span.on { background: var(--soft-tan); color: var(--ink); font-weight: 500; }
.horo-sign { display: flex; align-items: center; gap: 11px; padding: 6px 0 16px; border-bottom: 1px solid var(--hairline); }
.horo-sign .glyph { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold-soft); display: grid; place-items: center; color: var(--gold-deep); }
.horo-sign .glyph svg { width: 22px; height: 22px; }
.horo-sign .nm { font-family: var(--serif); font-size: 18px; color: var(--ink); line-height: 1.1; }
.horo-sign .rg { font-size: 9px; color: var(--muted); }
.horo-today { margin: 14px 0 8px; }
.horo-today .scr-eyebrow { color: var(--gold-deep); }
.horo-today p { font-size: 11px; color: var(--body); line-height: 1.5; margin: 7px 0 0; }
.horo-rows { margin-top: 14px; display: grid; gap: 9px; }
.horo-row { display: flex; align-items: center; justify-content: space-between; background: var(--elevated); border: 1px solid var(--hairline); border-radius: 13px; padding: 11px 13px; }
.horo-row .rl { font-size: 11px; color: var(--ink); }
.horo-row .ch { color: var(--gold-deep); width: 14px; height: 14px; }

/* RITUAL screen (dark) */
.phone.is-dark .phone-screen { background: var(--night-bg); }
.phone.is-dark .scr-status { color: var(--night-ink); }
.ritual-screen { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; color: var(--night-ink); padding-top: 14px; }
.ritual-screen .scr-eyebrow { color: var(--night-glow); }
.ritual-screen .rname { font-family: var(--serif); font-size: 24px; margin: 14px 0 4px; color: var(--night-ink); }
.ritual-ring {
  width: 168px; height: 168px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--night-glow) 70%, transparent);
  box-shadow: 0 0 36px color-mix(in srgb, var(--night-glow) 32%, transparent),
              inset 0 0 28px color-mix(in srgb, var(--night-glow) 12%, transparent);
  display: grid; place-items: center; margin: 26px auto 22px;
  position: relative;
}
.ritual-ring::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--night-glow) 22%, transparent);
}
.ritual-ring .n { font-family: var(--serif); font-weight: 300; font-size: 52px; color: var(--night-ink); line-height: 1; }
.ritual-goal { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(240,228,206,.55); }
.ritual-count { margin-top: auto; margin-bottom: 18px; }
.ritual-count .pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--night-glow) 45%, transparent); color: var(--night-glow); border-radius: 999px; padding: 9px 18px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

/* ============================================================
   WHAT IS LEDURA
   ============================================================ */
.what-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.what-head .lede { max-width: 50ch; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 30px 26px 32px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, background .4s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--elevated); }
.feature-ico {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--elevated); border: 1px solid var(--hairline);
  display: grid; place-items: center; color: var(--gold-deep); margin-bottom: 22px;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature-card h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--ink); margin: 0 0 9px; }
.feature-card p { font-size: 14.5px; color: var(--body); line-height: 1.55; margin: 0; text-wrap: pretty; }
.feature-num { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .1em; margin-bottom: 18px; }

@media (max-width: 940px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .what-head { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SHOWCASE ROWS
   ============================================================ */
.showcase { background: linear-gradient(180deg, var(--bg), var(--surface) 50%, var(--bg)); }
.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}
.show-row:nth-child(even) .show-text { order: 2; }
.show-row:nth-child(even) .show-art  { order: 1; }
.show-text .eyebrow { margin-bottom: 18px; }
.show-text h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; color: var(--ink); margin: 0 0 18px;
  text-wrap: balance;
}
.show-text p { font-size: 17px; color: var(--body); line-height: 1.65; margin: 0; max-width: 44ch; text-wrap: pretty; }
.show-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.show-art { position: relative; display: flex; justify-content: center; min-height: 540px; align-items: center; }
.show-art .glow-soft {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-soft) 55%, transparent), transparent 65%);
  filter: blur(6px);
}
.show-art .phone { z-index: 1; }
.show-art .phone.tilt { transform: rotate(-3deg); }
.show-art .phone.tilt-r { transform: rotate(3deg); }

@media (max-width: 880px) {
  .show-row { grid-template-columns: 1fr; gap: 36px; }
  .show-row .show-text { order: 1 !important; text-align: center; }
  .show-row .show-art  { order: 2 !important; min-height: 0; }
  .show-text p { margin-inline: auto; }
  .show-chips { justify-content: center; }
}

/* ============================================================
   ABOUT ELIF
   ============================================================ */
.about { background: var(--surface); }
.about-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-portrait-wrap { position: relative; }
.about-portrait {
  width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  background: var(--soft-tan);
  object-fit: cover; /* applies when swapped to a real <img> */
}
/* placeholder shown until Elif's real photo is dropped in */
.about-portrait--placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--gold-soft);
}
.about-portrait--placeholder .portrait-note {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 18ch;
  line-height: 1.6;
}
.about-portrait-wrap::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--gold); border-radius: var(--r-xl); opacity: .5;
}
.about-text .eyebrow { margin-bottom: 20px; }
.about-name { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 50px); color: var(--ink); margin: 0 0 6px; }
.about-role { font-size: 13px; letter-spacing: .04em; color: var(--gold-deep); text-transform: uppercase; margin-bottom: 24px; }
.about-text p { font-size: 17px; color: var(--body); line-height: 1.7; max-width: 52ch; text-wrap: pretty; }
.about-quote { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.8vw, 32px); color: var(--ink); margin: 30px 0 0; line-height: 1.3; font-style: italic; }
.about-stats { display: flex; gap: 40px; margin-top: 34px; }
.about-stat .v { font-family: var(--serif); font-weight: 300; font-size: 34px; color: var(--gold-deep); line-height: 1; }
.about-stat .l { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

@media (max-width: 820px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-portrait-wrap { max-width: 360px; margin: 0 auto; }
  .about-stats { justify-content: center; }
}

/* ============================================================
   FINAL CTA BAND (cosmos)
   ============================================================ */
.final {
  background:
    radial-gradient(80% 120% at 50% -10%, color-mix(in srgb, var(--night-glow) 18%, transparent), transparent 55%),
    var(--night-bg);
  color: var(--night-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-inner { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.final .eyebrow { color: var(--night-glow); margin-bottom: 24px; }
.final h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.5vw, 68px); line-height: 1.04; color: var(--night-ink); margin: 0 0 24px; text-wrap: balance; }
.final p { font-size: clamp(17px, 1.6vw, 20px); color: rgba(240,228,206,.72); margin: 0 auto 40px; max-width: 46ch; line-height: 1.6; }
.final .badge-row { justify-content: center; }
.final-ring {
  position: absolute; width: 720px; height: 720px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--night-glow) 22%, transparent); z-index: 1;
}
.final-ring.r2 { width: 980px; height: 980px; opacity: .5; }
.final-spark { position: absolute; color: var(--night-glow); z-index: 1; opacity: .8; }

/* generic decorative sparkle utility */
.deco-spark { color: var(--gold); display: inline-block; }
