/* ==========================================================================
   ModuliX — landing page stylesheet
   Brand: primary #00569D (Pantone 301C) / accent #9DDCF9 / grey #9D9E9F
   Fonts: Rajdhani (headings) + Roboto Condensed (body) — Google Fonts
   ========================================================================== */

:root {
  --primary: #00569D;
  --primary-dark: #003B70;
  --accent: #9DDCF9;
  --ink: #1c2733;
  --body-grey: #4b5760;
  --muted-grey: #5c6770;
  --line: #e7ebed;
  --line-soft: #eef1f3;
  --bg-soft: #F6F8F9;
  --blob: #eef2f4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3 {
  font-family: 'Rajdhani', Arial, sans-serif;
  margin: 0;
  letter-spacing: 0.02em;
}

p { margin: 0; }

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

.wrap {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

.section {
  padding: 100px 100px;
}

.eyebrow {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

input, textarea {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid #dfe4e8;
  border-radius: 4px;
  width: 100%;
  color: var(--ink);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #93a0aa; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 100px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 20;
  background: #fff;
}
.site-header .logo img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 44px; }
.site-nav a:not(.btn-primary) { font-weight: 700; font-size: 14px; color: var(--ink); }
.site-nav a.btn-primary { font-weight: 700; font-size: 14px; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ---------- hero video ---------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a1620;
  aspect-ratio: 1440 / 740;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  background: #0a1620;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,20,34,0.55) 0%, rgba(6,20,34,0.15) 32%, rgba(6,20,34,0.15) 55%, rgba(6,20,34,0.82) 100%);
}
.hero-play-btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: rgba(0,86,157,0.55);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-play-btn:hover {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.06);
}
.hero-play-btn svg { margin-left: 4px; }
.hero.video-blocked .hero-play-btn { display: flex; }
.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 100px 64px;
  text-align: center;
}
.hero-copy .eyebrow { color: var(--accent); }
.hero-copy h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 700;
  margin-top: 16px;
  text-transform: uppercase;
}
.hero-copy p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 22px auto 0;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-actions .link-cta {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 4px;
}

/* ---------- clinical applications ---------- */
.clinical { text-align: center; padding-bottom: 90px; }
.clinical .eyebrow { color: var(--primary); }
.clinical h2 { font-size: 36px; color: var(--ink); margin-top: 14px; text-transform: uppercase; font-weight: 700; }
.clinical > p { font-size: 16px; color: var(--muted-grey); max-width: 640px; margin: 18px auto 0; }
.clin-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 20px;
  margin-top: 56px;
}
.clin-item { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.clin-badge {
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(157,220,249,0.28);
  display: flex; align-items: center; justify-content: center;
}
.clin-label { font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: var(--ink); line-height: 1.3; }

/* ---------- why modulix ---------- */
.why {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
}
.why-blob {
  position: absolute; left: -160px; bottom: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: var(--blob);
}
.why-inner { position: relative; display: flex; gap: 90px; flex-wrap: wrap; }
.why-head { flex: 0 0 300px; }
.why-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.why-head h2 { font-size: 32px; color: var(--ink); margin-top: 22px; text-transform: uppercase; font-weight: 700; line-height: 1.15; }
.why-grid {
  flex: 1;
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 60px;
  row-gap: 30px;
  align-content: start;
  padding-top: 6px;
}
.why-item { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--primary); }

