/* ============================================================
   Lunovele — Coming Soon landing
   ============================================================ */

:root {
  /* Brand: lunar lilac. Accent = lv-accent = oklch(0.80 0.10 310) ≈ #d1acee */
  --bg:           #08060f;
  --bg-2:         #0b0916;
  --ink:          #ece8f5;   /* lv-text */
  --ink-soft:     #b2aacb;
  --ink-dim:      #6f6a8c;
  --accent:       #d1acee;   /* light lilac — primary accent */
  --accent-2:     #9b6fe0;   /* deeper purple — gradient depth */
  --accent-soft:  oklch(0.80 0.10 310 / 0.30);
  /* legacy aliases kept so existing rules resolve to the new palette */
  --violet:       #9b6fe0;
  --cyan:         #d1acee;
  --line:         rgba(209, 172, 238, .20);
  --card:         rgba(255, 255, 255, .03);
  --serif:        "Spectral", Georgia, "Times New Roman", serif;
  --maxw:         720px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Backdrop layers ---------- */
#graph-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}
.glow--1 {
  width: 46vmax; height: 46vmax;
  top: -18vmax; left: -12vmax;
  background: radial-gradient(circle, rgba(155,111,224,.42), transparent 70%);
}
.glow--2 {
  width: 40vmax; height: 40vmax;
  bottom: -16vmax; right: -10vmax;
  background: radial-gradient(circle, rgba(209,172,238,.28), transparent 70%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Vignette to seat content over the graph */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(7,7,15,.55) 100%);
}

/* ---------- Language switcher ---------- */
.lang-switch {
  position: fixed;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 32px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 22, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lang-btn {
  font: 600 13px/1 "Sora", sans-serif;
  letter-spacing: .06em;
  color: var(--ink-dim);
  background: none;
  border: 0;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang-btn:hover { color: var(--ink-soft); }
.lang-btn.is-active {
  color: var(--bg);
  background: linear-gradient(120deg, var(--violet), var(--cyan));
}
.lang-sep { color: var(--ink-dim); font-size: 12px; }

/* ---------- Brand ---------- */
.brand {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(20px, 4vw, 34px) clamp(20px, 5vw, 48px);
}
.brand__mark {
  display: grid;
  place-items: center;
  color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(209,172,238,.5));
}
.brand__name {
  font: 600 23px/1 var(--serif);
  letter-spacing: .01em;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 60px) clamp(20px, 5vw, 48px);
  text-align: center;
}
.hero__inner {
  max-width: var(--maxw);
  width: 100%;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 600 12.5px/1 "Sora", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(22px, 4vw, 32px);
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(209,172,238,.6);
  animation: pulse 2.2s infinite;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(20px, 4vw, 28px);
}
.hero__title-main {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(52px, 12vw, 112px);
  line-height: .95;
  letter-spacing: .005em;
  background: linear-gradient(115deg, #ffffff 8%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 60px rgba(209,172,238,.22));
}
.hero__title-sub {
  font-weight: 400;
  font-size: clamp(15px, 3.6vw, 21px);
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.hero__desc {
  max-width: 580px;
  margin: 0 auto clamp(26px, 5vw, 34px);
  font-size: clamp(15px, 2.4vw, 17.5px);
  color: var(--ink-soft);
}

/* ---------- Feature tags ---------- */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(34px, 6vw, 48px);
}
.tags li {
  font: 500 13px/1 "Inter", sans-serif;
  color: var(--ink-soft);
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  transition: transform .25s, border-color .25s, color .25s;
}
.tags li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  vertical-align: middle;
}
.tags li:hover {
  transform: translateY(-3px);
  border-color: rgba(209,172,238,.5);
  color: var(--ink);
}

/* ---------- Coming soon block ---------- */
.soon {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(155,111,224,.10), transparent 70%);
  transform: translateX(-100%);
  animation: sweep 5s ease-in-out infinite;
}
.soon__heading {
  font: 600 clamp(22px, 4vw, 28px)/1.2 var(--serif);
  margin-bottom: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.soon__text {
  font-size: clamp(14px, 2.3vw, 16px);
  color: var(--ink-soft);
}

/* ---------- Overview CTA ---------- */
.overview-cta {
  margin-top: clamp(28px, 5vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  font: 600 14px/1 "Sora", sans-serif;
  letter-spacing: .02em;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s, transform .25s, background .25s;
}
.overview-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 232, 224, .55);
  background: rgba(255, 255, 255, .07);
}
.overview-cta__chev { transition: transform .3s ease; }
.overview-cta.is-open .overview-cta__chev { transform: rotate(180deg); }

/* ---------- Overview section ---------- */
.overview {
  position: relative;
  z-index: 5;
  padding: clamp(40px, 8vw, 88px) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 10, 22, .35), rgba(7, 7, 15, .8));
  animation: rise .6s ease both;
}
.overview__inner { max-width: 1080px; margin: 0 auto; }
.overview__head { text-align: center; margin-bottom: clamp(32px, 6vw, 56px); }
.overview__eyebrow {
  display: inline-block;
  font: 600 12px/1 "Sora", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.overview__title {
  font: 600 clamp(30px, 6vw, 48px)/1.1 var(--serif);
  letter-spacing: .005em;
  background: linear-gradient(115deg, #fff, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ov-intro {
  max-width: 760px;
  margin: 0 auto clamp(36px, 6vw, 56px);
  text-align: center;
}
.ov-intro .ov-p {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2.4vw, 22px);
  align-items: start;
}
.ov-card {
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  transition: border-color .25s, transform .25s;
}
.ov-card:hover {
  border-color: rgba(66, 232, 224, .4);
  transform: translateY(-3px);
}
.ov-card__title {
  font: 700 17px/1.3 "Sora", sans-serif;
  margin-bottom: 14px;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ov-card__title::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  box-shadow: 0 0 10px rgba(139, 123, 255, .6);
}

.ov-p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.ov-lead {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 8px;
}
.ov-list {
  list-style: none;
  margin-bottom: 6px;
}
.ov-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.ov-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--violet);
  transform: rotate(45deg);
}

.ov-code {
  margin: 6px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .35);
  overflow-x: auto;
}
.ov-code code {
  font: 400 13px/1.55 "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--cyan);
  white-space: pre;
}

.ov-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.ov-chip {
  font: 500 12.5px/1 "Inter", sans-serif;
  color: var(--ink);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(139, 123, 255, .08);
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: clamp(20px, 4vw, 30px);
  font-size: 13px;
  color: var(--ink-dim);
}
.foot__dot { color: var(--violet); }

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(209,172,238,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(209,172,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(209,172,238,0); }
}
@keyframes sweep {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}

/* Language transition helper */
[data-i18n-text] { transition: opacity .25s ease; }
body.lang-fading [data-i18n-text] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .brand { justify-content: center; }
  .tags li { font-size: 12px; padding: 8px 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__inner,
  .badge__dot,
  .soon::before { animation: none; }
  #graph-canvas { opacity: .4; }
}
