/* Lunomia landing + guides stylesheet */

:root {
  --bg: #0d0a26;
  --bg-soft: #16113a;
  --bg-card: #1c1747;
  --bg-card-2: #221b55;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f1ff;
  --text-dim: #b8b3d9;
  --accent: #6c63ff;
  --accent-strong: #5a50f0;
  --accent-soft: rgba(108, 99, 255, 0.16);
  --teal: #3ddad0;
  --gold: #ffd479;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(5, 3, 20, 0.55);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(108, 99, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(61, 218, 208, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}

.section { padding: 88px 0; }
.section-alt { background: rgba(255, 255, 255, 0.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; margin: 0; }
.center { text-align: center; }
.center.section-head { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 10, 38, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-dim); font-weight: 600; font-size: 0.92rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--accent-strong); }
@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* Buttons */
.btn-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.appstore-badge img { height: 54px; width: auto; display: block; }
.btn-secondary {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); text-decoration: none; }

/* Hero */
.hero { padding: 84px 0 72px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .lede { font-size: 1.18rem; color: var(--text-dim); margin: 18px 0 30px; max-width: 34em; }
.hero-copy h1 span { color: var(--gold); }
.hero-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.hero-brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.hero-brand-name strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-brand-name span { color: var(--text-dim); font-size: 0.95rem; }
.hero-proof { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 28px; color: var(--text-dim); font-size: 0.9rem; }
.hero-proof strong { display: block; color: var(--text); font-size: 1.05rem; }
.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot img {
  width: min(320px, 80%);
  border-radius: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-shot .shot-back {
  position: absolute;
  width: min(300px, 72%);
  top: 42px;
  transform: rotate(8deg) translateX(58%);
  opacity: 0.55;
  z-index: -1;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-shot .shot-back { display: none; }
}

/* Download strip */
.download-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: linear-gradient(120deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
}
.download-strip img.icon { width: 64px; height: 64px; border-radius: 15px; }
.download-strip h2 { font-size: 1.35rem; margin: 0 0 4px; }
.download-strip p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 760px) {
  .download-strip { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* Screenshots */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 236px;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 34px rgba(5, 3, 20, 0.5);
  display: block;
}
.shots figcaption { font-size: 0.85rem; color: var(--text-dim); text-align: center; padding-top: 10px; }

/* How it works + features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step p { color: var(--text-dim); margin: 0; font-size: 0.97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature img { width: 44px; height: 44px; margin-bottom: 12px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--text-dim); margin: 0; font-size: 0.92rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.guide-card:hover { transform: translateY(-4px); border-color: var(--accent); text-decoration: none; }
.guide-card img { width: 46px; height: 46px; margin-bottom: 14px; }
.guide-card h3 { font-size: 1rem; margin-bottom: 8px; }
.guide-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 14px; flex: 1; }
.guide-card span { color: var(--teal); font-weight: 700; font-size: 0.88rem; }
@media (max-width: 1000px) { .guides { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guides { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--text-dim); }

/* CTA */
.cta-box {
  text-align: center;
  background:
    radial-gradient(600px 260px at 50% -40%, rgba(108, 99, 255, 0.4), transparent 70%),
    var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 68px 32px;
}
.cta-box p { color: var(--text-dim); max-width: 36em; margin: 0 auto 30px; }
.cta-box .btn-row { justify-content: center; }
.cta-box .icon { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 20px; box-shadow: var(--shadow); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-dim); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 30em; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Guide article pages */
.article { max-width: 760px; margin: 0 auto; padding: 64px 24px 40px; }
.article .breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 22px; }
.article .breadcrumb a { color: var(--text-dim); }
.article .lede { font-size: 1.15rem; color: var(--text-dim); }
.article h2 { margin-top: 2em; font-size: 1.5rem; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: #d5d1ef; font-size: 1.02rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 0.4em; }
.article .shot-inline {
  float: right;
  width: 220px;
  margin: 6px 0 18px 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 34px rgba(5, 3, 20, 0.5);
}
@media (max-width: 640px) { .article .shot-inline { float: none; display: block; margin: 20px auto; width: 200px; } }
.article .tip {
  background: var(--accent-soft);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}
.article .tip p { margin: 0; font-size: 0.97rem; }
.article-cta {
  clear: both;
  background: linear-gradient(120deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 44px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}
.article-cta img.icon { width: 58px; height: 58px; border-radius: 14px; }
.article-cta h2 { margin: 0 0 4px; font-size: 1.2rem; }
.article-cta p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }
@media (max-width: 640px) { .article-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.related { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 44px; }
.related h2 { font-size: 1.1rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 10px; }
