:root {
  --ink: #171717;
  --muted: #4b5563;
  --soft: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --panel: #f9fafb;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  width: min(1024px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav .site-cta {
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 16px;
  font-weight: 600;
}

.site-nav .site-cta:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.terminal-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: start center;
  padding: 84px 16px 24px;
  background: rgba(22, 22, 22, 0.32);
}

.terminal-panel.is-open {
  display: grid;
}

.terminal-card {
  width: min(820px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.terminal-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.terminal-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.terminal-command-list {
  display: grid;
  gap: 10px;
}

.terminal-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.terminal-command strong {
  display: block;
  margin-bottom: 6px;
}

.terminal-command code {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
}

.email-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(22, 22, 22, 0.42);
}

.email-modal.is-open {
  display: grid;
}

.email-modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.email-modal-card h2 {
  max-width: 420px;
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
}

.email-capture-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.modal-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(40px, 7vw, 72px) 0;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  font-size: 18px;
  color: var(--muted);
}

.hero-media {
  display: grid;
  gap: 20px;
  align-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.video-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.544 / 1;
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.terminal-hero-action {
  max-width: 100%;
  padding: 0;
}

.terminal-action-label {
  margin: 0 0 10px;
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.terminal-copy-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 84px;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid #222;
  border-radius: 12px;
  background: #090909;
  color: var(--white);
  padding: 0;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.16);
  text-align: left;
}

.terminal-copy-bar:hover {
  background: #090909;
}

.terminal-copy-icon,
.terminal-app-chip {
  display: grid;
  place-items: center;
}

.terminal-copy-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #888;
  stroke-width: 1.9;
}

.terminal-command-preview {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 15px 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.terminal-comment {
  color: #77777f;
  font-size: 11px;
  line-height: 1.2;
}

.terminal-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
  color: #f7f7f7;
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.35;
  white-space: nowrap;
}

.terminal-prompt {
  color: #8b5cf6;
}

.terminal-line code {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
}

.terminal-app-chip {
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 14px;
  border-left: 1px solid #2a2a2a;
}

.terminal-app-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 9px;
  background: #e97752;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.terminal-app-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff7ef;
}

.terminal-app-icon svg path + path {
  fill: #e97752;
}

.terminal-chevron {
  width: 18px;
  height: 18px;
  fill: #777;
}

.terminal-copy-status {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.band {
  padding: clamp(28px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
}

.step-band {
  scroll-margin-top: 76px;
}

.muted {
  background: var(--panel);
  box-shadow: 0 0 0 100vmax var(--panel);
  clip-path: inset(0 -100vmax);
}

.section-heading {
  margin-bottom: 22px;
}

.subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.section-heading h2,
.table-block h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.step-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.step-action {
  min-width: 230px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.three {
  grid-template-columns: 0.7fr 1fr 1.3fr;
}

.model-grid {
  margin: 4px 0 28px;
  align-items: end;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--blue-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.icon-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 12px;
}

.icon-button:hover {
  background: var(--panel);
  color: var(--blue);
}

.status {
  color: var(--muted);
  font-weight: 700;
  max-width: 360px;
  text-align: right;
}

.source-notes {
  margin-top: 16px;
  color: var(--muted);
}

.source-notes pre {
  overflow: auto;
  max-height: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  white-space: pre-wrap;
}

.table-block {
  margin-top: 28px;
}

.email-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.email-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 0.42fr) minmax(280px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.row-number {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
}

.email-row input,
.email-row textarea {
  min-height: 54px;
}

.compact {
  align-items: end;
}

.result:empty {
  display: none;
}

.result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.result strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.result p {
  margin: 0;
  color: var(--muted);
}

.result .result-meta {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 700;
}

.result.is-success {
  border-color: #b9dfc8;
  background: #f4fbf6;
}

.result.is-warning {
  border-color: #e4d09b;
  background: #fffaf0;
}

.result.is-error {
  border-color: #efb3a8;
  background: #fff5f3;
}

.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
}

.site-footer-inner {
  width: min(1024px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--muted);
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer-social a {
  display: grid;
  place-items: center;
}

.site-footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer-social a[href*="linkedin"]:hover {
  color: var(--blue);
}

.site-footer-social a[href*="youtube"]:hover {
  color: #dc2626;
}

@media (max-width: 820px) {
  .hero,
  .two,
  .three,
  .section-heading.inline,
  .step-heading,
  .email-row,
  .terminal-command,
  .email-capture-form {
    grid-template-columns: 1fr;
  }

  .terminal-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    padding: 14px 24px;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-left: 0;
  }

  .hero {
    min-height: auto;
  }

  .video-panel {
    min-height: 240px;
  }

  .terminal-copy-bar {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .terminal-app-chip {
    display: none;
  }

  .terminal-line {
    font-size: 15px;
  }

  .section-heading.inline {
    align-items: stretch;
  }

  .step-action {
    min-width: 0;
    justify-items: stretch;
  }

  .status {
    text-align: left;
    max-width: none;
  }

  .row-number {
    height: 38px;
  }

  .site-footer-inner,
  .site-footer-copy {
    flex-direction: column;
  }

  .site-footer-inner {
    text-align: center;
  }
}
