:root {
  color-scheme: dark;
  --bg: #050812;
  --bg-2: #090d18;
  --panel: #0d1422;
  --panel-2: #111a2a;
  --panel-3: #151c2b;
  --ink: #f3f7fb;
  --ink-soft: #bdc9d7;
  --ink-muted: #7f8b9b;
  --line: rgba(179, 208, 255, 0.15);
  --line-strong: rgba(121, 178, 255, 0.32);
  --cyan: #58d7ff;
  --green: #5ee7a4;
  --amber: #ffc15a;
  --red: #ff6b5f;
  --blue: #6aa7ff;
  --plum: #c084fc;
  --white: #ffffff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, #070b14 48%, #050812 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(88, 215, 255, 0.24);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  color: var(--ink);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-solid {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 18, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.site-nav a,
.nav-cta,
.footer-links a,
.install-links a {
  text-decoration: none;
}

.site-nav a,
.nav-cta {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a:hover,
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--line-strong);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-canvas,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  opacity: 0.44;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(106, 167, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 231, 164, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(5, 8, 18, 0.08), rgba(5, 8, 18, 0.88));
  background-position:
    center center,
    center center,
    center center;
  background-size:
    64px 64px,
    64px 64px,
    100% 100%;
  mask-image: linear-gradient(90deg, black 0%, black 58%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-visual {
  position: absolute;
  top: 112px;
  right: max(20px, calc((100% - 1120px) / 2 - 170px));
  width: min(48vw, 700px);
  height: min(58vh, 540px);
  opacity: 0.9;
}

.hero-visual::before {
  position: absolute;
  inset: 20px 8px 0 34px;
  border: 1px solid rgba(88, 215, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(rgba(88, 215, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 231, 164, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  opacity: 0.46;
}

.role-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
}

.role-lines path {
  stroke-linecap: round;
  stroke-width: 1.4;
}

.line-primary {
  stroke: rgba(94, 231, 164, 0.5);
  filter: drop-shadow(0 0 8px rgba(94, 231, 164, 0.2));
}

.line-muted {
  stroke: rgba(106, 167, 255, 0.22);
}

.role-card {
  position: absolute;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 3px 10px;
  width: 138px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 16, 28, 0.76);
  box-shadow: var(--shadow);
  padding: 12px;
  backdrop-filter: blur(14px);
}

.role-card .role-dot {
  --dot-glow: rgba(127, 139, 155, 0.35);
  grid-row: 1 / 3;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-muted);
  box-shadow: 0 0 18px rgba(127, 139, 155, 0.35);
  animation: role-dot-pulse 3.8s ease-in-out infinite;
}

.role-card strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.role-card small,
.role-card em {
  color: var(--ink-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  font-style: normal;
}

.role-card em {
  grid-column: 1 / -1;
  width: max-content;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--ink-soft);
}

.role-card.is-selected {
  border-color: rgba(94, 231, 164, 0.72);
  background: rgba(15, 36, 33, 0.82);
}

.role-card.is-selected .role-dot {
  background: var(--green);
  --dot-glow: rgba(94, 231, 164, 0.85);
  box-shadow: 0 0 20px rgba(94, 231, 164, 0.85);
}

.role-engineer .role-dot {
  background: var(--cyan);
  --dot-glow: rgba(88, 215, 255, 0.82);
  box-shadow: 0 0 20px rgba(88, 215, 255, 0.82);
  animation-delay: 0.65s;
}

.role-engineer.is-selected .role-dot {
  background: var(--green);
  --dot-glow: rgba(94, 231, 164, 0.85);
  box-shadow: 0 0 20px rgba(94, 231, 164, 0.85);
  animation-delay: 0.35s;
}

.role-worker .role-dot {
  background: var(--amber);
  --dot-glow: rgba(255, 193, 90, 0.78);
  box-shadow: 0 0 20px rgba(255, 193, 90, 0.78);
  animation-delay: 1.25s;
}

@keyframes role-dot-pulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.82);
    box-shadow: 0 0 8px color-mix(in srgb, var(--dot-glow), transparent 68%);
  }

  45%,
  62% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 22px var(--dot-glow);
  }
}

.role-architect {
  top: 52px;
  left: 22px;
}

.engineer-a {
  top: 154px;
  left: 230px;
}

.engineer-b {
  top: 168px;
  right: 98px;
}

.engineer-c {
  top: 48px;
  right: 14px;
}

.worker-a {
  left: -2px;
  bottom: 72px;
}

.worker-b {
  left: 226px;
  bottom: 28px;
}

.worker-c {
  right: 24px;
  bottom: 64px;
}

.worker-d {
  right: 10px;
  top: 264px;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 24%;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0), var(--bg));
  content: "";
}

.hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 156px 0 124px;
}

.eyebrow,
.section-kicker,
.showcase-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: 7.5rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 710px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.48rem;
  line-height: 1.34;
}

.hero-actions,
.install-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 12px 18px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  background: var(--green);
  color: #04120d;
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 760px;
  margin-top: 36px;
}

.hero-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 8px 11px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

.next-section {
  position: absolute;
  left: max(20px, calc((100% - 1120px) / 2));
  bottom: 22px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-grid,
.split-band,
.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 64px;
  align-items: start;
}

