:root {
  /* Vulmex corporate colours (from the logo) */
  --brand-charcoal: #333a40;
  --brand-orange: #fd6912;
  --brand-paper: #f4f3ef;

  --bg: #2b2f33;
  --panel: var(--brand-charcoal);
  --text: var(--brand-paper);
  --muted: #b8bcbf;
  --line: rgba(255, 255, 255, 0.1);
  --accent: var(--brand-orange);
  --accent-hover: #ff7f33;
  --radius: 28px;
  --gap: 18px;
  /* One width for the top bar and the rows (the intro panel is narrower). */
  --content-width: min(1180px, calc(100% - 32px));
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  width: var(--content-width);
  padding: 10px 10px 10px 24px;
  border-radius: 18px;
  /* Light bar in the logo's paper colour so the mark shows as designed. */
  background: rgba(244, 243, 239, 0.92);
  color: var(--brand-charcoal);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 58, 64, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 45px; height: 28px; }
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-charcoal);
}
.brand-name small { font-size: 0.6em; font-weight: 600; color: var(--brand-orange); }

.nav { display: flex; gap: 26px; margin: 0 auto; }
.nav a { font-size: 15px; opacity: 0.9; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.btn-cta {
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--accent);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--accent-hover); }

.btn-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(51, 58, 64, 0.08);
  font-size: 22px;
}

/* ---------- Page ---------- */
.page {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ---------- Hero: intro over a slow, muted background video ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 190px 16px 63px;
  margin-bottom: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Darkens the video so the text stays readable, and fades into the page. */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(43, 47, 51, 0.25) 0%, rgba(43, 47, 51, 0.55) 75%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { display: none; }
}

/* Frosted, see-through panel (the rows' charcoal at 45%, blurring the video
   behind it) so the text reads cleanly over the video. Raise the 0.45 for a
   more solid panel, or lower the blur to see the video more sharply. */
.intro {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px;
  border-radius: var(--radius);
  background: rgba(51, 58, 64, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.intro-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.intro h1 {
  margin-top: 18px;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.intro h1 .accent { color: var(--accent); }
.lead {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-outline:hover { border-color: var(--text); }

/* ---------- Alternating rows ---------- */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text media";
  align-items: center;
  gap: 56px;
  padding: 56px;
  margin-bottom: var(--gap);
  border-radius: var(--radius);
  background: var(--panel);
}
.row--flip { grid-template-areas: "media text"; }
.row-text { grid-area: text; }
.row-media { grid-area: media; }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.row h2 {
  margin-top: 10px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.row-lead { margin: 16px 0 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }

.points {
  list-style: none;
  color: var(--muted);
  line-height: 1.55;
}
.points li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.points strong { color: var(--text); font-weight: 600; }

.stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
  flex: 1 1 180px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.stat dt { color: var(--muted); font-size: 14px; }
.stat dd { margin-top: 4px; font-size: 20px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.stat s { color: var(--muted); }
.stat i { color: var(--accent); font-size: 18px; }
.stat b { font-size: 28px; color: var(--accent); }

.supports { margin-top: 20px; color: var(--muted); font-size: 15px; }
.supports i { color: var(--accent); margin-right: 4px; }
.supports a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Image (or video once played) */
.row-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #23272a;
}
.row-media img, .row-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.row-media video { object-fit: contain; background: #000; }
/* Screenshots that must not be cropped: show the whole image on white. */
.row-media--whole { background: #fff; }
.row-media--whole img { object-fit: contain; }

.media-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5a6066 0%, #2b2f33 55%, #23272a 100%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.media-placeholder span { padding: 10px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); }

.btn-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: rgba(35, 39, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.btn-play i { font-size: 20px; color: var(--accent); }
.btn-play:hover { background: var(--accent); }
.btn-play:hover i { color: #fff; }

/* ---------- Contact form ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* scroll-margin keeps the heading clear of the fixed top bar. */
.contact { align-items: start; scroll-margin-top: 100px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-email i { color: var(--accent); }

.contact-form {
  grid-area: media;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
/* Spam trap field: off-screen so only bots fill it in. */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn-primary { justify-self: start; white-space: nowrap; }
.contact-form .btn-primary:disabled { opacity: 0.6; cursor: default; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; font-size: 15px; line-height: 1.5; }
.form-status.is-ok { color: #7fd19b; }
.form-status.is-error { color: #ff9a7a; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 120px 16px 56px; margin-bottom: 40px; }
  .intro { padding: 36px 20px; }
  .row, .row--flip {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "text";
    gap: 28px;
    padding: 20px 20px 28px;
  }
  .contact { grid-template-areas: "text" "media"; padding-top: 28px; }

  .topbar { gap: 12px; padding-left: 16px; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 16px;
    background: rgba(244, 243, 239, 0.98);
    border: 1px solid rgba(51, 58, 64, 0.12);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; }
  .btn-cta { margin-left: auto; padding: 10px 16px; }
}
