:root {
  color-scheme: light;
  --ink: #182232;
  --muted: #5f6d7d;
  --line: #d8e1ea;
  --panel: #ffffff;
  --soft: #f3f6f9;
  --accent: #c6151f;
  --accent-dark: #93111a;
  --blue: #0f66c2;
  --green: #1d7a5f;
  --shadow: 0 18px 50px rgba(24, 34, 50, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfd;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(216, 225, 234, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #314052;
  font-size: 15px;
}

.site-nav a {
  padding: 8px 0;
}

.nav-cta {
  padding: 9px 16px !important;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
}

.nav-user {
  font-weight: 800;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.hero {
  position: relative;
  min-height: min(680px, calc(82vh - 36px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f6f8fa;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 35%, rgba(255, 255, 255, 0.22) 72%, rgba(255, 255, 255, 0.06) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 90vw);
  margin-left: 5vw;
  padding: 56px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  width: min(620px, 100%);
  color: #334155;
  font-size: clamp(17px, 1.6vw, 23px);
}

.hero-copy span {
  display: block;
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.button.danger {
  color: #fff;
  background: #7f1d1d;
}

.section {
  padding: 96px 5vw;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.metric {
  padding: 34px 22px;
  background: #fff;
}

.metric strong {
  display: block;
  color: var(--blue);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 72px;
  align-items: start;
}

.section-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-list div,
.service-steps article,
.team-grid article,
.check-grid div,
.contact-card,
.result-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 34, 50, 0.06);
}

.capability-list div {
  padding: 24px;
}

.capability-list span {
  color: var(--accent);
  font-weight: 800;
}

.capability-list strong,
.application-grid strong,
.check-grid strong {
  display: block;
  font-size: 18px;
}

.capability-list p,
.product-card p,
.product-card li,
.service-steps p,
.team-grid p,
.check-grid span,
.application-grid span {
  color: var(--muted);
}

.product-section,
.services,
.checklist {
  background: var(--soft);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 38px;
}

.product-grid {
  display: grid;
  gap: 24px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(198, 21, 31, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.product-card ul {
  margin: 0;
  padding-left: 20px;
}

.material-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(300px, 0.86fr) minmax(520px, 1.42fr);
  gap: 26px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(15, 102, 194, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.95)),
    radial-gradient(circle at 90% 12%, rgba(198, 21, 31, 0.12), transparent 26%);
  box-shadow: var(--shadow);
}

.material-product-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.material-intro h3 {
  font-size: clamp(23px, 2.4vw, 34px);
}

.material-intro p,
.material-intro li,
.material-showcase figcaption {
  color: var(--muted);
}

.material-intro ul {
  margin: 0;
  padding-left: 20px;
}

.material-intro dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 0;
}

.material-intro dl div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.material-intro dt {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.material-intro dd {
  margin: 5px 0 0;
  color: #637083;
  font-size: 13px;
}

.material-evidence {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.material-evidence-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.material-evidence-track {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}

.material-showcase figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
  height: 100%;
  min-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 34, 50, 0.08);
}

.material-showcase figure img {
  width: 100%;
  height: 100%;
  min-height: 235px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid #eef2f6;
  border-radius: 6px;
  background: #fff;
}

.material-showcase figcaption {
  display: grid;
  gap: 3px;
  min-height: 52px;
  margin-top: 0;
  font-size: 13px;
  line-height: 1.45;
}

.material-showcase figcaption strong {
  color: var(--ink);
  font-size: 14px;
}

.material-showcase figcaption span {
  color: var(--muted);
}

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

.material-evidence-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9d4e2;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.material-evidence-dots button.is-active {
  width: 22px;
  background: var(--accent);
}

.market {
  background: #102031;
  color: #fff;
}

.market .eyebrow,
.market .section-heading p {
  color: #8fd0ff;
}

.application-grid,
.service-steps,
.team-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.application-grid div {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.application-grid strong {
  margin-bottom: 14px;
  color: #fff;
}

.application-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.cases {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 246, 249, 0.95)),
    radial-gradient(circle at 82% 18%, rgba(15, 102, 194, 0.16), transparent 34%);
}

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

.case-grid article {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 34, 50, 0.08);
}

.case-grid article::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 160px;
  height: 160px;
  border: 26px solid rgba(15, 102, 194, 0.09);
  border-radius: 50%;
}

.case-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.case-grid p {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: var(--muted);
}

.case-meta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: #435366;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.service-steps article {
  padding: 24px;
}

.validation-lab {
  background:
    linear-gradient(180deg, #fff, #f4f7fa 72%),
    radial-gradient(circle at 10% 10%, rgba(15, 102, 194, 0.12), transparent 28%);
}

.service-steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.validation-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.validation-panel {
  display: grid;
  gap: 24px;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.validation-panel h3 {
  font-size: clamp(25px, 3vw, 38px);
}

.validation-panel p {
  color: var(--muted);
}

.material-panel,
.bearing-panel {
  color: var(--ink);
  background: #fff;
}

.validation-metrics {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-self: end;
  padding-top: 18px;
  border-top: 1px solid rgba(99, 112, 131, 0.22);
}

.validation-metrics strong {
  color: var(--accent);
  font-size: 20px;
  white-space: nowrap;
}

.validation-metrics span {
  color: var(--muted);
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.instrument-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 34, 50, 0.08);
}

.instrument-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2f6;
}

