@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:           #190a10;
  --bg-card:      #25121a;
  --bg-section:   #14080d;
  --border:       #4a2230;
  --border-gold:  #6a4a14;
  --gold:         #c9a227;
  --gold-light:   #e7c36b;
  --gold-dim:     #8a6d1f;
  --crimson:      #a4161a;
  --crimson-light:#c0392b;
  --text:         #f3e9d2;
  --text-sub:     #c9b48c;
  --text-hint:    #7a6448;
}

* { 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(25,10,16,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; }
.nav-a2 {
  border: 1px solid var(--border-gold); color: var(--gold) !important;
  padding: 7px 16px; border-radius: 20px; font-size: 0.78rem !important;
  letter-spacing: 1px; text-transform: uppercase; transition: all 0.2s;
}
.nav-a2:hover { background: rgba(201,162,39,0.15); color: var(--gold-light) !important; }

/* ── LANG SWITCH ──────────────────────────────────────────── */
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: transparent; border: 1px solid var(--border-gold); color: var(--text-sub);
  border-radius: 8px; padding: 5px 9px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; cursor: pointer; font-family: 'Lato', sans-serif; transition: all 0.15s;
}
.lang-switch button:hover { color: var(--gold); border-color: var(--gold-dim); }
.lang-switch button.active { background: var(--crimson); color: #fff; border-color: var(--crimson); }

/* ── ORNAMENT ─────────────────────────────────────────────── */
.ornament { color: var(--gold-dim); letter-spacing: 6px; font-size: 0.75rem; text-align: center; margin: 0.5rem 0; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; min-height: 92vh; 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 center;
  filter: brightness(0.5);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(25,10,16,0.20) 0%,
    rgba(25,10,16,0.45) 45%,
    rgba(25,10,16,0.94) 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 2rem clamp(1rem, 5vw, 3rem); max-width: 820px; }
.hero-icon {
  width: min(384px, 80vw); height: auto; border-radius: 36px;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 0 70px rgba(201,162,39,0.45);
  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,162,39,0.45);
}
.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, #c9a227, #e7c36b, #a07400);
  color: #190a10;
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
}
.btn-gold:hover { box-shadow: 0 6px 30px rgba(201,162,39,0.65); transform: translateY(-2px); color: #190a10; }
.btn-outline { border: 1.5px solid var(--border-gold); color: var(--gold); background: rgba(201,162,39,0.07); }
.btn-outline:hover { background: rgba(201,162,39,0.15); color: var(--gold-light); }
.btn-store { background: rgba(37,18,26,0.85); border: 1.5px solid var(--border-gold); color: var(--text); position: relative; min-width: 220px; justify-content: center; }
.btn-store:hover { background: rgba(201,162,39,0.12); }
.btn-store .store-logo { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold); }
.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; }
.btn-store-soon { cursor: default; opacity: 0.6; }
.btn-store-soon:hover { background: rgba(37,18,26,0.85); }
.btn-store-soon .store-soon-badge {
  position: absolute; top: -8px; right: -8px;
  background: linear-gradient(135deg, #c9a227, #e7c36b); color: #190a10;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── 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: 640px; 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.95rem; 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; }
.topic-tag { background: rgba(201,162,39,0.08); border: 1px solid rgba(201,162,39,0.25); border-radius: 20px; padding: 0.35rem 1rem; font-size: 0.82rem; color: var(--gold); letter-spacing: 0.5px; }

/* ── SHOWCASE (certificate) ───────────────────────────────── */
.showcase { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.showcase img { width: min(360px, 80vw); border-radius: 18px; border: 1px solid var(--border-gold); box-shadow: 0 10px 50px rgba(0,0,0,0.5); }
.showcase-text { flex: 1; min-width: 260px; max-width: 460px; }

/* ── MANUAL ───────────────────────────────────────────────── */
.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,162,39,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 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,162,39,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) {
  .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; }
}
