/* Mineral Identifier AI — site-wide styles */
:root {
  --navy-900: #0d1f3f;
  --navy-800: #16305e;
  --navy-700: #1e4079;
  --navy-100: #e8eefb;
  --purple: #6b5ce7;
  --purple-dark: #5748d6;
  --teal: #1f5f6b;
  --ink: #142033;
  --ink-soft: #45526b;
  --bg: #f7f9fe;
  --card: #ffffff;
  --line: #e3e9f5;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 31, 63, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 31, 63, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 31, 63, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: rgba(255,255,255,0.85); font-size: 0.92rem; font-weight: 500; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--purple); color: #fff !important; padding: 8px 16px;
  border-radius: 999px; font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--purple-dark); }
@media (max-width: 760px) { .main-nav a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.store-badge { display: inline-block; line-height: 0; transition: transform 0.15s, filter 0.15s; }
.store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.store-badge img { width: 180px; height: 60px; }

.btn-secondary {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.4); color: #fff; font-weight: 600;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #2a2a72 100%);
  color: #fff;
  padding: 84px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #9f93ff; }
.hero .lede {
  font-size: 1.14rem; color: rgba(255,255,255,0.85); max-width: 34rem;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-proof { display: flex; gap: 26px; flex-wrap: wrap; padding-bottom: 56px; }
.hero-proof div strong { display: block; font-size: 1.25rem; }
.hero-proof div span { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.hero-shot { position: relative; align-self: end; }
.hero-shot img {
  width: min(340px, 80%); margin: 0 auto;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,0.45);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-shot { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple-dark); margin-bottom: 10px;
}

/* ---------- Screenshots ---------- */
.shots { background: linear-gradient(180deg, var(--bg) 0%, var(--navy-100) 100%); }
.shots-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.shot figure { margin: 0; }
.shot img {
  border-radius: 22px; box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.shot img:hover { transform: translateY(-6px) scale(1.02); }
.shot figcaption { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; font-weight: 600; }
@media (max-width: 980px) { .shots-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .shots-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple) 0%, #8f7bff 100%);
  color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Features strip ---------- */
.features { background: var(--navy-900); color: #fff; }
.features .section-head h2 { color: #fff; }
.features .section-head p { color: rgba(255,255,255,0.7); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 26px;
}
.feature .icon { font-size: 1.7rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: rgba(255,255,255,0.72); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s; color: var(--ink);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.guide-card .icon { font-size: 1.6rem; margin-bottom: 12px; }
.guide-card h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: 8px; }
.guide-card p { color: var(--ink-soft); font-size: 0.88rem; flex-grow: 1; }
.guide-card .more { margin-top: 14px; color: var(--purple-dark); font-weight: 600; font-size: 0.88rem; }
@media (max-width: 980px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 46rem; margin: 0 auto; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.faq-list summary {
  font-weight: 700; cursor: pointer; font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 32px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--purple); font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }
.faq-list .learn-more { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--purple) 0%, #4338ca 60%, var(--navy-800) 100%);
  color: #fff; text-align: center; border-radius: 26px;
  padding: 64px 32px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 34rem; margin: 0 auto 28px; }
.cta-band img.cta-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 56px 0 32px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Guide article pages ---------- */
.article-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff; padding: 56px 0 48px;
}
.breadcrumbs { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.article-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; max-width: 46rem; }
.article-hero .sub { margin-top: 14px; color: rgba(255,255,255,0.8); max-width: 42rem; font-size: 1.05rem; }

.article-body { max-width: 46rem; margin: 0 auto; padding: 56px 24px 20px; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 14px; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: #2a3650; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #2a3650; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body .tip {
  background: var(--navy-100); border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; font-size: 0.95rem;
}
.article-shot { margin: 30px auto; max-width: 300px; }
.article-shot img { border-radius: 22px; box-shadow: var(--shadow-lg); }
.article-shot figcaption { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

.app-steps {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 30px; margin: 28px 0;
}
.app-steps h3 { margin-top: 0; }
.app-steps ol { margin-bottom: 0; }

.inline-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy-800), #2a2a72);
  color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 36px 0;
}
.inline-cta > img { width: 56px; height: 56px; border-radius: 14px; }
.inline-cta .store-badge img { width: 180px; height: 60px; border-radius: 0; }
.inline-cta .txt { flex: 1; min-width: 200px; }
.inline-cta .txt strong { display: block; font-size: 1.05rem; color: #fff; }
.inline-cta .txt span { font-size: 0.88rem; color: rgba(255,255,255,0.78); }
.inline-cta a { color: #fff; }

.related { max-width: 46rem; margin: 0 auto; padding: 0 24px 64px; }
.related h2 { font-size: 1.3rem; margin-bottom: 18px; }
.related ul { list-style: none; margin: 0; }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 13px 2px; font-weight: 600; }
