/* ===== Linear Asks–inspired tokens ===== */
:root {
  --color-bg: #08090a;
  --color-bg-elevated: #0f1011;
  --color-surface: #141516;
  --color-surface-hover: #1a1b1d;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-text: #f7f8f8;
  --color-text-muted: #8a8f98;
  --color-text-dim: #62666d;
  --color-accent: #5e6ad2;
  --color-accent-soft: rgba(94, 106, 210, 0.16);
  --color-accent-hover: #828fff;
  --color-btn: #ffffff;
  --color-btn-text: #08090a;
  --color-slot: #161718;
  --color-slot-line: rgba(255, 255, 255, 0.14);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow-soft: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 64px rgba(0, 0, 0, 0.45);
  --glow: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(94, 106, 210, 0.22), transparent 70%);
  --container: 1120px;
  --header-h: 64px;
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ===== Media placeholders ===== */
.media-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(94, 106, 210, 0.08), transparent 50%),
    repeating-linear-gradient(
      -45deg,
      var(--color-slot),
      var(--color-slot) 8px,
      #1a1b1d 8px,
      #1a1b1d 16px
    );
  border: 1px dashed var(--color-slot-line);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  overflow: hidden;
}

.media-slot__label {
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 28em;
}

.media-slot--logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.media-slot--logo .media-slot__label {
  padding: 0;
  font-size: 0;
  color: transparent;
}

.media-slot--logo-dark {
  background: linear-gradient(135deg, var(--color-accent), #8b95e8);
  border: none;
}

.use-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 16px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.media-slot--contact {
  min-height: 280px;
  width: 100%;
}

/* ===== Filled media ===== */
.media-filled {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.media-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-filled--hero {
  border-radius: var(--radius-lg);
  min-height: clamp(260px, 40vw, 480px);
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.media-filled--hero img {
  min-height: clamp(260px, 40vw, 480px);
  max-height: 520px;
}

.media-filled--feature {
  min-height: 340px;
}

.media-filled--feature img {
  min-height: 340px;
}

.media-filled--wide {
  min-height: 360px;
  width: 100%;
}

.media-filled--wide img {
  min-height: 360px;
}

.media-filled--contact {
  min-height: 280px;
  width: 100%;
}

.media-filled--contact img {
  min-height: 280px;
}

/* ===== Buttons — Linear style ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 510;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), opacity 0.15s var(--ease);
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.footer-nav a:focus-visible,
.contact-meta a:focus-visible,
.cap-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-btn);
  color: var(--color-btn-text);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(8, 9, 10, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-list a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-bottom: 48px;
  background: var(--glow), var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  text-align: center;
  padding: 88px 0 40px;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-brand {
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 18px;
}

.hero-headline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  width: max-content;
  max-width: 100%;
  margin: 0 auto 32px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero-desc {
    white-space: normal;
    width: auto;
    text-wrap: pretty;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-visual {
  position: relative;
  margin-top: 24px;
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}

.section-kicker {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 14px;
}

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-intro h2,
.feature-copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-lead,
.feature-copy > p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* ===== Capabilities tabs — segmented control ===== */
.capabilities {
  padding-top: 72px;
  padding-bottom: 32px;
  background: var(--color-bg);
}

.cap-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}

.capabilities .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cap-tab {
  min-height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 510;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  background: transparent;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.cap-tab:hover {
  color: var(--color-text);
}

.cap-tab.is-active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
}

/* ===== Feature blocks ===== */
.feature-block {
  padding: 72px 0;
  background: var(--color-bg);
}

.feature-block--alt {
  background: var(--color-bg-elevated);
  border-block: 1px solid var(--color-border);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.feature-grid--reverse .feature-copy {
  order: 2;
}

.feature-grid--reverse .media-filled,
.feature-grid--reverse .media-slot {
  order: 1;
}

.feature-copy .section-kicker {
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-list li {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-accent-hover);
  background: var(--color-accent-soft);
  border: 1px solid rgba(94, 106, 210, 0.28);
  border-radius: 6px;
}

/* ===== Delivery ===== */
.delivery {
  background: var(--color-bg);
}

.delivery-layout {
  display: grid;
  gap: 40px;
}

.delivery-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.delivery-points li {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.delivery-points h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.delivery-points p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== Workflows ===== */
.workflows {
  background: var(--color-bg-elevated);
  border-block: 1px solid var(--color-border);
}

.workflow-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  margin: 0 auto 48px;
  padding: 18px 28px;
  max-width: 640px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.workflow-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(94, 106, 210, 0.12), transparent 70%);
  pointer-events: none;
}

.workflow-rail__track {
  position: absolute;
  left: 64px;
  right: 64px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12) 10%,
    rgba(94, 106, 210, 0.45) 50%,
    rgba(255, 255, 255, 0.12) 90%,
    transparent
  );
}

