:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c2128;
  --text: #e6edf3;
  --muted: #8b949e;
  --subtle: #6e7681;
  --border: #30363d;
  --blue: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --max: 1200px;
  --ui: "Manrope", -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(63, 185, 80, 0.08), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: var(--ui);
}

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

code,
pre {
  font-family: var(--mono);
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  backdrop-filter: blur(18px);
  background: rgba(13, 17, 23, 0.72);
  border-bottom: 1px solid rgba(48, 54, 61, 0.65);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.hero,
.section {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
}

h2 {
  max-width: 14ch;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  font-size: 20px;
  line-height: 1.1;
}

.hero-text,
.section-head + p,
.final-cta p,
.feature-grid p,
.flow-node p,
.note,
.workflow-list,
.deploy-grid p,
.deploy-grid li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin: 18px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--blue);
  color: #081018;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  color: var(--text);
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.hero-points li::before {
  content: "•";
  color: var(--blue);
  margin-right: 10px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: min(100%, 430px);
  padding: 16px;
  border-radius: 34px;
  border: 1px solid rgba(88, 166, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(13, 17, 23, 0.98)),
    var(--panel);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.device-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 6px 8px 14px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.8);
}

.device-status {
  color: var(--green);
}

.chat-card {
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(48, 54, 61, 0.85);
}

.chat-card.user {
  margin-left: auto;
  width: 82%;
  background: #6ea8ff;
  color: #0c1723;
  border-color: transparent;
}

.chat-card.assistant {
  background: rgba(28, 33, 40, 0.7);
}

.chat-label,
.chat-meta {
  display: flex;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 12px;
  margin-bottom: 8px;
}

.process-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}

.chat-card p {
  margin: 0;
  line-height: 1.7;
}

.file-box {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(48, 54, 61, 0.85);
  overflow: hidden;
}

.file-box-head,
.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
}

.file-box-head {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(48, 54, 61, 0.85);
}

.file-row + .file-row {
  border-top: 1px solid rgba(48, 54, 61, 0.6);
}

em,
.file-box em {
  font-style: normal;
  color: var(--green);
}

strong,
.file-box strong {
  color: var(--red);
  font-weight: 700;
}

.composer {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(48, 54, 61, 0.85);
  background: rgba(255, 255, 255, 0.02);
}

.composer-input {
  padding: 16px 16px 8px;
  color: var(--subtle);
}

.composer-bar {
  display: flex;
  gap: 14px;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 92px 0;
  border-top: 1px solid rgba(48, 54, 61, 0.55);
}

.section-head {
  margin-bottom: 28px;
}

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

.feature-grid article,
.deploy-grid article,
.flow-node {
  padding: 20px;
  border: 1px solid rgba(48, 54, 61, 0.72);
  border-radius: 20px;
  background: rgba(22, 27, 34, 0.72);
}

.feature-grid article h3,
.deploy-grid article h3 {
  margin-bottom: 10px;
}

.architecture-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.flow-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--subtle);
  font-size: 30px;
}

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

pre {
  margin: 12px 0 0;
  padding: 18px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(48, 54, 61, 0.85);
  background: rgba(22, 27, 34, 0.8);
  color: #c9d1d9;
  font-size: 13px;
  line-height: 1.7;
}

.note {
  margin: 18px 0 0;
}

.workflow-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.final-cta {
  padding-bottom: 120px;
}

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

  .architecture-flow,
  .feature-grid,
  .deploy-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    min-height: 44px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-inline: 18px;
  }

  .nav {
    display: none;
  }

  .hero,
  .section {
    width: min(calc(100vw - 28px), var(--max));
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    max-width: none;
  }

  .device-frame {
    border-radius: 24px;
  }
}
