:root {
  --bg: #f7f8f3;
  --paper: #fffdf7;
  --ink: #182033;
  --muted: #667084;
  --line: #d9ded2;
  --accent: #7c4dff;
  --accent-2: #1c8f6f;
  --gold: #f4b942;
  --shadow: 0 18px 50px rgba(24, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 32, 51, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  color: #35405a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(124, 77, 255, 0.1);
  outline: none;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 0;
}

.hero {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 42px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.06;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.btn.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(24, 32, 51, 0.18);
}

.btn.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  min-height: 720px;
  perspective: 1200px;
}

.workflow-card,
.command-card,
.feature-grid article {
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.workflow-card {
  position: absolute;
  margin: 0;
  padding: 10px;
  overflow: visible;
  background: var(--paper);
  transform-origin: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.workflow-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.workflow-card figcaption {
  position: absolute;
  left: 18px;
  bottom: -14px;
  padding: 7px 10px;
  color: var(--ink);
  background: #fff8c8;
  border: 1px solid rgba(24, 32, 51, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(24, 32, 51, 0.12);
}

.workflow-card::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 96px;
  height: 28px;
  background: rgba(255, 248, 200, 0.72);
  border: 1px solid rgba(24, 32, 51, 0.08);
  transform: translateX(-50%) rotate(-3deg);
  z-index: 2;
  box-shadow: 0 6px 14px rgba(24, 32, 51, 0.08);
}

.workflow-card:hover,
.workflow-card:focus-within {
  box-shadow: 0 22px 58px rgba(24, 32, 51, 0.18);
}

.raw-card {
  top: 10px;
  right: 12px;
  width: 50%;
  aspect-ratio: 1.26;
  z-index: 1;
  transform: rotate(5deg);
}

.heatmap-card {
  top: 116px;
  left: 0;
  width: 66%;
  aspect-ratio: 1.26;
  z-index: 4;
  transform: rotate(-4deg);
}

.dart-card {
  right: 0;
  bottom: 34px;
  width: 55%;
  aspect-ratio: 1.2;
  z-index: 3;
  transform: rotate(3deg);
}

.fabric-card {
  left: 34px;
  bottom: 0;
  width: 38%;
  aspect-ratio: 0.84;
  z-index: 2;
  transform: rotate(-7deg);
}

.raw-card::before {
  transform: translateX(-50%) rotate(8deg);
}

.heatmap-card::before {
  transform: translateX(-50%) rotate(-6deg);
}

.dart-card::before {
  left: 58%;
  transform: translateX(-50%) rotate(5deg);
}

.fabric-card::before {
  left: 45%;
  transform: translateX(-50%) rotate(-8deg);
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.video-section {
  padding-top: 42px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  background: #101621;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.feature-grid article {
  padding: 22px;
}

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

.download-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.download-card:hover,
.download-card:focus-visible {
  border-color: rgba(124, 77, 255, 0.45);
  outline: none;
}

.download-card span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.download-card strong {
  font-size: 20px;
}

.feature-grid p,
.split p {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 28px;
  align-items: start;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.command-card {
  overflow: auto;
  padding: 20px;
}

pre {
  margin: 0;
}

pre code {
  color: #263049;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 840px;
  }

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

  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

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

  main,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 42px;
  }

  .subtitle {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 0;
    display: grid;
    gap: 12px;
  }

  .workflow-card {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1.26;
    transform: rotate(0deg);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

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