@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --night: #1f1636;
  --dusk: #2e1f4d;
  --violet: #4a2f6b;
  --amber: #ffb43a;
  --stripe: #e8643a;
  --snow: #ffffff;
  --slate: #6b6478;
  --lilac: #d9d0ea;
  --lilac-muted: #b8acd0;
  --rule: #e4dfec;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--night);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 45%, var(--violet) 78%, #8a4e7a 100%);
  color: var(--snow);
}

.cable {
  position: absolute;
  left: 0;
  top: 100px;
  width: 100%;
  height: 120px;
  pointer-events: none;
}

/* Grip sits on the cable at 81.9% of the width, where the stretched curve is at y≈53. */
.gondola {
  position: absolute;
  left: calc(81.94% - 46px);
  top: 146px;
  width: 92px;
  height: 130px;
  overflow: visible;
}

/* Rotated inside the SVG, not on it: Chrome repaints SVG children as vectors each frame,
   while a transformed <svg> is rotated as a bitmap and aliases. */
.sway {
  transform: rotate(-4deg);
  transform-box: view-box;
  transform-origin: 46px 7px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-cta {
  padding: 10px 18px;
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 96px 0 56px;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

h1 {
  margin: 0;
  max-width: 1000px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: 0.923;
  letter-spacing: -0.035em;
}

.intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.lede {
  margin: 0;
  max-width: 520px;
  font-size: 20px;
  line-height: 30px;
  color: var(--lilac);
}

/* Signup form */

.signup {
  width: 100%;
  max-width: 520px;
}

.signup-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 24px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1.5px solid rgb(255 255 255 / 0.28);
}

.signup-field:focus-within {
  border-color: var(--amber);
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--snow);
  font: 17px/22px var(--sans);
  outline: none;
}

.signup input[type="email"]::placeholder {
  color: var(--lilac-muted);
}

.signup button {
  flex-shrink: 0;
  padding: 16px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--night);
  font: 600 16px/20px var(--sans);
  cursor: pointer;
}

.signup button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.signup button:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--snow);
  outline-offset: 3px;
}

.signup-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 0 24px;
}

.signup-notes p {
  margin: 0;
  font-size: 13px;
  line-height: 16px;
  color: #9c92ae;
}

.signup-notes .builder {
  font-size: 15px;
  line-height: 18px;
  font-style: italic;
  color: #ede6f7;
}

.signup-error {
  color: var(--amber) !important;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

/* Confirmed state, shown in place of the form. */
.signup-done {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 26px 10px 10px;
  border-radius: 999px;
  background: rgb(255 180 58 / 0.12);
  border: 1.5px solid var(--amber);
}

.signup-done[hidden] {
  display: none;
}

.signup-done .check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amber);
}

.signup-done strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.signup-done span {
  font-size: 15px;
  color: var(--lilac);
}

/* App window mock */

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.mountains {
  position: absolute;
  left: calc(-1 * var(--gutter));
  bottom: 0;
  width: calc(100% + 2 * var(--gutter));
  height: 260px;
}

.window {
  position: relative;
  display: flex;
  flex-shrink: 0;
  width: min(1180px, 100%);
  height: 420px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--snow);
  box-shadow: 0 -8px 60px rgb(15 10 30 / 0.45);
  color: #1d1b20;
}

.lights {
  display: flex;
  gap: 8px;
}

.lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.lights span:nth-child(1) {
  background: #ff5f57;
}
.lights span:nth-child(2) {
  background: #febc2e;
}
.lights span:nth-child(3) {
  background: #28c840;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  width: 210px;
  padding: 14px 10px;
  background: #efedf1;
  border-right: 1px solid #dedbe3;
  font-size: 13px;
  line-height: 16px;
}

.sidebar .lights {
  padding: 2px 6px 22px;
}

.sidebar h3 {
  margin: 0;
  padding: 0 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #8e8a94;
}

.sidebar h3 + ul + h3 {
  padding-top: 16px;
}

.sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar li {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
}

.sidebar li[aria-current] {
  background: #dcd9e0;
}

.sidebar li span {
  font-size: 12px;
  color: #6e6a74;
}

.detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 10px 16px;
}

.toolbar .lights {
  display: none;
}

.toolbar-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1px;
}

.toolbar-title b {
  font-size: 14px;
  line-height: 18px;
}

.toolbar-title small {
  font-size: 11px;
  line-height: 14px;
  color: #8e8a94;
}

.switcher {
  display: flex;
  padding: 2px;
  border-radius: 7px;
  background: #edebef;
  font-size: 12px;
  line-height: 16px;
}

.switcher span {
  padding: 4px 12px;
  color: #4a4650;
  font-weight: 500;
}

.switcher .on {
  border-radius: 5px;
  background: var(--snow);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
  color: #1d1b20;
  font-weight: 600;
}

.filter {
  padding: 8px 12px;
  border-block: 1px solid #eceaee;
}

.filter div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f4f3f5;
  font: 12px/16px var(--mono);
  color: #a5a1aa;
  white-space: nowrap;
}

.columns {
  display: flex;
  gap: 12px;
  padding: 12px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 290px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3f3f4;
}

.column h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 2px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8e8a94;
}

.column h4 span {
  font-weight: 400;
  color: #8e8a94;
}

.column.highlight h4 {
  color: #007aff;
}

/* Mirrors AgentCardView's terminal surface. */
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #2a2927;
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.15);
  font: 11px/14px var(--mono);
  color: rgb(235 235 245 / 0.6);
}

.card-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  color: #f5f4f2;
}

.card-title::before {
  content: ">";
  font-weight: 700;
  color: #d97757;
}

