:root {
  --font-sf-pro: "SF Pro", "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sf-rounded: "SF Pro Rounded", "SF Pro", "SF Pro Display",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-dm-mono: "DM Mono", "SF Mono", "Roboto Mono", Consolas, monospace;
  --bg: #060606;
  --bg-soft: #101010;
  --panel: #1c1c21;
  --panel-green: #12231e;
  --panel-purple: #1f1223;
  --text: #ffffff;
  --muted: #808080;
  --tag-muted: #8c8c8c;
  --line: #333333;
  --green: #3ecfa0;
  --purple: #ce6fed;
  --orange: #f24e1e;
  --red: #ff7262;
  --blue: #1abcfe;
  --figma-gradient: linear-gradient(
    90deg,
    #f24e1e 0%,
    #ff7262 25%,
    #a259ff 50.480771%,
    #1abcfe 74.519229%,
    #0acf83 99.989998%
  );
  --agent-name-gradient: linear-gradient(
    90deg,
    #ffffff 0%,
    #aeaeae 47.596154%,
    #ffffff 99.989998%
  );
  --radius-sm: 8px;
  --radius-md: 16px;
  --grid-gap: 16px;
  --grid-margin: clamp(16px, 4.375vw, 56px);
  --grid-max-width: 1168px;
  --grid-width: min(calc(100vw - (var(--grid-margin) * 2)), var(--grid-max-width));
  --grid-col: calc((var(--grid-width) - (var(--grid-gap) * 11)) / 12);
  --grid-column-2-start: calc(
    ((100vw - var(--grid-width)) / 2) + var(--grid-col) + var(--grid-gap)
  );
  --span-6: calc((var(--grid-col) * 6) + (var(--grid-gap) * 5));
  --span-7: calc((var(--grid-col) * 7) + (var(--grid-gap) * 6));
  --span-8: calc((var(--grid-col) * 8) + (var(--grid-gap) * 7));
  --span-10: calc((var(--grid-col) * 10) + (var(--grid-gap) * 9));
  --span-12: var(--grid-width);
  --content: var(--span-10);
  --copy: var(--span-6);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sf-pro);
  letter-spacing: 0;
}

body.light-theme {
  --bg: #f7f7f7;
  --bg-soft: #ffffff;
  --panel: #ececf0;
  --panel-green: #e4f8f0;
  --panel-purple: #f5e9f8;
  --text: #0c0c0c;
  --muted: #666666;
  --tag-muted: #666666;
  --line: #d8d8d8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 28rem),
    var(--bg);
}

.grid-lines {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -2;
  width: var(--span-12);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  pointer-events: none;
  transform: translateX(-50%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 7rem, #000 73%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 0, #000 100%, transparent 100%);
  mask-composite: intersect;
}

.grid-lines span {
  min-width: 0;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-image: linear-gradient(
      180deg,
      rgba(6, 6, 6, 1),
      rgba(51, 51, 51, 1) 50%,
      rgba(6, 6, 6, 1)
    )
    1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.025) 18%,
    rgba(255, 255, 255, 0.015) 82%,
    rgba(255, 255, 255, 0)
  );
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  padding-inline: calc((100vw - var(--grid-width)) / 2);
  color: #ffffff;
  background: rgba(6, 6, 6, 0.5);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, #060606, #333333 20%, #333333 80%, #060606) 1;
  backdrop-filter: blur(32px);
}

