/* ── Design tokens — dark theme matching stamp.html ── */
:root {
  --bg:       #0d1117;
  --surface:  #161b22;
  --surface2: #1c2128;
  --border:   #30363d;
  --text:     #e6edf3;
  --muted:    #8b949e;
  --accent:   #58a6ff;
  --green:    #3fb950;
  --red:      #f85149;
  --yellow:   #d29922;
  --gold:     #9a7c3a;
  --gold-lt:  #c9a95a;
  --gold-bg:  rgba(154,124,58,0.12);
  --rule:     #30363d;
  --font:     'JetBrains Mono','SF Mono','Fira Code',monospace;
  --serif:    'EB Garamond', Georgia, serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Top accent bar ── */
.top-bar {
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-lt), var(--gold));
}

/* ── Nav ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
}
.nav-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: #0d1117 !important;
  padding: 0.4rem 1rem !important;
  border-radius: 5px;
  font-weight: 700 !important;
  transition: opacity 0.15s !important;
}
.nav-cta:hover { opacity: 0.85 !important; color: #0d1117 !important; }

/* ── Hero ── */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(154,124,58,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 40%, rgba(88,166,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.hero-emblem {
  font-size: 2.4rem;
  color: var(--gold-lt);
  display: block;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  max-width: 680px;
  margin: 0 auto 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero-lead {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}
.hero-tags {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  background: var(--surface2);
}
.tag.gold {
  border-color: var(--gold);
  color: var(--gold-lt);
  background: var(--gold-bg);
}

/* ── Certificate preview section ── */
.cert-preview-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}
.cert-preview-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 780px) {
  .cert-preview-inner { grid-template-columns: 1fr; }
}
.cert-preview-text .section-label { margin-bottom: 0.6rem; }
.cert-preview-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.cert-preview-text h2 em { font-style: italic; color: var(--gold-lt); }
.cert-preview-text p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 0.8rem;
}
.cert-preview-text p strong { color: var(--text); }
.cert-preview-img {
  position: relative;
}
.cert-preview-img svg {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  display: block;
}
.cert-preview-badge {
  position: absolute;
  bottom: -12px;
  right: 12px;
  background: var(--green);
  color: #0d1117;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
}

/* ── Sections ── */
.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}
.section + .section { border-top: 1px solid var(--border); }

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.7rem;
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.section h2 em { font-style: italic; color: var(--gold-lt); }
.lead-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ── Analogy box ── */
.analogy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}
.analogy strong { color: var(--text); }
.analogy-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.5rem;
}

/* ── Privacy box ── */
.privacy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 1rem;
  align-items: start;
}
.privacy-icon { font-size: 1.6rem; line-height: 1; margin-top: 0.1rem; }
.privacy-box h3 { font-size: 0.9rem; color: var(--text); margin-bottom: 0.35rem; font-weight: 700; }
.privacy-box p  { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 1.2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step.visible { opacity: 1; transform: translateY(0); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-lt);
  flex-shrink: 0;
  margin-top: 0.1rem;
  background: var(--gold-bg);
}
.step-num.done  { border-color: var(--green); color: var(--green); background: rgba(63,185,80,0.1); }
.step-num.active { border-color: var(--accent); color: var(--accent); background: rgba(88,166,255,0.1); }
.step-content h3 { font-size: 0.92rem; color: var(--text); margin-bottom: 0.4rem; font-weight: 700; }
.step-content p  { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.4rem; }
.step-content p:last-child { margin-bottom: 0; }
.step-note {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: var(--green);
  background: rgba(63,185,80,0.08);
  border: 1px solid rgba(63,185,80,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-top: 0.4rem;
}
.step-note.blue { color: var(--accent); background: rgba(88,166,255,0.08); border-color: rgba(88,166,255,0.25); }

/* ── Scenarios ── */
.scenarios { display: flex; flex-direction: column; gap: 1px; margin: 2rem 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }

.scenario { background: var(--surface); }
.scenario:not(:last-child) { border-bottom: 1px solid var(--border); }
.scenario-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.scenario-header:hover { background: var(--surface2); }
.scenario.open .scenario-header { background: var(--surface2); border-bottom: 1px solid var(--border); }
.scenario-icon { font-size: 1.4rem; flex-shrink: 0; width: 36px; text-align: center; }
.scenario-titles { flex: 1; }
.scenario-titles h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 0.1rem; }
.scenario-titles span { font-size: 0.78rem; color: var(--muted); }
.scenario-toggle { font-size: 1.2rem; color: var(--gold-lt); transition: transform 0.2s; flex-shrink: 0; font-weight: 300; }
.scenario.open .scenario-toggle { transform: rotate(45deg); }
.scenario-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.scenario.open .scenario-body { max-height: 600px; }
.scenario-inner {
  padding: 1.2rem 1.3rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 600px) { .scenario-inner { grid-template-columns: 1fr; } }
.scenario-story { font-size: 0.84rem; color: var(--muted); line-height: 1.75; }
.scenario-story strong { color: var(--text); }
.scenario-steps-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.9rem 1rem;
}
.scenario-steps-mini h5 {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.7rem;
}
.mini-step {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.mini-step:last-child { margin-bottom: 0; }
.mini-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-size: 0.58rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.scenario-outcome {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--green);
  background: rgba(63,185,80,0.07);
  border: 1px solid rgba(63,185,80,0.2);
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  font-style: italic;
}

/* ── FAQ ── */
.faq { margin: 1.5rem 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  user-select: none;
  line-height: 1.4;
}
.faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--gold-lt); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.1rem; }
.faq-a strong { color: var(--text); }

/* ── CTA ── */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 2rem;
  text-align: center;
}
.cta-section .section-label { color: var(--gold-lt); }
.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.9rem;
  line-height: 1.25;
}
.cta-section h2 em { font-style: italic; color: var(--gold-lt); }
.cta-section p { color: var(--muted); font-size: 0.9rem; max-width: 420px; margin: 0 auto 2rem; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #0d1117;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  transition: opacity 0.15s, transform 0.15s;
}
.cta-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Footer ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.18rem 0.4rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.68rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.lang-btn:hover  { border-color: var(--gold); color: var(--gold-lt); background: var(--gold-bg); }
.lang-btn.active { border-color: var(--gold); color: var(--gold-lt); background: var(--gold-bg); font-weight: 700; }
.lang-flag { font-size: 0.85rem; line-height: 1; }
.lang-name { letter-spacing: 0.03em; }

@media (max-width: 860px) { .lang-name { display: none; } }
@media (max-width: 600px) {
  nav { padding: 0.7rem 1rem; gap: 0.6rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .section { padding: 3rem 1.2rem; }
  .privacy-box { grid-template-columns: 1fr; }
  .privacy-icon { display: none; }
  .lang-switcher { margin-left: 0; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
