/* Sizes are in rem and the root font-size scales with the viewport,
   so the whole composition keeps the proportions of the 1440px design. */
:root {
  --bg: #0a0a0c;
  --orange: #ff7f24;
  --orange-button: #e8650f; /* darker so the white label reads better */
  font-size: clamp(14px, 1.1111vw, 22px); /* 16px at 1440 */
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 3rem 4.5rem;
  background: var(--bg) url("assets/hero.webp") center / cover no-repeat;
  isolation: isolate;
}

/* soft scrim so the copy stays readable at any crop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 8, 10, .55), rgba(8, 8, 10, 0) 45%),
    linear-gradient(to right, rgba(8, 8, 10, .35), rgba(8, 8, 10, 0) 55%);
}

.top {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: .2em;
}

.bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.pitch h1 {
  font-size: 5.5rem;
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -.008em;
}

.pitch p {
  max-width: 30.5rem;
  margin-top: 1.9rem;
  font-size: 1.1875rem;
  line-height: 1.5;
  letter-spacing: .005em;
  color: rgba(255, 255, 255, .86);
}

.cards {
  flex: none;
  width: 29.375rem;
  display: grid;
  gap: .625rem;
}

/* Frosted glass: a lit top edge, a soft fill that fades downward, and a deep shadow */
.card {
  padding: 1.2rem 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05) 60%),
    rgba(24, 24, 28, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 24px 48px -16px rgba(0, 0, 0, .6),
    0 2px 6px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}

/* Cards arrive one after the other, like notifications */
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.card { animation: card-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.card:nth-child(1) { animation-delay: .35s; }
.card:nth-child(2) { animation-delay: .9s; }
.cards { animation: cards-ready 0s 1.6s both; pointer-events: none; }
@keyframes cards-ready { to { pointer-events: auto; } }

/* Easter egg: Approve resolves the job and the cards float away, last one first */
@keyframes card-out {
  to { opacity: 0; transform: translateY(-10px) scale(.97); filter: blur(4px); visibility: hidden; }
}
.btn.primary:active { transform: scale(.96); }
.cards.resolved .card { animation: card-out .45s cubic-bezier(.4, 0, .6, 1) forwards; }
.cards.resolved .card:nth-child(1) { animation-delay: .12s; }
.cards.resolved .card:nth-child(2) { animation-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .cards.resolved .card { animation: none; visibility: hidden; }
  .cards { animation: none; pointer-events: auto; }
}

.card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .58);
}

.card .meta .source { display: inline-flex; align-items: center; gap: .5rem; }

.card .dot {
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 127, 36, .18), 0 0 10px rgba(255, 127, 36, .6);
}

.card h2 {
  margin-top: .75rem;
  max-width: 24rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.005em;
}

.card p {
  margin-top: .45rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
}

.card.action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .85rem .85rem 1.35rem;
}

.card.action p {
  margin: 0;
  max-width: 15rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

.buttons {
  display: flex;
  gap: .5rem;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: .9063rem;
  font-weight: 500;
  letter-spacing: .005em;
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .92);
}
.btn.primary {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s;
  background: #fff;
  color: #0a0a0c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -4px rgba(255, 255, 255, .35);
}

/* Book a demo */
.cta {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  margin-top: 2rem;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange-button);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s;
}
.cta:hover { filter: brightness(1.08); }
.cta:focus-visible, .demo :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.demo {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.25rem;
  background: #161618;
  color: #fff;
  font-family: inherit;
}
.demo::backdrop { background: rgba(4, 4, 6, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.demo-form { position: relative; padding: 2rem 2rem 1.75rem; }
.demo-step { display: grid; gap: 1rem; }
.demo-step[hidden] { display: none; }
.demo h2 { font-size: 1.75rem; font-weight: 500; letter-spacing: -.01em; padding-right: 2rem; }
.demo .lede { margin-top: -.4rem; color: rgba(255, 255, 255, .72); line-height: 1.5; }

.demo label { display: grid; gap: .4rem; font-size: .9375rem; font-weight: 500; }
.demo em { font-style: normal; font-weight: 400; color: rgba(255, 255, 255, .5); }
.demo input:not([type=radio]), .demo textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .6rem;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.demo textarea { resize: vertical; }
.demo input:focus, .demo textarea:focus { border-color: var(--orange); outline: none; }

.demo fieldset { border: 0; padding: 0; min-width: 0; }
.demo legend { padding: 0; margin-bottom: .4rem; font-size: .9375rem; font-weight: 500; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.choices label { display: block; position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span {
  display: flex; align-items: center; justify-content: center;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .6rem;
  font-weight: 500;
  white-space: nowrap;
}
.choices input:checked + span { border-color: var(--orange); background: rgba(255, 127, 36, .14); }
.choices input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.demo .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo .fine { margin-top: -.25rem; font-size: .8125rem; line-height: 1.45; color: rgba(255, 255, 255, .55); text-align: center; }
.demo .fine a { color: rgba(255, 255, 255, .8); }
.demo .error { color: #ff9a8a; font-size: .9375rem; }

.demo .submit {
  height: 3rem;
  margin-top: .25rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange-button);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.demo .close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 1.4rem; line-height: 1;
  cursor: pointer;
}

/* Tablet and phone: stack the copy above the cards */
@media (max-width: 900px) {
  :root { font-size: 16px; }

  .hero {
    padding: 1.25rem 1.5rem 2.5rem;
    background-position: 72% center;
    gap: 3rem;
  }

  .hero::before {
    background: linear-gradient(to top, rgba(8, 8, 10, .82), rgba(8, 8, 10, .2) 70%, rgba(8, 8, 10, .35));
  }

  .bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .pitch h1 { font-size: clamp(2.75rem, 11vw, 4.5rem); }
  .pitch p { margin-top: 1.25rem; font-size: 1.0625rem; max-width: 34rem; }
  .cards { width: 100%; max-width: 29.375rem; }
}

@media (max-width: 420px) {
  .hero { padding-inline: 1.125rem; }
  .card.action { flex-direction: column; align-items: flex-start; }
  .card.action p { max-width: none; }
  .demo-form { padding: 1.5rem 1.25rem 1.25rem; }
  .choices { grid-template-columns: repeat(2, 1fr); }
}

/* Privacy policy */
.legal { max-width: 44rem; margin: 0 auto; padding: 1.25rem 1.5rem 5rem; }
.legal .logo { color: #fff; text-decoration: none; }
.legal article { margin-top: 3.5rem; }
.legal h1 { font-size: 2.75rem; font-weight: 500; letter-spacing: -.01em; }
.legal .updated { margin-top: .5rem; color: rgba(255, 255, 255, .55); }
.legal h2 { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 600; }
.legal p, .legal li { margin-top: .9rem; font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-top: .5rem; }
.legal strong { color: #fff; font-weight: 600; }
.legal a { color: #fff; }

@media (max-width: 900px) {
  .legal h1 { font-size: 2.25rem; }
}
