:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e0d2;
  --ink: #111b37;
  --blue: #2f6df6;
  --blue-dark: #174fcf;
  --orange: #f26a3d;
  --lime: #d9f38b;
  --line: rgba(17, 27, 55, 0.18);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", "Avenir Next", sans-serif;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  transform: rotate(-7deg);
  box-shadow: 0 4px 0 var(--ink);
}

.wordmark-mark svg {
  width: 23px;
  height: 23px;
}

nav {
  display: flex;
  gap: 34px;
}

nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

nav a::after,
.manifesto-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
.manifesto-cta:hover::after,
.manifesto-cta:focus-visible::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  color: white;
  background: var(--ink);
  transform: translateY(-2px);
}

.hero {
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  align-items: center;
  gap: 56px;
  padding: 84px 0 104px;
}

.eyebrow {
  margin: 0 0 23px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 106, 61, 0.15);
}

h1,
h2,
blockquote {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(74px, 7.3vw, 112px);
  line-height: 0.84;
}

h1 em,
h2 em,
blockquote em {
  color: var(--blue);
  font-weight: 400;
}

.hero-description {
  max-width: 580px;
  margin: 40px 0 0;
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 21px;
}

.primary-cta {
  min-height: 57px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 var(--blue);
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.primary-cta svg {
  width: 19px;
  fill: currentColor;
}

.primary-cta:hover {
  background: var(--blue-dark);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.primary-cta:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--ink);
}

.availability {
  max-width: 150px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(17, 27, 55, 0.65);
}

.hero-aside {
  position: relative;
  min-height: 470px;
  align-self: center;
}

.hero-aside::before {
  content: "";
  position: absolute;
  inset: 32px 15px 15px 55px;
  border-radius: 50% 42% 48% 45%;
  background: var(--paper-deep);
  transform: rotate(-8deg);
}

.thought-card {
  position: absolute;
  z-index: 2;
  top: 58px;
  left: 5px;
  width: 276px;
  padding: 21px 23px;
  border: 2px solid var(--ink);
  border-radius: 18px 18px 4px 18px;
  background: white;
  box-shadow: 9px 10px 0 rgba(17, 27, 55, 0.1);
  transform: rotate(-3deg);
}

.thought-label {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thought-card p {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.05;
}

.thought-wave {
  height: 22px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.thought-wave i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--orange);
  animation: wave 1s ease-in-out infinite alternate;
}

.thought-wave i:nth-child(2) { animation-delay: -0.7s; }
.thought-wave i:nth-child(3) { animation-delay: -0.4s; }
.thought-wave i:nth-child(4) { animation-delay: -0.1s; }
.thought-wave i:nth-child(5) { animation-delay: -0.5s; }
.thought-wave i:nth-child(6) { animation-delay: -0.8s; }
.thought-wave i:nth-child(7) { animation-delay: -0.2s; }

@keyframes wave {
  to { height: 21px; }
}

.cursor-illustration {
  position: absolute;
  z-index: 3;
  right: 25px;
  bottom: 34px;
  width: 210px;
  filter: drop-shadow(15px 18px 0 rgba(17, 27, 55, 0.12));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-13px) rotate(2deg); }
}

