:root {
  --bg: #040817;
  --bg-soft: #091229;
  --text: #f8f4ea;
  --muted: #b7bed2;
  --gold: #e8bd69;
  --gold-soft: #f5dfad;
  --purple: #8d55ff;
  --purple-soft: #c9a7ff;
  --teal: #38e2c4;
  --teal-soft: #b3ffe9;
  --line: rgba(255,255,255,.12);
  --shadow: 0 28px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(3,7,21,.80);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: .03em; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 11px; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 34px); color: #d9ddec; font-size: .92rem; }
.site-header nav a { opacity: .82; transition: .2s ease; }
.site-header nav a:hover { color: var(--gold-soft); opacity: 1; }

.section-shell { padding-inline: clamp(22px, 6vw, 92px); }
.hero {
  min-height: 780px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 32%, rgba(89,75,206,.20), transparent 31%),
    radial-gradient(circle at 78% 28%, rgba(46,122,255,.16), transparent 24%),
    linear-gradient(180deg, #020615 0%, #070d24 63%, #0c1030 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 230px;
  background: linear-gradient(180deg, transparent, rgba(70,38,143,.19));
  pointer-events: none;
}
.hero-stars,
.hero-stars::before,
.hero-stars::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle at 7% 15%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 18% 42%, #8ec6ff 0 1px, transparent 1.4px),
    radial-gradient(circle at 31% 22%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 49% 14%, #d7b7ff 0 1px, transparent 1.4px),
    radial-gradient(circle at 66% 31%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 85% 18%, #91b9ff 0 1px, transparent 1.4px),
    radial-gradient(circle at 92% 58%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 13% 72%, #d8c5ff 0 1px, transparent 1.4px),
    radial-gradient(circle at 58% 72%, #fff 0 1px, transparent 1.4px);
  background-size: 320px 280px;
  opacity: .55;
  z-index: -2;
}
.hero-stars::before { transform: translate(80px, 25px) scale(.9); opacity: .35; }
.hero-stars::after { transform: translate(-120px, 90px) scale(1.1); opacity: .25; }
.hero-content { width: min(940px, 100%); position: relative; z-index: 2; padding: 88px 0 110px; }
.hero-logo {
  width: min(440px, 76vw);
  margin: 0 auto 20px;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.38), 0 0 80px rgba(50,83,225,.11);
}
.eyebrow, .section-kicker {
  display: inline-block;
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .22em;
  font-weight: 700;
}
.hero h1 {
  margin: 18px auto 14px;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  color: #c5ccdf;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn, .store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover, .store-btn:hover { transform: translateY(-2px); }
.btn-gold { color: #221400; background: linear-gradient(135deg, #f9e0a2, #d7a64c); box-shadow: 0 10px 34px rgba(224,176,84,.22); }
.btn-outline { border: 1px solid rgba(203,211,255,.45); background: rgba(11,15,43,.58); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(.2px); opacity: .7; z-index: -1; }
.hero-orb-one { width: 330px; height: 330px; right: -100px; top: 120px; background: radial-gradient(circle at 35% 30%, #6a65ff, #1c205f 48%, #090c25 70%); box-shadow: 0 0 90px rgba(91,73,255,.28); }
.hero-orb-two { width: 180px; height: 180px; left: -65px; bottom: 90px; background: radial-gradient(circle at 35% 30%, #c88cff, #3b1d66 55%, #090c25 72%); box-shadow: 0 0 65px rgba(166,90,255,.20); }

.apps-intro {
  padding: 92px clamp(22px, 6vw, 92px) 70px;
  text-align: center;
  background: linear-gradient(180deg, #0c1030, #090c22);
}
.apps-intro h2, .why-heading h2 {
  margin: 10px auto 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 500;
  line-height: 1.08;
}
.apps-intro p { max-width: 760px; margin: 0 auto; color: var(--muted); }

.app-section {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 110px clamp(22px, 6vw, 92px);
  isolation: isolate;
}
.dreamlens-section {
  background:
    linear-gradient(90deg, rgba(8,6,28,.97) 0%, rgba(22,13,62,.93) 48%, rgba(12,8,39,.88) 100%),
    url("assets/dreamlens-banner.png") center/cover no-repeat;
}
.orluna-section {
  background:
    linear-gradient(90deg, rgba(3,27,35,.96) 0%, rgba(2,48,54,.91) 48%, rgba(1,26,35,.92) 100%),
    url("assets/orluna-banner.png") center/cover no-repeat;
}
.app-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .85;
}
.dreamlens-section::before { background: radial-gradient(circle at 78% 35%, rgba(135,80,255,.32), transparent 28%); }
.orluna-section::before { background: radial-gradient(circle at 24% 30%, rgba(55,227,195,.22), transparent 30%); }
.app-grid { width: min(1260px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(50px, 7vw, 110px); align-items: center; }
.app-grid-reverse .app-copy { order: 2; }
.app-grid-reverse .app-visual { order: 1; }
.app-copy { position: relative; z-index: 2; }
.app-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-icon { width: 82px; height: 82px; object-fit: cover; border-radius: 23px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.app-label { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.7vw, 4.5rem); line-height: .96; }
.app-subtitle { display: block; margin-top: 7px; color: #d4d8e8; font-size: 1.04rem; letter-spacing: .04em; }
.app-copy h2 { margin: 0 0 22px; max-width: 700px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.6vw, 3.65rem); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.orluna-section .app-copy h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); }
.app-copy p { max-width: 670px; margin: 0; color: #cfd3e1; font-size: 1.06rem; }
.download-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.store-btn { min-width: 170px; border: 1px solid rgba(255,255,255,.24); background: rgba(5,8,24,.58); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.store-btn span { font-size: 1.18rem; }
.store-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; }
.store-icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.store-purple { border-color: rgba(188,144,255,.63); background: linear-gradient(135deg, rgba(133,70,255,.86), rgba(90,43,204,.82)); box-shadow: 0 12px 34px rgba(114,64,226,.27); }
.store-teal { color: #031b1d; border-color: rgba(154,255,235,.7); background: linear-gradient(135deg, #58e8cf, #2fc0a8); box-shadow: 0 12px 34px rgba(46,214,184,.20); }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; color: #eee8ff; font-weight: 700; }
.orluna-section .text-link { color: var(--teal-soft); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.app-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.visual-halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; filter: blur(30px); opacity: .5; }
.dreamlens-visual .visual-halo { background: radial-gradient(circle, rgba(145,74,255,.7), transparent 66%); }
.orluna-visual .visual-halo { background: radial-gradient(circle, rgba(54,228,195,.56), transparent 66%); }
.banner-card {
  position: relative;
  width: min(560px, 92%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateY(-4deg) rotateX(1deg);
  background: rgba(6,9,24,.7);
}
.app-grid-reverse .banner-card { transform: perspective(1100px) rotateY(4deg) rotateX(1deg); }
.banner-card img { width: 100%; height: auto; }
.orluna-banner-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.floating-card {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: min(300px, 73%);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(7,9,28,.84);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
}
.orluna-float { right: auto; left: 0; background: rgba(1,28,35,.84); }
.floating-card img { width: 54px; height: 54px; border-radius: 15px; object-fit: cover; }
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { font-size: .95rem; }
.floating-card span { margin-top: 2px; color: #bfc6da; font-size: .79rem; }

.why-section {
  padding-top: 105px;
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 50% -10%, rgba(74,87,180,.22), transparent 38%),
    linear-gradient(180deg, #071020 0%, #050816 100%);
}
.why-heading { max-width: 900px; margin: 0 auto; text-align: center; }
.why-heading p { max-width: 800px; margin: 0 auto; color: var(--muted); font-size: 1.04rem; }
.pillars { width: min(1120px, 100%); margin: 52px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.pillar-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--gold-soft); background: rgba(220,180,100,.10); border: 1px solid rgba(234,197,120,.18); }
.pillar h3 { margin: 18px 0 7px; font-size: 1.14rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .94rem; }

.contact-section {
  padding-top: 76px;
  padding-bottom: 82px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(226,186,105,.10), transparent 36%),
    linear-gradient(180deg, #050816 0%, #040713 100%);
}
.contact-section h2 {
  max-width: 860px;
  margin: 10px auto 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
}
.contact-section p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
}
.contact-email {
  margin-top: 28px;
}

.site-footer {
  padding: 34px clamp(22px, 6vw, 92px) 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 40px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #030611;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { color: #9ba4bb; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin-top: 2px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; color: #c9cfdf; font-size: .88rem; }
.site-footer > p { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); color: #7f899f; font-size: .8rem; }

@media (max-width: 900px) {
  .site-header nav a:nth-child(2) { display: none; }
  .hero { min-height: 710px; }
  .app-section { padding-top: 88px; padding-bottom: 88px; }
  .app-grid, .app-grid-reverse { grid-template-columns: 1fr; gap: 52px; }
  .app-grid-reverse .app-copy, .app-grid-reverse .app-visual { order: initial; }
  .app-visual { min-height: 360px; }
  .pillars { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { min-height: 62px; padding: 9px 16px; }
  .brand span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .site-header nav { gap: 15px; font-size: .82rem; }
  .hero { min-height: 650px; }
  .hero-content { padding-top: 74px; }
  .hero-logo { width: min(340px, 88vw); }
  .hero h1 { font-size: clamp(2rem, 9.5vw, 3.1rem); }
  .hero-copy { font-size: .98rem; }
  .btn, .store-btn { width: 100%; }
  .apps-intro { padding-top: 70px; }
  .app-section { padding-inline: 20px; }
  .app-title-row { align-items: flex-start; }
  .app-icon { width: 66px; height: 66px; border-radius: 19px; }
  .app-label { font-size: 2.65rem; }
  .app-copy h2, .orluna-section .app-copy h2 { font-size: 2.08rem; }
  .app-visual { min-height: 290px; }
  .banner-card { width: 100%; border-radius: 22px; transform: none; }
  .app-grid-reverse .banner-card { transform: none; }
  .floating-card { position: relative; width: 92%; right: auto; left: auto; bottom: auto; margin: -18px auto 0; }
  .orluna-float { left: auto; }
  .why-section { padding-top: 82px; padding-bottom: 86px; }
  .footer-links { gap: 14px; }
}


/* Legal pages */
.legal-main {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -8%, rgba(92, 82, 196, .22), transparent 34%),
    linear-gradient(180deg, #090d27 0%, #050816 38%, #040713 100%);
}
.legal-hero {
  padding-top: 150px;
  padding-bottom: 52px;
  text-align: center;
}
.legal-hero h1 {
  margin: 10px auto 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 1.02;
}
.legal-hero > p:not(.legal-updated) {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
}
.legal-updated {
  margin: 0;
  color: #9da7c0;
  font-size: .92rem;
}
.legal-content {
  padding-top: 10px;
  padding-bottom: 86px;
}
.legal-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: 0 26px 80px rgba(0,0,0,.24);
}
.legal-card h2 {
  margin: 32px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 500;
  color: #f2f1fb;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p {
  margin: 0;
  color: #c8cee0;
  line-height: 1.8;
  font-size: 1rem;
}
.legal-link { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { width: fit-content; margin: 30px auto 0; display: flex; }
.legal-footer { margin-top: 0; }
.footer-links a[aria-current="page"] { color: var(--gold-soft); }

@media (max-width: 620px) {
  .legal-hero { padding-top: 112px; padding-bottom: 38px; }
  .legal-card { border-radius: 22px; }
  .legal-card p { font-size: .96rem; }
}
