/* Fossil Identifier & Rock ID — landing styles
   Dark "museum" theme: obsidian base, amber-gold CTA, electric-indigo accent, warm stone tones */

:root {
  --bg: #0c0b10;
  --bg-2: #100f16;
  --panel: #16151e;
  --panel-2: #1c1b26;
  --card: #17161f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --ink: #f5f2ea;
  --ink-soft: #d5cfc2;
  --muted: #948e82;

  --indigo: #6a5bff;
  --indigo-2: #8a7bff;
  --indigo-dim: rgba(106, 91, 255, .16);

  --amber: #ffb020;
  --gold-1: #ff9a1f;
  --gold-2: #ffce47;
  --amber-ink: #2a1a00;

  --stone: #d9b88a;
  --sand: #e8d5b0;
  --rust: #c9743a;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .35);
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, .6);
  --glow-amber: 0 12px 30px rgba(255, 154, 31, .38);

  --grad-gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
  --grad-hero: radial-gradient(1100px 620px at 78% -8%, rgba(255, 154, 31, .22), transparent 60%),
               radial-gradient(900px 560px at 8% 12%, rgba(106, 91, 255, .20), transparent 62%),
               linear-gradient(180deg, #0e0d13 0%, #0c0b10 100%);
  --maxw: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { padding: clamp(58px, 8vw, 118px) 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.24rem); color: var(--muted); max-width: 660px; }
.center .lead { margin-inline: auto; }
.grad-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer;
  padding: 15px 30px; border-radius: 100px; border: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-gold); color: var(--amber-ink); box-shadow: var(--glow-amber); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 154, 31, .5); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 16, .72); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.02rem; font-family: var(--display); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--amber); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav .btn { padding: 10px 20px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Language selector */
.lang-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-ic { position: absolute; inset-inline-start: 10px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; z-index: 1; }
.lang-select {
  font-family: var(--font); font-size: .86rem; font-weight: 500; color: var(--ink-soft);
  background-color: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 12px;
  padding-block: 8px; padding-inline: 31px 10px; cursor: pointer; line-height: 1.1; max-width: 9.5rem;
  transition: border-color .2s, color .2s;
}
.lang-select:hover, .lang-select:focus-visible { border-color: var(--amber); color: var(--ink); outline: none; }
.lang-select option { background: var(--panel); color: var(--ink); }

/* Hero */
.hero { position: relative; background: var(--grad-hero); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; padding-block: clamp(54px, 7vw, 96px); }
.hero h1 span.grad-text { display: inline; }
.badge-trust {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: .84rem;
  padding: 8px 15px; border-radius: 100px; margin-bottom: 22px;
}
.badge-trust b { color: var(--amber); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero-note { margin-top: 20px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.hero-note b { color: var(--ink-soft); }

/* Phone visual */
.phone-stack { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(300px, 78%); border-radius: 44px; background: #050506; padding: 9px;
  border: 1px solid #26242e; box-shadow: var(--shadow-lg); position: relative; z-index: 2; transform: rotate(-3deg);
}
.phone img { border-radius: 36px; display: block; width: 100%; }
.phone-back {
  position: absolute; width: min(252px, 62%); border-radius: 40px; background: #050506; padding: 8px;
  border: 1px solid #26242e; box-shadow: var(--shadow); top: 42px; right: 0; transform: rotate(6deg); z-index: 1; opacity: .95;
}
.phone-back img { border-radius: 32px; width: 100%; }
.chip {
  position: absolute; z-index: 3; font-weight: 700; font-size: .92rem;
  padding: 9px 14px; border-radius: 13px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 7px;
}
.chip-1 { top: 7%; left: -2%; background: rgba(106, 91, 255, .92); color: #fff; }
.chip-2 { bottom: 15%; right: -4%; background: var(--grad-gold); color: var(--amber-ink); }
.chip svg { width: 15px; height: 15px; }

/* Trust bar */
.trustbar { background: var(--bg-2); border-block: 1px solid var(--line); }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 72px); padding-block: 32px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 1.85rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stat b em { font-style: normal; color: var(--amber); }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }

/* Feature grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 46px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--indigo-dim); color: var(--indigo-2); border: 1px solid rgba(106, 91, 255, .28);
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: .96rem; color: var(--muted); }

/* How it works */
.how { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 50px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px 26px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; inset-inline-start: 26px; width: 44px; height: 44px; border-radius: 13px;
  background: var(--grad-gold); color: var(--amber-ink); font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: grid; place-items: center;
  box-shadow: var(--glow-amber);
}
.step h3 { margin-top: 8px; }
.step p { margin: 0; font-size: .96rem; color: var(--muted); }

/* Screenshots gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 44px 22px 30px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 10px; }
.shot { flex: 0 0 auto; width: 236px; scroll-snap-align: center; }
.shot img { border-radius: 28px; box-shadow: var(--shadow); border: 6px solid #050506; }
.shot p { text-align: center; font-size: .86rem; font-weight: 600; color: var(--muted); margin-top: 14px; }

/* Guides */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; margin-top: 48px; }
.guide-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(106, 91, 255, .45); }
.guide-card .tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--amber); margin-bottom: 10px; }
.guide-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.guide-card p { font-size: .92rem; flex: 1; color: var(--muted); }
.guide-card .more { font-weight: 700; color: var(--indigo-2); font-size: .9rem; margin-top: 8px; }
.guide-card .more::after { content: " →"; }

