/* =====================================================================
   Palmie — website styles
   Summer palette (same as the app): dusk violet, coral pink, sunset orange,
   gold. System fonts only (no external requests, nothing tracked).
   ===================================================================== */

:root {
  --ink: #1b1330;
  --dusk: #251c38;
  --dusk-2: #3c2e5e;
  --dusk-3: #473a6e;
  --violet: #a56ae8;
  --pink: #f5588f;
  --coral: #f58a4e;
  --gold: #efbd5e;
  --cyan: #4eddd0;
  --cream: #fff6ee;
  --cream-2: #fbe9dc;

  --text: #f6f1ff;
  --text-dim: rgba(246, 241, 255, 0.72);
  --text-faint: rgba(246, 241, 255, 0.5);
  --text-dark: #2a1f3d;
  --text-dark-dim: rgba(42, 31, 61, 0.7);

  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.16);

  --sunset: linear-gradient(120deg, #f5588f 0%, #f58a4e 55%, #efbd5e 100%);
  --dusk-grad: linear-gradient(160deg, #3c2e5e 0%, #251c38 100%);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia,
    "Times New Roman", serif;

  --radius: 26px;
  --radius-sm: 16px;
  --max: 1120px;
  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--dusk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 200;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h1.display {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
}
h2.display {
  font-size: clamp(2.1rem, 5vw, 3.7rem);
}
h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 40em;
}

.grad-text {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled,
.nav.solid {
  background: rgba(37, 28, 56, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nav-links a.pill {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  margin-left: 6px;
}
.nav-links a.pill:hover {
  background: var(--cream-2);
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.26);
}
.btn-sunset {
  background: var(--sunset);
  color: #fff;
  box-shadow: 0 12px 34px rgba(245, 88, 143, 0.4);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-store {
  background: #000;
  color: #fff;
  padding: 11px 24px 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-align: left;
  gap: 12px;
  cursor: default;
}
.btn-store:hover {
  transform: none;
}
.btn-store svg {
  width: 28px;
  height: 28px;
}
.btn-store small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.btn-store span {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -4% 0 -4% 0;
  background: url("images/hero.jpg") center 40% / cover no-repeat;
  z-index: -2;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(37, 28, 56, 0.1) 0%, rgba(37, 28, 56, 0.42) 70%),
    linear-gradient(180deg, rgba(37, 28, 56, 0.25) 0%, rgba(37, 28, 56, 0) 30%, rgba(37, 28, 56, 0) 62%, var(--dusk) 100%);
}
.hero h1 {
  text-shadow: 0 4px 40px rgba(37, 28, 56, 0.45);
  margin-bottom: 22px;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 36px;
  text-shadow: 0 2px 20px rgba(37, 28, 56, 0.5);
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 26px;
}
.hero-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(239, 189, 94, 0.3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 12vw, 150px) 0;
  position: relative;
}
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 70px);
  text-align: center;
}
.section-head .lead {
  margin: 20px auto 0;
}