.card-title span {
  flex: 1;
}

.card-title svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.needs .card-title {
  font-weight: 600;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-status time {
  flex: 1;
  text-align: right;
}

.card-status .working {
  color: #d97757;
}

.tag {
  padding: 1px 6px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.12);
}

/* Waitlist CTA */

.cta {
  position: relative;
  overflow: hidden;
  padding: 160px var(--gutter) 120px;
}

.cta h2 {
  margin: 0 0 36px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 8.4vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.cta .signup {
  position: relative;
  max-width: 620px;
}

.cta .signup-field {
  padding: 8px 8px 8px 24px;
  background: transparent;
  border-color: var(--night);
}

.cta .signup input[type="email"] {
  color: var(--night);
}

.cta .signup input[type="email"]::placeholder {
  color: #8a8398;
}

.cta .signup button {
  background: var(--night);
  color: var(--amber);
}

.cta .signup button:focus-visible {
  outline-color: var(--night);
}

.cta .signup-notes {
  padding: 36px 0 0;
}

.cta .signup-notes p {
  font-size: 15px;
  line-height: 18px;
  color: var(--slate);
}

.cta .signup-error {
  color: var(--stripe) !important;
}

.cta .signup-done {
  background: rgb(255 180 58 / 0.16);
}

.cta .signup-done span {
  color: var(--slate);
}

.cta-cable {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 640px;
  pointer-events: none;
}

.cta-cable--narrow {
  display: none;
}

/* Grip on the wide cable at 77.1% of the width, y≈404. */
.cta .gondola {
  left: calc(77.08% - 46px);
  top: 397px;
}

/* Footer */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--slate);
}

footer .brand-small {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .brand-small img {
  width: 24px;
  height: 24px;
}

footer nav {
  display: flex;
  gap: 28px;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

/* Tablet: stack the intro, keep the window. */
@media (max-width: 1100px) {
  :root {
    --gutter: 48px;
  }

  .intro-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Phone: matches the 390px artboard. */
@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .nav {
    padding: 8px 0 0;
  }

  .nav-cta {
    display: none;
  }

  .brand {
    gap: 10px;
    font-size: 20px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .cable {
    top: 70px;
    height: 60px;
  }

  .gondola {
    left: calc(82% - 27px);
    top: 92px;
    width: 55px;
    height: 78px;
  }

  .intro {
    gap: 20px;
    padding: 96px 0 36px;
  }

  .eyebrow {
    font-size: 12px;
  }

  h1 {
    line-height: 50px;
  }

  .lede {
    font-size: 17px;
    line-height: 26px;
  }

  .signup-field,
  .cta .signup-field {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .signup input[type="email"] {
    padding: 16px 20px;
    border-radius: 14px;
    background: rgb(255 255 255 / 0.08);
    border: 1.5px solid rgb(255 255 255 / 0.28);
  }

  .signup input[type="email"]:focus {
    border-color: var(--amber);
  }

  .cta .signup input[type="email"] {
    background: transparent;
    border-color: var(--night);
  }

  .signup button {
    padding: 17px 20px;
    border-radius: 14px;
    font-size: 17px;
  }

  .signup-notes {
    align-items: center;
    gap: 4px;
    padding: 16px 0 0;
    text-align: center;
  }

  .signup-done {
    border-radius: 20px;
  }

  .stage {
    justify-content: flex-end;
    margin-right: calc(-1 * var(--gutter));
    padding-top: 4px;
  }

  .mountains {
    display: none;
  }

  .window {
    width: calc(100% - 0px);
    height: 330px;
    border-radius: 12px 0 0 0;
    border-right: 0;
  }

  .sidebar,
  .switcher,
  .toolbar > svg,
  .filter {
    display: none;
  }

  .toolbar {
    gap: 12px;
    height: auto;
    padding: 12px 14px;
    border-bottom: 1px solid #eceaee;
  }

  .toolbar .lights {
    display: flex;
    gap: 6px;
  }

  .toolbar .lights span {
    width: 10px;
    height: 10px;
  }

  .toolbar-title {
    flex: 0 1 auto;
  }

  .toolbar-title b {
    font-size: 13px;
  }

  .toolbar-title small {
    font-size: 10px;
  }

  .cta {
    padding: 88px var(--gutter) 170px;
  }

  .cta h2 {
    margin-bottom: 32px;
    font-size: 64px;
    line-height: 60px;
  }

  .cta .signup-notes {
    align-items: flex-start;
    padding-top: 24px;
    text-align: left;
  }

  .cta .signup-notes p {
    font-size: 14px;
    line-height: 21px;
  }

  .cta-cable--wide {
    display: none;
  }

  .cta-cable--narrow {
    display: block;
    inset: auto 0 0 0;
    height: 130px;
  }

  /* Grip on the narrow cable at 72% of the width, 94px above the bottom. */
  .cta .gondola {
    left: calc(72% - 27px);
    top: auto;
    bottom: 20px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px var(--gutter) 40px;
  }

  footer nav {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sway {
    animation: sway 6s ease-in-out infinite alternate;
  }

  @keyframes sway {
    from {
      transform: rotate(-4deg);
    }
    to {
      transform: rotate(-1.5deg);
    }
  }
}

/* Secondary pages */

.page-hero .intro {
  padding: 64px 0 96px;
}

.page-hero .signup-notes a {
  color: var(--lilac);
}

.prose {
  max-width: 680px;
  padding: 72px var(--gutter) 96px;
  font-size: 17px;
  line-height: 27px;
  color: #3d3650;
}

.prose h1 {
  margin-bottom: 24px;
  font-size: 56px;
  line-height: 56px;
  color: var(--night);
}
