:root {
  --bg: #070a16;
  --bg-soft: #0d1224;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f9ff;
  --muted: #b8c0d8;
  --muted-2: #7e89aa;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #6ee7ff;
  --primary-2: #8b5cf6;
  --accent: #34d399;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(110, 231, 255, 0.16), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.18), transparent 35%),
    linear-gradient(180deg, #060817 0%, #080b18 42%, #050711 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section-pad {
  padding: 110px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 10, 22, 0.82);
  backdrop-filter: blur(20px);
  border-color: var(--line);
}

.navbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  padding: 7px;
  border-radius: 13px;
  background: #f7f9ff;
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.brand-text {
  font-size: 1.15rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-menu a {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 840px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.25rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text,
.section-subtitle,
.about-copy p,
.value-card p,
.service-card p,
.product-card p,
.lab-item p,
.contact-card p,
.site-footer p,
.site-footer span {
  color: var(--muted);
}

.hero-text {
  max-width: 700px;
  font-size: 1.18rem;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #06111b;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 44px rgba(110, 231, 255, 0.22);
}

.btn.secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.btn.light {
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-metrics div {
  min-width: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.hero-metrics strong {
  display: block;
  font-size: 1.35rem;
}

.hero-metrics span {
  color: var(--muted-2);
  font-size: 0.88rem;
}

.hero-panel {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 50% 38%, rgba(139, 92, 246, 0.12), transparent 44%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel-inner {
  min-height: 560px;
  padding: clamp(30px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-logo-img {
  width: clamp(180px, 25vw, 270px);
  height: auto;
  object-fit: contain;
  margin: 0 auto 30px;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 34px;
  background: #f7f9ff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.panel-kicker {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.panel-copy {
  color: var(--muted);
  max-width: 440px;
  margin: 18px auto 0;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.panel-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 0.84rem;
}

.trusted-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.strip-grid {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

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

.about-copy {
  display: grid;
  gap: 20px;
  font-size: 1.06rem;
}

.section-heading {
  max-width: 780px;
}

.section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

.section-subtitle {
  max-width: 650px;
  margin: 18px auto 0;
  font-size: 1.05rem;
}

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

.value-card,
.service-card,
.product-card,
.lab-item,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.18);
}

.value-card,
.service-card,
.product-card {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.value-card:hover,
.service-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 255, 0.34);
  background: rgba(255, 255, 255, 0.095);
}

.value-card {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.value-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(110, 231, 255, 0.14);
  color: var(--primary);
  margin-bottom: 22px;
}

.value-card h3,
.service-card h3,
.product-card h3,
.lab-item h3 {
  margin-bottom: 12px;
}

.services-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.12), transparent 28%);
}

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

.service-card {
  min-height: 320px;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.service-number {
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 42px;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  list-style: none;
}

.service-card li::before {
  content: "›";
  color: var(--primary);
  margin-right: 8px;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 22px;
  margin-top: 48px;
}

.product-card {
  min-height: 260px;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.product-card.featured {
  grid-row: span 2;
  min-height: 542px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 20% 18%, rgba(110, 231, 255, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(255, 255, 255, 0.07));
}

.product-card.featured h3 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.product-tag {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.13);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--primary);
  font-weight: 900;
}

.labs-section {
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.08), rgba(139, 92, 246, 0.07)),
    #080b18;
}

.lab-stack {
  display: grid;
  gap: 18px;
}

.lab-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.lab-item span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
  font-weight: 900;
}

.contact-section {
  padding-top: 60px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 0% 0%, rgba(52, 211, 153, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.07);
}

.contact-card h2 {
  margin-bottom: 20px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 7, 17, 0.62);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(110, 231, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.1);
}

.site-footer {
  padding: 70px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 18px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.site-footer a:not(.brand),
.footer-grid span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.9rem;
}

.footer-bottom span,
.footer-bottom time {
  display: inline;
  margin: 0;
}

.copyright-line {
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    inset: 76px 20px auto 20px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 10, 22, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 13px;
    border-radius: 13px;
  }

  .nav-menu a:hover,
  .nav-cta {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-grid,
  .two-col,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .hero-panel-inner {
    min-height: 470px;
  }

  .strip-grid,
  .value-grid,
  .services-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .product-card.featured {
    grid-column: 1 / -1;
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 78px 0;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-actions,
  .hero-metrics,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .copyright-line {
    white-space: normal;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel,
  .hero-panel-inner {
    min-height: 420px;
    border-radius: 26px;
  }

  .strip-grid,
  .value-grid,
  .services-grid,
  .product-showcase,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lab-item {
    grid-template-columns: 1fr;
  }

  .contact-card {
    border-radius: 26px;
  }
}
