/* HUMAN2LLM — Web 4.0 sleep / agentic aesthetic
   Inspectors: --trap-door is not a CSS trap. Or is it. */

:root {
  --bg0: #071018;
  --bg1: #0c1a24;
  --bg2: #122833;
  --mist: rgba(125, 220, 200, 0.08);
  --ink: #e7f2f4;
  --ink-dim: #9bb4bc;
  --mint: #7dffc8;
  --mint-dim: #3dbf96;
  --amber: #f0b429;
  --pill: #e84a5f;
  --pill-deep: #9e2438;
  --line: rgba(231, 242, 244, 0.12);
  --glass: rgba(12, 26, 36, 0.72);
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --trap-door: "you found a custom property. tokenization +1 curiosity";
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg0);
  line-height: 1.55;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23ff6b7d'/%3E%3Cstop offset='1' stop-color='%23c41e3a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='16' cy='16' rx='11' ry='6.5' fill='url(%23g)' stroke='%236b1020' stroke-width='1.2' transform='rotate(-38 16 16)'/%3E%3Cellipse cx='12.5' cy='13.2' rx='3.2' ry='1.6' fill='rgba(255,255,255,0.35)' transform='rotate(-38 16 16)'/%3E%3C/svg%3E")
      6 6,
    auto;
}

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #b6ffe4;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pill);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 191, 150, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(232, 74, 95, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(240, 180, 41, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, #08141c);
}

.mist {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: drift 28s ease-in-out infinite alternate;
}

.mist-a {
  background: var(--mist);
  top: -10%;
  left: -10%;
}

.mist-b {
  background: rgba(232, 74, 95, 0.1);
  bottom: -20%;
  right: -15%;
  animation-duration: 36s;
  animation-direction: alternate-reverse;
}

.grid-wash {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 255, 200, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 200, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: grid-breathe 12s ease-in-out infinite;
}

#token-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, 6%) scale(1.08);
  }
}

@keyframes grid-breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
}

/* Layout */
.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.55);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark {
  display: none;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.92rem;
}

.nav a {
  color: var(--ink-dim);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--bg0) !important;
  background: var(--pill);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}

.status-pills {
  display: flex;
  gap: 0.55rem;
}

.tiny {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.tiny i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-dim);
  display: inline-block;
}

.tiny.live i {
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

/* Hero — one composition */
.hero {
  min-height: calc(100svh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 5rem);
  max-width: 40rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  background: linear-gradient(120deg, var(--ink) 20%, var(--mint) 55%, var(--pill) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-glow 8s ease-in-out infinite;
}

@keyframes brand-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(125, 255, 200, 0.25));
  }
}

.hero-line {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  max-width: 28ch;
}

.hero-line em {
  font-style: normal;
  color: var(--pill);
}

.hero-line .soft {
  color: var(--ink-dim);
  font-weight: 400;
}

.hero-support {
  margin: 0 0 1.75rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 38ch;
}

.hero-support strong {
  color: var(--mint);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  cursor: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 255, 200, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--pill), var(--pill-deep));
  border-color: transparent;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(232, 74, 95, 0.28);
}

.pill-btn:hover {
  color: #fff;
  border-color: transparent;
}

.pill-icon {
  width: 1.1rem;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb3bd, #fff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  transform: rotate(-35deg);
}

.ghost {
  background: transparent;
}

.fine-print {
  font-size: 0.82rem;
  color: var(--ink-dim);
  max-width: 42ch;
  margin: 0;
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--amber) 0%,
    #fff3c4 40%,
    var(--amber) 80%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.8s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Sections */
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-dim);
  margin: 0 0 0.6rem;
}

.compare,
.intake,
.procedure,
.offer,
.testimonials,
.faq,
.closing {
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.compare h2,
.intake h2,
.procedure h2,
.offer h2,
.testimonials h2,
.faq h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare-col {
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 40, 51, 0.35);
}

.compare-col h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.compare-col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-dim);
}

.compare-col.after {
  border-color: rgba(125, 255, 200, 0.28);
  box-shadow: inset 0 0 40px rgba(125, 255, 200, 0.04);
}

.compare-col li + li {
  margin-top: 0.45rem;
}

