﻿:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --text: #0f172a;
  --muted: #4b5563;
  --primary: #2563eb;
  --primary-2: #60a5fa;
  --border: #dbe4f3;
  --ring: rgba(37, 99, 235, 0.26);
  --shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "SF Pro Text", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(96, 165, 250, 0.20), transparent 44%),
    radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.16), transparent 42%),
    var(--bg);
}

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

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(10px);
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  transition: all 0.16s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 2px;
  display: inline-flex;
  gap: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 11px 16px;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(125deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.28);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
}

.btn.ghost {
  color: var(--primary);
  border-color: var(--border);
  background: var(--surface);
}

.btn.ghost:hover {
  border-color: #adc7f7;
  background: #f8fbff;
}

.hero {
  padding: 64px 0 38px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 6px 10px;
}

.hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.muted-line {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.preview {
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.fake-tabs {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fbff, #f2f6fd);
}

.fake-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e7eefb;
  font-size: 13px;
  gap: 10px;
}

.fake-row:last-child {
  border-bottom: 0;
}

.num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(125deg, #3b82f6, #60a5fa);
}

.tag {
  border-radius: 999px;
  border: 1px solid #bfd6ff;
  color: #2554a6;
  padding: 2px 8px;
  font-size: 11px;
}

.section {
  padding: 22px 0 38px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.section p.section-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.card {
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.doc-page {
  padding: 36px 0 48px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.sidenav {
  position: sticky;
  top: 78px;
  align-self: start;
  padding: 14px;
}

.sidenav h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidenav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.sidenav a:hover,
.sidenav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.doc-content {
  padding: 22px;
}

.doc-content h1 {
  margin: 0 0 12px;
  font-size: 34px;
}

.doc-content h2 {
  margin: 26px 0 10px;
  font-size: 21px;
}

.doc-content p,
.doc-content li {
  color: var(--muted);
  line-height: 1.72;
}

.doc-content code {
  background: #edf3ff;
  border-radius: 5px;
  padding: 2px 5px;
  font-family: Consolas, monospace;
  color: #0f3f86;
}

.doc-content pre {
  margin: 12px 0;
  padding: 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #dbeafe;
  overflow: auto;
}

.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

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

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 16px;
  border-left: 4px solid #7ea9ff;
  border-radius: 10px;
  background: #f8fbff;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.timeline-item time {
  font-size: 12px;
  color: #56719e;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .sidenav {
    position: static;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav {
    width: 100%;
    order: 3;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 28px;
  }
}