.brand {
  width: 180px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.nav-links a,
.brand,
.language-option,
.theme-toggle,
.cta {
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.brand:hover,
.language-option:hover,
.theme-toggle:hover,
.cta:hover {
  opacity: 0.88;
  color: white;
}

.nav-links a:focus-visible,
.brand:focus-visible,
.language-option:focus-visible,
.theme-toggle:focus-visible,
.cta:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* Header actions */
.header-actions {
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-toggle {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-option {
  min-width: 34px;
  height: 24px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.language-option.is-active {
  color: #060606;
  background: #ffffff;
}

.theme-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform-origin: center;
}

.theme-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  padding: 8px 10px;
  color: #ffffff;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover::after,
.theme-toggle:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms ease, stroke 260ms ease;
}

.sun-shape {
  opacity: 0;
  transform: scale(0.7) rotate(-24deg);
  transform-origin: 12px 12px;
  transition: opacity 180ms ease, transform 260ms ease;
}

.moon-shape {
  opacity: 1;
  transform-origin: 12px 12px;
  transition: opacity 180ms ease, transform 260ms ease;
}

body.light-theme .sun-shape {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.light-theme .moon-shape {
  opacity: 0;
  transform: scale(0.7) rotate(24deg);
}

.theme-toggle:hover svg {
  transform: rotate(-12deg) scale(1.08);
}

.theme-toggle.is-animating svg {
  animation: moon-click 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.section-shell {
  width: min(100%, var(--content));
  margin: 0 auto;
}

main > .section-shell:not(.hero) {
  margin-left: var(--grid-column-2-start);
  margin-right: auto;
}

.how-gradient-section {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.how-gradient-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -250px;
  left: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 6, 0) 0%,
    rgba(6, 6, 6, 0.8) 14%,
    rgba(6, 6, 6, 0.8) 86%,
    rgba(6, 6, 6, 0) 100%
  );
}

.how-gradient-section > .section-shell {
  margin-left: var(--grid-column-2-start);
  margin-right: auto;
}

.hero {
  min-height: 1310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 104px;
}

.hero-title-block {
  position: relative;
  width: fit-content;
  max-width: 100%;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title-block .beta-pill,
.figma-title,
.agent-title,
.hero-copy,
.hero-email-form,
.hero-preview {
  animation: hero-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title-block .beta-pill {
  animation-delay: 80ms;
}

.figma-title {
  animation-delay: 160ms;
}

.agent-title {
  animation-delay: 260ms;
}

.hero-copy {
  animation-delay: 360ms;
}

.hero-email-form {
  animation-delay: 440ms;
}

.hero-preview {
  animation-delay: 540ms;
}

.figma-title,
.agent-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  color: #ffffff;
  font-size: 110px;
  font-weight: 600;
  line-height: 1;
}

.figma-word {
  min-width: 290px;
  color: transparent;
  background: var(--figma-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 115px;
  text-align: center;
}

.agent-title {
  position: relative;
  width: 100%;
  height: 1.36em;
  display: block;
  overflow: visible;
  clip-path: inset(0 -100vw 0 0);
  font-size: 106px;
  line-height: 0.97;
  transform: translateZ(0);
}

.code-app-name {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  width: max-content;
  color: transparent;
  background: var(--agent-name-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  backface-visibility: hidden;
  line-height: inherit;
  will-change: transform, opacity, filter;
}

.code-app-name.is-leaving {
  animation: code-app-exit 360ms cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.code-app-name.is-entering {
  animation: code-app-enter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.code-app-name.is-entering.is-initial {
  animation-delay: 460ms;
}

.figma-mark {
  width: 56px;
  height: 86px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.hero-arrow-swap {
  position: relative;
  width: 58px;
  height: 95px;
  flex: 0 0 58px;
  display: inline-block;
  overflow: hidden;
}

.hero-arrow-swap img {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 220ms ease;
}

.hero-arrow-default {
  top: 12px;
  width: 55px;
  height: 71px;
  opacity: 1;
}

.hero-arrow-hover {
  top: 0;
  width: 58px;
  height: 95px;
  opacity: 0;
  transform: translate(-50%, 100%);
}

/* Localized hero arrow */
body[data-language="en"] .hero-arrow-swap {
  width: 96px;
  flex-basis: 96px;
}

body[data-language="en"] .hero-arrow-hover {
  top: 16px;
  width: 96px;
  height: 85px;
}

.figma-title:hover .hero-arrow-default {
  opacity: 0;
  transform: translate(-50%, -70%);
}

.figma-title:hover .hero-arrow-hover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.beta-pill {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 44px;
  margin-bottom: 32px;
  background-color: black;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 33px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.hero-preview,
.product-shot {
  width: min(100%, var(--content));
}

.hero-preview {
  height: 542px;
  margin-top: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e0e0e;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.42);
  transition:
    box-shadow 260ms ease,
    transform 260ms ease;
}

.hero-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 38px 130px rgba(0, 0, 0, 0.52);
}

.demo-bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #1c1c21;
}

.demo-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.demo-dot-red {
  background: #ff6058;
}

.demo-dot-yellow {
  background: #ffbe2e;
}

.demo-dot-green {
  background: #2aca44;
}

.demo-window-title {
  flex: 1 1 auto;
  color: #5c5a6a;
  font-family: var(--font-dm-mono);
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.demo-inner-wrap {
  position: relative;
  height: calc(100% - 52px);
}

.demo-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.demo-panel {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.demo-panel:last-child {
  border-right: 0;
}

.demo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #5c5a6a;
  font-family: var(--font-dm-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.demo-label svg {
  flex: 0 0 auto;
}

.demo-label svg,
.demo-figma-topbar svg {
  fill: currentColor;
  stroke: currentColor;
}

.demo-label span {
  padding: 3px 8px;
  border-radius: 4px;
  background: #1c1c21;
}

.demo-figma-frame {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #1c1c21;
}

.demo-figma-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #5c5a6a;
}

.demo-figma-title,
.demo-figma-layer-text {
  color: #9896a8;
  font-family: var(--font-dm-mono);
  font-size: 11px;
  line-height: 1.2;
}

.demo-figma-layers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-figma-layer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 6px;
}

.demo-figma-layer.is-selected {
  background: rgba(123, 110, 245, 0.15);
}

.demo-figma-layer.is-selected .demo-figma-layer-text {
  color: #c4bdff;
}

.demo-figma-layer-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: #222228;
}

.demo-layer-purple {
  border: 1px solid rgba(123, 110, 245, 0.4);
  background: rgba(123, 110, 245, 0.25);
}

.demo-layer-round {
  border-radius: 50%;
}

.demo-layer-green {
  background: rgba(62, 207, 160, 0.2);
}

.demo-code-output {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #9896a8;
  font-family: var(--font-dm-mono);
  font-size: 11.5px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.demo-key {
  color: #a99cf8;
}

.demo-string {
  color: #3ecfa0;
}

.demo-comment {
  color: #5c5a6a;
}

.demo-name {
  color: #f5c842;
}

.demo-value {
  color: #f08fa0;
}

.demo-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #7b6ef5;
  box-shadow: 0 0 30px rgba(123, 110, 245, 0.4);
  transform: translate(-50%, -50%);
  animation: demo-float 3s ease-in-out infinite;
}

.demo-arrow svg {
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* Hero subtitle */
.hero-copy {
  width: min(100%, var(--copy));
  margin: -28px 0 0;
  color: #ffffff;
  font-family: var(--font-sf-rounded);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}

.hero-email-form {
  width: min(100%, var(--copy));
  margin-top: 28px;
}

.hero-form-message {
  width: min(100%, var(--copy));
  margin: 10px 0 0;
}

.intro-block {
  position: relative;
  z-index: 0;
  width: min(100%, var(--copy));
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 176px;
}

.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.intro-block h1,
.intro-block h2 {
  margin: 0;
  color: var(--text);
  font-size: 56px;
  font-weight: 400;
  line-height: 0.96;
}

.intro-block p:not(.section-kicker),
.signup-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 120px;
}

.step {
  min-height: 218px;
  display: grid;
  grid-template-columns: 48px minmax(0, 443px);
  justify-content: flex-start;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, #060606, #333333 18%, #333333 82%, #060606) 1;
  transition:
    border-image-source 240ms ease,
    transform 240ms ease;
}

.step.is-visible:hover {
  transform: translateY(-2px);
  border-image-source: linear-gradient(90deg, #060606, #444444 18%, #444444 82%, #060606);
}

.step:first-child,
.step:nth-child(2) {
  min-height: 237px;
}

.step-index {
  color: var(--muted);
  font-family: var(--font-dm-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  max-width: 350px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.tool-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  color: var(--tag-muted);
  font-family: var(--font-dm-mono);
  background: var(--panel);
}

.tag {
  min-height: 32px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1;
}

.tag-green {
  color: var(--green);
  background: var(--panel-green);
}

.tag-purple {
  color: var(--purple);
  background: var(--panel-purple);
}

.features-block {
  width: min(100%, var(--span-7));
  padding-top: 176px;
}

.compatibility {
  width: min(100%, 774px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 132px;
}

main > .compatibility.section-shell {
  margin-left: auto;
  margin-right: auto;
}

.compatibility h2 {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.tool-row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tool-tag {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.tool-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.figma-icon {
  width: 12px;
}

.product-shot {
  padding-top: 120px;
}

.code-preview {
  min-height: 514px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0d0d0d;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.36);
  transition:
    border-color 240ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.code-preview.is-visible:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
}

.code-toolbar {
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #151515;
  font-size: 14px;
}

pre {
  margin: 0;
  padding: 48px;
  color: #d8d8d8;
  font-size: 20px;
  line-height: 1.75;
  white-space: pre-wrap;
}

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

.signup {
  width: min(100%, 576px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 220px 0 132px;
  text-align: center;
}

main > .signup.section-shell {
  margin-left: auto;
  margin-right: auto;
}

.signup-copy {
  width: min(100%, 532px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.signup-copy h2 {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.signup-copy p {
  width: 100%;
  text-align: center;
}

.email-form {
  width: min(100%, 576px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 24px;
  border: 2px solid rgb(34, 34, 34);
  border-radius: var(--radius-md);
  background: #30302e;
}

/* Beta input */
input {
  min-width: 0;
  flex: 1 1 auto;
  height: 46px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-sf-rounded);
  font-size: 18px;
  line-height: 1;
}

input::placeholder {
  color: #999999;
}

/* Beta CTA */
.cta {
  position: relative;
  height: 56px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 16px 24px;
  color: #ffffff;
  background:
    linear-gradient(#1a1a1a, #1a1a1a) padding-box,
    linear-gradient(90deg, #434343 0%, #1e1e1e 50%, #434343 100%) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  background-size: 100% 100%, 240% 100%;
  box-shadow: none;
  transition:
    background-position 420ms ease,
    box-shadow 220ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.cta span {
  position: relative;
  z-index: 1;
}

.cta-arrow {
  width: 24px;
  height: 24px;
  flex: 0 0 0;
  opacity: 0;
  margin-left: 0;
  background: url("assets/icons/arrowButton.svg") center / 24px 24px no-repeat;
  transform: translateX(-8px);
  transition:
    flex-basis 180ms ease,
    opacity 180ms ease,
    margin-left 180ms ease,
    transform 180ms ease;
}

.cta:hover {
  min-height: 56px;
  opacity: 1;
  background:
    linear-gradient(#1a1a1a, #1a1a1a) padding-box,
    linear-gradient(90deg, #060606 0%, #404040 50%, #060606 100%) border-box;
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, 0 0;
  box-shadow: none;
}

.cta:hover .cta-arrow {
  flex-basis: 24px;
  opacity: 1;
  margin-left: 8px;
  transform: translateX(0);
}

.cta:disabled {
  cursor: wait;
  opacity: 0.72;
}

.cta:disabled .cta-arrow {
  flex-basis: 0;
  opacity: 0;
  margin-left: 0;
  transform: translateX(-8px);
}

.cta:active {
  transform: translateY(0);
}

.form-message {
  min-height: 20px;
  margin: -24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.form-message.is-error {
  color: #ff7262;
}

/* Footer */
.site-footer {
  height: 150px;
  overflow: hidden;
  background: rgba(6, 6, 6, 0.5);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, #060606 0%, #333333 19.711539%, #333333 80%, #060606 100%) 1;
  backdrop-filter: blur(32px);
}

.footer-inner {
  position: relative;
  width: min(100%, var(--grid-width));
  height: 100%;
  margin: 0 auto;
}

.footer-brand {
  position: absolute;
  left: 0;
  top: 48px;
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #060606 0%, #666666 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 200px;
  font-weight: 600;
  line-height: 0.705;
  white-space: nowrap;
}

.footer-email {
  position: absolute;
  right: 0;
  top: 119px;
  color: #cccccc;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.footer-email:hover {
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(10px);
  transition:
    background-color 200ms ease,
    border-color 240ms ease,
    box-shadow 260ms ease,
    color 200ms ease,
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 760ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.step:nth-child(2) {
  --reveal-delay: 70ms;
}

.step:nth-child(3) {
  --reveal-delay: 140ms;
}

.step:nth-child(4) {
  --reveal-delay: 210ms;
}

.tool-tag:nth-child(2) {
  --reveal-delay: 60ms;
}

.tool-tag:nth-child(3) {
  --reveal-delay: 120ms;
}

.tool-tag:nth-child(4) {
  --reveal-delay: 180ms;
}

.tool-tag:nth-child(5) {
  --reveal-delay: 240ms;
}

.step.reveal-on-scroll.is-visible:hover,
.code-preview.reveal-on-scroll.is-visible:hover {
  transform: translateY(-2px);
}

@keyframes hero-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes demo-float {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, calc(-50% - 6px));
  }
}

@keyframes code-app-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    filter: blur(8px);
  }

  70% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes code-app-exit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
    filter: blur(8px);
  }
}

@keyframes moon-click {
  0% {
    transform: rotate(0deg) scale(1);
  }

  45% {
    transform: rotate(-28deg) scale(0.82);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

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

@media (max-width: 900px) {
  .brand {
    width: auto;
  }

  .nav-links {
    max-width: 48vw;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .figma-title,
  .agent-title {
    font-size: 76px;
  }

  .figma-mark {
    width: 42px;
    height: 64px;
  }

  .demo-panel {
    padding: 22px;
  }

  .demo-code-output {
    font-size: 10.5px;
    line-height: 1.8;
  }
}

@media (max-width: 680px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    column-gap: 16px;
    padding: 0 16px;
    overflow: hidden;
  }

  .brand {
    min-width: 0;
    font-size: 20px;
  }

  .nav-links {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .header-actions {
    width: auto;
    min-width: max-content;
    justify-self: end;
    gap: 8px;
  }

  .language-toggle {
    height: 30px;
    padding: 2px;
  }

  .language-option {
    min-width: 30px;
    height: 24px;
    padding: 0 7px;
    font-size: 10px;
  }

  .section-shell,
  .intro-block,
  .features-block,
  .compatibility,
  .signup {
    width: min(calc(100% - 32px), var(--content));
  }

  main > .section-shell:not(.hero) {
    margin-left: auto;
    margin-right: auto;
  }

  .how-gradient-section > .section-shell {
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    width: calc(100% - 24px);
    min-height: 1020px;
    padding-top: 96px;
  }

  .hero-title-block {
    width: 100%;
    max-width: 100%;
    min-height: 182px;
    align-items: flex-start;
  }

  .figma-title {
    font-size: clamp(50px, 14vw, 56px);
  }

  body[data-language="en"] .figma-title {
    font-size: clamp(44px, 12.4vw, 50px);
  }

  .agent-title {
    font-size: clamp(50px, 14vw, 56px);
  }

  .figma-title {
    width: auto;
    max-width: 100%;
    gap: 6px;
    justify-content: flex-start;
  }

  .figma-word {
    min-width: 0;
    line-height: 1.08;
  }

  .figma-mark {
    width: 0.46em;
    height: 0.72em;
  }

  .hero-arrow-swap {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    overflow: visible;
    color: #ffffff;
    line-height: 1;
  }

  .hero-arrow-swap::before {
    content: "à";
  }

  body[data-language="en"] .hero-arrow-swap::before {
    content: "to";
  }

  .hero-arrow-swap img {
    display: none;
  }

  body[data-language="en"] .hero-arrow-swap {
    width: auto;
    flex-basis: auto;
  }

  .agent-title {
    width: 100%;
  }

  .hero-copy,
  .hero-email-form,
  .hero-preview {
    width: 100%;
  }

  .hero-copy {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    inline-size: calc(100vw - 24px);
    max-inline-size: calc(100vw - 24px);
    align-self: stretch;
    margin-top: 28px;
    line-height: 1.48;
    white-space: normal;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .hero-copy span {
    display: block;
    max-width: 100%;
    white-space: normal;
  }

  .hero-preview {
    height: 430px;
  }

  .demo-bar {
    height: 44px;
    padding: 0 12px;
  }

  .demo-window-title {
    font-size: 10px;
  }

  .demo-inner-wrap {
    height: calc(100% - 44px);
  }

  .demo-panel {
    padding: 14px;
  }

  .demo-label {
    margin-bottom: 12px;
    font-size: 9px;
  }

  .demo-label span {
    padding: 3px 6px;
  }

  .demo-figma-frame {
    padding: 10px;
  }

  .demo-figma-topbar {
    margin-bottom: 10px;
  }

  .demo-figma-layer {
    gap: 6px;
    min-height: 24px;
    padding: 5px 7px;
  }

  .demo-figma-title,
  .demo-figma-layer-text,
  .demo-code-output {
    font-size: 9px;
  }

  .demo-code-output {
    line-height: 1.68;
  }

  .demo-arrow {
    width: 36px;
    height: 36px;
  }

  .demo-arrow svg {
    width: 14px;
    height: 14px;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 16px;
    text-align: left;
  }

  .intro-block h1,
  .intro-block h2,
  .signup-copy h2 {
    font-size: 38px;
    line-height: 1.05;
    white-space: normal;
  }

  .intro-block p:not(.section-kicker),
  .signup-copy p,
  .section-kicker,
  .compatibility h2 {
    font-size: 18px;
    line-height: 1.55;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: stretch;
  }

  .tool-tag {
    font-size: 16px;
  }

  .tool-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  pre {
    padding: 28px;
    font-size: 15px;
  }

  .email-form {
    align-items: stretch;
    flex-direction: column;
    padding: 8px;
  }

  input {
    width: 100%;
    padding: 0 16px;
  }

  .cta {
    width: 100%;
  }

  .site-footer {
    height: 172px;
  }

  .footer-inner {
    width: min(calc(100% - 32px), var(--grid-width));
  }

  .footer-brand {
    left: 50%;
    top: auto;
    bottom: -2px;
    font-size: clamp(76px, 24vw, 108px);
    line-height: 0.8;
    transform: translateX(-50%);
  }

  .footer-email {
    top: 44px;
    left: 0;
    right: 0;
    z-index: 1;
    font-size: 14px;
    text-align: center;
  }
}
