/* MOIRENA — landing shared styles */

:root {
  --bg-0: #05050d;
  --bg-1: #0a0a1a;
  --bg-2: #1a122c;
  --bg-3: #211e36;
  --purple: #6a47d4;
  --purple-light: #9c7ff5;
  --gold: #d4a737;
  --gold-light: #e5c45a;
  --gold-dark: #b8922f;
  --text: #ffffff;
  --text-2: #c5c2d9;
  --text-3: #8a86a3;
  --border-gold: rgba(212, 167, 55, 0.35);
  --border-purple: rgba(106, 71, 212, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

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

/* ─── Background — twinkling stars + nebula gradient ─── */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(106, 71, 212, .25), transparent 50%),
    radial-gradient(ellipse at 80% 40%, rgba(212, 167, 55, .08), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(106, 71, 212, .2), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 50%, var(--bg-0));
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.stars span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .2; }
  50% { opacity: .9; }
}

/* ─── Container ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ─── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 26, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--gold);
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .3px;
}
.nav-links a:hover { color: var(--gold); }

/* ─── Hero ─── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(212, 167, 55, .25);
}
.hero .tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-image-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 40px;
}
.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(212, 167, 55, .3), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.hero-image {
  width: clamp(220px, 30vw, 320px);
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 30px 80px rgba(106, 71, 212, .3);
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-0);
  box-shadow: 0 6px 30px rgba(212, 167, 55, .35);
}
.btn-gold:hover { box-shadow: 0 10px 40px rgba(212, 167, 55, .55); color: var(--bg-0); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Section ─── */
section {
  padding: 80px 0;
  position: relative;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--text-3);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 56px;
}

/* ─── Feature grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: linear-gradient(160deg, rgba(106, 71, 212, .18), rgba(33, 30, 54, .55));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 50px rgba(106, 71, 212, .25);
}
.feature-card img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  margin-bottom: 18px;
  background: var(--bg-1);
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
}

/* ─── How it works ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: rgba(33, 30, 54, .35);
  border: 1px solid var(--border-purple);
  border-radius: 18px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(212, 167, 55, .3);
}
.step h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.step p { color: var(--text-3); font-size: 14px; }

/* ─── CTA section ─── */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, rgba(106, 71, 212, .12), transparent);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  margin-top: 40px;
}

/* ─── Footer ─── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-purple);
  color: var(--text-3);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }

/* ─── Legal page ─── */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}
.legal-wrap h1 {
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--gold);
  letter-spacing: 1px;
}
.legal-wrap em {
  color: var(--text-3);
  font-size: 14px;
  display: block;
  margin-bottom: 36px;
}
.legal-wrap h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--gold-light);
  border-bottom: 1px solid var(--border-purple);
  padding-bottom: 8px;
}
.legal-wrap h3 {
  font-size: 17px;
  margin: 24px 0 10px;
  color: var(--text);
}
.legal-wrap p,
.legal-wrap li { color: var(--text-2); margin-bottom: 12px; }
.legal-wrap ul { padding-left: 24px; margin-bottom: 16px; }
.legal-wrap strong { color: var(--text); }
.legal-wrap hr { border: none; border-top: 1px solid var(--border-purple); margin: 36px 0; }
.legal-wrap a { color: var(--gold); }
.lang-switch {
  display: inline-flex;
  gap: 8px;
  background: rgba(33, 30, 54, .6);
  border: 1px solid var(--border-purple);
  border-radius: 24px;
  padding: 4px;
  margin-bottom: 32px;
}
.lang-switch a {
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: .5px;
}
.lang-switch a.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-0);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 40px; }
  .feature-card { padding: 22px; }
}
.legal-wrap a { text-decoration: underline; text-underline-offset: 3px; }
