:root {
  --bg: #040711;
  --surface: #101830;
  --surface2: #1a2448;
  --border: #2f3f70;
  --accent: #3a7fd4;
  --accent-hover: #5b97e0;
  --btn-bg: #2d6ab5;
  --btn-bg-hover: #255a9c;
  --link: #6ea6ec;
  --link-hover: #9cc3f3;
  --text: #f5f9fc;
  --muted: #aebedb;
  --gold: #FFD700;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--link-hover);
  outline-offset: 2px;
}

code,
kbd {
  font-family: var(--font-mono);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  min-height: 40px;
}

.brand:hover {
  color: var(--text);
}

.brand-name {
  letter-spacing: 0.2px;
}

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

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.site-header nav a:hover {
  color: var(--link-hover);
  background: var(--surface2);
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-header nav a.btn {
  padding: 8px 16px;
  color: #fff;
  background: var(--btn-bg);
}

.site-header nav a.btn:hover {
  background: var(--btn-bg-hover);
  color: #fff;
}

.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--btn-bg-hover);
  color: #fff;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--accent);
}

.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.content h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 1.6em 0 0.5em;
}

.content h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 1.4em 0 0.5em;
}

.content p {
  margin: 0 0 1em;
}

.content ul,
.content ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.content li {
  margin-bottom: 0.4em;
}

.hero {
  padding: 8px 0 4px;
}

.hero .lead {
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 0 0 0.8em;
}

.hero .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.2em;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 1.4em 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  padding: 14px 16px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq details > :not(summary) {
  margin: 0;
  padding: 0 16px;
}

.faq details > summary + * {
  padding-top: 14px;
}

.faq details > :last-child:not(summary) {
  padding-bottom: 14px;
}

.faq details > ul,
.faq details > ol {
  padding-left: 36px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.4em 0;
}

.steps li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 1em;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 1.4em 0;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 1.4em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.guide-list li {
  margin: 0;
}

.guide-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
}

.guide-list a:hover {
  border-color: var(--accent);
  background: var(--surface2);
  color: var(--text);
}

.guide-list a .guide-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-list a p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.6em;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--link-hover);
}

.updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.2em;
}

kbd {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.9em;
  color: var(--text);
}

code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--text);
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  margin: 1.2em 0;
}

pre code {
  background: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.98rem;
}

table th,
table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

table thead th {
  background: var(--surface2);
  font-weight: 700;
}

table tbody tr:nth-child(even) td {
  background: var(--surface);
}

.legal-section {
  font-size: 1rem;
  line-height: 1.7;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin: 0 0 1.4em;
}

.legal-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.legal-p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 0.8em;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
}

.legal-list-item {
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 20px 36px;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

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

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
