
:root {
  color-scheme: dark;
  --bg-primary: #020e13;
  --bg-panel: rgba(5, 24, 30, 0.82);
  --bg-panel-strong: rgba(6, 32, 38, 0.92);
  --bg-card: rgba(8, 28, 32, 0.86);
  --bg-chip: rgba(255, 255, 255, 0.06);
  --stroke-soft: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6ff;
  --text-muted: #99a1c6;
  --accent: #2cfde0;
  --accent-strong: #1fb3ff;
  --shadow-1: 0 18px 45px -30px rgba(0, 0, 0, 0.9);
  --shadow-2: 0 45px 90px -55px rgba(5, 6, 11, 0.95);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(130% 95% at 15% -15%, rgba(47, 214, 255, 0.32), transparent 55%),
    radial-gradient(125% 110% at 85% -15%, rgba(44, 255, 210, 0.22), transparent 58%),
    linear-gradient(175deg, #020d12 0%, #031b21 60%, #01090d 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection { background: rgba(46, 229, 211, 0.45); color: #fff; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible { color: #fff; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(22px);
  background: linear-gradient(150deg, rgba(3, 20, 28, 0.95), rgba(5, 32, 38, 0.85) 55%, rgba(22, 122, 133, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-1);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.02em; }

.brand img,
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 25px 45px -30px rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.nav { display: flex; gap: 22px; font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

.nav a {
  opacity: 0.75;
  position: relative;
  padding-bottom: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible { opacity: 1; transform: translateY(-1px); }

.nav a:hover::after,
.nav a:focus-visible::after { opacity: 1; transform: translateY(0); }

.actions { display: flex; gap: 12px; }

.actions a,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.9);
}

.icon-btn svg,
.actions img { width: 18px; height: 18px; fill: #fff; filter: invert(1); }

.main { max-width: 960px; margin: 0 auto; padding: 56px 26px 96px; }

.hero { display: grid; gap: 32px; margin-bottom: 60px; }

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 64px);
  letter-spacing: 0.02em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.hero p { margin: 0; max-width: 720px; color: var(--text-muted); font-size: 17px; }

.preview {
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--stroke-soft);
  box-shadow: var(--shadow-2);
  background: radial-gradient(circle at 20% 0, rgba(32, 251, 212, 0.32), transparent 55%);
}

.cta { display: flex; gap: 16px; flex-wrap: wrap; }

.cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(130deg, var(--accent), var(--accent-strong));
  box-shadow: 0 20px 48px -28px rgba(42, 209, 233, 0.65);
}

.cta a.secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: none;
}

section { margin-top: 64px; }

.main > section:first-of-type { margin-top: 24px; }

section h2 {
  font-size: 26px;
  margin: 0 0 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.list { display: grid; gap: 16px; }

.list-item {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--stroke-soft);
  border-radius: 18px;
  box-shadow: 0 25px 60px -40px rgba(0, 0, 0, 0.9);
}

.features-container {
  background: var(--bg-panel);
  border: 1px solid var(--stroke-soft);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-1);
}

.features-list {
  counter-reset: feature;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.features-list > li {
  counter-increment: feature;
  position: relative;
  padding-left: 42px;
}

.features-list > li::before {
  content: counter(feature);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-strong);
}

.features-list strong { display: inline-block; margin-bottom: 6px; }

.features-list ul {
  margin: 10px 0 0 18px;
  padding: 0;
  list-style: disc;
  color: var(--text-muted);
}

.features-list ul li { margin: 4px 0; }

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

.step {
  padding: 22px;
  background: var(--bg-panel-strong);
  border: 1px solid var(--stroke-strong);
  border-radius: 20px;
  position: relative;
  min-height: 190px;
  box-shadow: 0 25px 65px -45px rgba(0, 0, 0, 0.95);
}

.step .num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.step code {
  display: block;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce2ff;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

footer {
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding-bottom: 30px;
  letter-spacing: 0.05em;
}

/* Shared subpage layout */
header:not(.site-header) {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: blur(16px);
  background: rgba(3, 17, 22, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid rgba(45, 210, 230, 0.32);
  box-shadow: 0 25px 45px -35px rgba(0, 0, 0, 0.85);
}

header:not(.site-header) nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

header:not(.site-header) .links {
  display: flex;
  gap: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px;
}

.links a {
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.links a:hover,
.links a:focus-visible { opacity: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}

.section-header p { color: var(--text-muted); margin: 0; max-width: 720px; }

.features,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature-card,
.global-card {
  padding: 22px;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--stroke-soft);
  box-shadow: 0 25px 55px -40px rgba(0, 0, 0, 0.9);
}

.feature-card h3 { margin: 0 0 10px; font-size: 18px; }

.feature-card p,
.global-card p { margin: 0; color: var(--text-muted); }

.feature-card pre,
.global-card pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .site-header-inner { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; font-size: 12px; }
  .actions { order: 2; }
  .brand img,
  .brand-logo { width: 48px; height: 48px; }
  .hero { text-align: center; }
  .hero p { margin: 0 auto; }
  .cta { justify-content: center; }
  header:not(.site-header) nav { flex-direction: column; }
  header:not(.site-header) .links { flex-wrap: wrap; justify-content: center; }
}
