*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #080810;
  --surface: #11111d;
  --surface-2: #181828;
  --border: rgba(255, 255, 255, .09);
  --text: #e8edf5;
  --muted: #98a3b5;
  --accent: #756cff;
  --accent-2: #a78bfa;
  --success: #34d399;
  --max: 1040px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(117, 108, 255, .16), transparent 34rem),
    radial-gradient(circle at 90% 40%, rgba(56, 189, 248, .07), transparent 28rem),
    var(--bg);
  line-height: 1.7;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 16, .86);
  backdrop-filter: blur(18px);
}

.site-header nav,
.site-footer > div {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header nav { min-height: 72px; }

.brand {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand > span:last-child { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a:not(.button) { color: var(--muted); font-size: .9rem; text-decoration: none; }
.nav-links > a:hover { color: #fff; }

.language-control select {
  min-height: 38px;
  padding: 7px 30px 7px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #dfe5ee;
  background: var(--surface-2);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .78rem;
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }

.page-hero {
  max-width: 820px;
  padding: 84px 0 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: #b7c1d0;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions,
.action-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5850d9);
  box-shadow: 0 12px 35px rgba(108, 99, 255, .24);
  font-size: .9rem;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}

.button:hover { transform: translateY(-2px); }
.button.small { min-height: 38px; padding: 8px 14px; font-size: .82rem; }
.button.secondary { background: var(--surface-2); box-shadow: none; }
.text-link { color: #c8d0dd; font-size: .9rem; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.article-layout { max-width: 820px; }

.content-section {
  margin: 0 0 28px;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(24, 24, 40, .92), rgba(14, 14, 25, .92));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

.content-section h2,
.related h2,
.final-cta h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.content-section h3 { margin: 0 0 6px; color: #fff; font-size: 1rem; }
.content-section p { margin: 0 0 15px; color: var(--muted); }
.content-section p:last-child { margin-bottom: 0; }

.steps { display: grid; gap: 18px; padding: 0; margin: 28px 0 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.steps li > span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(117, 108, 255, .32); border-radius: 12px; color: #fff; background: rgba(117, 108, 255, .12); font-size: .9rem; font-weight: 800; }
.steps p { margin: 0; }

.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 27px; color: #bbc4d2; font-size: .92rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.faq-list summary { padding: 16px 18px; color: #e9edf5; font-weight: 700; cursor: pointer; }
.faq-list details p { padding: 0 18px 18px; }

.related { margin-top: 70px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-grid a { display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; color: #e8edf5; background: rgba(17, 17, 29, .8); font-size: .94rem; font-weight: 700; text-decoration: none; transition: transform .2s, border-color .2s; }
.related-grid a:hover { transform: translateY(-3px); border-color: rgba(117, 108, 255, .4); }
.related-grid span { color: var(--accent-2); font-size: .8rem; }

.guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.guide-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px solid var(--border); border-radius: 13px; color: #e8edf5; background: rgba(17, 17, 29, .8); font-size: .9rem; font-weight: 700; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.guide-link:hover { transform: translateY(-2px); border-color: rgba(117, 108, 255, .42); background: rgba(117, 108, 255, .08); }
.guide-arrow { flex: 0 0 auto; color: var(--accent-2); font-size: .78rem; }

.final-cta { margin-top: 80px; padding: clamp(32px, 7vw, 60px); border: 1px solid rgba(117, 108, 255, .28); border-radius: 24px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(117, 108, 255, .2), transparent 65%), var(--surface); }
.final-cta p { margin: 0 0 10px; color: var(--muted); font-size: .82rem; }
.final-cta .button { margin-top: 12px; }

.site-footer { border-top: 1px solid var(--border); background: #06060c; }
.site-footer > div { min-height: 110px; color: var(--muted); font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

.not-found { width: min(calc(100% - 40px), 720px); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.not-found p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 760px) {
  .site-header nav { min-height: 64px; }
  .nav-links > a:not(.button) { display: none; }
  .nav-links { gap: 10px; }
  .language-control select { width: 108px; }
  .button.small { padding: 8px 10px; font-size: .72rem; }
  .page-hero { padding: 58px 0 48px; }
  .check-list, .related-grid, .guide-links { grid-template-columns: 1fr; }
  .related-grid a { min-height: 118px; }
  .site-footer > div { align-items: flex-start; flex-direction: column; padding: 28px 0; }
  .site-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
