/* ==========================================================================
   InjecTec / MultiTox — modern tech redesign
   Design system: dark navy "lab-tech" hero + alternating light/dark sections,
   cyan/violet accent gradient, glass panels, scroll-reveal micro-interactions.
   ========================================================================== */

:root {
  --bg-dark: #060a14;
  --bg-dark-alt: #0a1120;
  --bg-light: #f5f7fb;
  --bg-light-alt: #eef1f8;

  --surface-dark: rgba(255, 255, 255, 0.05);
  --surface-dark-border: rgba(255, 255, 255, 0.09);
  --surface-light: rgba(10, 20, 40, 0.035);
  --surface-light-border: rgba(10, 20, 40, 0.08);

  --text-on-dark: #f2f6fc;
  --text-on-dark-soft: #a9b6cc;
  --text-on-light: #0c1526;
  --text-on-light-soft: #56607a;

  --accent-cyan: #22e5c8;
  --accent-blue: #4f7cff;
  --accent-violet: #8c5cf5;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 55%, var(--accent-violet) 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-glow: 0 0 0 1px rgba(79, 124, 255, 0.15), 0 20px 60px -20px rgba(34, 229, 200, 0.25);
  --shadow-soft: 0 10px 40px -12px rgba(6, 10, 20, 0.35);

  --maxw: 1180px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.15; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px 2px rgba(34, 229, 200, 0.6);
}
section.dark .eyebrow { color: var(--accent-cyan); }

.grad-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-gradient);
  color: #04060c;
  box-shadow: 0 10px 30px -8px rgba(79, 124, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(79, 124, 255, 0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); transform: translateY(-2px); }
.btn-ghost.on-light { color: var(--text-on-light); border-color: rgba(10, 20, 40, 0.2); }
.btn-ghost.on-light:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ---------------------------------- Header ------------------------------ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Brand badge: the real InjecTec logo + a "part of BDR Group" mark, so the
   parent-company relationship is visible everywhere the wordmark appears
   (header, footer). Both source logos ship on white/transparent backgrounds,
   so the whole badge sits on its own white pill rather than the section's
   dark or light background — keeps it legible and on-brand either way. */
.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  box-shadow: 0 6px 20px -6px rgba(6, 10, 20, 0.4);
}
.brand-mark { display: flex; align-items: center; text-decoration: none; }
.brand-logo-injectec { height: 26px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: rgba(10, 20, 40, 0.15); flex-shrink: 0; }
.brand-parent {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-parent-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-light-soft);
  white-space: nowrap;
}
.brand-logo-bdr { height: 22px; width: auto; display: block; }

footer .brand-badge { padding: 8px 16px 8px 12px; }
footer .brand-logo-injectec { height: 28px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--text-on-dark); background: rgba(255, 255, 255, 0.06); }
.main-nav .btn { margin-left: 10px; padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-on-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------------------------- Hero -------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 90% at 15% -10%, #10203a 0%, var(--bg-dark) 55%), var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 140px 0 90px;
}

.hero canvas#netCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
}

.hero .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 60% at 50% 30%, black 30%, transparent 90%);
}

.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}
.hero .blob-1 { width: 420px; height: 420px; background: var(--accent-blue); top: -120px; right: -80px; animation: float1 14s ease-in-out infinite; }
.hero .blob-2 { width: 340px; height: 340px; background: var(--accent-violet); bottom: -100px; left: -60px; animation: float2 17s ease-in-out infinite; }
.hero .blob-3 { width: 260px; height: 260px; background: var(--accent-cyan); top: 40%; left: 55%; animation: float1 20s ease-in-out infinite reverse; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }

.hero-inner { position: relative; z-index: 2; text-align: center; margin: 0 auto; max-width: 880px; }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero p.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: var(--text-on-dark-soft);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}
.stat-chip {
  background: var(--surface-dark);
  border: 1px solid var(--surface-dark-border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.stat-chip .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat-chip .label { font-size: 0.8rem; color: var(--text-on-dark-soft); }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-on-dark-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}
.scroll-cue .line { width: 1px; height: 26px; background: linear-gradient(var(--accent-cyan), transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0.2); opacity: 0.2; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0.2); opacity: 0.2; } }

/* --------------------------------- Sections ------------------------------ */

section { position: relative; padding: 110px 0; }
section.dark { background: var(--bg-dark-alt); color: var(--text-on-dark); }
section.light { background: var(--bg-light); color: var(--text-on-light); }
section.light-alt { background: var(--bg-light-alt); color: var(--text-on-light); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.015em; }
.section-head p { color: var(--text-on-light-soft); font-size: 1.05rem; }
section.dark .section-head p { color: var(--text-on-dark-soft); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* --------------------------------- About --------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.about-grid p { color: var(--text-on-dark-soft); margin-bottom: 1.1em; }
.about-grid .founded-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface-dark); border: 1px solid var(--surface-dark-border);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.about-grid .founded-badge .num { color: var(--accent-cyan); font-family: var(--font-display); }

