@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=UnifrakturMaguntia&family=Lato:wght@300;400;700&display=swap');

:root {
  --bg:           #06040e;
  --bg-card:      #0e0a1c;
  --bg-section:   #090614;
  --border:       #2a1a4a;
  --border-gold:  #5a4010;
  --gold:         #c9a84c;
  --gold-light:   #e8c870;
  --gold-dim:     #7a6020;
  --crimson:      #7a1a3a;
  --crimson-light:#a83050;
  --text:         #e8d8b8;
  --text-sub:     #9a8868;
  --text-hint:    #5a4828;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-sub); margin-bottom: 1rem; }
a  { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,4,14,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-brand-text { font-family: 'UnifrakturMaguntia', 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); letter-spacing: 2px; }
.nav-brand-sub  { font-size: 0.6rem; letter-spacing: 4px; color: var(--text-hint); display: block; margin-top: -4px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.85rem; letter-spacing: 1px; color: var(--text-sub); text-transform: uppercase; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--crimson); color: #fff !important;
  padding: 8px 18px; border-radius: 20px; font-size: 0.8rem !important;
  letter-spacing: 1px; text-transform: uppercase;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--crimson-light) !important; color: #fff !important; }

/* ── ORNAMENT ─────────────────────────────────────────────── */
.ornament { color: var(--gold-dim); letter-spacing: 6px; font-size: 0.75rem; text-align: center; margin: 0.5rem 0; }
.divider {
  display: flex; align-items: center; gap: 1rem; margin: 2rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('hero.jpg');
  background-size: cover; background-position: center center;
  filter: brightness(0.55);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(6,4,14,0.10) 0%,
    rgba(6,4,14,0.35) 45%,
    rgba(6,4,14,0.92) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 2rem clamp(1rem, 5vw, 3rem);
  max-width: 820px;
}
.hero-icon {
  width: 110px; height: 110px; border-radius: 24px;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 50px rgba(201,168,76,0.35);
  margin-bottom: 1.5rem;
}
.hero-gothic {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--gold);
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 40px rgba(201,168,76,0.4);
}
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  color: var(--text-sub);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.hero-brand { font-size: 0.7rem; letter-spacing: 6px; color: var(--text-hint); text-transform: uppercase; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; transition: all 0.2s; cursor: pointer;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, #c9a84c, #e8c870, #a07020);
  color: #06040e;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.btn-gold:hover { box-shadow: 0 6px 30px rgba(201,168,76,0.65); transform: translateY(-2px); color: #06040e; }
.btn-outline {
  border: 1.5px solid var(--border-gold);
  color: var(--gold);
  background: rgba(201,168,76,0.07);
}
.btn-outline:hover { background: rgba(201,168,76,0.15); color: var(--gold-light); }
.btn-store {
  background: rgba(14,10,28,0.85);
  border: 1.5px solid var(--border-gold);
  color: var(--text);
}
.btn-store:hover { background: rgba(201,168,76,0.12); }
.btn-store .store-apple,
.btn-store .store-play { flex-shrink: 0; }
.btn-store .store-apple { color: var(--text); }
.btn-store .store-label { display: flex; flex-direction: column; text-align: left; }
.btn-soon { opacity: 0.6; cursor: not-allowed; }
.btn-soon:hover { background: rgba(14,10,28,0.85); }
.btn-soon .store-soon {
  align-self: flex-start; margin-left: 4px;
  background: var(--crimson); color: #fff;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 10px;
}
.btn-store .store-sub  { font-size: 0.65rem; font-weight: 300; letter-spacing: 1px; color: var(--text-sub); text-transform: none; }
.btn-store .store-name { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: 0.5px; text-transform: none; }

/* ── SECTIONS ─────────────────────────────────────────────── */
section { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 600px; margin: 0.75rem auto 0; }

/* ── FEATURES GRID ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.feature-card p { margin: 0; font-size: 0.9rem; }

/* ── MODES GRID ───────────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.mode-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.mode-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  margin: 0 auto 1rem;
}
.mode-card h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--gold); }
.mode-card p { font-size: 0.85rem; margin: 0; }

/* ── TOPICS STRIP ─────────────────────────────────────────── */
.topics-wrap {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
}
.topics-hint { text-align: center; font-size: 0.85rem; color: var(--text-hint); margin: -1.5rem 0 1.5rem; }
.topic-tag {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  padding: 0.4rem 1.05rem;
  font-family: 'Lato', 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.topic-tag:hover, .topic-tag:focus-visible {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
  outline: none;
}

/* ── ISLAND LIGHTBOX ──────────────────────────────────────── */
.island-modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,2,8,0.92);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
}
.island-modal.open { display: flex; }
.island-modal-inner {
  position: relative;
  max-width: 900px; width: 100%;
  text-align: center;
  animation: islandIn 0.25s ease-out;
}
@keyframes islandIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.island-modal-inner img {
  max-width: 100%; max-height: 78vh;
  border-radius: 16px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 60px rgba(201,168,76,0.25);
}
.island-modal-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; color: var(--gold);
  letter-spacing: 2px; margin: 1rem 0 0;
}
.island-modal-close {
  position: absolute; top: -14px; right: -6px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-card); color: var(--gold);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.island-modal-close:hover { background: var(--crimson); color: #fff; }

/* ── MANUAL ───────────────────────────────────────────────── */
.manual-section { background: var(--bg-section); }
.manual-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.manual-toc { position: sticky; top: 80px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.manual-toc h4 { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-hint); margin-bottom: 1rem; }
.manual-toc ul { list-style: none; }
.manual-toc li + li { margin-top: 0.5rem; }
.manual-toc a { font-size: 0.85rem; color: var(--text-sub); transition: color 0.15s; }
.manual-toc a:hover { color: var(--gold); }
.manual-block { margin-bottom: 2.5rem; }
.manual-block h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font-size: 1.1rem; }
.manual-block h3 .step-num { width: 28px; height: 28px; background: var(--crimson); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-family: 'Lato', sans-serif; color: #fff; font-weight: 700; flex-shrink: 0; }
.tip-box { background: rgba(201,168,76,0.07); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1rem 0; }
.tip-box p { margin: 0; font-size: 0.9rem; }
.tip-box strong { color: var(--gold); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 1.25rem;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-gold); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; color: var(--gold);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--gold-dim); font-size: 1.4rem; line-height: 1;
  transition: transform 0.2s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--gold); }
