:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: #10161a;
  --panel-2: #151d22;
  --line: rgba(194, 218, 211, 0.14);
  --text: #eef7f2;
  --muted: #9ab0a8;
  --soft: #c8d8d2;
  --green: #48d597;
  --green-2: #9cf2c3;
  --cyan: #7bc7ff;
  --yellow: #f5c84b;
  --red: #ff7a76;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

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

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

code,
pre,
button {
  font: inherit;
}

code,
pre {
  font-family: var(--mono);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.site-footer nav,
.hero-actions,
.cta-actions,
.hero-pills,
.command-title,
.tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-logo {
  width: 142px;
  height: 38px;
  object-fit: contain;
  border: 1px solid rgba(238, 247, 242, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 9px;
}

.nav-links {
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.header-action,
.site-footer a {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.header-action:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-action {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: min(760px, 84svh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.95) contrast(1.05);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.78) 48%, rgba(8, 11, 13, 0.55) 100%),
    linear-gradient(0deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.18) 55%, rgba(8, 11, 13, 0.85) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 44px;
  width: min(1180px, calc(100% - 40px));
  min-height: min(760px, 84svh);
  margin: 0 auto;
  padding: 88px 0 64px;
  align-items: center;
}

.hero-copy {
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(74px, 10vw, 146px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.22;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--soft);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.42;
}

.hero-actions,
.cta-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
}

.button.primary {
  background: var(--green);
  color: #06100c;
}

.button.secondary {
  border: 1px solid rgba(238, 247, 242, 0.22);
  background: rgba(238, 247, 242, 0.06);
  color: var(--text);
}

.hero-pills {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-pills span {
  border: 1px solid rgba(72, 213, 151, 0.18);
  border-radius: 6px;
  padding: 7px 10px;
  background: rgba(10, 20, 17, 0.7);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.terminal-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 14, 16, 0.92);
  box-shadow: var(--shadow);
}

.terminal-window.compact {
  transform: translateY(26px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-bar small {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  color: #748881;
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-body {
  padding: 20px;
  color: #dbe6e1;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.terminal-body p {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.muted {
  color: #788b84;
}

.ok {
  color: var(--green-2);
}

.warn {
  color: var(--yellow);
}

.key {
  display: inline-block;
  min-width: 118px;
  color: #788b84;
}

.value {
  color: var(--cyan);
}

.strip {
  border-bottom: 1px solid var(--line);
  background: #0a0f12;
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.strip-inner div {
  min-height: 104px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.strip-inner div:last-child {
  border-right: 1px solid var(--line);
}

.strip-inner strong,
.strip-inner span {
  display: block;
}

.strip-inner strong {
  margin-bottom: 7px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 28px;
}

.strip-inner span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.command-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.command-title {
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.copy-button {
  min-width: 64px;
  min-height: 30px;
  border: 1px solid rgba(72, 213, 151, 0.34);
  border-radius: 6px;
  background: rgba(72, 213, 151, 0.08);
  color: var(--green-2);
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(72, 213, 151, 0.16);
}

a.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #dce8e2;
  font-size: 13px;
  line-height: 1.8;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.demo-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #020404;
}

.demo-media img {
  width: 100%;
  height: auto;
}

.demo-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.tabs {
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 12px 0;
}

.tab {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.tab.active {
  border-color: rgba(72, 213, 151, 0.55);
  background: rgba(72, 213, 151, 0.12);
  color: var(--green-2);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 54px;
  padding-top: 8px;
}

.feature-item {
  position: relative;
  min-height: 150px;
  padding-top: 18px;
}

.feature-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 1px;
  content: "";
  background: var(--green);
}

.feature-code {
  display: block;
  margin-bottom: 22px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

.feature-item p,
.workflow p {
  color: var(--muted);
  line-height: 1.6;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow article {
  min-height: 218px;
  padding: 28px;
  border-left: 1px solid var(--line);
}

.workflow article:last-child {
  border-right: 1px solid var(--line);
}

.workflow span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(72, 213, 151, 0.5);
  border-radius: 6px;
  color: var(--green-2);
  font-family: var(--mono);
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 80px;
  padding: 42px 0 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.cta-section h2 {
  max-width: 820px;
}

.cta-section p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  gap: 4px;
}

.footer-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-button,
.site-footer a {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 14px;
}

.footer-button:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 10px 14px;
  border: 1px solid rgba(72, 213, 151, 0.42);
  border-radius: 6px;
  background: #0d2017;
  color: var(--green-2);
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 0.58s ease,
    transform 0.58s cubic-bezier(0.2, 0.65, 0.2, 1),
    filter 0.58s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

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

.hero-copy {
  animation: heroFadeUp 0.72s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.hero-terminal {
  animation: heroFadeUp 0.72s 0.12s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

  .reveal,
  .hero-copy,
  .hero-terminal {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero-grid,
  .demo-layout,
  .command-grid,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 78px;
  }

  .terminal-window.compact {
    transform: none;
  }

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

  .workflow article:nth-child(3) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
    padding: 0 16px;
  }

  .header-action {
    padding-inline: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section,
  .strip-inner,
  .cta-section {
    width: min(100% - 28px, 1180px);
  }

  .hero-grid {
    padding: 56px 0 42px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 82px);
  }

  h2 {
    font-size: 36px;
  }

  .hero-lede {
    font-size: 18px;
  }

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

  .strip-inner div,
  .strip-inner div:last-child,
  .workflow article,
  .workflow article:last-child,
  .workflow article:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .section {
    padding: 74px 0;
  }

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

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

  .demo-thumbs {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 16px;
  }
}