.bdr-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; font-weight: 600; color: var(--accent-cyan);
  text-decoration: none; font-size: 0.95rem;
}
.bdr-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.bdr-link:hover svg { transform: translate(3px, -3px); }

.parent-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}
.parent-card img { height: 46px; width: auto; flex-shrink: 0; }
.parent-card .parent-card-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-on-light-soft); margin-bottom: 2px;
}
.parent-card .parent-card-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--text-on-light);
}

.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cert-card {
  background: var(--surface-dark);
  border: 1px solid var(--surface-dark-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(34, 229, 200, 0.4); }
.cert-card svg { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--accent-cyan); }
.cert-card .label { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.cert-card .sub { font-size: 0.76rem; color: var(--text-on-dark-soft); margin-top: 3px; }
.cert-card.wide { grid-column: 1 / -1; }

/* --------------------------------- Features ------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--surface-light-border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.feature-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-gradient);
  margin-bottom: 18px;
}
.feature-card .icon-wrap svg { width: 26px; height: 26px; color: #04060c; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-on-light-soft); font-size: 0.95rem; margin: 0; }

.product-copy {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--text-on-light-soft);
  font-size: 1.05rem;
}

/* --------------------------------- Steps --------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-violet), transparent);
  opacity: 0.5;
}
.step {
  position: relative;
  padding: 0 16px;
  text-align: center;
}
.step .step-num {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg-dark-alt);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-dark-alt), var(--bg-dark-alt)), var(--accent-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-on-dark);
  position: relative;
  z-index: 2;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--text-on-dark); }
.step p { font-size: 0.9rem; color: var(--text-on-dark-soft); margin: 0; }

/* --------------------------------- Why cards ------------------------------ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-card {
  background: var(--surface-light);
  border: 1px solid var(--surface-light-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-gradient);
}
.why-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79, 124, 255, 0.1);
  margin-bottom: 20px;
}
.why-card .icon-wrap svg { width: 24px; height: 24px; color: var(--accent-blue); }
.why-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why-card p { color: var(--text-on-light-soft); font-size: 0.95rem; margin: 0; }
.why-card .stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --------------------------------- Video ---------------------------------- */

.video-frame {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--surface-dark);
  border: 1px solid var(--surface-dark-border);
  box-shadow: var(--shadow-glow);
}
.video-frame .ratio {
  position: relative;
  padding-top: 56.25%;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* --------------------------------- Contact --------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--surface-light-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text-on-light-soft); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 20, 40, 0.15);
  background: var(--bg-light-alt);
  color: var(--text-on-light);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.15);
}
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(34, 229, 200, 0.12); color: #0a7d6c; }
.form-status.err { background: rgba(255, 90, 90, 0.12); color: #b3261e; }

.contact-info {
  background: var(--bg-dark-alt);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}
.contact-info h3 { font-size: 1.1rem; margin-bottom: 20px; }
.contact-info .row {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px; font-size: 0.92rem; color: var(--text-on-dark-soft);
}
.contact-info .row svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-cyan); margin-top: 2px; }
.contact-info a { color: var(--text-on-dark); text-decoration: none; }
.contact-info a:hover { color: var(--accent-cyan); }
.contact-info .divider { height: 1px; background: var(--surface-dark-border); margin: 22px 0; }

/* --------------------------------- Footer --------------------------------- */

footer.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-soft);
  padding: 46px 0 34px;
  font-size: 0.85rem;
}
footer.site-footer .foot-top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--surface-dark-border);
  margin-bottom: 22px;
}
footer.site-footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-footer a { text-decoration: none; color: var(--text-on-dark-soft); }
footer.site-footer a:hover { color: var(--accent-cyan); }
footer.site-footer .legal { max-width: 760px; line-height: 1.7; opacity: 0.75; margin-bottom: 14px; }
footer.site-footer .copyright { opacity: 0.6; }

/* --------------------------------- Responsive ------------------------------ */

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { display: none; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 10, 20, 0.96);
    border: 1px solid var(--surface-dark-border);
    border-radius: var(--radius-md);
    padding: 10px;
    backdrop-filter: blur(14px);
  }
  .main-nav.open a { padding: 12px 14px; }
  .main-nav.open .btn { margin: 8px 4px 4px; text-align: center; justify-content: center; }
}

@media (max-width: 560px) {
  section { padding: 80px 0; }
  .hero { padding-top: 120px; }
}

@media (max-width: 480px) {
  .brand-parent-label { display: none; }
  .brand-badge { gap: 8px; padding: 6px 10px 6px 8px; }
  .brand-logo-injectec { height: 20px; }
  .brand-logo-bdr { height: 18px; }
  .parent-card { flex-direction: column; align-items: flex-start; text-align: left; }
}
