/*
 * Copyright (c) 2026 OptionLab LLC. All rights reserved.
 */

:root {
  color-scheme: light;
  --ink: #061944;
  --muted: #51627f;
  --line: #d8e3f4;
  --surface: #ffffff;
  --soft: #f4f8ff;
  --blue: #0f66ff;
  --blue-dark: #0646b8;
  --blue-soft: #eaf3ff;
  --green: #00a878;
  --green-soft: #e8fbf4;
  --shadow: 0 24px 70px rgba(15, 37, 86, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 5vw, 72px);
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand img {
  width: clamp(170px, 18vw, 210px);
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.site-nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a,
footer nav a {
  white-space: nowrap;
}

.site-menu {
  position: relative;
  display: none;
  margin-left: auto;
}

.site-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu summary span,
.site-menu summary span::before,
.site-menu summary span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-menu summary span {
  position: relative;
}

.site-menu summary span::before,
.site-menu summary span::after {
  position: absolute;
  left: 0;
  content: "";
}

.site-menu summary span::before {
  top: -7px;
}

.site-menu summary span::after {
  top: 7px;
}

.site-menu[open] summary {
  border-color: var(--blue);
  background: #f4f8ff;
}

.site-menu-nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 40px rgba(6, 25, 68, 0.16);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.site-menu-nav a {
  padding: 12px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.site-menu-nav a:hover {
  background: var(--soft);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.button-primary,
.waitlist-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.button-primary:hover,
.waitlist-form button:hover {
  background: var(--blue-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 320px);
  align-items: end;
  gap: 32px;
  min-height: min(760px, calc(100vh - 72px));
  padding: 96px 32px 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 25, 68, 0.94) 0%, rgba(6, 25, 68, 0.82) 38%, rgba(6, 25, 68, 0.1) 100%),
    url("./public/screenshots/05-backtest-integrity-robustness.png") center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: 84px;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: center;
  justify-self: end;
  gap: 12px;
  width: min(320px, 100%);
}

.hero-actions .button-primary,
.hero-actions .button-secondary {
  min-height: 58px;
  width: 100%;
  font-size: 18px;
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(6, 25, 68, 0.74);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero .button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(6, 25, 68, 0.88);
}

.section {
  padding: 76px 32px;
}

.narrow {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section h2 {
  max-width: 880px;
  font-size: 54px;
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.workflow-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workflow-grid span {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.workflow-grid h3 {
  margin: 48px 0 12px;
  font-size: 22px;
}

.workflow-grid p,
.proof-list p,
.screen-slide figcaption {
  color: var(--muted);
  line-height: 1.5;
}

.screenshots {
  background: var(--soft);
}

.screen-slider {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.screen-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(15, 37, 86, 0.12);
}

.screen-track {
  display: flex;
  transition: transform 220ms ease;
  will-change: transform;
}

.screen-slide {
  display: grid;
  grid-template-columns: 1fr;
  flex: 0 0 100%;
  margin: 0;
  background: white;
  overflow: hidden;
}

.screen-slide img {
  width: 100%;
  height: min(520px, 48vw);
  min-height: 360px;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--line);
}

.screen-slide figcaption {
  display: grid;
  grid-template-columns: auto minmax(180px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px 18px;
  min-height: 92px;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
}

.screen-slide figcaption span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.screen-slide figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
}

.screen-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.screen-arrow {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.screen-arrow:hover {
  border-color: var(--blue);
}

.screen-arrow::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 17px;
  width: 12px;
  height: 12px;
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}

.screen-arrow-next::before {
  left: 13px;
  transform: rotate(225deg);
}

.screen-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.screen-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #a9b8d1;
  cursor: pointer;
}

.screen-dots button[aria-current="true"] {
  width: 28px;
  border-radius: 999px;
  background: var(--blue);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.proof-list p {
  margin: 0;
  min-height: 110px;
  padding: 20px;
  border-left: 4px solid var(--blue);
  background: var(--soft);
  font-weight: 800;
}

@media (max-width: 1024px) {
  .proof-list {
    grid-template-columns: 1fr;
  }

  .proof-list p {
    min-height: auto;
  }
}

.waitlist-section {
  padding: 64px 32px 70px;
  background:
    linear-gradient(135deg, rgba(15, 102, 255, 0.08) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}

.waitlist-card {
  position: relative;
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 36px 34px 28px;
  overflow: hidden;
  border: 1px solid #94bdff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(234, 243, 255, 0.84)),
    repeating-linear-gradient(135deg, rgba(15, 102, 255, 0.06) 0 1px, transparent 1px 28px);
  box-shadow: var(--shadow);
  text-align: center;
}

.waitlist-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid #a9c8ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-heading h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: 54px;
  line-height: 1.02;
}

.waitlist-heading h2 span {
  color: var(--blue);
}

.waitlist-heading p {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.waitlist-form {
  display: grid;
  gap: 10px;
  width: min(760px, 100%);
  margin: 24px auto 0;
}

.waitlist-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  overflow: hidden;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 40px rgba(15, 102, 255, 0.18);
}

.email-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
}

.email-input span {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 3px;
}

.email-input span::before,
.email-input span::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 12px;
  height: 2px;
  background: var(--muted);
}

.email-input span::before {
  left: 0;
  transform: rotate(32deg);
}

.email-input span::after {
  right: 0;
  transform: rotate(-32deg);
}

.email-input input {
  width: 100%;
  color: var(--ink);
  font: inherit;
}

.email-input input {
  min-height: 62px;
  padding: 0;
  border: 0;
  font-size: 18px;
  outline: 0;
}

.email-input input::placeholder {
  color: #91a0b8;
}

.waitlist-form button {
  min-height: 64px;
  border-radius: 0;
  font-size: 18px;
}

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.waitlist-consent,
.waitlist-status {
  margin: 0;
  font-size: 13px;
}

.waitlist-consent {
  color: var(--muted);
}

.waitlist-status {
  min-height: 18px;
  color: var(--muted);
  font-weight: 800;
}

.waitlist-status[data-state="pending"] {
  color: var(--blue);
}

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

.waitlist-success {
  width: min(620px, 100%);
  margin: 18px auto 0;
  padding: 24px;
  border: 1px solid #86d8cb;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(232, 251, 244, 0.95), rgba(255, 255, 255, 0.96));
}

.success-mark {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(0, 168, 120, 0.14);
}

.success-mark::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 14px;
  width: 14px;
  height: 24px;
  border-right: 5px solid white;
  border-bottom: 5px solid white;
  transform: rotate(45deg);
}

.waitlist-success h3 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.05;
}

