:root {
  /* Backgrounds */
  --metyss-bg: #0b0b0f;
  --metyss-panel: rgb(18, 18, 24);
  --metyss-card: rgba(255, 255, 255, 0.03);
  --metyss-card-hover: rgba(255, 255, 255, 0.05);
  --metyss-icon-box: rgba(255, 255, 255, 0.06);

  /* Text */
  --metyss-text-primary: #ffffff;
  --metyss-text-secondary: rgb(180, 180, 190);
  --metyss-text-body: rgb(185, 185, 195);
  --metyss-text-muted: rgb(150, 150, 160);
  --metyss-text-dim: rgb(160, 160, 172);
  --metyss-text-link: rgb(210, 210, 220);
  --metyss-text-link-idle: rgb(200, 200, 208);
  --metyss-text-soft: rgb(220, 220, 230);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--metyss-text-primary);
  background-color: var(--metyss-bg);
  line-height: 1.45;
  overflow-x: hidden;
}

.ambient-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(130% 100% at 50% 0%, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5));
}

.ambient-glow {
  position: fixed;
  width: min(900px, 95vw);
  height: min(900px, 95vw);
  left: 50%;
  top: -520px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(75, 95, 140, 0.3), rgba(13, 15, 25, 0) 70%);
  filter: blur(18px);
}

.container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding: 6.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section:first-of-type {
  border-top: none;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--metyss-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
}

.section-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 1.45rem + 2.15vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-copy {
  margin-top: 1rem;
  max-width: 68ch;
  color: var(--metyss-text-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.15rem);
}

.serif {
  font-family: "Iowan Old Style", "Times New Roman", Georgia, serif;
  font-style: italic;
  color: rgb(172, 172, 182);
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 11, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.request-link {
  text-decoration: none;
  color: var(--metyss-text-link-idle);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.brand {
  font-weight: 500;
}

.request-link {
  text-transform: lowercase;
  font-size: 0.8rem;
}

.brand:hover,
.request-link:hover {
  color: var(--metyss-text-link);
}

.hero {
  padding-top: 6.9rem;
  padding-bottom: 5rem;
  min-height: calc(100vh - 62px);
  display: grid;
  align-content: center;
}

.hero-title {
  margin: 0 0 0.6rem;
  max-width: 11ch;
  font-size: clamp(2.6rem, 1.85rem + 4vw, 6.1rem);
  font-weight: 620;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-title .serif {
  display: block;
  margin-top: 0.2rem;
}

.hero-copy {
  max-width: 58ch;
  margin-top: 1.65rem;
  color: rgba(175, 178, 190, 0.78);
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  margin-bottom: 0.45rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.82rem 1.3rem;
  min-height: 46px;
  color: var(--metyss-text-primary);
  text-decoration: none;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.btn-primary {
  background: white;
  color: #0a0a10;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.22);
}

.subtle-note {
  color: var(--metyss-text-muted);
  font-size: 0.86rem;
}


.problem .section-title {
  max-width: 32ch;
}

.stats-list {
  margin-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.stat-row {
  min-height: 106px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  grid-template-columns: 170px 1fr 180px;
  align-items: center;
  column-gap: 1rem;
}

.stat-value {
  margin: 0;
  font-size: clamp(2.2rem, 1.9rem + 1.1vw, 3.25rem);
  letter-spacing: -0.03em;
  color: #f1f1f4;
}

.stat-text {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.2rem);
  color: var(--metyss-text-secondary);
}

.stat-source {
  margin: 0;
  text-align: right;
  color: var(--metyss-text-muted);
  font-size: 0.8rem;
}

.steps .section-title {
  max-width: 13ch;
}

.step-cards {
  margin-top: 2.3rem;
  display: grid;
  gap: 1rem;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.22rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.step-card:hover::after {
  opacity: 1;
}

.step-number {
  font-size: clamp(2.8rem, 2.1rem + 1.7vw, 4.1rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.step-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.03rem + 0.3vw, 1.45rem);
  color: rgba(195, 198, 208, 0.88);
}

.step-card p {
  margin: 0.5rem 0 0;
  color: rgba(155, 160, 172, 0.82);
  max-width: 72ch;
}

.code-chip {
  white-space: nowrap;
  padding: 0.46rem 0.62rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.34);
  color: rgba(110, 120, 145, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.73rem;
}

.async-layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 2rem;
  align-items: center;
}

.async-match .section-title {
  max-width: 12ch;
}

.bullet-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.bullet-list li {
  color: var(--metyss-text-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(209, 216, 232, 0.75);
}

.match-visual {
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.flow-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.flow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.flow-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 170, 182, 0.85);
}

.flow-line {
  flex: 1;
  min-width: 48px;
  max-width: 72px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.18),
    transparent
  );
}

.cta .container,
.cta-shell {
  text-align: left;
}

.cta-shell {
  max-width: none;
}

.cta .section-title {
  max-width: 10ch;
}

.waitlist-form {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.waitlist-form input,
.waitlist-form select {
  flex: 1 1 250px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
  color: var(--metyss-text-primary);
  padding: 0.77rem 0.95rem;
  font: inherit;
  outline: none;
}

.waitlist-form select {
  max-width: 190px;
  cursor: pointer;
}

.waitlist-form select:invalid {
  color: var(--metyss-text-muted);
}

.waitlist-form input::placeholder {
  color: var(--metyss-text-muted);
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form-message {
  margin: 0 0 0 0.75rem;
  padding: 0;
  align-self: center;
  font-size: 0.9rem;
  color: rgba(165, 170, 182, 0.9);
}

.form-message.form-message--error {
  color: rgb(230, 130, 130);
}

.form-message.form-message--success {
  color: rgba(180, 200, 180, 0.92);
}

.waitlist-form input.invalid,
.waitlist-form select.invalid {
  border-color: rgba(220, 160, 160, 0.5);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--metyss-text-muted);
  font-size: 0.85rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 5.6rem;
    padding-bottom: 4.2rem;
  }

  .section {
    padding: 5.25rem 0;
  }

  .stat-row {
    grid-template-columns: 130px 1fr;
    grid-template-areas:
      "value text"
      "source source";
    row-gap: 0.45rem;
    align-items: center;
  }

  .stat-value {
    grid-area: value;
  }

  .stat-text {
    grid-area: text;
  }

  .stat-source {
    grid-area: source;
    text-align: left;
    padding-bottom: 0.7rem;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .code-chip {
    justify-self: start;
  }

  .async-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(1180px, calc(100% - 1.5rem));
  }

  .section {
    padding: 4.4rem 0;
  }

  .hero-title {
    max-width: 13ch;
  }

  .eyebrow {
    margin-bottom: 1.2rem;
  }

  .hero-copy {
    margin-top: 1.25rem;
  }

  .hero-actions {
    margin-top: 1.8rem;
  }

  .match-visual {
    max-width: 300px;
  }

  .flow-line {
    min-width: 32px;
    max-width: 48px;
  }
}