/* ---------- comfort and finishes ---------- */
.comfort { display: flex; gap: 50px; align-items: center; overflow: hidden; flex-wrap: wrap; }
.comfort-media { flex: 0 0 58%; min-width: 320px; }
.comfort-body { flex: 1; min-width: 320px; }
.comfort-body h2 { font-size: 34px; color: var(--primary); text-transform: uppercase; font-weight: 700; }
.comfort-body > p { font-size: 17px; color: var(--body-grey); line-height: 1.6; margin-top: 20px; max-width: 520px; }
.comfort-body .eyebrow { color: #93a0aa; margin-top: 40px; }
.feature-list { display: flex; flex-direction: column; margin-top: 22px; }
.feature-row {
  display: flex; align-items: baseline; gap: 22px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.feature-list.bordered .feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-num {
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 22px; color: var(--accent); font-weight: 700; flex: 0 0 34px;
}
.feature-title { font-weight: 800; font-size: 15px; letter-spacing: 0.02em; color: var(--primary); text-transform: uppercase; }
.feature-text { font-size: 15px; color: var(--muted-grey); margin-top: 6px; }

/* ---------- technology ---------- */
.technology { background: var(--bg-soft); display: flex; gap: 80px; align-items: center; flex-wrap: wrap; }
.technology-body { flex: 1; min-width: 320px; }
.technology-body h2 { font-size: 34px; color: var(--primary); text-transform: uppercase; font-weight: 700; }
.technology-body > p { font-size: 17px; color: var(--body-grey); line-height: 1.6; margin-top: 20px; max-width: 520px; }
.technology .feature-row { border-top: 1px solid #e2e7ea; padding: 18px 0; }
.technology .feature-list .feature-row:last-child { border-bottom: 1px solid #e2e7ea; }
.technology-media { flex: 0 0 480px; min-width: 280px; display: flex; align-items: center; }

/* ---------- system principles ---------- */
.principles { text-align: center; }
.principles h2 { font-size: 34px; color: var(--ink); text-transform: uppercase; font-weight: 700; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 48px 44px;
  margin-top: 56px;
  text-align: left;
}
.princ-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.princ-title { font-weight: 700; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; margin-top: 18px; color: var(--primary); }
.princ-text { font-size: 15px; color: var(--muted-grey); line-height: 1.55; margin-top: 8px; max-width: 340px; }

/* ---------- one platform / applications ---------- */
.platform { position: relative; background: var(--bg-soft); overflow: hidden; }
.platform-blob {
  position: absolute; left: -180px; top: 40px;
  width: 560px; height: 560px; border-radius: 50%;
  background: var(--blob);
}
.platform-intro { position: relative; text-align: center; max-width: 680px; margin: 0 auto; }
.platform-intro h2 { font-size: 36px; color: var(--primary); text-transform: uppercase; font-weight: 700; line-height: 1.15; }
.platform-intro p { font-size: 17px; color: var(--body-grey); margin-top: 20px; line-height: 1.6; }
.platform-body { position: relative; display: flex; align-items: center; gap: 0; margin-top: 56px; flex-wrap: wrap; }
.platform-media { flex: 0 0 46%; display: flex; justify-content: center; min-width: 280px; }
.platform-media img { width: 100%; max-width: 520px; border-radius: 8px; }
.platform-tags { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-left: 40px; min-width: 280px; }
.tag-row { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; }
.tag-line { width: 22px; height: 2px; background: var(--accent); }
.tag-pill { color: #fff; font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 3px; line-height: 1.3; display: inline-block; background: var(--accent); }
.platform-footnote { position: relative; text-align: center; font-size: 16px; color: var(--primary); font-weight: 700; margin-top: 50px; }

/* ---------- contact ---------- */
.contact { background: var(--bg-soft); }
.contact-inner { display: flex; gap: 90px; flex-wrap: wrap; }
.contact-info { flex: 0 0 380px; min-width: 280px; }
.contact-info .eyebrow { color: var(--primary); }
.contact-info h2 { font-size: 32px; color: var(--ink); text-transform: uppercase; font-weight: 700; margin-top: 14px; }
.contact-info > p { font-size: 16px; color: var(--muted-grey); line-height: 1.6; margin-top: 18px; }
.contact-details { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.contact-details div { font-size: 15px; color: var(--ink); }
.contact-details span { font-weight: 800; }
.contact-form { flex: 1; min-width: 300px; background: #fff; border-radius: 8px; padding: 44px; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.form-field { margin-top: 20px; }
.form-field:first-child { margin-top: 0; }
.contact-form button { margin-top: 24px; width: 100%; justify-content: center; }
.form-notice { border-radius: 4px; padding: 14px 18px; font-size: 14px; font-weight: 700; margin-bottom: 24px; }
.form-notice.success { background: #e6f4ea; color: #1e7a3a; }
.form-notice.error { background: #fdecea; color: #b3261e; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--primary);
  padding: 64px 100px;
  overflow: hidden;
}
.footer-blob-1 { position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.footer-blob-2 { position: absolute; right: 180px; bottom: -160px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.footer-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-inner img { height: 54px; width: auto; }
.footer-email { font-size: 17px; font-weight: 700; color: #ffffff; letter-spacing: 0.02em; }
.footer-email:hover { color: #ffffff; text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .section, .site-header { padding-left: 56px; padding-right: 56px; }
  .hero-copy { padding-left: 56px; padding-right: 56px; }
  .clin-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .principles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .comfort-media { flex: 0 0 100%; }
  .technology-media { flex: 0 0 320px; }
}

@media (max-width: 900px) {
  .technology { flex-direction: column-reverse; }
  .technology-media { flex: 0 0 auto; width: 100%; max-width: 420px; }
  .comfort { flex-direction: column; }
  .comfort-media { order: -1; }
  .platform-body { flex-direction: column; }
  .platform-tags { padding-left: 0; margin-top: 30px; }
  .why-inner { flex-direction: column; gap: 30px; }
}

@media (max-width: 640px) {
  .section, .site-header { padding-left: 24px; padding-right: 24px; }
  .hero-copy { padding-left: 24px; padding-right: 24px; padding-bottom: 36px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .clinical { padding-bottom: 56px; }

  /* header: only the logo and the hamburger show — Request Info moves inside the menu */
  .site-nav { gap: 20px; }
  .site-nav a { display: none; }
  .nav-toggle-label {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 40px; height: 40px; cursor: pointer; flex: 0 0 40px;
  }
  .nav-toggle-label span, .nav-toggle-label::before, .nav-toggle-label::after {
    content: ''; display: block; width: 22px; height: 2px; background: var(--ink);
  }
  .nav-toggle-label::before { margin-bottom: 5px; }
  .nav-toggle-label::after { margin-top: 5px; }
  .nav-toggle:checked ~ .site-nav a {
    display: block;
  }
  .nav-toggle:checked ~ .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: center; text-align: center; gap: 18px;
    background: #fff; padding: 20px 24px 26px; border-bottom: 1px solid var(--line-soft);
  }
  .site-header { flex-wrap: wrap; }

  .hero { aspect-ratio: auto; height: 560px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-copy p { font-size: 15px; }

  .clin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .principles-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .footer-inner { justify-content: center; text-align: center; }

  /* center all text and icons on mobile */
  .why-inner { align-items: center; text-align: center; }
  .why-head { display: flex; flex-direction: column; align-items: center; }
  .why-icon { margin: 0 auto; }
  .why-grid { text-align: center; justify-items: center; }

  .comfort-body { text-align: center; }
  .comfort-body > p { margin-left: auto; margin-right: auto; }
  .technology-body { text-align: center; }
  .technology-body > p { margin-left: auto; margin-right: auto; }
  .feature-list { align-items: center; }
  .feature-row { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .feature-num { flex: none; }

  .principles-grid { text-align: center; justify-items: center; }
  .princ-icon { margin: 0 auto; }
  .princ-text { margin-left: auto; margin-right: auto; }

  .platform-tags { align-items: center; padding-left: 0; }
  .tag-row { align-self: center; flex-direction: column; gap: 8px; }

  .contact-info { text-align: center; }
  .contact-details { align-items: center; }
}
