:root {
  color-scheme: dark;
  --bg: #080b0d;
  --surface: #11171a;
  --surface-2: #182124;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7f2;
  --muted: #afbab3;
  --soft: #d8e0d9;
  --accent: #28d28e;
  --accent-2: #44c6d0;
  --warn: #e8b65a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(8, 11, 13, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
}

.brand,
.main-nav,
.hero-actions,
.hero-metrics,
.section-heading.with-action,
.segmented,
.calc-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03120d;
}

.main-nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

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

.header-action,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.header-action {
  padding: 10px 15px;
  color: var(--soft);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #04110c;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  padding: 150px 40px 56px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.98), rgba(8, 11, 13, 0.76) 42%, rgba(8, 11, 13, 0.22) 78%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 11, 13, 0) 32%);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.13;
}

h3 {
  margin: 0;
  font-size: 20px;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-metrics {
  flex-wrap: wrap;
  gap: 12px;
  margin: 58px 0 0;
}

.hero-metrics div {
  min-width: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 16, 0.72);
}

.hero-metrics dt {
  font-size: 28px;
  font-weight: 820;
}

.hero-metrics dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 92px 40px;
}

.section.compact {
  padding-top: 62px;
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.section-heading.with-action {
  justify-content: space-between;
  gap: 24px;
}

.problem-grid,
.model-layout,
.deploy-grid,
.pricing-grid,
.contact-section,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.problem-grid article,
.model-card,
.api-panel,
.deploy-main,
.deploy-steps,
.calculator,
.plan-list article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.problem-grid article {
  padding: 24px;
}

.problem-grid p,
.model-card p,
.deploy-main p,
.plan-list p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.mini-icon {
  display: inline-grid;
  width: 40px;
  height: 32px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 8px;
  background: rgba(40, 210, 142, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.segmented {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.segment {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segment.active {
  background: var(--text);
  color: #08100d;
  font-weight: 800;
}

.model-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 18px;
}

.model-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.model-card {
  padding: 22px;
}

.model-card .tagline {
  margin: 12px 0;
}

.model-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-card li {
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-size: 12px;
}

.api-panel {
  overflow: hidden;
  background: #0b1012;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #d4efe3;
  font-size: 13px;
  line-height: 1.7;
}

.deploy-section,
.contact-section {
  background: #0c1113;
}

.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.deploy-main,
.deploy-steps {
  padding: 26px;
}

.deploy-options {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.deploy-button {
  margin-top: 18px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1012;
  color: var(--text);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.toggle-row span {
  margin: 0;
}

.deploy-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  counter-reset: steps;
  list-style: none;
}

.deploy-steps li {
  position: relative;
  padding: 14px 14px 14px 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
}

.deploy-steps li::before {
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #04110c;
  content: counter(steps);
  counter-increment: steps;
  font-size: 12px;
  font-weight: 900;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.calculator,
.plan-list article {
  padding: 24px;
}

.calculator input {
  padding: 0;
  accent-color: var(--accent);
}

.calc-row {
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--soft);
}

.calc-row strong {
  color: var(--accent);
  font-size: 20px;
}

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

.plan-list strong {
  color: var(--text);
  font-size: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 36px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ops-overview pre {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1012;
  white-space: pre-wrap;
}

.contact-copy {
  align-self: center;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px 40px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading.with-action,
  .model-layout,
  .deploy-grid,
  .pricing-grid,
  .contact-section,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.with-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-panel {
    max-width: 100%;
  }

  .problem-grid,
  .plan-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 120px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 11, 13, 0.98), rgba(8, 11, 13, 0.8)),
      linear-gradient(0deg, var(--bg) 0%, rgba(8, 11, 13, 0) 36%);
  }

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

  .hero-metrics div {
    flex: 1 1 100%;
  }

  .model-list {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segment {
    white-space: nowrap;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
  }
}