/* FAQ */
.faq { background: var(--bg-2); }
.faq-list { max-width: 820px; margin: 46px auto 0; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 13px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: start; background: none; border: 0; font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { flex: 0 0 auto; width: 20px; height: 20px; transition: transform .25s; color: var(--muted); }
.faq-item[open] .chev { transform: rotate(180deg); color: var(--amber); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { margin: 0 0 10px; font-size: .97rem; color: var(--ink-soft); }
.faq-a a { color: var(--indigo-2); font-weight: 700; }
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* CTA band */
.cta-band {
  background: radial-gradient(800px 380px at 50% -20%, rgba(255, 154, 31, .22), transparent 62%),
              radial-gradient(700px 360px at 50% 130%, rgba(106, 91, 255, .2), transparent),
              var(--bg-2);
  border-block: 1px solid var(--line); position: relative; overflow: hidden;
}
.cta-band .wrap { position: relative; z-index: 2; }

/* Footer */
.site-footer { background: #08070b; color: var(--muted); padding: 62px 0 34px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.site-footer .brand { color: var(--ink); margin-bottom: 14px; }
.site-footer p { color: var(--muted); font-size: .92rem; max-width: 290px; }
.footer-col h4 { font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .93rem; padding: 5px 0; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: #6f6a60; }

/* Guide article pages */
.article-hero {
  background: radial-gradient(800px 420px at 82% -20%, rgba(255, 154, 31, .18), transparent 60%),
              radial-gradient(700px 420px at 6% 0%, rgba(106, 91, 255, .18), transparent 60%),
              var(--bg-2);
  padding: clamp(42px, 6vw, 76px) 0 clamp(30px, 4vw, 46px); border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.breadcrumb a { color: var(--indigo-2); }
.breadcrumb span { opacity: .5; margin: 0 6px; }
.article { max-width: 768px; margin: 0 auto; }
.article-body h2 { font-size: 1.7rem; margin-top: 1.7em; }
.article-body h3 { font-size: 1.22rem; margin-top: 1.5em; }
.article-body p, .article-body li { color: var(--ink-soft); font-size: 1.04rem; }
.article-body ul, .article-body ol { padding-inline-start: 1.3em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body strong { color: var(--ink); }
.article-body a:not(.btn) { color: var(--indigo-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.callout {
  background: var(--panel); border: 1px solid var(--line-2); border-inline-start: 4px solid var(--amber);
  border-radius: 14px; padding: 24px 26px; margin: 30px 0;
}
.callout h3 { margin-top: 0; }
.callout p { color: var(--ink-soft); }
.callout .btn { margin-top: 8px; }
.step-inline { display: flex; gap: 16px; margin: 18px 0; }
.step-inline .n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: var(--grad-gold); color: var(--amber-ink); font-family: var(--display); font-weight: 700; display: grid; place-items: center; }
.step-inline div p { margin: 0; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 24px; }
.related a { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-weight: 700; font-family: var(--display); box-shadow: var(--shadow-sm); transition: .2s; color: var(--ink); }
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(106, 91, 255, .45); color: var(--amber); }

/* reveal on scroll — transform-only rise; content is ALWAYS visible (opacity never drops),
   so it can never be hidden by JS/observer timing. */
.js .reveal { transform: translateY(16px); transition: transform .6s ease; will-change: transform; }
.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: none; }
}

/* Mobile */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .badge-trust { margin-inline: auto; }
  .phone-stack { margin-top: 34px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; inset-inline: 0; flex-direction: column;
    background: var(--bg-2); padding: 18px 22px; gap: 6px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 10px 0; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .nav-actions .btn-hide { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}
