:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #10b981;
  --violet: #7c3aed;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.section-band {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  padding: 126px 0 78px;
  background:
    radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(8, 145, 178, 0.16), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 62%, #f8fafc 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 68% 54% at 50% 26%, black 20%, transparent 78%);
  opacity: 0.55;
}

.orbital {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  pointer-events: none;
}

.orbital-one {
  top: 160px;
  right: -120px;
  width: 360px;
  height: 360px;
}

.orbital-two {
  bottom: -160px;
  left: -120px;
  width: 420px;
  height: 420px;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 58px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 0.98;
  font-weight: 860;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, #0f172a 0%, #2563eb 48%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.base-card {
  display: flex;
  max-width: 570px;
  margin-top: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  padding: 16px 16px 16px 20px;
  backdrop-filter: blur(18px);
}

.base-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.base-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
}

.base-card button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  font-weight: 800;
  padding: 12px 18px;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--fg);
  transition: background 180ms ease, transform 180ms ease;
}

.button-secondary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.stats-strip {
  display: grid;
  max-width: 540px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.stats-strip div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  padding: 16px;
}

.stats-strip strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-console {
  position: relative;
}

.console-window {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  background: rgba(12, 18, 31, 0.96);
  box-shadow: 0 36px 100px rgba(15, 23, 42, 0.32);
  color: #dbeafe;
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  color: rgba(226, 232, 240, 0.6);
  font-size: 12px;
  font-weight: 800;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
}

.dots span:nth-child(2) {
  background: #fbbf24;
}

.dots span:nth-child(3) {
  background: #34d399;
}

.console-body {
  padding: 22px;
}

.route-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.route-line span {
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.route-line code,
.console-body pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.console-body pre {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.75;
  padding: 18px;
}

.response-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.12);
  padding: 16px;
}

.response-card.muted {
  background: rgba(255, 255, 255, 0.05);
}

.response-card small {
  display: block;
  margin-bottom: 5px;
  color: rgba(226, 232, 240, 0.58);
  font-weight: 800;
}

.response-card strong {
  display: block;
  color: #f8fafc;
  font-size: 14px;
}

.response-card > span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #93c5fd;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.floating-chip {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.13);
  color: var(--fg);
  font-size: 13px;
  font-weight: 900;
  padding: 12px 16px;
  backdrop-filter: blur(14px);
}

.chip-one {
  top: 18%;
  left: -28px;
}

.chip-two {
  right: -22px;
  bottom: 14%;
}

.model-section,
.workflow-section,
.closing-section {
  padding: 100px 0;
  background: #fff;
}

.split-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 40px;
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.split-head > p,
.section-head > p,
.closing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.logo-marquee {
  overflow: hidden;
  margin-top: 54px;
  border-block: 1px solid var(--line);
  background: #f8fafc;
  padding: 22px 0;
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 34s linear infinite;
}

.logo-track span {
  display: inline-flex;
  min-width: 138px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  color: #334155;
  font-weight: 850;
  padding: 18px 24px;
}

.feature-section {
  padding: 110px 0;
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head.narrow {
  max-width: 620px;
  text-align: center;
  margin-inline: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  gap: 1px;
  overflow: hidden;
}

.feature-card {
  min-height: 280px;
  background: rgba(255, 255, 255, 0.86);
  padding: 30px;
  transition: background 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  background: #fff;
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 15px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-weight: 900;
}

.feature-card h3,
.workflow-card h3 {
  margin: 28px 0 12px;
  font-size: 18px;
}

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

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

.workflow-card {
  position: relative;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.06);
  padding: 30px;
}

.workflow-card span {
  color: rgba(37, 99, 235, 0.18);
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
}

.pricing-section {
  padding: 110px 0;
  background: #101827;
  color: #f8fafc;
}

.pricing-section .section-kicker,
.pricing-section .split-head > p {
  color: rgba(226, 232, 240, 0.68);
}

.pricing-table {
  overflow: hidden;
  margin-top: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.table-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.6fr 0.7fr 0.7fr 0.9fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.76);
  font-size: 14px;
  padding: 20px 24px;
}

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

.table-head {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.48);
  font-size: 12px;
  font-weight: 900;
}

.table-row span:first-child {
  color: #fff;
  font-weight: 850;
}

.closing-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, #eff6ff, #ffffff 58%, #ecfeff);
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 58px);
}

.closing-actions {
  margin: 0;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: start;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  border-radius: 999px;
  background: #0f172a;
  color: white;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero-layout,
  .split-head,
  .closing-card {
    grid-template-columns: 1fr;
  }

  .hero-console {
    max-width: 620px;
  }

  .feature-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .closing-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
    padding: 126px 0 78px;
  }

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

  .hero-lead {
    font-size: 16px;
  }

  .base-card,
  .stats-strip,
  .table-row,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .base-card {
    align-items: stretch;
  }

  .base-card button {
    width: 100%;
  }

  .stats-strip,
  .feature-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .floating-chip {
    display: none;
  }

  .console-body {
    padding: 16px;
  }

  .console-body pre {
    font-size: 12px;
  }

  .model-section,
  .workflow-section,
  .closing-section,
  .feature-section,
  .pricing-section {
    padding: 74px 0;
  }

  .feature-card,
  .workflow-card {
    min-height: auto;
  }

  .footer-layout,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
