:root {
  color-scheme: light;
  --paper: #fffdf4;
  --surface: #fff;
  --ink: #11131a;
  --muted: #55596a;
  --line: rgba(17, 19, 26, 0.2);
  --accent: #2448ff;
  --accent-ink: #fff;
  --pop: #d7ff32;
  --pop-ink: #11131a;
  --soft: #eef1ff;
  --shadow: #11131a;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="cyan"] {
  color-scheme: dark;
  --paper: #06111f;
  --surface: #0b1b31;
  --ink: #f5fbff;
  --muted: #a9b9cb;
  --line: rgba(130, 222, 255, 0.3);
  --accent: #24ddff;
  --accent-ink: #04121f;
  --pop: #a675ff;
  --pop-ink: #fff;
  --soft: #102640;
  --shadow: #24ddff;
}

html[data-theme="red"] {
  --paper: #fffaf0;
  --surface: #fff;
  --accent: #ed1537;
  --accent-ink: #fff;
  --pop: #ffd42a;
  --soft: #fff0d2;
}

html[data-theme="violet"] {
  --paper: #f8f3ff;
  --surface: #fff;
  --accent: #3d35e8;
  --accent-ink: #fff;
  --pop: #ff6d61;
  --pop-ink: #10121a;
  --soft: #ebe5ff;
}

html[data-theme="lime"] {
  --paper: #fbfff1;
  --surface: #fff;
  --accent: #2d42ff;
  --accent-ink: #fff;
  --pop: #c9ff36;
  --soft: #efffc8;
}

html[data-theme="orange"] {
  --paper: #fff8ef;
  --surface: #fff;
  --accent: #f04c19;
  --accent-ink: #fff;
  --pop: #ffd83d;
  --soft: #ffe9d3;
}

