:root {
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --bg: #f6efe5;
  --bg-accent: #ffd58c;
  --surface: rgba(255, 250, 245, 0.72);
  --surface-strong: #fff7ef;
  --text: #21160f;
  --muted: #6e5648;
  --line: rgba(33, 22, 15, 0.12);
  --primary: #c85d2d;
  --primary-dark: #8f3f1d;
  --highlight: #184b46;
  --success: #14804a;
  --shadow: 0 24px 60px rgba(93, 47, 22, 0.14);
}

body[data-theme="night"] {
  --bg: #101820;
  --bg-accent: #23424a;
  --surface: rgba(17, 32, 43, 0.78);
  --surface-strong: #162734;
  --text: #f4efe7;
  --muted: #abc0c8;
  --line: rgba(244, 239, 231, 0.12);
  --primary: #ff9f5a;
  --primary-dark: #ffbf8a;
  --highlight: #90f4d7;
  --success: #6ce0a0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 213, 140, 0.7), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(24, 75, 70, 0.18), transparent 22%),
    linear-gradient(135deg, var(--bg) 0%, #fffdfa 100%);
  font-family: var(--font-body);
  transition: background 240ms ease, color 240ms ease;
}

body[data-theme="night"] {
  background:
    radial-gradient(circle at top left, rgba(255, 159, 90, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(144, 244, 215, 0.18), transparent 24%),
    linear-gradient(135deg, var(--bg) 0%, #17242d 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 93, 45, 0.18), rgba(255, 213, 140, 0.18));
  filter: blur(10px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--primary), var(--highlight));
}

.eyebrow,
.section-label,
.pill,
.metric-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.section-label,
.metric-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.topbar h1,
.hero-copy h2,
.glass-card h3,
.deploy-section h3 {
  margin: 0;
  font-family: var(--font-display);
}

.topbar h1 {
  font-size: 1.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 24px;
  margin-top: 36px;
}

.hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.95;
}

.pill {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--highlight);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-text,
.card-text {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 52ch;
  margin: 18px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 13px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.secondary-button,
.ghost-button {
  padding: 13px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.status-panel,
.glass-card,
.deploy-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 20px;
  align-self: stretch;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f0a734;
  box-shadow: 0 0 0 6px rgba(240, 167, 52, 0.18);
}

.status-dot.success {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(20, 128, 74, 0.16);
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

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

.glass-card,
.deploy-section {
  padding: 24px;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.accent-card {
  position: relative;
  overflow: hidden;
}

.accent-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(200, 93, 45, 0.12);
  filter: blur(8px);
}

.result-box {
  margin-top: 18px;
  padding: 18px;
  min-height: 110px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px dashed var(--line);
  line-height: 1.8;
  color: var(--text);
}

.deploy-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  margin-top: 20px;
}

.code-block {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  border-radius: 22px;
  background: #1c1f24;
  color: #f4f0ea;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hero-grid,
  .content-grid,
  .deploy-section {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 12px;
  }

  .hero,
  .glass-card,
  .deploy-section {
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 22px;
  }

  .hero-copy h2 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }
}
