:root {
  color-scheme: dark;
  --bg: #07101d;
  --bg-soft: rgba(9, 16, 30, 0.78);
  --panel: rgba(9, 18, 32, 0.84);
  --panel-strong: rgba(10, 22, 40, 0.94);
  --panel-border: rgba(148, 163, 184, 0.14);
  --text: #ecf3ff;
  --muted: #9fb0c9;
  --muted-soft: #7f92af;
  --primary: #5b8cff;
  --primary-strong: #2f6fff;
  --accent: #35d39a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(circle at top, rgba(91, 140, 255, 0.24), transparent 34%),
    radial-gradient(circle at right top, rgba(53, 211, 154, 0.12), transparent 26%),
    linear-gradient(180deg, #07101d 0%, #0b1527 55%, #08101b 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75), transparent 92%);
}

.site-shell {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 40px rgba(53, 112, 255, 0.28);
}

.brand__name,
.brand__sub {
  margin: 0;
}

.brand__name {
  font-size: 15px;
  font-weight: 700;
}

.brand__sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topbar__link,
.button {
  text-decoration: none;
}

.topbar__link {
  color: var(--text);
  font-weight: 600;
  opacity: 0.88;
}

.topbar__link:hover {
  opacity: 1;
}

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

.hero__content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero__eyebrow,
.section__eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.12);
  color: #c3d6ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section--highlight h2 {
  margin: 18px 0 16px;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  max-width: 11ch;
  letter-spacing: -0.03em;
}

.hero__desc,
.section__desc {
  color: var(--muted);
  line-height: 1.85;
}

.hero__desc {
  max-width: 640px;
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 18px 42px rgba(47, 111, 255, 0.34);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.stat-card,
.hero__card,
.feature-card,
.deploy-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.stat-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.stat-card span {
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.7;
}

.hero__card {
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(11, 22, 40, 0.96), rgba(8, 17, 31, 0.88));
}

.hero__card-badge {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.preview-window {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c172a;
}

.preview-window__bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.preview-window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.preview-window__body {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 420px;
}

.preview-sidebar {
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.preview-sidebar__item {
  height: 52px;
  border-radius: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.preview-sidebar__item--active {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.88), rgba(53, 211, 154, 0.74));
}

.preview-panel {
  padding: 18px;
}

.preview-panel__header {
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 18px;
}

.preview-bubbles {
  display: grid;
  gap: 14px;
}

.preview-bubble {
  width: 72%;
  height: 72px;
  border-radius: 20px 20px 20px 8px;
  background: rgba(255, 255, 255, 0.07);
}

.preview-bubble--self {
  margin-left: auto;
  border-radius: 20px 20px 8px 20px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.92), rgba(47, 111, 255, 0.78));
}

.preview-bubble--wide {
  width: 82%;
}

.section {
  margin-top: 72px;
}

.section--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border-radius: 24px;
}

.feature-card__tag {
  display: inline-flex;
  min-width: 42px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c6d5ec;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-card h2 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.feature-card p,
.deploy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section--highlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.section--highlight h2 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 15ch;
}

.deploy-card {
  padding: 28px;
  border-radius: 28px;
}

.deploy-card--elevated {
  background: linear-gradient(180deg, rgba(14, 28, 48, 0.98), rgba(8, 18, 33, 0.92));
}

.deploy-card__label {
  margin-bottom: 14px !important;
  color: #d6e5ff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deploy-card code,
.hero__meta code {
  font-family: 'Inter', 'Microsoft YaHei', sans-serif;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: inline-block;
  margin: 12px 0 14px;
}

@media (max-width: 980px) {
  .hero__content,
  .section--grid,
  .section--highlight,
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section--highlight h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100%, calc(100% - 32px));
    padding-top: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .topbar__actions,
  .hero__meta,
  .hero__actions {
    width: 100%;
  }

  .topbar__actions {
    gap: 14px;
    flex-wrap: wrap;
  }

  .button {
    width: 100%;
  }

  .preview-window__body {
    grid-template-columns: 72px 1fr;
    min-height: 320px;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero__desc {
    font-size: 16px;
  }
}