.light {
  background: var(--cream);
  color: var(--text-dark);
}
.light .lead {
  color: var(--text-dark-dim);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.about-grid p {
  font-size: 1.12rem;
  color: var(--text-dark-dim);
  margin: 0 0 18px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 70px);
}
.pillar {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(120, 70, 100, 0.1);
}
.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.pillar p {
  font-size: 1rem;
  margin: 0;
  color: var(--text-dark-dim);
}
.icon-chip {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--sunset);
  box-shadow: 0 10px 24px rgba(245, 88, 143, 0.32);
}
.icon-chip svg {
  width: 26px;
  height: 26px;
}
.icon-chip.violet { background: linear-gradient(135deg, #7a5bc0, #a56ae8); box-shadow: 0 10px 24px rgba(165, 106, 232, 0.35); }
.icon-chip.teal { background: linear-gradient(135deg, #2bb8ae, #4eddd0); box-shadow: 0 10px 24px rgba(78, 221, 208, 0.3); }
.icon-chip.gold { background: linear-gradient(135deg, #f58a4e, #efbd5e); box-shadow: 0 10px 24px rgba(239, 189, 94, 0.35); }

/* Dark gradient sections */
.dusk {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(165, 106, 232, 0.28), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(245, 88, 143, 0.18), transparent 60%),
    var(--dusk);
}

.dusk.top {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(165, 106, 232, 0.28), transparent 60%),
    var(--dusk);
}
.dusk.flat {
  background: var(--dusk);
}

/* Meet Luna */
.luna-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.luna-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.luna-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-dim);
}
.luna-points li b {
  color: #fff;
  font-weight: 600;
}
.tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sunset);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.tick svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* Phone mock */
.phone-wrap {
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.phone {
  width: min(320px, 78vw);
  aspect-ratio: 9 / 18.6;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #4a3b6e, #17102b);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.22) inset,
    0 50px 90px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(245, 88, 143, 0.22);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform 0.6s ease;
}
.phone:hover {
  transform: rotateY(0) rotateX(0);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(37, 28, 56, 0.55) 0%, rgba(37, 28, 56, 0.9) 100%),
    url("images/hero.jpg") center / cover;
  padding: 44px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #0b0716;
}
.screen-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
}
.screen-title i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sunset);
  display: block;
}
.bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 18px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.bubble.me {
  align-self: flex-end;
  background: var(--sunset);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.luna {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-left-radius: 6px;
}
.mini-card {
  align-self: flex-start;
  width: 72%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.mini-card .img {
  height: 78px;
  background: linear-gradient(135deg, #7a5bc0 0%, #f5588f 55%, #f58a4e 100%);
}
.mini-card .txt {
  padding: 8px 11px 10px;
  font-size: 0.72rem;
}
.mini-card .txt b {
  display: block;
  font-size: 0.8rem;
}
.mini-card .txt span {
  color: rgba(255, 255, 255, 0.7);
}
.composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
}
.composer i {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sunset);
}

/* Feature bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.3);
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}
.card.span-2 { grid-column: span 2; }
.card.tall { grid-row: span 2; }
.card .glow {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--sunset);
  opacity: 0.18;
  filter: blur(40px);
  pointer-events: none;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.langs span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Seasons */
.seasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.season {
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.3s ease;
}
.season:hover {
  transform: translateY(-5px) scale(1.01);
}
.season h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.season p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.swatches {
  display: flex;
  gap: 8px;
}
.swatches i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.season.winter { background: linear-gradient(160deg, #46598f 0%, #1e2440 100%); }
.season.spring { background: linear-gradient(160deg, #4c6b58 0%, #202f26 100%); }
.season.summer { background: linear-gradient(160deg, #f5588f 0%, #7a5bc0 55%, #251c38 100%); }
.season.autumn { background: linear-gradient(160deg, #a5603f 0%, #261b16 100%); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 18px 50px rgba(120, 70, 100, 0.1);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sunset);
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
}
.step p {
  margin: 0;
  color: var(--text-dark-dim);
}

/* Download band */
.download {
  text-align: center;
  background: var(--sunset);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.download::before,
.download::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(60px);
}
.download::before { left: -160px; top: -200px; }
.download::after { right: -160px; bottom: -220px; background: rgba(245, 88, 143, 0.55); }
.download .lead {
  color: rgba(255, 255, 255, 0.92);
  margin: 20px auto 36px;
}
.download .hero-actions .btn-store {
  background: #0b0716;
}
.fine {
  margin-top: 22px;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Support us */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.support-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 18px 50px rgba(120, 70, 100, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.support-card:hover {
  transform: translateY(-5px);
}
.support-card p {
  margin: 0 0 20px;
  color: var(--text-dark-dim);
  font-size: 0.98rem;
}
.support-card .link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  color: #d23d78;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.support-card .link:hover {
  text-decoration: underline;
}

/* Investors */
.investors-box {
  border-radius: 34px;
  padding: clamp(32px, 6vw, 72px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(245, 88, 143, 0.35), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(165, 106, 232, 0.35), transparent 60%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.investor-points {
  display: grid;
  gap: 14px;
}
.investor-points .card {
  padding: 20px 22px;
}
.investor-points .card h3 {
  font-size: 1.05rem;
}
.investor-points .card p {
  font-size: 0.93rem;
}

/* Contact */
.contact {
  text-align: center;
}
.mail-big {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 10px 0 8px;
  word-break: break-word;
}
.mail-big:hover {
  filter: brightness(1.1);
}
.contact .lead {
  margin: 0 auto;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 44px 0 56px;
  color: var(--text-faint);
  font-size: 0.9rem;
  background: #1b1330;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer .brand {
  font-size: 1.3rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer small {
  display: block;
  margin-top: 14px;
  max-width: 34em;
  line-height: 1.5;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: calc(var(--nav-h) + 70px) 0 50px;
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(245, 88, 143, 0.35), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(165, 106, 232, 0.35), transparent 60%),
    var(--dusk);
}
.legal-hero p {
  color: var(--text-dim);
  margin: 14px 0 0;
}
.legal {
  background: var(--cream);
  color: var(--text-dark);
  padding: 60px 0 110px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  box-shadow: 0 14px 40px rgba(120, 70, 100, 0.1);
  max-height: calc(100vh - var(--nav-h) - 60px);
  overflow: auto;
}
.toc b {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text-dark-dim);
}
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-dark-dim);
}
.toc a:hover {
  background: var(--cream-2);
  color: var(--text-dark);
}
.doc {
  max-width: 760px;
}
.doc h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  margin: 52px 0 14px;
  color: var(--ink);
  line-height: 1.15;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc h3 {
  font-size: 1.05rem;
  margin: 26px 0 8px;
  color: var(--ink);
}
.doc p,
.doc li {
  color: rgba(42, 31, 61, 0.86);
  font-size: 1.02rem;
}
.doc p {
  margin: 0 0 14px;
}
.doc ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.doc li {
  margin-bottom: 8px;
}
.doc a {
  color: #c2336c;
  text-underline-offset: 3px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(120, 70, 100, 0.08);
}
.doc th,
.doc td {
  text-align: left;
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(42, 31, 61, 0.09);
}
.doc th {
  background: var(--cream-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.doc tr:last-child td {
  border-bottom: 0;
}
.callout {
  background: #fff;
  border-left: 5px solid var(--pink);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 20px;
  box-shadow: 0 10px 30px rgba(120, 70, 100, 0.08);
}
.callout p:last-child {
  margin: 0;
}

/* 404 */
.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
  background:
    radial-gradient(800px 500px at 80% 0%, rgba(245, 88, 143, 0.35), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(165, 106, 232, 0.35), transparent 60%),
    var(--dusk);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span-2 { grid-column: span 2; }
  .seasons { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .investors-box { grid-template-columns: 1fr; }
  .luna-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(37, 28, 56, 0.94);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .nav-links a.pill { margin: 6px 0 0; text-align: center; }
  .pillars,
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .bento,
  .seasons,
  .support-grid { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: auto; }
  .card.tall { grid-row: auto; }
  .hero { padding-bottom: 100px; }
  .btn { width: 100%; max-width: 340px; }
  .hero-actions { flex-direction: column; }
  .doc table { font-size: 0.85rem; }
  .doc th, .doc td { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
  .phone { transform: none; transition: none; }
  .hero-bg { transform: none !important; }
}


/* ---------- Language switcher ---------- */
.nav-links li.lang { position: relative; }
.lang details { position: relative; }
.lang summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover,
.lang details[open] summary { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lang summary svg { width: 16px; height: 16px; flex: none; }
.lang ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 170px;
  background: rgba(37, 28, 56, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.lang ul li { margin: 0; }
.lang ul a { padding: 9px 12px; border-radius: 10px; font-size: 0.92rem; }
.lang ul a[aria-current="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* CJK / Cyrillic typography */
html[lang="ja"] .display, html[lang="ko"] .display, html[lang="ru"] .display,
html[lang="ja"] .brand, html[lang="ko"] .brand, html[lang="ja"] .doc h2, html[lang="ko"] .doc h2 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}
html[lang="ja"] .display, html[lang="ko"] .display { font-weight: 800; line-height: 1.18; }
html[lang="ja"] .doc h2, html[lang="ko"] .doc h2, html[lang="ru"] .doc h2 { font-weight: 800; }
html[lang="ko"] body { word-break: keep-all; }
html[lang="ja"] body { line-break: strict; }

@media (max-width: 820px) {
  .lang ul { position: static; box-shadow: none; border: 0; background: transparent; margin: 0; padding: 0 0 6px 10px; }
  .lang summary { padding: 13px 16px; font-size: 1rem; }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .nav-links a, .lang summary { padding: 8px 9px; font-size: 0.86rem; }
  .nav-links { gap: 0; }
}
