:root {
  --bg: #0A0A0A;
  --surface: #1A1410;
  --surface-2: #2A2018;
  --primary: #D4AF37;
  --accent: #8B1A1A;
  --text: #F5E6C8;
  --text-dim: #B8A888;
  --border: rgba(212, 175, 55, 0.2);
  --max-w: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

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

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.15s;
}

.lang-switcher button.active {
  background: var(--primary);
  color: var(--bg);
}

.lang-switcher button:hover:not(.active) {
  color: var(--text);
}

/* Hero */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-dim);
  margin-bottom: 16px;
}

.hero .lead {
  font-size: clamp(15px, 2vw, 18px);
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text);
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  text-decoration: none;
}

/* Sections */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 16px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
}

/* Instruments */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.instrument-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.instrument-card .emoji {
  font-size: 28px;
}

.instrument-card .name {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.instrument-card .origin {
  font-size: 12px;
  color: var(--text-dim);
}

.tier-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tier-free { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.tier-pro { background: rgba(212, 175, 55, 0.2); color: var(--primary); }

/* Privacy */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.doc h1 {
  font-size: clamp(28px, 5vw, 40px);
  color: var(--primary);
  margin-bottom: 8px;
}

.doc .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 22px;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.doc p, .doc li {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 12px;
}

.doc ul { padding-left: 22px; margin-bottom: 16px; }

.doc code {
  background: var(--surface);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.site-footer .links {
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer .copy { font-size: 12px; }

/* Hide all lang sections except active */
[data-i18n-section] { display: none; }
[data-i18n-section].active { display: block; }

.inline-i18n { display: none; }
.inline-i18n.active { display: inline; }
