/* Everlune — landing + legal pages. Celestial "Nocturne / City of Starlight". */

:root {
  --abyss: #0A0A18;
  --midnight: #12122B;
  --raised: #1B1B3A;
  --veil: #2A2A55;
  --amethyst: #7B6CE6;
  --amethyst-hi: #9A8DF0;
  --orchid: #B57EDC;
  --blush: #E4A6C6;
  --rose: #F2C6D6;
  --starlight: #EDEBFF;
  --moonstone: #C7C4F0;
  --silver: #8E8BB8;
  --aurora-teal: #6FE0D6;
  --gold: #E6C88A;

  --display: 'Fraunces', ui-serif, Georgia, serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1080px;
  --radius: 20px;
  --card: rgba(27, 27, 58, 0.55);
  --border: rgba(42, 42, 85, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--starlight);
  background-color: var(--midnight);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Starfield + aurora glow (no JS) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--midnight);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(237,235,255,.7), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(237,235,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, rgba(237,235,255,.6), transparent),
    radial-gradient(1px 1px at 72% 74%, rgba(237,235,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 84% 22%, rgba(237,235,255,.6), transparent),
    radial-gradient(1px 1px at 40% 88%, rgba(237,235,255,.4), transparent),
    radial-gradient(1px 1px at 92% 52%, rgba(237,235,255,.5), transparent),
    radial-gradient(1px 1px at 8% 80%, rgba(237,235,255,.4), transparent);
  background-repeat: repeat;
  background-size: 700px 700px;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 70% -5%, rgba(123,108,230,.35), transparent 70%),
    radial-gradient(50% 40% at 10% 15%, rgba(181,126,220,.22), transparent 70%),
    radial-gradient(60% 50% at 30% 105%, rgba(228,166,198,.14), transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(10,10,24,.6));
  pointer-events: none;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.5px; line-height: 1.12; }
h1 { font-size: clamp(38px, 7vw, 68px); }
h2 { font-size: clamp(28px, 4.5vw, 42px); }
h3 { font-size: 20px; }
.italic { font-style: italic; }
p { color: var(--moonstone); }
a { color: var(--amethyst-hi); text-decoration: none; }
a:hover { color: var(--starlight); }
.sparkle { color: var(--amethyst-hi); }
.gradient-text {
  background: linear-gradient(120deg, var(--starlight), var(--moonstone) 40%, var(--blush));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 18, 43, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 21px; color: var(--starlight); font-weight: 500; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--moonstone); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--starlight); }
.nav-cta { padding: 8px 16px; border-radius: 999px; background: rgba(123,108,230,.18); border: 1px solid rgba(123,108,230,.5); color: var(--amethyst-hi) !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--amethyst); color: var(--starlight);
  box-shadow: 0 8px 30px rgba(123,108,230,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--starlight); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(123,108,230,.6); }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { background: transparent; border: 1px solid var(--veil); color: var(--moonstone); box-shadow: none; }
.btn-ghost:hover { color: var(--starlight); border-color: var(--amethyst); }

/* Hero */
.hero { text-align: center; padding: 84px 0 72px; }
.moon-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 30px; }
.moon-wrap svg { width: 132px; height: 132px; filter: drop-shadow(0 0 34px rgba(154,141,240,.55)); }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--moonstone); max-width: 620px; margin: 0 auto 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip { font-size: 13px; color: var(--moonstone); padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--silver); }

/* Section */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--silver); margin-bottom: 14px; }
.section-head p { margin-top: 14px; font-size: 17px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(123,108,230,.55); }
.card .ic { font-size: 26px; margin-bottom: 14px; display: block; }
.card h3 { color: var(--starlight); margin-bottom: 8px; }
.card p { font-size: 15px; }

/* Banner (alternating highlight) */
.banner { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.banner.reverse { grid-template-columns: 1fr 1.1fr; }
.banner .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--amethyst-hi); margin-bottom: 12px; }
.banner ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.banner li { color: var(--moonstone); padding-left: 26px; position: relative; }
.banner li::before { content: '✦'; position: absolute; left: 0; color: var(--amethyst-hi); }

/* Mock cards (stand-ins for screenshots) */
.mock { display: grid; gap: 14px; }
.mock-card { background: linear-gradient(160deg, rgba(42,42,85,.5), rgba(18,18,43,.6)); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.mock-row { display: flex; align-items: center; gap: 14px; }
.mock-cover { width: 54px; height: 80px; border-radius: 8px; flex: none; background: linear-gradient(150deg, #8B7CF0, #332561); box-shadow: inset 3px 0 0 rgba(255,255,255,.14); }
.mock-cover.b { background: linear-gradient(150deg, #E4A6C6, #4A2748); }
.mock-title { font-family: var(--display); color: var(--starlight); font-size: 16px; }
.mock-sub { font-size: 13px; color: var(--silver); }
.mock-bar { height: 6px; border-radius: 3px; background: var(--veil); margin-top: 10px; overflow: hidden; }
.mock-bar > span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--amethyst), var(--amethyst-hi)); }
.mock-eyebrow { text-transform: uppercase; letter-spacing: 1.4px; font-size: 10px; color: var(--silver); font-weight: 600; }
.island { background: #000; border-radius: 26px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.island .dot { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(150deg, #8B7CF0, #332561); }
.island .t { font-variant-numeric: tabular-nums; color: var(--moonstone); font-weight: 600; }

/* Legal / support content */
.doc { padding: 56px 0 40px; max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.doc .updated { color: var(--silver); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 36px 0 12px; color: var(--starlight); }
.doc p, .doc li { color: var(--moonstone); font-size: 16px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--starlight); font-weight: 600; }
.callout { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--amethyst); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.faq { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin-bottom: 14px; }
.faq h3 { color: var(--starlight); margin-bottom: 8px; }
.faq p { color: var(--moonstone); font-size: 15px; margin: 0; }
.contact-card { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; margin-bottom: 36px; }
.contact-card .email { font-family: var(--display); font-size: 26px; color: var(--starlight); display: inline-block; margin: 10px 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer .brand { font-size: 18px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--moonstone); font-size: 14px; }
.footer-links a:hover { color: var(--starlight); }
.footer .fine { width: 100%; color: var(--silver); font-size: 13px; margin-top: 8px; }

/* Sparkle accents */
.tw { position: absolute; color: var(--starlight); opacity: .8; animation: twinkle 3.4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity:.25; transform: scale(.8);} 50% { opacity:.9; transform: scale(1.1);} }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .banner, .banner.reverse { grid-template-columns: 1fr; padding: 32px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 52px; }
  .section { padding: 52px 0; }
}
