/* FableAstro marketing — midnight ink + engraved gold.
   Premium consumer landing. No Inter. No purple neon. No card-farm hero. */

:root {
  --ink: #0c0914;
  --ink-2: #14101c;
  --ink-3: #1a1524;
  --cream: #efe6d4;
  --cream-soft: rgba(239, 230, 212, 0.78);
  --cream-mute: rgba(239, 230, 212, 0.52);
  --cream-faint: rgba(239, 230, 212, 0.28);
  --gold: #d4a94e;
  --gold-deep: #b8934a;
  --gold-line: rgba(212, 169, 78, 0.28);
  --gold-glow: rgba(212, 169, 78, 0.12);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .device-shell.tilt-a,
  .device-shell.tilt-b {
    transform: none !important;
  }
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--cream);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--ink);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--gold-line);
}

/* —— Header island —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  width: min(100%, 920px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 169, 78, 0.22);
  background: rgba(12, 9, 20, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px -28px rgba(0, 0, 0, 0.7);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled .nav-island {
  background: rgba(12, 9, 20, 0.9);
  border-color: rgba(212, 169, 78, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--cream);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.88rem;
}

.nav-desktop a {
  color: var(--cream-mute);
}

.nav-desktop a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold) !important;
}

.nav-cta:hover {
  background: var(--gold-glow);
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin-inline: auto;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: relative;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 4.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: -1.5px;
  transform: rotate(-45deg);
}

.mobile-nav {
  pointer-events: auto;
  width: min(100%, 920px);
  margin: 0.55rem auto 0;
  padding: 1rem 1.2rem 1.2rem;
  border-radius: 1.4rem;
  border: 1px solid var(--gold-line);
  background: rgba(12, 9, 20, 0.94);
  backdrop-filter: blur(22px);
  display: grid;
  gap: 0.35rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--cream-soft);
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid rgba(212, 169, 78, 0.12);
  font-size: 1.05rem;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-sky picture,
.hero-sky > img {
  width: 100%;
  height: 100%;
}

.hero-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-orrery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 9, 20, 0.92) 0%, rgba(12, 9, 20, 0.72) 42%, rgba(12, 9, 20, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 9, 20, 0.55) 0%, rgba(12, 9, 20, 0.2) 32%, rgba(12, 9, 20, 0.95) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 2rem 3rem;
  align-items: end;
}

.brand-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(12, 9, 20, 0.55);
}

.hero-line {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  color: var(--cream);
  max-width: 22ch;
  margin-bottom: 1.1rem;
}

.lede {
  color: var(--cream-soft);
  font-size: 1.02rem;
  max-width: 40ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.2rem 0.95rem 1.35rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  will-change: transform;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #e0ba66;
  color: var(--ink);
}

.btn-orb {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(12, 9, 20, 0.12);
  transition: transform 0.35s var(--ease);
}

.btn-gold:hover .btn-orb {
  transform: translateX(2px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream-soft);
  border-color: var(--gold-line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.hero-proof {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  color: var(--cream-mute);
  font-size: 0.86rem;
  max-width: 36ch;
}

.hero-proof strong {
  display: block;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.hero-device {
  justify-self: end;
  width: min(100%, 340px);
}

.device-shell {
  border-radius: 2rem;
  overflow: hidden;
  background: #08060d;
  box-shadow:
    0 40px 80px -36px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(212, 169, 78, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.device-shell img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.device-shell-lg {
  width: min(100%, 320px);
  margin-inline: auto;
}

/* —— Strip —— */
.strip {
  border-block: 1px solid var(--gold-line);
  background: rgba(20, 16, 28, 0.85);
  padding: 1.1rem 0;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.4rem;
  color: var(--cream-mute);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.strip-inner span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-deep);
  opacity: 0.7;
}

/* —— Sections —— */
.section {
  padding: 7rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 3.4rem;
}

.section-head h2,
.split-copy h2,
.orbit-copy h2,
.closing h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-head p,
.split-copy p,
.orbit-copy p {
  color: var(--cream-soft);
  max-width: 48ch;
}

.section-head em,
.hero-line em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}

.section-purpose .section-head {
  max-width: 46rem;
}

.section-purpose .section-head p {
  max-width: 62ch;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}

.purpose-grid article h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.purpose-grid article p {
  color: var(--cream-soft);
  max-width: 48ch;
  margin-bottom: 0.85rem;
}

.purpose-grid article a {
  color: var(--gold);
  text-underline-offset: 0.2em;
}

@media (max-width: 800px) {
  .purpose-grid {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-copy h3 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.12;
  margin-bottom: 0.9rem;
}

.check-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--cream-soft);
  max-width: 42ch;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 169, 78, 0.15);
}

/* Orbit asymmetric */
.section-orbit {
  background:
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(212, 169, 78, 0.07), transparent 55%),
    var(--ink);
}

