/* Lucky Gems — companion site styles. Dark, jewel-toned; the app's own visual language. */

:root {
  --canvas: #081010;
  --teal-header: #002223;
  --panel: #041414;
  --elevated: #133536;
  --deep-teal: #091919;
  --accent: #FF8A00;
  --accent-hi: #FFA733;
  --spark: #FFFF00;
  --emerald: #00B170;
  --sage: #8CA89E;
  --hairline: rgba(140, 168, 158, 0.20);
  --white-70: rgba(255, 255, 255, 0.72);
  --white-50: rgba(255, 255, 255, 0.50);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background-color: var(--canvas);
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Ambient lacquered-board canvas: deep teal glows so gems carry the color ---- */
.board-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(19, 53, 54, 0.85), transparent 60%),
    radial-gradient(50rem 40rem at 100% 0%, rgba(255, 138, 0, 0.06), transparent 55%),
    radial-gradient(70rem 60rem at 50% 120%, rgba(0, 177, 112, 0.06), transparent 60%),
    var(--canvas);
}
/* faint 8x8 board grid, like the game's lacquered board */
.board-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(140, 168, 158, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 168, 158, 0.04) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Section marker: the app's UPPERCASE heading + 4px orange left bar ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--sage);
}
.eyebrow::before {
  content: "";
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.marker-title {
  position: relative;
  padding-left: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-weight: 800;
}
.marker-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---- Panels / cards: gradient depth + thin inset highlight, no heavy shadow ---- */
.panel {
  background:
    linear-gradient(135deg, rgba(19, 53, 54, 0.92) 2%, rgba(9, 25, 25, 0.94) 40%, rgba(19, 53, 54, 0.55) 100%),
    var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.panel-tight { border-radius: 14px; }

.card-hover { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: reduce) { .card-hover:hover { transform: none; } }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 24px rgba(255, 138, 0, 0.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 12px 30px rgba(255,138,0,0.32); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.96); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  color: #fff;
  border: 1px solid var(--hairline);
  background: rgba(4, 20, 20, 0.5);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.btn-ghost:hover { border-color: rgba(255,138,0,0.5); background: rgba(19,53,54,0.5); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn-primary:hover, .btn-ghost:hover, .btn-primary:active { transform: none; } }

/* Google Play store badge (built, not an image) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.55rem 1.25rem 0.55rem 1.1rem;
  border-radius: 12px;
  background: #050d0d;
  border: 1px solid var(--hairline);
  color: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.store-badge:hover { border-color: rgba(255,138,0,0.5); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
@media (prefers-reduced-motion: reduce) { .store-badge:hover { transform: none; } }
.store-badge .store-sub { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); line-height: 1; }
.store-badge .store-name { font-size: 1.15rem; font-weight: 700; line-height: 1.1; }

/* ---- Links ---- */
.link-see { color: var(--accent); font-weight: 600; transition: color .15s ease; }
.link-see:hover { color: var(--accent-hi); }

/* ---- Spark numerals ---- */
.spark { color: var(--spark); }
.text-sage { color: var(--sage); }
.text-emerald-500 { color: var(--emerald); }

/* ---- Phone frame for screenshots ---- */
.phone {
  position: relative;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(160deg, #16332f, #050d0d);
  border: 1px solid rgba(140,168,158,0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone img { border-radius: 22px; display: block; width: 100%; height: auto; }

/* ---- Faceted gem chips ---- */
.gem { display: inline-block; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4)); }
.gem-float { animation: gemFloat 6s ease-in-out infinite; }
.gem-float-2 { animation: gemFloat 7.5s ease-in-out infinite; animation-delay: -1.5s; }
.gem-float-3 { animation: gemFloat 8.5s ease-in-out infinite; animation-delay: -3s; }
@keyframes gemFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gem-float, .gem-float-2, .gem-float-3 { animation: none; }
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(0, 34, 35, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); background: rgba(0, 34, 35, 0.9); }
.nav-link { color: var(--white-70); font-weight: 500; transition: color .15s ease; }
.nav-link:hover, .nav-link.active { color: #fff; }

/* mobile drawer */
.drawer { transition: transform .3s ease, opacity .3s ease; }

/* ---- FAQ accordion ---- */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { transition: transform .25s ease; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item[open] .faq-a { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- Legal / prose ---- */
.prose-legal { color: var(--white-70); line-height: 1.7; }
.prose-legal h2 {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  margin: 2.2rem 0 0.75rem;
  position: relative;
  padding-left: 1rem;
}
.prose-legal h2::before {
  content: ""; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 4px; border-radius: 2px; background: var(--accent);
}
.prose-legal h3 { color: #fff; font-weight: 700; font-size: 1rem; margin: 1.4rem 0 0.5rem; }
.prose-legal p { margin-bottom: 1rem; }
.prose-legal ul { margin: 0 0 1.2rem; padding-left: 0; list-style: none; }
.prose-legal ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; }
.prose-legal ul li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 2px;
  background: var(--emerald); transform: rotate(45deg);
}
.prose-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-legal strong { color: #fff; }

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* utility */
.divider-hair { height: 1px; background: var(--hairline); }