.instrument-grid figcaption {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.instrument-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.instrument-grid span {
  color: var(--muted);
  font-size: 14px;
}

.calculator {
  background: #fff;
}

.calc-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.calc-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.calc-launch p {
  margin-bottom: 0;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0;
  background: #e9eef4;
}

.tab {
  flex: 1;
  min-height: 54px;
  border: 0;
  cursor: pointer;
  color: #344256;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.tab.active {
  color: #fff;
  background: var(--accent);
}

.calc-form {
  display: none;
  padding: 28px;
}

.calc-form.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

label {
  color: #344256;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

select {
  appearance: none;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 28px 28px;
}

.result-card {
  padding: 20px;
  min-height: 116px;
}

.result-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.result-card strong {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
}

.calc-note {
  margin: -4px 28px 28px;
  color: var(--muted);
  font-size: 14px;
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.team-grid article {
  padding: 26px;
}

.team-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 800;
}

.check-grid {
  grid-template-columns: repeat(3, 1fr);
}

.check-grid div {
  padding: 24px;
}

.check-grid strong {
  margin-bottom: 8px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 40px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0d1d2c, #143f52 55%, #7e1118);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-card a,
.contact-card span {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 5vw;
  color: #637083;
  background: #fff;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.footer-legal a {
  color: #637083;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--blue);
}

.footer-top {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #f5f8fb;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.footer-top:hover {
  border-color: rgba(15, 102, 194, 0.32);
  background: #eef5ff;
}

.account-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 246, 249, 0.96)),
    radial-gradient(circle at 84% 8%, rgba(15, 102, 194, 0.15), transparent 30%),
    radial-gradient(circle at 6% 20%, rgba(198, 21, 31, 0.12), transparent 28%);
}

.compact-nav {
  gap: 18px;
}

.auth-layout,
.admin-layout {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: start;
}

.auth-intro {
  position: sticky;
  top: 110px;
  padding-top: 24px;
}

.auth-intro h1,
.admin-layout h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
}

.auth-intro p,
.panel-heading p,
.admin-layout .section-heading p {
  color: var(--muted);
}

.auth-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-tabs {
  margin-bottom: 0;
}

.auth-form {
  display: none;
  padding: 28px;
}

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

.form-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.panel-heading {
  padding: 28px 28px 0;
}

.form-message {
  grid-column: 2;
  min-height: 28px;
  margin: -24px 0 0;
  color: var(--green);
  font-weight: 800;
}

.form-message.error,
#admin-message.error {
  color: #b42318;
}

#logout-button {
  width: calc(100% - 56px);
  margin: 0 28px 28px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

#admin-message {
  color: var(--green);
  font-weight: 800;
}

.user-list {
  display: grid;
  gap: 18px;
}

.user-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 34, 50, 0.08);
}

.user-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.user-card-head h3 {
  margin-bottom: 4px;
}

.user-card-head span {
  color: var(--muted);
}

.status-pill {
  align-self: start;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.status-pill.disabled {
  background: #7f1d1d;
}

.status-pill.pending {
  background: #b45309;
}

.admin-user-form,
.reset-password-form {
  display: grid;
  gap: 18px;
}

.reset-password-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 14px;
  }

  .metrics-band,
  .application-grid,
  .service-steps,
  .instrument-grid,
  .case-grid,
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card,
  .material-showcase,
  .split,
  .validation-showcase,
  .contact,
  .auth-layout,
  .calc-launch {
    grid-template-columns: 1fr;
  }

  .calc-launch {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-intro {
    position: static;
  }

  .form-message {
    grid-column: 1;
  }

  .calc-results,
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82));
  }

  .hero-content {
    margin: 0 auto;
    padding: 80px 0 130px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 68px 5vw;
  }

  .metrics-band,
    .application-grid,
    .service-steps,
    .validation-showcase,
    .instrument-grid,
    .case-grid,
    .material-intro dl,
    .material-evidence,
    .team-grid,
    .check-grid,
  .form-grid,
  .form-grid.two-col,
  .form-grid.three-col,
  .calc-results {
    grid-template-columns: 1fr;
  }

  .material-showcase figure img {
    min-height: 210px;
  }

  .reset-password-form {
    grid-template-columns: 1fr;
  }

  .user-card-head,
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-form,
  .calc-results {
    padding-left: 18px;
    padding-right: 18px;
  }

  .validation-panel {
    min-height: auto;
    padding: 22px;
  }

  .validation-metrics {
    grid-template-columns: 1fr;
  }

  .calc-note {
    margin-left: 18px;
    margin-right: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}
