:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --background: #ffffff;
  --surface: #f7f7f7;
  --surface-strong: #efefef;
  --text: #111111;
  --muted: #666666;
  --border: #dddddd;
  --border-strong: #b8b8b8;
  --success: #267a45;
  --radius: 12px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.24);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 221, 221, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.wordmark img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a,
.github-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.primary-nav a:hover,
.github-link:hover {
  color: var(--text);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}

.language-switcher button {
  min-height: 30px;
  padding: 3px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.language-switcher button[aria-pressed="true"] {
  background: #111111;
  color: #ffffff;
}

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

.hero {
  min-height: 660px;
  padding: 104px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  align-items: center;
  gap: 76px;
  border-bottom: 1px solid var(--border);
}

.hero-copy,
.terminal-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.057em;
}

.hero-description {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #111111;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

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

.button-primary {
  background: #111111;
  color: #ffffff;
}

.button-primary:hover {
  background: #2a2a2a;
}

.button-secondary {
  background: #ffffff;
}

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

.terminal-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #111111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.terminal-bar {
  min-height: 50px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 650;
}

.terminal-card pre {
  margin: 0;
  padding: 32px 20px 40px;
  overflow-x: auto;
  font-size: 14px;
}

.terminal-card code,
.code-row code,
.step code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.copy-button {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.terminal-card .copy-button {
  border-color: #4b4b4b;
  color: #d7d7d7;
}

.copy-button[data-state="copied"] {
  color: var(--success);
}

.login-row {
  min-height: 47px;
  padding: 0 18px;
  border-top: 1px solid #333333;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  color: #bcbcbc;
  font-size: 13px;
}

.login-row a,
.login-row code {
  color: #ffffff;
}

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

.section-heading {
  max-width: 740px;
  margin-bottom: 44px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature-card {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-index {
  margin-bottom: 46px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.feature-card p:last-child,
.step p {
  max-width: 530px;
  margin-bottom: 0;
  color: var(--muted);
}

.product-showcase {
  margin-top: 48px;
}

.showcase-tabs {
  min-height: 54px;
  padding: 7px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
}

.showcase-tabs button {
  min-height: 38px;
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

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

.showcase-tabs button[aria-selected="true"] {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border);
}

.showcase-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.08);
}

.showcase-stage:has(.showcase-panel-wide:not([hidden])) {
  aspect-ratio: 1426 / 587;
}

.showcase-stage a {
  width: 100%;
  height: 100%;
  display: block;
}

.showcase-stage a[hidden] {
  display: none;
}

.showcase-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease;
}

.showcase-stage a:hover img {
  transform: scale(1.006);
}

.showcase-stage .showcase-panel-wide img {
  object-fit: contain;
  object-position: center;
}

.steps {
  border-top: 1px solid var(--border-strong);
}

.step {
  min-height: 118px;
  padding: 27px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
}

.step > span {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 750;
}

.step h3 {
  margin-bottom: 8px;
}

.code-row {
  max-width: 680px;
  min-height: 46px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  overflow: hidden;
}

.code-row code {
  overflow-x: auto;
  white-space: nowrap;
  font-size: 14px;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

footer span:first-child {
  color: var(--text);
  font-weight: 750;
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .terminal-card {
    max-width: 640px;
  }

}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .header-inner,
  main,
  footer {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .header-inner {
    min-height: 60px;
    gap: 14px;
  }

  .wordmark {
    flex: 0 0 auto;
  }

  .wordmark img {
    width: 28px;
    height: 28px;
  }

  .header-actions {
    min-width: 0;
  }

  .github-link {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .hero {
    padding: 72px 0 68px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .hero-description {
    font-size: 16px;
  }

  .terminal-card pre {
    max-width: 100%;
    padding: 26px 18px 32px;
    font-size: 12px;
  }

  .terminal-card pre code {
    display: block;
    min-width: max-content;
  }

  .section {
    padding: 76px 0;
  }

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

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

  .feature-card {
    min-height: 220px;
    padding: 24px;
  }

  .product-showcase {
    margin-top: 32px;
  }

  .showcase-tabs {
    overflow-x: auto;
  }

  .showcase-tabs button {
    flex: 0 0 auto;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  footer {
    min-height: 100px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