.workflow-rail__nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  align-items: center;
}

.workflow-rail__node {
  width: 44px;
  height: 44px;
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.workflow-rail:hover .workflow-rail__node {
  color: var(--color-text);
}

.workflow-rail__node.is-active {
  color: #fff;
  background: linear-gradient(180deg, #6b76e0, var(--color-accent));
  border-color: rgba(130, 143, 255, 0.55);
  box-shadow:
    0 0 0 4px rgba(94, 106, 210, 0.18),
    0 10px 24px rgba(94, 106, 210, 0.35);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.workflow-steps li {
  position: relative;
  text-align: center;
  padding: 20px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.workflow-steps li:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--color-border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  border: 1px solid rgba(94, 106, 210, 0.28);
  color: var(--color-accent-hover);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.workflow-steps h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.workflow-steps p {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 200px;
  margin-inline: auto;
}

/* ===== Use cases ===== */
.use-cases {
  background: var(--color-bg);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.use-item {
  background: var(--color-bg);
  padding: 28px 24px;
  transition: background 0.15s var(--ease);
}

.use-item:hover {
  background: var(--color-bg-elevated);
}

.use-item h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.use-item p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== Contact ===== */
.contact {
  background: var(--color-bg);
  padding: 72px 0 112px;
  background-image: var(--glow);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-soft);
}

.contact-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.contact-copy > p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 15px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent-hover);
}

.contact-meta a:hover {
  text-decoration: underline;
}

.contact-meta span {
  color: var(--color-text-dim);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg);
  color: var(--color-text-muted);
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-brand .logo-text {
  color: var(--color-text);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  max-width: 360px;
  color: var(--color-text-dim);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-copy {
  font-size: 12px;
  color: var(--color-text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* ===== Motion ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .delivery-points,
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .feature-grid,
  .feature-grid--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-grid--reverse .feature-copy,
  .feature-grid--reverse .media-filled,
  .feature-grid--reverse .media-slot {
    order: unset;
  }

  .media-filled--feature,
  .media-filled--feature img {
    min-height: 240px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .media-filled--hero {
    width: min(100% - 32px, var(--container));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 24px;
    background: rgba(15, 16, 17, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav-cta {
    width: 100%;
    margin-left: 0;
    min-height: 40px;
  }

  .hero-copy {
    padding: 56px 0 28px;
  }

  .section {
    padding: 72px 0;
  }

  .delivery-points,
  .workflow-steps,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .workflow-rail {
    max-width: none;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
  }

  .workflow-rail__track {
    left: 28px;
    right: 28px;
  }

  .workflow-rail__node {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .workflow-steps li {
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
  }

  .step-num {
    grid-row: 1 / span 2;
    margin-bottom: 0;
    margin-top: 2px;
  }

  .workflow-steps p {
    margin-inline: 0;
    max-width: none;
    grid-column: 2;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .cap-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .cap-tab {
    flex: 1;
    justify-content: center;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