.pressure {
  padding-top: 82px;
}

.section h2,
.install-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:not(.section-kicker),
.pressure-copy p,
.install-copy p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.pressure-copy p:first-child {
  margin-top: 0;
}

.subscription-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.subscription-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
  border: 1px solid rgba(94, 231, 164, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(94, 231, 164, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(17, 26, 42, 0.94), rgba(10, 16, 28, 0.92));
  box-shadow: var(--shadow);
  padding: 34px;
}

.subscription-panel h2 {
  font-size: 2.35rem;
}

.subscription-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.subscription-copy {
  display: grid;
  gap: 16px;
}

.product-shot {
  width: min(1240px, calc(100% - 32px));
  padding-top: 24px;
}

.wide-shot,
.screenshot-frame,
.code-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080d17;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wide-shot {
  padding: 8px;
}

.wide-shot img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

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

.workflow-card,
.compare-column,
.faq article,
.feature-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 42, 0.86);
  padding: 22px;
}

.workflow-card {
  min-height: 270px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 900;
}

.workflow-card h3,
.compare-column h3,
.faq h3,
.feature-list h3,
.showcase-layout h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.workflow-card p,
.compare-column li,
.faq p,
.feature-list p,
.showcase-layout p {
  color: var(--ink-soft);
}

.workflow-card p,
.faq p,
.feature-list p,
.showcase-layout p {
  margin: 0;
}

.showcase {
  width: min(1240px, calc(100% - 40px));
}

.showcase-shell {
  border-top: 1px solid var(--line);
}

.shot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
}

.shot-tab,
.copy-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(17, 26, 42, 0.86);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.shot-tab {
  min-height: 42px;
  padding: 9px 14px;
}

.shot-tab.is-active {
  border-color: rgba(88, 215, 255, 0.62);
  background: rgba(88, 215, 255, 0.16);
  color: var(--white);
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  gap: 34px;
  align-items: center;
}

.screenshot-frame {
  display: flex;
  aspect-ratio: 16 / 10;
  align-items: center;
  justify-content: center;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.showcase-layout h3 {
  font-size: 2rem;
}

.split-band {
  width: 100%;
  max-width: none;
  margin-top: 44px;
  padding: 96px max(20px, calc((100% - 1120px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(88, 215, 255, 0.08), transparent 36%),
    #070b14;
  color: var(--ink);
}

.split-band .section-kicker {
  color: var(--cyan);
}

.split-band h2 {
  max-width: 620px;
}

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

.feature-list article {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.feature-list p {
  color: var(--ink-soft);
}

.comparison {
  padding-bottom: 76px;
}

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

.compare-column {
  min-height: 320px;
}

.compare-column ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.compare-column li {
  position: relative;
  padding-left: 24px;
}

.compare-column li::before {
  position: absolute;
  left: 0;
  color: var(--ink-muted);
  content: "-";
}

.compare-column.strong {
  border-color: rgba(94, 231, 164, 0.42);
  background: rgba(94, 231, 164, 0.075);
}

.compare-column.strong li::before {
  color: var(--green);
  content: "+";
}

.install-section {
  align-items: center;
  border-top: 1px solid var(--line);
}

.install-links {
  margin-top: 26px;
}

.install-links a {
  color: var(--cyan);
  font-weight: 900;
}

.code-panel {
  position: relative;
}

.code-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 30px;
}

.code-panel code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.96rem;
  line-height: 1.7;
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.82rem;
}

.faq {
  padding-top: 64px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 36px max(20px, calc((100% - 1120px) / 2));
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .hero-visual {
    right: -185px;
    width: 660px;
    opacity: 0.34;
  }

  .hero h1 {
    font-size: 5.4rem;
  }

  .section-grid,
  .split-band,
  .install-section,
  .subscription-panel,
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .workflow-card {
    min-height: 230px;
  }

  .screenshot-frame {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand span {
    display: none;
  }

  .nav-cta {
    padding: 8px 10px;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-visual {
    top: 108px;
    right: -560px;
    width: 690px;
    height: 520px;
    opacity: 0.16;
  }

  .hero-inner {
    width: min(100% - 28px, 1120px);
    padding: 112px 0 92px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-copy {
    font-size: 1.18rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .next-section {
    left: 14px;
    bottom: 14px;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 68px 0;
  }

  .section h2,
  .install-copy h2 {
    font-size: 2.35rem;
  }

  .subscription-panel {
    padding: 24px;
  }

  .subscription-panel h2 {
    font-size: 2rem;
  }

  .product-shot,
  .showcase {
    width: min(100% - 18px, 1240px);
  }

  .workflow-grid,
  .compare-grid,
  .faq-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .card-index {
    margin-bottom: 22px;
  }

  .shot-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .shot-tab {
    flex: 0 0 auto;
  }

  .showcase-layout h3 {
    font-size: 1.6rem;
  }

  .screenshot-frame {
    aspect-ratio: 4 / 3;
  }

  .split-band {
    padding: 68px 14px;
  }

  .code-panel pre {
    padding: 58px 18px 22px;
  }

  .site-footer {
    flex-direction: column;
    padding: 30px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .role-card .role-dot {
    opacity: 1;
    transform: none;
  }
}