.orbit-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.orbit-note {
  margin-top: 1.2rem;
  color: var(--cream-mute) !important;
  font-size: 0.92rem;
}

.orbit-stack {
  position: relative;
  min-height: 520px;
}

.orbit-stack .device-shell {
  width: min(100%, 270px);
  position: absolute;
}

.orbit-stack .tilt-a {
  left: 0;
  top: 0;
  z-index: 2;
  transform: rotate(-3.5deg);
}

.orbit-stack .tilt-b {
  right: 0;
  top: 4.5rem;
  z-index: 1;
  transform: rotate(4deg);
  width: min(100%, 250px);
  opacity: 0.96;
}

@media (max-width: 900px) {
  .orbit-stack {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .orbit-stack .device-shell {
    position: relative;
    width: 100%;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }
}

/* Gallery */
.gallery-shell {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1.25rem, calc((100vw - var(--max)) / 2));
}

.gallery {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.5rem;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-line) transparent;
}

.gallery:active {
  cursor: grabbing;
}

.gallery-card {
  flex: 0 0 min(70vw, 280px);
  scroll-snap-align: start;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--gold-line);
  transition: transform 0.45s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(212, 169, 78, 0.5);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}

.gallery-card figcaption {
  padding: 0.95rem 1.05rem 1.15rem;
  font-size: 0.9rem;
  color: var(--cream-soft);
  border-top: 1px solid var(--gold-line);
}

.gallery-card figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.15rem;
}

/* Trust — 2x2, not 3 equal cards */
.trust-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
  border-radius: 1.75rem;
  overflow: hidden;
}

.trust-grid article {
  background: var(--ink-2);
  padding: 2.4rem 2rem;
}

.trust-grid article:nth-child(1) {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 20% 15%, rgba(212, 169, 78, 0.1), transparent 45%),
    var(--ink-3);
}

.ornament {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.trust-grid h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}

.trust-grid p {
  color: var(--cream-soft);
  max-width: 38ch;
  font-size: 0.98rem;
}

/* FAQ */
.faq-wrap {
  max-width: 760px;
}

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gold-line);
}

.faq details {
  border-bottom: 1px solid var(--gold-line);
  padding: 1.15rem 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--cream-soft);
  margin-top: 0.85rem;
  max-width: 58ch;
  padding-right: 2rem;
}

/* Closing */
.closing {
  position: relative;
  padding: 7.5rem 0;
  overflow: hidden;
}

.closing-art {
  position: absolute;
  inset: 0;
}

.closing-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.closing-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 9, 20, 0.7), rgba(12, 9, 20, 0.94));
}

.closing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: end;
}

.closing p {
  color: var(--cream-soft);
  max-width: 40ch;
  margin-bottom: 1.8rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  border-radius: 1rem;
  background: rgba(239, 230, 212, 0.96);
  color: var(--ink);
  min-width: 11.5rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.store-btn:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 500;
}

.store-btn span {
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.15;
}

.closing-email {
  font-size: 0.92rem;
  color: var(--cream-mute) !important;
}

.closing-aside {
  text-align: right;
  color: var(--cream-mute);
  font-size: 0.92rem;
}

.closing-aside a {
  display: inline-block;
  margin-top: 0.55rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--gold-line);
  padding: 2.6rem 0 3.2rem;
  color: var(--cream-faint);
  font-size: 0.86rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-tag {
  color: var(--cream-mute);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.site-footer a {
  color: var(--cream-mute);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-copy {
  margin-top: 0.4rem;
}

/* Legal */
main.legal {
  padding: 7.5rem 0 5.5rem;
}

main.legal .wrap {
  max-width: 720px;
}

main.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.4rem;
}

main.legal .updated {
  color: var(--cream-faint);
  font-size: 0.88rem;
  margin-bottom: 2.6rem;
}

main.legal h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  margin: 2.4rem 0 0.8rem;
}

main.legal p,
main.legal li {
  color: var(--cream-soft);
  margin-bottom: 0.85rem;
}

main.legal ul {
  padding-left: 1.2rem;
  margin-bottom: 0.85rem;
}

main.legal strong {
  color: var(--cream);
  font-weight: 600;
}

/* Reveal — transform/opacity only, no blur (blur muddies screenshots) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    padding-top: 6.5rem;
    align-items: start;
  }

  .hero-grid,
  .split,
  .split-reverse,
  .orbit-layout,
  .closing-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article:nth-child(1) {
    grid-row: auto;
  }

  .hero-device {
    justify-self: center;
    width: min(100%, 280px);
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(12, 9, 20, 0.55) 0%, rgba(12, 9, 20, 0.35) 28%, rgba(12, 9, 20, 0.94) 72%);
  }

  .closing-aside {
    text-align: left;
  }

  .brand-mark {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .section {
    padding: 5rem 0;
  }

  .hero-proof {
    gap: 1rem;
  }

  .store-btn {
    width: 100%;
  }
}
