:root {
  --bg: #f6f8ff;
  --bg-2: #ffffff;
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.68);
  --border: rgba(11, 18, 32, 0.10);
  --shadow: 0 18px 55px rgba(11, 18, 32, 0.10);
  --shadow-soft: 0 12px 35px rgba(11, 18, 32, 0.08);

  --accent-1: #34c6ff;
  --accent-2: #5b4bff;
  --accent-3: #ff3da6;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-h: 72px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 15% 10%, rgba(52, 198, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 85% 22%, rgba(91, 75, 255, 0.16), transparent 52%),
    radial-gradient(900px 520px at 65% 85%, rgba(255, 61, 166, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), #ffffff 45%, #ffffff);
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  z-index: 9999;
}
.skip-link:focus {
  left: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 255, 0.65);
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.10);
  padding: 5px;
}

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

.nav a {
  font-size: 14px;
  color: rgba(11, 18, 32, 0.78);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background 140ms ease, color 140ms ease;
}

.nav a:hover {
  background: rgba(11, 18, 32, 0.06);
  color: rgba(11, 18, 32, 0.92);
}

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

.lang-select {
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(11, 18, 32, 0.85);
  outline: none;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.10);
}

.btn-primary {
  border-color: rgba(91, 75, 255, 0.25);
  background: linear-gradient(135deg, rgba(52, 198, 255, 0.25), rgba(91, 75, 255, 0.20), rgba(255, 61, 166, 0.12)),
    rgba(255, 255, 255, 0.65);
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
}

.icon-github {
  width: 18px;
  height: 18px;
  display: inline-block;
  fill: currentColor;
}

.hero {
  padding: 54px 0 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  justify-items: center;
  text-align: center;
  align-items: start;
}

.hero-top,
.hero-bottom {
  width: min(860px, 100%);
}

.hero h1 {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.70);
  color: rgba(11, 18, 32, 0.74);
  font-size: 13px;
  width: fit-content;
  margin: 0 auto;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 24px rgba(91, 75, 255, 0.22);
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
  color: rgba(11, 18, 32, 0.65);
  font-size: 13px;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(920px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: radial-gradient(650px 360px at 25% 10%, rgba(52, 198, 255, 0.25), transparent 60%),
    radial-gradient(650px 360px at 75% 20%, rgba(91, 75, 255, 0.22), transparent 60%),
    radial-gradient(650px 360px at 50% 95%, rgba(255, 61, 166, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.70);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
}

.mock-window {
  border-radius: 16px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.7);
}

.traffic {
  display: inline-flex;
  gap: 6px;
}

.traffic span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.12);
}

.mock-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mock-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.60);
  padding: 12px;
}

.mock-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(52, 198, 255, 0.28), rgba(91, 75, 255, 0.20), rgba(255, 61, 166, 0.12)),
    rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(11, 18, 32, 0.10);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.10);
}

.mock-icon img {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.mock-lines {
  display: grid;
  gap: 8px;
}

.line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.12), rgba(11, 18, 32, 0.06));
}
.line.short {
  width: 58%;
}

.section {
  padding: 54px 0;
}

.section-title {
  font-size: clamp(22px, 2.7vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

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

.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: linear-gradient(135deg, rgba(52, 198, 255, 0.22), rgba(91, 75, 255, 0.18), rgba(255, 61, 166, 0.10)),
    rgba(255, 255, 255, 0.65);
}

.icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(11, 18, 32, 0.80);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

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

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(11, 18, 32, 0.74);
  line-height: 1.8;
  font-size: 14px;
}

.cta {
  margin-top: 26px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: radial-gradient(900px 420px at 10% 10%, rgba(52, 198, 255, 0.22), transparent 62%),
    radial-gradient(900px 420px at 90% 0%, rgba(91, 75, 255, 0.18), transparent 62%),
    radial-gradient(900px 420px at 50% 110%, rgba(255, 61, 166, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.70);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.footer {
  padding: 30px 0 44px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(246, 248, 255, 0.50);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(11, 18, 32, 0.70);
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  color: rgba(11, 18, 32, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.page {
  padding: 38px 0 16px;
}

.page h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  margin-top: 8px;
}

.prose {
  margin-top: 14px;
  color: rgba(11, 18, 32, 0.74);
  line-height: 1.9;
  font-size: 15px;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: rgba(11, 18, 32, 0.92);
}

.prose p {
  margin: 10px 0;
}

.code {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: rgba(11, 18, 32, 0.88);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .lang-select {
    max-width: 135px;
  }
  .hero h1 {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .nav a {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
