:root {
  color-scheme: light;
  --ink: #09313a;
  --muted: #55717a;
  --teal: #087c83;
  --teal-dark: #055e66;
  --mint: #dff5ef;
  --line: rgba(9, 49, 58, 0.14);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(25, 69, 73, 0.16);
  --radius: 22px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f7fbf9;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(8, 124, 131, 0.28);
  outline-offset: 3px;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 48px rgba(26, 67, 72, 0.12);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.brand-mark {
  width: 33px;
  height: 33px;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 44%, var(--teal) 45% 55%, transparent 56%),
    linear-gradient(0deg, transparent 44%, var(--teal) 45% 55%, transparent 56%),
    rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: #163e46;
  font-size: 0.94rem;
  font-weight: 760;
}

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

.nav-action,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav-action,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 28px rgba(8, 124, 131, 0.22);
}

.nav-action.ghost {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.button.secondary {
  border: 1px solid rgba(8, 124, 131, 0.38);
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.72);
}

.auth-actions,
.auth-session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-session {
  max-width: 390px;
}

.auth-session span {
  max-width: 170px;
  overflow: hidden;
  color: #28575f;
  font-size: 0.82rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-logout {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 8px;
  color: #7b4b3f;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 850;
}

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  padding: 126px 24px 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 251, 249, 0.92) 0%, rgba(247, 251, 249, 0.52) 42%, rgba(247, 251, 249, 0.18) 100%),
    linear-gradient(0deg, #f7fbf9 0%, rgba(247, 251, 249, 0) 34%),
    url("./assets/hero-lab.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(430px, 1.15fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 13px;
  border: 1px solid rgba(8, 124, 131, 0.18);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  font-weight: 820;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 590px;
  color: #062f38;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 28px;
  color: #204d55;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  font-weight: 650;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  min-height: 38px;
  padding: 10px 13px;
  border: 1px solid rgba(8, 124, 131, 0.16);
  border-radius: 999px;
  color: #17434a;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.product-float {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.product-float img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 14px;
  border: 1px solid rgba(9, 49, 58, 0.08);
}

.product-float figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px 1px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.product-float figcaption strong {
  color: var(--teal-dark);
  font-weight: 850;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(9, 49, 58, 0.1);
  border-radius: 18px;
  background: rgba(9, 49, 58, 0.1);
  box-shadow: 0 16px 52px rgba(29, 76, 79, 0.1);
}

.trust-strip div {
  min-height: 92px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.trust-strip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 0.62fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading h2,
.proof-copy h2,
.report-copy h2 {
  margin-bottom: 0;
  color: #0a333b;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.soft-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 18px 56px rgba(33, 85, 88, 0.08);
}

.soft-card {
  min-height: 210px;
  padding: 24px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 42px;
  color: #bf5b43;
  font-size: 0.82rem;
  font-weight: 900;
}

.soft-card h3,
.step-card h3,
.arch-column h3 {
  margin-bottom: 9px;
  font-size: 1.06rem;
  letter-spacing: 0;
}

.soft-card p,
.step-card p,
.proof-copy p,
.report-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.58;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-card {
  min-height: 190px;
  padding: 20px;
  position: relative;
}

.step-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.proof-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 42px;
}

.proof-copy p {
  margin-bottom: 22px;
}

.proof-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  padding: 14px 16px;
  border: 1px solid rgba(8, 124, 131, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #1b4b53;
  font-weight: 760;
}

.architecture-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.arch-column,
.arch-flow {
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.arch-column span,
.arch-flow span {
  display: flex;
  min-height: 42px;
  align-items: center;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(223, 245, 239, 0.56);
  color: #1c5960;
  font-size: 0.9rem;
  font-weight: 780;
}

.arch-flow {
  display: grid;
  align-content: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(223, 245, 239, 0.74), rgba(255, 255, 255, 0.82));
}

.report-section {
  padding-bottom: 88px;
}

.report-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.72fr;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.report-preview {
  position: relative;
  min-height: 220px;
}

.sheet {
  position: absolute;
  inset: 24px 18px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 28px;
  border: 1px solid rgba(9, 49, 58, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(9, 49, 58, 0.1);
}

.sheet-back {
  inset: 44px 42px 16px 18px;
  transform: rotate(-8deg);
  background: #eef8f4;
}

.sheet-label {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet strong {
  font-size: 1.2rem;
}

.sheet p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.metrics {
  display: grid;
  gap: 10px;
  margin: 0;
}

.metrics div {
  padding: 18px;
  border: 1px solid rgba(9, 49, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.metrics dt {
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
  font-weight: 650;
}

.auth-lock {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 33, 38, 0.36);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 88px rgba(7, 33, 38, 0.24);
  backdrop-filter: blur(24px);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(9, 49, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.auth-close::before,
.auth-close::after {
  position: absolute;
  top: 15px;
  left: 9px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}

.auth-close::before {
  transform: rotate(45deg);
}

.auth-close::after {
  transform: rotate(-45deg);
}

.auth-dialog-copy {
  padding-right: 28px;
}

.auth-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-dialog h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.08;
}

.auth-dialog p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 640;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 20px 0;
  padding: 5px;
  border: 1px solid rgba(9, 49, 58, 0.1);
  border-radius: 10px;
  background: rgba(223, 245, 239, 0.56);
}

.auth-tab {
  min-height: 40px;
  border-radius: 8px;
  color: #2b5e66;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 900;
}

.auth-tab.is-active {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(8, 124, 131, 0.16);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #214f57;
  font-size: 0.84rem;
  font-weight: 850;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(9, 49, 58, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 650;
}

.auth-hint {
  margin: 2px 0 0;
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(191, 91, 67, 0.28);
  border-radius: 8px;
  color: #7b321f;
  background: rgba(255, 241, 236, 0.86);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .site-header {
    top: 12px;
    width: min(720px, calc(100% - 20px));
    border-radius: 18px;
  }

  .site-nav {
    display: none;
  }

  .auth-session span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 96px 16px 42px;
  }

  .hero-content,
  .proof-section,
  .report-panel,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .product-float {
    width: min(720px, 100%);
  }

  .trust-strip,
  .problem-grid,
  .workflow-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding-top: 64px;
  }

  .architecture-panel {
    grid-template-columns: 1fr;
  }

  .arch-column,
  .arch-flow {
    min-height: auto;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 54px;
    padding: 8px 8px 8px 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .nav-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .auth-actions {
    gap: 6px;
  }

  .auth-actions .ghost,
  .session-logout {
    display: none;
  }

  .hero {
    padding: 84px 14px 30px;
  }

  .hero-bg {
    background:
      linear-gradient(0deg, #f7fbf9 0%, rgba(247, 251, 249, 0.3) 46%, rgba(247, 251, 249, 0.58) 100%),
      url("./assets/hero-lab.png") center / cover no-repeat;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-lede {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .hero-points span {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .product-float {
    padding: 8px;
    border-radius: 16px;
  }

  .product-float img {
    max-height: 220px;
    object-fit: cover;
  }

  .product-float figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-top: 9px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .trust-strip div {
    min-height: 78px;
    padding: 16px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding-top: 54px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-heading h2,
  .proof-copy h2,
  .report-copy h2 {
    font-size: clamp(1.72rem, 9vw, 2.4rem);
    line-height: 1.08;
  }

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

  .soft-card,
  .step-card {
    min-height: auto;
    padding: 18px;
  }

  .card-number,
  .step-card span {
    margin-bottom: 18px;
  }

  .report-panel {
    padding: 16px;
  }

  .report-preview {
    min-height: 190px;
  }

  .sheet {
    inset: 18px 10px 0 30px;
    padding: 20px;
  }

  .sheet-back {
    inset: 34px 30px 16px 10px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 24px, 1180px);
  }

  .auth-modal {
    padding: 12px;
  }

  .auth-dialog {
    max-height: calc(100svh - 24px);
    overflow: auto;
    padding: 20px;
  }

  .auth-dialog h2 {
    font-size: 1.55rem;
  }
}
