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

:root {
  --bg:           #0E060A;
  --bg-card:      #1A0F0A;
  --bg-section:   #130A07;
  --border:       #3A1A10;
  --border-gold:  #6A4A20;
  --gold:         #C8A030;
  --gold-light:   #E8C060;
  --gold-dim:     #7A6020;
  --crimson:      #8B1A2A;
  --crimson-light:#B83040;
  --text:         #E8D8C0;
  --text-sub:     #9A8070;
  --text-hint:    #6A5040;
  --cyan:         #00B4D8;
}

* { 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(14,6,10,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: 'Playfair Display', serif; font-size: 1.3rem; 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);
}
.divider-icon { color: var(--gold-dim); font-size: 1rem; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('hero.png');
  background-size: cover; background-position: center top;
  filter: brightness(0.62);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,6,10,0.05) 0%, rgba(14,6,10,0.45) 55%, rgba(14,6,10,0.92) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 2rem clamp(1rem, 5vw, 3rem);
  max-width: 800px;
}
.hero-icon {
  width: 100px; height: 100px; border-radius: 22px;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 40px rgba(200,160,48,0.3);
  margin-bottom: 1.5rem;
}
.hero-title { margin-bottom: 0.25rem; letter-spacing: 6px; text-transform: uppercase; }
.hero-tagline { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--text-sub); 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, #C8A030, #E8C060, #A07020);
  color: #0E060A;
  box-shadow: 0 4px 20px rgba(200,160,48,0.4);
}
.btn-gold:hover { box-shadow: 0 6px 30px rgba(200,160,48,0.6); transform: translateY(-2px); color: #0E060A; }
.btn-outline {
  border: 1.5px solid var(--border-gold);
  color: var(--gold);
  background: rgba(200,160,48,0.07);
}
.btn-outline:hover { background: rgba(200,160,48,0.15); color: var(--gold-light); }
.btn-store {
  background: rgba(26,15,10,0.8);
  border: 1.5px solid var(--border-gold);
  color: var(--text);
}
.btn-store:hover { background: rgba(200,160,48,0.12); }
.btn-store .store-label { display: flex; flex-direction: column; text-align: left; }
.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: 2.2rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.feature-card p { margin: 0; font-size: 0.9rem; }

/* ── SCREENSHOT / PREVIEW ─────────────────────────────────── */
.preview-section { background: var(--bg-section); }
.phone-frame {
  width: 280px; margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: 36px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(200,160,48,0.15);
  position: relative;
}
.phone-notch {
  height: 28px; background: #0E060A;
  display: flex; align-items: center; justify-content: center;
}
.phone-notch-pill { width: 80px; height: 12px; background: #1A1A1A; border-radius: 10px; }
.phone-screen { padding: 12px; }
.screen-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.screen-title { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--gold); font-weight: 800; letter-spacing: 1.5px; }
.screen-gear { font-size: 1rem; color: var(--gold); border: 1.5px solid var(--gold); border-radius: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.screen-clef-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.screen-btn { text-align: center; border-radius: 8px; padding: 7px; font-size: 0.7rem; font-weight: 600; }
.screen-btn.active { background: var(--gold); color: #0E060A; }
.screen-btn.muted { background: var(--bg); color: var(--text-sub); border: 1px solid var(--border); }
.screen-score { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 10px; }
.score-cell { background: rgba(200,160,48,0.1); border: 1px solid var(--border); border-radius: 8px; text-align: center; padding: 5px; }
.score-val { font-size: 1rem; font-weight: 700; color: var(--gold); }
.score-lbl { font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-hint); }
.staff-preview { background: var(--bg); border-radius: 10px; padding: 8px; margin-bottom: 8px; text-align: center; font-size: 1.8rem; }
.result-bar { background: rgba(200,160,48,0.08); border: 1px solid var(--border-gold); border-radius: 12px; padding: 8px 12px; text-align: center; font-size: 0.65rem; color: var(--text-sub); margin-bottom: 8px; }
.keys-preview {
  background: rgba(0,180,216,0.08); border-radius: 8px; padding: 8px;
  display: flex; gap: 2px; justify-content: center; overflow: hidden; height: 48px;
}
.key { width: 20px; background: #D8E4F0; border-radius: 3px; position: relative; }
.key.black { width: 13px; height: 30px; background: #002147; border-radius: 2px; margin: 0 -4px; z-index: 1; }
.key.target { background: #CCF0F8; }
.mic-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mic-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.mic-info { font-size: 0.6rem; color: var(--gold); }

/* ── 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-content { }
.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(200,160,48,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); }

/* ── LEGAL ────────────────────────────────────────────────── */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-bottom: 1.5rem; }
.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(200,160,48,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-size: 1.1rem; letter-spacing: 3px; 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); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .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; }
}

/* ── HIGHLIGHT ────────────────────────────────────────────── */
.highlight { color: var(--gold); font-weight: 700; }
.crimson { color: var(--crimson-light); }
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; }