.orbit {
  position: absolute;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.orbit-one { width: 31px; height: 31px; right: 35px; top: 52px; }
.orbit-two { width: 13px; height: 13px; left: 54px; bottom: 61px; background: var(--orange); border-color: var(--orange); }
.spark { position: absolute; color: var(--blue); font-size: 28px; }
.spark-one { right: 1px; top: 154px; }
.spark-two { left: 134px; bottom: 7px; color: var(--orange); font-size: 19px; }

.demo-section {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #151c2c;
  box-shadow: 12px 14px 0 var(--blue);
  overflow: hidden;
}

.demo-toolbar {
  height: 54px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 11px;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff665d;
}

.traffic-lights span:nth-child(2) { background: #f9c84b; }
.traffic-lights span:nth-child(3) { background: #58c96a; }
.demo-toolbar p { margin: 0; font-weight: 600; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #58c96a; box-shadow: 0 0 0 3px rgba(88, 201, 106, 0.17); }
.shortcut { justify-self: end; color: rgba(255, 255, 255, 0.52); }

.demo-screen {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 109, 246, 0.32), transparent 28%),
    radial-gradient(circle at 85% 77%, rgba(242, 106, 61, 0.22), transparent 28%),
    #101523;
}

.demo-screen img {
  width: min(78%, 880px);
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.demo-caption {
  position: absolute;
  right: 4.2%;
  bottom: 7%;
  width: 170px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  color: white;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.05;
}

.demo-caption span {
  display: block;
  margin-bottom: 7px;
  color: var(--orange);
  font-family: var(--sans);
  font-size: 9px;
}

.demo-caption p { margin: 0; }

.how-it-works {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 160px 0 145px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  align-items: start;
  margin-bottom: 70px;
}

.section-heading h2,
.final-cta h2,
.waitlist-modal h2 {
  margin: 0;
  font-size: clamp(58px, 7vw, 96px);
  line-height: 0.92;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  min-height: 390px;
  padding: 27px 36px 34px;
  border-right: 1px solid var(--line);
}

.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }
.featured-step { background: var(--blue); color: white; border: 0; margin-top: -20px; padding-top: 47px; box-shadow: 9px 9px 0 var(--ink); }
.step-number { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }
.step-icon { height: 105px; margin: 50px 0 25px; }
.step h3 { margin: 0 0 13px; font-family: var(--serif); font-size: 32px; font-weight: 400; }
.step p { max-width: 290px; margin: 0; color: rgba(17, 27, 55, 0.67); font-size: 14px; line-height: 1.65; }
.featured-step p { color: rgba(255, 255, 255, 0.78); }

.sound-icon { display: flex; align-items: center; gap: 8px; }
.sound-icon i { width: 7px; height: 35px; border-radius: 999px; background: var(--orange); }
.sound-icon i:nth-child(2), .sound-icon i:nth-child(4) { height: 68px; background: var(--blue); }
.sound-icon i:nth-child(3) { height: 95px; background: var(--ink); }
.eye-icon { display: grid; place-items: center; width: 140px; height: 86px; border: 3px solid white; border-radius: 50%; transform: rotate(-8deg); }
.eye-icon span { width: 34px; height: 34px; border: 8px solid var(--lime); border-radius: 50%; background: var(--ink); }
.pointer-icon { font-family: var(--serif); font-size: 113px; line-height: 0.7; color: var(--blue); transform: rotate(-7deg); }

.manifesto {
  min-height: 665px;
  padding: 80px max(32px, calc((100vw - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 0.65fr 2fr;
  grid-template-rows: 1fr auto;
  column-gap: 80px;
  background: var(--ink);
  color: white;
}

.manifesto-kicker {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manifesto blockquote {
  max-width: 900px;
  margin: 0;
  font-size: clamp(54px, 6vw, 88px);
  line-height: 0.98;
}

.manifesto blockquote em { color: var(--lime); }
.manifesto-cta { position: relative; grid-column: 2; align-self: end; justify-self: start; border: 0; background: transparent; color: var(--lime); padding: 0; font-size: 13px; font-weight: 700; cursor: pointer; }

.final-cta {
  position: relative;
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 510px;
  margin: 120px auto;
  padding: 80px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 70px;
  border-radius: 34px;
  background: var(--blue);
  color: white;
  overflow: hidden;
}

.final-cta::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -160px;
  top: -180px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.03), 0 0 0 84px rgba(255, 255, 255, 0.03);
}

.final-cta h2 em { color: var(--lime); }
.final-action { align-self: end; padding-bottom: 25px; }
.light-cta { border-color: white; background: white; color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.light-cta:hover { background: var(--lime); color: var(--ink); }
.final-action p { max-width: 260px; margin: 20px 0 0; color: rgba(255, 255, 255, 0.65); font-size: 11px; line-height: 1.5; }
.final-spark { position: absolute; right: 8%; top: 14%; color: var(--lime); font-size: 40px; }

footer {
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: rgba(17, 27, 55, 0.58);
  font-size: 10px;
}

footer p:last-child { justify-self: end; }
.footer-wordmark { color: var(--ink); }
.footer-wordmark .wordmark-mark { width: 28px; height: 28px; font-size: 18px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(11, 17, 34, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.modal-backdrop[hidden] { display: none; }
.modal-backdrop.is-visible { opacity: 1; }

.waitlist-modal {
  position: relative;
  width: min(100%, 680px);
  min-height: 520px;
  padding: 62px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 12px 14px 0 var(--blue);
  transform: translateY(22px) scale(0.97);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.modal-backdrop.is-visible .waitlist-modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; z-index: 2; top: 22px; right: 22px; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.modal-close:hover { background: var(--ink); color: white; transform: rotate(8deg); }
.modal-cursor { position: absolute; right: 52px; bottom: -25px; color: rgba(47, 109, 246, 0.12); font-family: var(--serif); font-size: 220px; line-height: 1; transform: rotate(-10deg); }
.waitlist-modal h2 { position: relative; font-size: clamp(50px, 7vw, 72px); }
.waitlist-modal h2 em { color: var(--blue); }
.waitlist-modal #waitlist-description, .success-state > p:not(.eyebrow) { position: relative; max-width: 530px; margin: 25px 0 0; color: rgba(17, 27, 55, 0.67); font-size: 15px; line-height: 1.6; }
.waitlist-modal form { position: relative; margin-top: 32px; }
.waitlist-modal label { display: block; margin-bottom: 9px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.email-row { display: flex; gap: 10px; }
.email-row input { min-width: 0; flex: 1; height: 55px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 10px; outline: none; background: white; }
.email-row input:focus { box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.25); border-color: var(--blue); }
.email-row input[aria-invalid="true"] { border-color: #c33e2d; box-shadow: 0 0 0 3px rgba(195, 62, 45, 0.16); }
.email-row button, .success-state button { border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: white; padding: 0 20px; font-weight: 700; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.email-row button:hover:not(:disabled), .success-state button:hover { background: var(--blue); transform: translateY(-2px); }
.email-row button:disabled { cursor: wait; opacity: 0.72; }
.form-message { min-height: 20px; margin: 8px 0 0; color: #a52f21; font-size: 12px; }
.privacy-note { position: relative; margin: 2px 0 0; color: rgba(17, 27, 55, 0.48); font-size: 10px; }
.success-state { position: relative; padding-top: 48px; }
.success-state[hidden] { display: none; }
.success-mark { position: absolute; top: -12px; right: 7px; width: 72px; height: 72px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); box-shadow: 5px 5px 0 var(--ink); font-size: 28px; font-weight: 700; transform: rotate(7deg); }
.success-state button { height: 51px; margin-top: 30px; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-aside { min-height: 430px; width: min(100%, 480px); justify-self: end; }
  .demo-screen { min-height: 430px; }
  .demo-screen img { width: 90%; }
  .demo-caption { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 0; }
  .featured-step { margin: 0; padding: 40px; }
  .step-icon { margin: 25px 0 15px; }
  .manifesto { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 50px; }
  .manifesto-cta { grid-column: 1; }
  .final-cta { grid-template-columns: 1fr; padding: 60px; }
}

@media (max-width: 620px) {
  .site-header, .hero, .demo-section, .how-it-works, .final-cta, footer { width: min(calc(100% - 34px), var(--max-width)); }
  .site-header { min-height: 72px; }
  .wordmark { font-size: 19px; }
  h1 { font-size: clamp(59px, 17vw, 84px); }
  .hero { min-height: auto; padding: 64px 0 75px; gap: 10px; }
  .hero-description { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .availability { max-width: none; }
  .hero-aside { min-height: 380px; width: 100%; }
  .thought-card { left: 0; width: 245px; }
  .cursor-illustration { width: 180px; right: 0; }
  .demo-section { box-shadow: 7px 8px 0 var(--blue); }
  .demo-toolbar { grid-template-columns: 1fr auto; }
  .demo-toolbar p { display: none; }
  .demo-screen { min-height: 280px; }
  .demo-screen img { width: 94%; }
  .how-it-works { padding: 110px 0; }
  .section-heading h2, .final-cta h2 { font-size: 56px; }
  .manifesto { min-height: 610px; padding: 65px 24px; }
  .manifesto blockquote { font-size: 50px; }
  .final-cta { min-height: 560px; margin: 76px auto; padding: 42px 27px; border-radius: 24px; }
  .final-action { padding: 0; }
  footer { grid-template-columns: 1fr auto; }
  footer p:nth-child(2) { display: none; }
  .waitlist-modal { min-height: 520px; padding: 65px 24px 32px; box-shadow: 7px 8px 0 var(--blue); }
  .waitlist-modal h2 { font-size: 49px; }
  .email-row { flex-direction: column; }
  .email-row button { min-height: 52px; }
}

@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;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
}
