:root {
  --bg-0: #080608;
  --bg-1: #0d0a14;
  --ink: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.55);
  --accent: #7c3aed;
  --accent-2: #a78bfa;
  --card: rgba(13, 10, 20, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 64px rgba(124, 58, 237, 0.2);
  --chip: rgba(124, 58, 237, 0.18);
  --chip-text: rgba(255, 255, 255, 0.85);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 520px at 10% -10%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(720px 420px at 90% 0%, rgba(76, 29, 149, 0.35), transparent 60%),
    radial-gradient(700px 500px at 50% 115%, rgba(91, 33, 182, 0.2), transparent 70%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  min-height: 100vh;
}

.page {
  position: relative;
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 6px
  );
  pointer-events: none;
  z-index: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px 7vw 10px;
  position: relative;
  z-index: 1;
}

.header-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  margin-inline-start: 18px;
}

nav a.active {
  color: var(--accent-2);
}

nav a,
.toc a {
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.lang-switch button {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
}

.lang-switch button.active {
  background: var(--chip);
  color: var(--accent-2);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 7vw 80px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}

.meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.toc a {
  font-size: 13px;
  color: var(--accent-2);
  background: var(--chip);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

h2 {
  font-family: "Fraunces", serif;
  font-size: 22px;
  margin: 0 0 12px;
}

h3 {
  font-family: "Fraunces", serif;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--accent-2);
}

p {
  margin: 0 0 12px;
  line-height: 1.7;
}

ul {
  margin: 0 0 8px 0;
  padding: 0 22px 0 0;
  line-height: 1.7;
}

html[dir="ltr"] ul {
  padding: 0 0 0 22px;
}

li {
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--chip-text);
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  margin-bottom: 12px;
}

.callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--ink);
}

.callout strong {
  color: var(--accent-2);
}

.callout-important {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--ink);
}

.callout-important p {
  margin: 0 0 10px;
}

.callout-important p:last-child {
  margin-bottom: 0;
}

.callout-important strong {
  color: #fcd34d;
}

main a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grid.two {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.contact-card {
  text-align: center;
  padding: 18px 16px;
}

.contact-card .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.faq-q span {
  color: var(--accent-2);
  font-size: 20px;
  line-height: 1;
}

.faq-a {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 0 40px;
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.2s; }
.delay-4 { animation-delay: 0.3s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin-inline-start: 0;
    margin-inline-end: 12px;
  }

  .meta {
    flex-direction: column;
    gap: 6px;
  }
}
