@font-face {
  font-family: "Gordita";
  src: url("../fonts/gordita-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gordita";
  src: url("../fonts/gordita-medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gordita";
  src: url("../fonts/gordita-bold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #151920;
  --muted: #606a73;
  --line: #dce3e7;
  --soft: #f3f6f7;
  --white: #ffffff;
  --cyan: #009fbc;
  --cyan-dark: #00798e;
  --blue: #3158d8;
  --lime: #b5db44;
  --coral: #eb6a59;
  --dark: #171c22;
  --dark-soft: #242b33;
  --shadow: 0 12px 28px rgba(21, 25, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Gordita", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

/* Market intelligence product surface */
.market-hero {
  min-height: auto;
  padding-bottom: 64px;
}

.market-hero .hero-copy {
  max-width: 920px;
}

.market-hero h1 {
  max-width: 920px;
  font-size: 64px;
}

.product-note {
  display: inline-flex;
  margin-top: 22px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.product-note span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(181, 219, 68, 0.18);
}

.market-stage {
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid #303842;
  border-radius: 8px;
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.market-stage-head {
  display: flex;
  padding: 20px 24px;
  border-bottom: 1px solid #303842;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.market-stage-head > div {
  display: grid;
  gap: 2px;
}

.market-stage-head .stage-label {
  margin: 0;
}

.market-stage-head strong {
  font-size: 17px;
}

.market-stage .stage-status::before {
  display: none;
}

.market-stage .stage-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.demo-tabs {
  display: grid;
  padding: 0 24px;
  border-bottom: 1px solid #303842;
  grid-template-columns: repeat(3, minmax(0, 170px));
}

.demo-tabs button {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #96a3ad;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.demo-tabs button:hover {
  color: var(--white);
}

.demo-tabs button[aria-selected="true"] {
  border-color: var(--cyan);
  color: var(--white);
}

.market-grid {
  display: grid;
  padding: 24px;
  gap: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.8fr);
}

.terminal-panel,
.event-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid #303842;
  border-radius: 6px;
  background: #1c2229;
}

.metric-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.metric-row div {
  display: grid;
  gap: 4px;
}

.metric-row span {
  color: #96a3ad;
  font-size: 12px;
}

.metric-row strong {
  font-size: 28px;
  line-height: 1;
}

.metric-row .metric-change {
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.market-chart {
  display: flex;
  height: 150px;
  margin-top: 24px;
  padding: 0 4px;
  border-bottom: 1px solid #3b4650;
  align-items: flex-end;
  gap: 9px;
}

.market-chart span {
  height: var(--h);
  min-width: 7px;
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--cyan);
  transition: height 240ms ease, background-color 240ms ease;
}

.market-stage[data-active-demo="backtest"] .market-chart span:nth-child(3n),
.market-stage[data-active-demo="analytics"] .market-chart span:nth-child(4n) {
  background: var(--lime);
}

.market-stage[data-active-demo="automation"] .market-chart span:nth-child(3n) {
  background: var(--coral);
}

.chart-axis {
  display: flex;
  padding-top: 8px;
  justify-content: space-between;
  color: #778590;
  font-size: 10px;
}

.event-list {
  display: grid;
  margin-top: 14px;
}

.event-row {
  display: grid;
  padding: 14px 0;
  border-bottom: 1px solid #303842;
  align-items: start;
  gap: 11px;
  grid-template-columns: 9px minmax(0, 1fr);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
}

.event-dot.cyan { background: var(--cyan); }
.event-dot.lime { background: var(--lime); }
.event-dot.coral { background: var(--coral); }

.event-row div {
  display: grid;
  gap: 3px;
}

.event-row strong {
  font-size: 12px;
  line-height: 1.4;
}

.event-row span {
  color: #8d9aa4;
  font-size: 11px;
}

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

.product-card {
  min-width: 0;
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card:nth-child(1) { border-top: 4px solid var(--cyan); }
.product-card:nth-child(2) { border-top: 4px solid var(--lime); }
.product-card:nth-child(3) { border-top: 4px solid var(--coral); }
.product-card:nth-child(4) { border-top: 4px solid var(--blue); }

.product-code {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.product-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.product-card a {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.process-layout {
  align-items: center;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  grid-template-columns: 46px minmax(0, 1fr);
}

.process-list li > span {
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 800;
}

.process-list strong {
  font-size: 16px;
}

.process-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.role-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-grid article {
  min-width: 0;
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.role-grid article > span {
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 800;
}

.role-grid h3 {
  margin: 34px 0 0;
  font-size: 18px;
}

.role-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.compliance-band .eyebrow,
.cta-band .eyebrow {
  color: #7dd6e3;
}

.compliance-band p:not(.eyebrow) {
  color: #aeb8bf;
}

.document-links {
  border-top: 1px solid #38414a;
}

.document-links a {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid #38414a;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.document-links strong {
  color: #7dd6e3;
  font-size: 12px;
}

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

.faq-list details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dark-secondary {
  border-color: #4b5660 !important;
  background: transparent !important;
  color: var(--white) !important;
}

.dark-secondary:hover {
  border-color: #7dd6e3 !important;
  background: #202830 !important;
}

@media (max-width: 1040px) {
  .product-grid,
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .market-hero h1 {
    font-size: 43px;
  }

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

  .demo-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-tabs button {
    padding-inline: 8px;
  }

  .product-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .role-grid article {
    min-height: 0;
  }

  .cta-band {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .market-stage-head,
  .market-grid {
    padding: 18px;
  }

  .market-stage-head {
    align-items: flex-start;
  }

  .market-chart {
    gap: 5px;
  }

  .metric-row strong {
    font-size: 24px;
  }
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(0, 159, 188, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--dark);
  color: var(--white);
  transform: translateY(-160%);
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(220, 227, 231, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: 202px;
  flex: 0 0 202px;
  align-items: center;
}

.brand img {
  width: 202px;
  height: auto;
}

.nav-links {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #303740;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--cyan-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--cyan-dark);
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--ink);
  background: var(--soft);
}

.button.compact {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: var(--lime);
  content: "";
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 70px 0 52px;
  background: #f1f7f7;
}

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

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: 70px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #48535d;
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.pilot-note {
  display: inline-flex;
  margin-top: 22px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.pilot-note::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(181, 219, 68, 0.2);
  content: "";
}

.data-stage {
  display: grid;
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid #303842;
  border-radius: 8px;
  background: var(--dark);
  color: var(--white);
  grid-template-columns: 230px minmax(0, 1fr);
  box-shadow: var(--shadow);
}

.stage-sidebar {
  padding: 24px;
  border-right: 1px solid #303842;
  background: #12171c;
}

.stage-label {
  margin-bottom: 24px;
  color: #8f9ca7;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-nav {
  display: grid;
  gap: 7px;
}

.stage-nav span {
  padding: 9px 10px;
  border-left: 3px solid transparent;
  color: #9ba7b1;
  font-size: 13px;
}

.stage-nav span.active {
  border-color: var(--cyan);
  background: #222a32;
  color: var(--white);
}

.stage-main {
  min-width: 0;
  padding: 24px 26px 26px;
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stage-head strong {
  font-size: 17px;
}

.stage-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd4db;
  font-size: 12px;
}

.stage-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.pipeline {
  display: grid;
  margin-top: 24px;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #303842;
  border: 1px solid #303842;
  border-radius: 6px;
  overflow: hidden;
}

.pipeline-step {
  min-width: 0;
  padding: 17px;
  background: var(--dark-soft);
}

.pipeline-step span {
  display: block;
  color: #8f9ca7;
  font-size: 11px;
  text-transform: uppercase;
}

.pipeline-step strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.stage-grid {
  display: grid;
  margin-top: 18px;
  gap: 18px;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
}

.chart-panel,
.check-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #303842;
  border-radius: 6px;
  background: #1c2229;
}

.panel-caption {
  color: #a8b3bc;
  font-size: 12px;
}

.bars {
  display: flex;
  height: 105px;
  margin-top: 16px;
  align-items: flex-end;
  gap: 9px;
}

.bar {
  min-width: 10px;
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--cyan);
}

.bar:nth-child(3n) {
  background: var(--lime);
}

.bar:nth-child(4n) {
  background: var(--coral);
}

.bar.h34 { height: 34%; }
.bar.h42 { height: 42%; }
.bar.h48 { height: 48%; }
.bar.h58 { height: 58%; }
.bar.h65 { height: 65%; }
.bar.h69 { height: 69%; }
.bar.h76 { height: 76%; }
.bar.h81 { height: 81%; }
.bar.h88 { height: 88%; }
.bar.h94 { height: 94%; }

.check-list {
  display: grid;
  margin-top: 14px;
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #e8edf0;
  font-size: 12px;
}

.check-mark {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--lime);
}

.trust-band {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  min-width: 0;
  padding: 25px 20px;
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 1px solid var(--line);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  font-size: 14px;
}

.trust-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 92px 0;
}

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

.section.dark {
  background: var(--dark);
  color: var(--white);
}

.section-head {
  display: flex;
  margin-bottom: 38px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-head > div {
  max-width: 720px;
}

.section h2,
.page-hero h1,
.auth-intro h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-intro,
.page-lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.dark .section-intro {
  color: #abb5bd;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card.accent-cyan {
  border-top: 4px solid var(--cyan);
}

.service-card.accent-lime {
  border-top: 4px solid var(--lime);
}

.service-card.accent-coral {
  border-top: 4px solid var(--coral);
}

.service-index {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.service-card p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 800;
}

.two-column {
  display: grid;
  align-items: start;
  gap: 70px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

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

.principle {
  display: grid;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  grid-template-columns: 52px minmax(0, 1fr);
}

.principle-number {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.principle h3 {
  margin: 0;
  font-size: 17px;
}

.principle p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cta-band {
  display: flex;
  padding: 40px 0;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-band h2 {
  max-width: 680px;
  font-size: 30px;
}

.site-footer {
  border-top: 1px solid #303842;
  background: #12171c;
  color: var(--white);
}

.footer-main {
  display: grid;
  padding: 54px 0 42px;
  gap: 42px;
  grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
}

.footer-brand img {
  width: 190px;
  height: auto;
}

.footer-brand p {
  max-width: 360px;
  margin: 18px 0 0;
  color: #aeb8bf;
  font-size: 13px;
}

.footer-column strong {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
}

.footer-column a,
.footer-column span {
  display: block;
  margin-top: 9px;
  color: #aeb8bf;
  font-size: 13px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  padding: 20px 0 24px;
  border-top: 1px solid #303842;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #85919a;
  font-size: 12px;
}

.page-hero {
  padding: 72px 0 58px;
  border-bottom: 1px solid var(--line);
  background: #f1f7f7;
}

.page-hero .page-lead {
  max-width: 760px;
}

.breadcrumbs {
  display: flex;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--cyan-dark);
}

.feature-list {
  display: grid;
  gap: 0;
}

.feature-row {
  display: grid;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.35fr);
}

.feature-row:first-child {
  border-top: 1px solid var(--line);
}

.feature-row h2,
.feature-row h3 {
  margin: 0;
  font-size: 20px;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
}

.process {
  display: grid;
  counter-reset: step;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  min-width: 0;
  padding: 26px;
  border-top: 1px solid #38414a;
  border-right: 1px solid #38414a;
  counter-increment: step;
}

.process-step:first-child {
  border-left: 1px solid #38414a;
}

.process-step::before {
  display: block;
  margin-bottom: 34px;
  color: var(--lime);
  content: "0" counter(step);
  font-size: 13px;
  font-weight: 800;
}

.process-step h3 {
  margin: 0;
  font-size: 18px;
}

.process-step p {
  margin: 10px 0 0;
  color: #aeb8bf;
  font-size: 13px;
}

.contact-layout {
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

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

.contact-channel {
  display: grid;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  grid-template-columns: 90px minmax(0, 1fr);
}

.contact-channel span {
  color: var(--muted);
  font-size: 12px;
}

.contact-channel a,
.contact-channel strong {
  font-size: 17px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-channel a:hover {
  color: var(--cyan-dark);
}

.availability-note {
  padding: 24px;
  border-left: 4px solid var(--lime);
  background: var(--soft);
}

.availability-note h2,
.availability-note h3 {
  margin: 0;
  font-size: 19px;
}

.availability-note p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-page {
  min-height: 100vh;
  background: var(--soft);
}

.auth-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.auth-header .container {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-header .brand {
  width: 190px;
  flex-basis: 190px;
}

.auth-header .brand img {
  width: 190px;
}

.auth-back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-back:hover {
  color: var(--cyan-dark);
}

.auth-main {
  display: grid;
  min-height: calc(100vh - 72px);
  padding: 54px 0;
  align-items: center;
  gap: 70px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
}

.auth-intro {
  max-width: 600px;
}

.auth-intro p {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.auth-points {
  display: grid;
  margin-top: 30px;
  gap: 12px;
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3f4851;
  font-size: 13px;
}

.auth-point::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.auth-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-panel h1,
.auth-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.auth-panel > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form {
  display: grid;
  margin-top: 24px;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd4d9;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--cyan-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 159, 188, 0.13);
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.form-meta a,
.auth-switch a {
  color: var(--cyan-dark);
  font-weight: 600;
}

.check-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.check-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--cyan-dark);
}

.check-consent a {
  color: var(--cyan-dark);
  text-decoration: underline;
}

.form .button {
  width: 100%;
}

.form-message {
  display: none;
  padding: 14px 15px;
  border: 1px solid #ecc4bd;
  border-left: 4px solid var(--coral);
  border-radius: 6px;
  background: #fff7f5;
  color: #62352e;
  font-size: 13px;
}

.form-message.is-visible {
  display: block;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-privacy {
  margin: 15px 0 0;
  color: #7b858d;
  font-size: 11px;
  line-height: 1.55;
}

.legal {
  max-width: 820px;
}

.legal h2 {
  margin: 40px 0 10px;
  font-size: 23px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: #4f5a63;
}

.legal a {
  color: var(--cyan-dark);
  text-decoration: underline;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--soft);
}

.error-content {
  width: min(620px, calc(100% - 40px));
  text-align: center;
}

.error-code {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.error-content h1 {
  margin: 16px 0 0;
  font-size: 40px;
  line-height: 1.2;
}

.error-content p {
  margin: 14px auto 26px;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

  .nav-actions .button.secondary {
    display: none;
  }

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

  .footer-main {
    grid-template-columns: 1.4fr repeat(2, 0.8fr);
  }

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 30px, 720px);
  }

  .nav {
    min-height: 68px;
  }

  .brand {
    width: 184px;
    flex-basis: 184px;
  }

  .brand img {
    width: 184px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    z-index: 101;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 68px);
    margin: 0;
    padding: 18px 20px 24px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav-actions {
    margin-top: 16px;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-actions .button.secondary {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 44px;
  }

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

  .hero-lead {
    font-size: 18px;
  }

  .data-stage {
    grid-template-columns: 1fr;
  }

  .stage-sidebar {
    display: none;
  }

  .trust-grid,
  .card-grid,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .process-step:nth-child(3) {
    border-left: 1px solid #38414a;
  }

  .two-column,
  .contact-layout,
  .auth-main {
    gap: 42px;
    grid-template-columns: 1fr;
  }

  .auth-main {
    padding: 42px 0 54px;
  }

  .auth-intro {
    max-width: none;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 24px, 540px);
  }

  .brand,
  .auth-header .brand {
    width: 166px;
    flex-basis: 166px;
  }

  .brand img,
  .auth-header .brand img {
    width: 166px;
  }

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

  .hero-actions,
  .cta-band,
  .section-head,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .cta-band .button {
    width: 100%;
  }

  .stage-main {
    padding: 18px;
  }

  .stage-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-grid,
  .trust-grid,
  .card-grid,
  .process,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(3) {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .section {
    padding: 68px 0;
  }

  .section h2,
  .page-hero h1,
  .auth-intro h1 {
    font-size: 34px;
  }

  .page-hero {
    padding: 52px 0 44px;
  }

  .feature-row,
  .contact-channel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-step,
  .process-step:nth-child(3) {
    border-left: 1px solid #38414a;
  }

  .footer-brand,
  .footer-column:last-child {
    grid-column: auto;
  }

  .auth-header .container {
    min-height: 66px;
  }

  .auth-main {
    min-height: calc(100vh - 66px);
  }

  .auth-panel {
    padding: 22px;
  }

  .form-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.plain-list {
  display: grid;
  margin: 16px 0 0;
  padding: 0;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
}

.plain-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.case-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  min-width: 0;
  min-height: 300px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-card:nth-child(3n + 1) { border-top: 4px solid var(--cyan); }
.case-card:nth-child(3n + 2) { border-top: 4px solid var(--lime); }
.case-card:nth-child(3n) { border-top: 4px solid var(--coral); }

.case-card > span,
.document-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.case-card h2,
.document-card h2 {
  margin: 34px 0 0;
  font-size: 20px;
  line-height: 1.35;
}

.case-card p,
.document-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-list {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.document-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-card {
  display: block;
  min-width: 0;
  min-height: 270px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background-color 160ms ease;
}

.document-card:hover {
  background: var(--soft);
}

.document-card strong {
  display: block;
  margin-top: 28px;
  color: var(--cyan-dark);
  font-size: 12px;
}

@media (max-width: 940px) {
  .case-grid,
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .case-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .case-card,
  .document-card {
    min-height: 0;
  }
}