.faq-item p { font-size: 0.9rem; margin: 0 0 1.1rem; }

/* ── LEGAL ────────────────────────────────────────────────── */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h3 { color: var(--gold-light); font-size: 1rem; margin: 1.75rem 0 0.5rem; font-family: 'Lato', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.legal-content p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.legal-content ul { margin: 0.5rem 0 0.75rem 1.5rem; }
.legal-content li { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 0.4rem; }
.legal-date { font-size: 0.8rem; color: var(--text-hint); margin-bottom: 2rem; }

/* ── TABS ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 2rem; background: var(--bg-card); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.tab-btn {
  flex: 1; min-width: 120px; padding: 10px 16px; border: none; cursor: pointer;
  border-radius: 9px; font-family: 'Lato', sans-serif; font-size: 0.85rem; font-weight: 600;
  background: transparent; color: var(--text-sub); transition: all 0.2s; letter-spacing: 0.5px;
}
.tab-btn.active { background: var(--crimson); color: #fff; }
.tab-btn:hover:not(.active) { background: rgba(201,168,76,0.1); color: var(--gold); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 3rem);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border-gold); margin-bottom: 0.75rem; }
.footer-brand h3 { font-family: 'UnifrakturMaguntia', serif; font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 0.25rem; }
.footer-brand p { font-size: 0.8rem; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.footer-links a { font-size: 0.85rem; color: var(--text-sub); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.8rem; color: var(--text-hint); }

/* ── HIGHLIGHT / KBD ──────────────────────────────────────── */
.highlight { color: var(--gold); font-weight: 700; }
kbd { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: 4px; padding: 2px 8px; font-size: 0.8rem; color: var(--gold); font-family: monospace; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* keep only the Download CTA (last item) in the bar on phones */
  .nav-links { gap: 0; }
  .nav-links li { display: none; }
  .nav-links li:last-child { display: block; }
  .manual-grid { grid-template-columns: 1fr; }
  .manual-toc { position: static; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