.waitlist-success p:not(.waitlist-pill) {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 16px 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.waitlist-success p span:last-child {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
}

.waitlist-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.waitlist-benefits span {
  min-width: 128px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    justify-content: space-between;
    gap: 32px;
    padding: 0 20px;
  }

  .site-nav {
    display: none;
  }

  .site-menu {
    display: block;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: end;
    gap: 20px;
    min-height: 600px;
    padding: 44px 20px;
    background:
      linear-gradient(0deg, rgba(6, 25, 68, 0.96) 0%, rgba(6, 25, 68, 0.86) 58%, rgba(6, 25, 68, 0.4) 100%),
      url("./public/screenshots/05-backtest-integrity-robustness.png") center center / cover no-repeat;
  }

  .hero-copy,
  .section-heading {
    width: min(350px, 100%);
    margin-left: 0;
    margin-right: auto;
  }

  .narrow {
    width: 100%;
  }

  .hero-actions {
    align-self: center;
    width: 220px;
  }

  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    min-height: 54px;
    font-size: 16px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .section {
    padding: 46px 20px;
  }

  .section h2 {
    font-size: 34px;
    line-height: 1.04;
  }

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

  .workflow-grid article {
    min-height: auto;
    padding: 16px;
  }

  .workflow-grid h3 {
    margin: 20px 0 8px;
    font-size: 19px;
  }

  .waitlist-section {
    padding: 40px 20px 44px;
  }

  .waitlist-card {
    padding: 26px 16px 22px;
  }

  .waitlist-heading h2 {
    font-size: 34px;
  }

  .waitlist-heading p {
    font-size: 15px;
  }

  .waitlist-input-row {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .email-input {
    min-height: 58px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    background: white;
    box-shadow: 0 14px 30px rgba(15, 102, 255, 0.16);
  }

  .email-input input {
    min-height: 56px;
    font-size: 16px;
  }

  .waitlist-form button {
    min-height: 56px;
    border-radius: 8px;
  }

  .waitlist-benefits {
    gap: 8px;
  }

  .waitlist-benefits span {
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
  }

  .screenshots {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .screen-slider {
    width: 100%;
    margin: 0;
  }

  .screen-slide {
    grid-template-columns: 1fr;
  }

  .screen-slide img {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .screen-slide figcaption {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 12px 14px 14px;
    font-size: 13px;
    line-height: 1.35;
  }

  .screen-slide figcaption strong {
    font-size: 18px;
  }

  .screen-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    margin-top: 12px;
  }

  .screen-arrow {
    width: 40px;
    height: 40px;
  }

  .screen-arrow::before {
    top: 13px;
    left: 16px;
  }

  .screen-arrow-next::before {
    left: 12px;
  }

  .screen-dots {
    gap: 6px;
  }

  .proof-list {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .proof-list p {
    min-height: auto;
    padding: 13px;
    font-size: 13px;
    line-height: 1.35;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 20px;
  }

  footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 12px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 520px;
    padding: 34px 20px 40px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-self: stretch;
    width: 100%;
    margin-top: 4px;
  }

  .button-primary,
  .button-secondary,
  .waitlist-form button {
    width: 100%;
  }

  .waitlist-section {
    padding-top: 34px;
  }

  .waitlist-card {
    padding: 22px 14px 18px;
  }

  .waitlist-pill {
    font-size: 11px;
  }

  .waitlist-heading h2,
  .waitlist-success h3 {
    font-size: 30px;
  }

  .waitlist-success {
    padding: 20px 14px;
  }

  .proof-list {
    grid-template-columns: 1fr;
  }
}