html[data-theme="pink"] {
  --paper: #fff6fb;
  --surface: #fff;
  --accent: #d92176;
  --accent-ink: #fff;
  --pop: #a9ff55;
  --soft: #ffe0ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--line) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.28;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  width: min(100% - 3rem, 92rem);
  min-height: 6.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.wordmark span {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.wordmark i {
  width: 2.1rem;
  height: 0.48rem;
  background: var(--pop);
  border: 1px solid var(--ink);
  transform: rotate(-8deg);
}

.wordmark small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.launch-badge,
.eyebrow,
.section-kicker,
.demo-top,
.demo-copy > span {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.launch-badge {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--pop);
  color: var(--pop-ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero {
  width: min(100% - 3rem, 92rem);
  min-height: calc(100svh - 6.5rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(26rem, 0.98fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 6.5rem) 0 clamp(5rem, 9vw, 9rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 49rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 1.35rem;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.92;
}

h1 {
  max-width: 13ch;
  font-size: clamp(4rem, 7.4vw, 7.6rem);
  text-transform: uppercase;
}

h1::after {
  content: "";
  display: block;
  width: min(3.2em, 72%);
  height: 0.13em;
  margin-top: 0.06em;
  background: var(--pop);
  border: 1px solid var(--ink);
  transform: rotate(-2deg);
}

h2 {
  font-size: clamp(2.8rem, 6vw, 6rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.intro {
  max-width: 44rem;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
}

.waitlist-form {
  max-width: 45rem;
  margin-top: 2.5rem;
}

.waitlist-form > label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.form-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.form-line input,
.form-line button {
  min-height: 3.65rem;
  border: 2px solid var(--ink);
  border-radius: 0.65rem;
  font: inherit;
}

.form-line input {
  min-width: 0;
  padding: 0 1rem;
  background: var(--surface);
  color: var(--ink);
}

.form-line input::placeholder {
  color: var(--muted);
}

.form-line button {
  padding: 0 1.25rem;
  background: var(--pop);
  color: var(--pop-ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.025em;
}

.form-line button:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.form-line button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-line input:focus-visible,
.form-line button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.cf-turnstile {
  min-height: 65px;
  margin-top: 0.9rem;
}

.consent-note,
.form-status,
.form-unavailable {
  max-width: 45rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.form-status {
  min-height: 1.3rem;
  color: var(--ink);
  font-weight: 750;
}

.form-status[data-state="error"] {
  color: #c62828;
}

html[data-theme="cyan"] .form-status[data-state="error"] {
  color: #ff9d94;
}

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

.privacy-note {
  max-width: 45rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.privacy-note summary {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
}

.privacy-note summary::-webkit-details-marker {
  display: none;
}

.privacy-note[open] summary span {
  transform: rotate(45deg);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.5rem;
  padding-top: 0.45rem;
}

.privacy-grid p,
.privacy-date {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-art {
  position: relative;
  min-height: 39rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: 1.3rem;
  background: var(--surface);
  box-shadow: 18px 18px 0 var(--pop), 20px 20px 0 var(--ink);
  transform: rotate(1deg);
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 31%;
  left: -5%;
  width: 110%;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
  animation: scan 4.2s ease-in-out infinite;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}

.demo-top i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 3px var(--ink);
}

.demo-copy {
  position: relative;
  margin: 2.4rem 0;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--paper);
}

.demo-copy > span {
  color: var(--accent);
}

.demo-copy p {
  position: relative;
  z-index: 1;
  margin: 0.8rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.65;
}

.demo-before p {
  text-decoration: underline;
  text-decoration-color: var(--pop);
  text-decoration-thickness: 0.48em;
  text-underline-offset: -0.25em;
  text-decoration-skip-ink: none;
}

.demo-after {
  margin-top: 4.5rem;
  border: 2px solid var(--accent);
  box-shadow: 8px 8px 0 var(--soft);
  transform: rotate(-1deg);
}

.demo-after p {
  padding-right: 0.5rem;
  font-family: var(--body);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 800;
}

.demo-after i {
  display: inline-block;
  width: 0.16rem;
  height: 1.6rem;
  margin-left: 0.15rem;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(2, start) infinite;
}

.rewrite-arrow {
  position: absolute;
  z-index: 3;
  top: 48.5%;
  right: 9%;
  width: 7rem;
  color: var(--accent);
  text-align: center;
  transform: rotate(-6deg);
}

.rewrite-arrow::before {
  content: "↓";
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.rewrite-arrow span {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.layout-paper .hero-art {
  border-radius: 0.35rem;
  box-shadow: 15px 15px 0 var(--pop), -8px -8px 0 var(--soft);
  transform: rotate(-1deg);
}

.layout-paper .demo-copy {
  border-radius: 0;
  transform: rotate(0.7deg);
}

.layout-paper .demo-after {
  transform: rotate(-1.6deg);
}

.layout-scan .hero-art {
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(36, 221, 255, 0.045) 8px),
    var(--surface);
  box-shadow: 18px 18px 0 var(--soft), 20px 20px 0 var(--accent);
}

.layout-scan .demo-copy {
  background: rgba(6, 17, 31, 0.88);
}

.layout-tokens .hero-art {
  box-shadow: 18px 18px 0 var(--soft), 20px 20px 0 var(--ink);
  transform: none;
}

.layout-tokens .demo-copy {
  border-width: 2px;
  box-shadow: 7px 7px 0 var(--pop);
}

.definition,
.principles,
.faq,
.footer {
  width: min(100% - 3rem, 92rem);
  margin: 0 auto;
}

.definition {
  padding: clamp(4rem, 9vw, 9rem) clamp(1.3rem, 6vw, 6rem);
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--soft);
  box-shadow: 12px 12px 0 var(--ink);
}

.definition > div {
  max-width: 70rem;
}

.section-kicker {
  margin-bottom: 1rem;
  color: var(--accent);
}

.definition h2 {
  max-width: 14ch;
}

.definition > div > p:last-child {
  max-width: 59rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.principles,
.faq {
  padding: clamp(6rem, 10vw, 10rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(10rem, 0.32fr) 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading h2 {
  max-width: 13ch;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.principle {
  min-height: 17rem;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 7px 7px 0 var(--soft);
}

.principle:nth-child(2) {
  background: var(--pop);
  color: var(--pop-ink);
  box-shadow: 7px 7px 0 var(--ink);
  transform: translateY(1.1rem) rotate(0.8deg);
}

.principle:nth-child(3) {
  transform: rotate(-0.7deg);
}

.principle h3::before {
  content: "✦";
  display: block;
  margin-bottom: 3.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.principle p {
  color: var(--muted);
}

.principle:nth-child(2) p {
  color: inherit;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-list {
  margin-left: calc(32% + 1rem);
  border-top: 2px solid var(--ink);
}

.faq-item {
  border-bottom: 2px solid var(--ink);
}

.faq-item summary {
  padding: 1.4rem 2.5rem 1.4rem 0;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  margin-right: -2rem;
  color: var(--accent);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 50rem;
  padding: 0 2rem 1.5rem 0;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer a {
  font-weight: 800;
}

@keyframes scan {
  0%, 100% { top: 30%; opacity: 0.35; }
  50% { top: 73%; opacity: 1; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 980px) {
  .masthead,
  .hero,
  .definition,
  .principles,
  .faq,
  .footer {
    width: min(100% - 2rem, 52rem);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: 4.5rem;
  }

  .hero-art {
    min-height: 35rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: auto;
  }

  .principle:nth-child(2),
  .principle:nth-child(3) {
    transform: none;
  }

  .principle h3::before {
    margin-bottom: 1.7rem;
  }

  .faq-list {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .masthead,
  .hero,
  .definition,
  .principles,
  .faq,
  .footer {
    width: min(100% - 1.25rem, 40rem);
  }

  .masthead {
    min-height: 5.4rem;
  }

  .wordmark small {
    display: none;
  }

  .launch-badge {
    box-shadow: none;
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 5rem);
  }

  .form-line {
    grid-template-columns: 1fr;
  }

  .form-line button {
    width: 100%;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 31rem;
    box-shadow: 9px 9px 0 var(--pop), 11px 11px 0 var(--ink);
  }

  .rewrite-arrow {
    right: 4%;
  }

  .definition {
    padding: 3.5rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
