@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #15252d;
  --ink-2: #254250;
  --ink-3: #31576a;
  --paper: #f8f8f8;
  --muted: #9fb2bc;
  --orange: #e75e15;
  --orange-soft: #f2a96f;
  --cool: #5f8aa0;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background: a slow orange glow and a faint grid. */
.glow {
  position: fixed;
  inset: -30vmax;
  z-index: -2;
  background:
    radial-gradient(40vmax 40vmax at 75% 30%, rgb(231 94 21 / 0.28), transparent 60%),
    radial-gradient(35vmax 35vmax at 15% 80%, rgb(95 138 160 / 0.25), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
.grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(248 248 248 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(248 248 248 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes drift {
  to {
    transform: translate(-4vmax, 3vmax) rotate(8deg);
  }
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 48px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.mark {
  width: 40px;
  height: 40px;
}
.hook {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.theirs {
  stroke: var(--orange);
  animation: draw 0.9s 0.5s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
.ours {
  stroke: var(--paper);
  animation: draw 0.9s 0.2s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
.over {
  stroke: var(--orange);
  opacity: 0;
  animation: show 0.01s 1.4s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes show {
  to {
    opacity: 1;
  }
}

.lang {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--paper);
  background: rgb(248 248 248 / 0.06);
  border: 1px solid rgb(248 248 248 / 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.lang:hover {
  background: rgb(248 248 248 / 0.12);
  border-color: var(--orange);
}
.lang:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Main layout */
main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgb(231 94 21 / 0.12);
  border: 1px solid rgb(231 94 21 / 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-soft);
  opacity: 0;
  animation: rise 0.7s 0.3s forwards;
}
.ping {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange);
  animation: ping 1.6s ease-out infinite;
}
@keyframes ping {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h1 > span {
  display: block;
  opacity: 0;
  animation: rise 0.7s 0.45s forwards;
}
.struck {
  text-decoration: none;
  color: var(--paper);
  opacity: 0;
  /* The strike is a background strip, so it crosses every line when the phrase wraps. */
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 54% / 0% 0.11em;
  animation:
    show-text 0.7s 0.6s forwards,
    strike 0.7s 1.4s cubic-bezier(0.7, 0, 0.2, 1) forwards,
    fade 0.6s 2s forwards;
}
@keyframes show-text {
  to {
    opacity: 1;
  }
}
@keyframes strike {
  to {
    background-size: 100% 0.11em;
  }
}
@keyframes fade {
  to {
    color: rgb(248 248 248 / 0.5);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lead {
  max-width: 34em;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  opacity: 0;
  animation: rise 0.7s 2.1s forwards;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid rgb(248 248 248 / 0.08);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  animation: rise 0.6s forwards;
}
.facts li:nth-child(1) {
  animation-delay: 2.3s;
}
.facts li:nth-child(2) {
  animation-delay: 2.4s;
}
.facts li:nth-child(3) {
  animation-delay: 2.5s;
}
.facts li::before {
  content: "✓ ";
  color: var(--orange);
  font-weight: 700;
}
.note {
  margin: 24px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0;
  animation: rise 0.6s 2.7s forwards;
}

/* Demo: an email arrives, the card moves along its path. */
.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: rise 0.8s 1s forwards;
}
.mail {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 360px);
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.6);
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transition:
    opacity 0.45s,
    transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.mail.on {
  opacity: 1;
  transform: none;
}
.mail-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    var(--orange) center / 20px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315252d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
.mail-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.9rem;
}
.mail-text span {
  color: #52646e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card {
  width: min(100%, 400px);
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--ink-2), #1c3340);
  border: 1px solid rgb(248 248 248 / 0.1);
  box-shadow:
    0 40px 80px -30px rgb(0 0 0 / 0.7),
    inset 0 1px 0 rgb(248 248 248 / 0.06);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-8px) rotate(-0.6deg);
  }
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-head > span:last-child {
  display: flex;
  flex-direction: column;
}
.role {
  font-size: 0.85rem;
  color: var(--muted);
}
.logo-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ink-3);
  font-weight: 800;
}

.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 26px 0 18px;
  padding: 0;
  list-style: none;
}
.path::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 8px;
  height: 2px;
  background: var(--ink-3);
}
.path::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 8px;
  height: 2px;
  width: calc(var(--p, 1) * 20%);
  background: linear-gradient(90deg, var(--cool), var(--orange));
  transition: width 0.7s cubic-bezier(0.6, 0, 0.2, 1);
}
.path li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
}
.path i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--ink-3);
  transition:
    background 0.4s,
    border-color 0.4s,
    transform 0.4s;
}
.path li.done i {
  background: var(--cool);
  border-color: var(--cool);
}
.path li.done span {
  color: var(--paper);
}
.path li.now i {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.25);
  box-shadow: 0 0 0 0 rgb(231 94 21 / 0.6);
  animation: pulse 1.4s infinite;
}
.path li.now span {
  color: var(--paper);
  font-weight: 700;
}
@keyframes pulse {
  to {
    box-shadow: 0 0 0 12px rgb(231 94 21 / 0);
  }
}

.stage {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(231 94 21 / 0.15);
  color: var(--orange-soft);
  font-size: 0.8rem;
  font-weight: 700;
}
.stage.bump {
  animation: bump 0.5s;
}
@keyframes bump {
  40% {
    transform: scale(1.12);
  }
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.confetti b {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: burst 1.3s cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
}
@keyframes burst {
  to {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(16px, 4vw, 48px) 28px;
  font-size: 0.8rem;
  color: var(--muted);
}
summary {
  cursor: pointer;
}
summary:hover {
  color: var(--paper);
}
.legal {
  max-width: 34em;
  margin-top: 10px;
  line-height: 1.55;
}
.legal a {
  color: var(--orange-soft);
}

@media (max-width: 860px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo {
    margin-top: 8px;
  }
}

/* biome-ignore-all lint/complexity/noImportantStyles: reduced motion must win over every animation. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Link to the developer's site. */
.dev {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgb(231 94 21 / 0.45);
  background: rgb(231 94 21 / 0.1);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.dev b {
  color: var(--orange-soft);
}
.dev:hover {
  background: rgb(231 94 21 / 0.22);
  transform: translateY(-1px);
}
.dev:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
