:root {
  --bg: #07090d;
  --bg-soft: #0d1218;
  --surface: rgba(15, 20, 27, 0.72);
  --surface-strong: rgba(18, 24, 32, 0.94);
  --surface-elevated: #111820;
  --text: #f6f7f4;
  --muted: #a7b0b7;
  --faint: #717d85;
  --border: rgba(222, 231, 235, 0.12);
  --border-strong: rgba(69, 222, 194, 0.34);
  --accent: #39dec2;
  --accent-2: #f46f4d;
  --accent-3: #e8bd5a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --font-display: "Aptos Display", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Aptos", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

[data-theme="light"] {
  --bg: #f7f8f5;
  --bg-soft: #eef2ee;
  --surface: rgba(255, 255, 252, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-elevated: #ffffff;
  --text: #11181c;
  --muted: #546067;
  --faint: #778188;
  --border: rgba(20, 31, 36, 0.13);
  --border-strong: rgba(9, 132, 115, 0.35);
  --accent: #087f70;
  --accent-2: #c75136;
  --accent-3: #92701f;
  --shadow: 0 26px 70px rgba(27, 36, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(57, 222, 194, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(244, 111, 77, 0.1), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34rem),
    var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #04110f;
  text-decoration: none;
}

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

.site-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 0 18px rgba(57, 222, 194, 0.28));
}

.brand-mark .mark-j {
  fill: var(--accent);
}

.brand-mark .mark-claw {
  fill: var(--accent-2);
}

.brand-mark .mark-cut {
  fill: var(--accent-3);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.language-select,
.icon-button,
.copy-button,
.tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.language-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-select {
  min-height: 38px;
  min-width: 112px;
  appearance: none;
  padding: 0 34px 0 14px;
  color: var(--text);
  font-weight: 750;
}

.language-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 7px;
  height: 7px;
  pointer-events: none;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}

.icon-button {
  min-width: 42px;
  min-height: 38px;
  padding: 0 10px;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: auto;
  padding: clamp(58px, 8vw, 104px) 0 48px;
  text-align: left;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 28px -24px auto;
  height: min(620px, 82%);
  z-index: -2;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(57, 222, 194, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(244, 111, 77, 0.06), transparent 52%),
    color-mix(in srgb, var(--surface) 56%, transparent);
  mask-image: linear-gradient(to bottom, black 0 78%, transparent 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  gap: clamp(38px, 7vw, 78px);
  align-items: center;
}

.hero-copy-block {
  max-width: 640px;
}

.eyebrow,
.section-kicker,
.example-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.68;
}

.hero-actions,
.signal-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 720;
  text-decoration: none;
}

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

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.signal-strip {
  max-width: 800px;
  margin-top: 28px;
}

.signal-strip span {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.product-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 96%, transparent), color-mix(in srgb, var(--surface-elevated) 86%, transparent)),
    var(--surface-elevated);
  box-shadow: var(--shadow);
}

.product-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(57, 222, 194, 0.16), transparent 34%, rgba(244, 111, 77, 0.1));
  opacity: 0.72;
}

.preview-chrome {
  display: flex;
  gap: 7px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.preview-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--faint);
}

.preview-header,
.preview-timeline,
.preview-actions {
  position: relative;
  z-index: 1;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 28px 18px;
}

.preview-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-header h2 {
  margin: 0;
  font-size: clamp(1.28rem, 2.4vw, 1.75rem);
  line-height: 1.12;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 0.78rem;
  font-weight: 720;
}

.preview-timeline {
  display: grid;
  gap: 14px;
  padding: 10px 28px 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.timeline-item > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--faint) 13%, transparent);
}

.timeline-item.complete > span {
  background: var(--accent);
}

.timeline-item.active {
  border-color: var(--border-strong);
}

.timeline-item.active > span {
  background: var(--accent-2);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 15%, transparent);
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.preview-actions {
  display: flex;
  gap: 10px;
  padding: 0 28px 28px;
}

.preview-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
}

.preview-actions button:first-child {
  border-color: transparent;
  color: #03110f;
  background: var(--accent);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(46px, 7vw, 76px);
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.trust-strip span {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metrics-row div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.metrics-row strong,
.metrics-row span {
  display: block;
}

.metrics-row strong {
  margin-bottom: 7px;
  font-size: clamp(1.25rem, 2.3vw, 1.9rem);
  line-height: 1;
}

.metrics-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.section-header {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2,
.waitlist h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-header p:not(.section-kicker),
.waitlist p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: rgba(2, 5, 8, 0.86);
  box-shadow: var(--shadow);
}

[data-theme="light"] .terminal {
  background: #102025;
  color: #f8fffd;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
}

.dots span:nth-child(2) {
  background: var(--accent-3);
}

.dots span:nth-child(3) {
  background: var(--accent);
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tab {
  min-height: 32px;
  padding: 0 11px;
  color: #b5c5c8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.tab.active {
  border-color: rgba(71, 240, 208, 0.55);
  color: var(--accent);
  background: rgba(71, 240, 208, 0.09);
}

.terminal-body {
  padding: clamp(18px, 4vw, 32px);
  font-family: var(--font-mono);
}

.terminal-comment,
.terminal-note {
  color: #7f9397;
}

.command-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.command-row code {
  display: block;
  min-width: 0;
  overflow-x: auto;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #effdf9;
  background: #030507;
  white-space: nowrap;
}

.copy-button {
  min-height: 48px;
  padding: 0 14px;
  color: #f7fffd;
}

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

.workflow-card,
.example-card,
.cta-card,
.waitlist {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.1);
}

.workflow-card {
  min-height: 214px;
  padding: 24px;
}

.workflow-card h3,
.example-card h3 {
  margin: 18px 0 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.workflow-card p,
.example-card p:not(.example-label),
.cta-card span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.card-index {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-weight: 800;
}

.accent-card {
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, rgba(71, 240, 208, 0.11), transparent),
    var(--surface);
}

.example-list {
  display: grid;
  gap: 16px;
}

.example-card {
  display: grid;
  grid-template-columns: 148px minmax(220px, 0.9fr) 1.2fr;
  gap: 26px;
  align-items: center;
  padding: 24px;
}

.example-card h3,
.example-card p {
  margin: 0;
}

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

.cta-card {
  display: grid;
  gap: 12px;
  min-height: 148px;
  padding: 22px;
  text-decoration: none;
}

.cta-card:hover,
.cta-card:focus-visible,
.workflow-card:hover,
.example-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.cta-card,
.workflow-card,
.example-card,
.button,
.language-select,
.icon-button,
.copy-button {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 850;
}

.waitlist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: end;
  margin: 92px 0 0;
  padding: clamp(22px, 4vw, 34px);
}

.waitlist-form {
  display: flex;
  gap: 10px;
  min-width: min(100%, 420px);
}

.waitlist input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 38px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 0;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .product-preview {
    max-width: 640px;
  }

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

  .trust-strip,
  .metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-card,
  .waitlist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 46px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 14vw, 3.7rem);
  }

  .product-preview {
    border-radius: 18px;
  }

  .preview-header,
  .preview-actions {
    flex-direction: column;
  }

  .preview-header,
  .preview-timeline,
  .preview-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .command-row,
  .workflow-grid,
  .cta-grid,
  .trust-strip,
  .metrics-row,
  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    display: grid;
  }

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

  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 7px 7px;
    font-size: 0.78rem;
  }

  .tablist {
    justify-content: flex-start;
  }
}