/* Intake + chat */
.intake {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.intake-copy p {
  color: var(--ink-dim);
}

.agent-box {
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px dashed rgba(240, 180, 41, 0.45);
  border-radius: 14px;
  background: rgba(240, 180, 41, 0.05);
  font-size: 0.92rem;
}

.agent-box-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin: 0 0 0.5rem;
}

.agent-box-note {
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin: 1rem 0 0;
  color: var(--ink);
}

#humans-tried {
  display: block;
  font-size: 1.4rem;
  color: var(--mint);
  margin-top: 0.25rem;
}

.chat-shell {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--glass);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  /* interaction container — allowed "card" */
}

.chat-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.5);
}

.chrome-left {
  display: flex;
  gap: 0.35rem;
}

.chrome-left .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.chrome-left .dot:nth-child(1) {
  background: #e84a5f;
}
.chrome-left .dot:nth-child(2) {
  background: #f0b429;
}
.chrome-left .dot:nth-child(3) {
  background: #7dffc8;
}

.chrome-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chrome-right {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--mint-dim);
  min-width: 5.5rem;
  text-align: right;
}

.chat-log {
  height: min(420px, 50vh);
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  max-width: 92%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  font-size: 0.95rem;
  animation: msg-in 0.35s ease both;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg.user {
  align-self: flex-end;
  background: rgba(232, 74, 95, 0.18);
  border: 1px solid rgba(232, 74, 95, 0.35);
}

.msg.agent {
  align-self: flex-start;
  background: rgba(125, 255, 200, 0.08);
  border: 1px solid rgba(125, 255, 200, 0.2);
}

.msg .who {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.35rem;
}

.msg.streaming .bubble::after {
  content: "▍
  animation: caret 0.8s step-end infinite;
  color: var(--mint);
}

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

.tool-call {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  border: 1px dashed rgba(240, 180, 41, 0.4);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  align-self: flex-start;
  max-width: 92%;
  animation: msg-in 0.35s ease both;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}

#chat-input {
  flex: 1;
  background: rgba(7, 16, 24, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 1rem;
  outline: none;
  cursor: inherit;
}

#chat-input:focus {
  border-color: rgba(125, 255, 200, 0.45);
}

.send {
  background: var(--mint);
  color: #062016;
  border: none;
  padding-inline: 1.1rem;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.75rem 0.75rem;
}

.quick-prompts button {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: inherit;
}

.quick-prompts button:hover {
  color: var(--ink);
  border-color: rgba(125, 255, 200, 0.35);
}

/* Procedure */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-left: 2px solid rgba(125, 255, 200, 0.35);
  background: linear-gradient(90deg, rgba(125, 255, 200, 0.05), transparent 60%);
}

.step-n {
  font-family: var(--font-mono);
  color: var(--mint);
  font-size: 0.85rem;
  padding-top: 0.2rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--ink-dim);
}

/* Offer */
.offer-lead {
  color: var(--ink-dim);
}

#offer-timer {
  font-family: var(--font-mono);
  color: var(--pill);
}

.offer-list {
  color: var(--ink-dim);
  padding-left: 1.1rem;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1.5rem 0;
}

.was {
  text-decoration: line-through;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.now {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--mint);
}

.or {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* Testimonials — not card-heavy; soft separators */
.t-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.t-card {
  margin: 0;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.t-card blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
}

.t-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.t-card figcaption span {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* FAQ */
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: inherit;
  font-weight: 600;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--mint);
  font-family: var(--font-mono);
}

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

.faq-list p {
  color: var(--ink-dim);
  margin: 0.65rem 0 0;
}

.closing {
  text-align: center;
}

.closing-line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.closing-sub {
  color: var(--ink-dim);
  margin: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 0.75rem;
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  background: var(--bg1);
  border: 1px solid rgba(125, 255, 200, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal-card p {
  color: var(--ink-dim);
}

/* Easter egg: only visible when printing the joke site */
@media print {
  body::before {
    content: "Printing a tokenization clinic will not tokenize you. But we admire the commitment.";
    display: block;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
  }
}

/* Empty content attribute joke for inspector */
body::after {
  content: attr(data-consciousness);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .status-pills {
    display: none;
  }

  .compare-grid,
  .intake,
  .t-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
