:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --ink: #29466d;
  --muted: #4f6786;
  --line: #bfd0e5;
  --primary: #2c4f82;
  --primary-soft: #e4edf9;
  --accent: #6f90bc;
  --cobalt: #355b92;
  --black: #203b63;
  --shadow: 0 18px 38px rgba(32, 59, 99, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(130, 157, 198, 0.16), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(77, 108, 157, 0.1), transparent 36%),
    linear-gradient(180deg, #fafdff 0%, var(--bg) 100%);
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.6rem;
  color: var(--black);
}

.site-header,
main {
  width: min(1160px, 94vw);
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.top-nav {
  margin-top: 0.6rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.62rem 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 94vw);
  z-index: 20;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}

.nav-links a:hover {
  background: var(--primary-soft);
  color: var(--cobalt);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart-count {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt), var(--primary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-bump {
  animation: cartBump 420ms ease;
}

@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  65% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.hero {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.1rem, 2.3vw, 2rem);
  background:
    radial-gradient(circle at 12% 20%, rgba(145, 173, 211, 0.2), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(184, 205, 232, 0.22), transparent 40%),
    linear-gradient(150deg, #ffffff 0%, #edf3fb 100%);
  box-shadow: 0 18px 38px rgba(32, 59, 99, 0.14);
  text-align: center;
  position: relative;
  z-index: 4;
}

.title-lockup {
  margin-top: 5.15rem;
  position: relative;
  height: clamp(280px, 46vh, 520px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: linear-gradient(180deg, #f7faff 0%, #f1f5fb 100%);
  box-shadow: none;
  overflow: hidden;
}

.title-globe-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(0.95) contrast(0.94) brightness(0.99);
  -webkit-mask-image:
    radial-gradient(ellipse 74% 76% at 50% 54%, #000 58%, rgba(0, 0, 0, 0.84) 71%, rgba(0, 0, 0, 0.3) 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-image:
    radial-gradient(ellipse 74% 76% at 50% 54%, #000 58%, rgba(0, 0, 0, 0.84) 71%, rgba(0, 0, 0, 0.3) 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
  mask-composite: intersect;
}

.title-lockup::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(239, 244, 251, 0.5) 78%, rgba(239, 244, 251, 0.92) 100%),
    linear-gradient(180deg, rgba(247, 250, 255, 0.92) 0%, rgba(247, 250, 255, 0) 18%, rgba(241, 245, 251, 0) 82%, rgba(241, 245, 251, 0.95) 100%);
}

.trust-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 0.9rem;
  align-items: stretch;
}

.ops-strip {
  position: relative;
  height: clamp(240px, 34vh, 380px);
  margin-top: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f6f9ff 0%, #eef3fb 100%);
}

.ops-strip-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(0.9) contrast(0.92) brightness(0.97);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, #000 16%, #000 84%, rgba(0, 0, 0, 0.9) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, #000 16%, #000 84%, rgba(0, 0, 0, 0.9) 100%);
}

.ops-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(237, 244, 252, 0.6) 0%, rgba(237, 244, 252, 0.08) 18%, rgba(237, 244, 252, 0.08) 82%, rgba(237, 244, 252, 0.6) 100%),
    linear-gradient(180deg, rgba(240, 246, 253, 0.34) 0%, rgba(240, 246, 253, 0.02) 24%, rgba(238, 243, 251, 0.02) 76%, rgba(238, 243, 251, 0.34) 100%);
}

.ops-image-panel {
  margin: 0;
}

.ops-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  filter: saturate(0.92) contrast(0.95) brightness(0.98);
}

.catalog-montage-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  opacity: 1;
  filter: saturate(0.96) contrast(0.96) brightness(0.99);
  -webkit-mask-image: none;
  mask-image: none;
}

.catalog-shell {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #eef4fc 0%, #e6eef9 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  padding: 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--cobalt);
}

.hero h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); max-width: 25ch; margin-left: auto; margin-right: auto; }
.hero p { max-width: 72ch; color: var(--muted); font-size: 1.03rem; margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.hero-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem auto 0.6rem;
  max-width: 28rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.6rem;
}

.hero-list li {
  background: #e7eff9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: #2c4f82;
  font-weight: 600;
}

.section {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-head p { color: var(--muted); margin: 0 0 0.8rem; }

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.78rem;
  font: inherit;
  background: #ffffff;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.78rem;
  font: inherit;
  resize: vertical;
  background: #ffffff;
}

.catalog-layout {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 0.28rem;
  align-items: stretch;
}

.catalog-scroll {
  margin-top: 0;
  border: 0;
  border-radius: 14px;
  height: 430px;
  overflow-y: auto;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.58);
}

.catalog-media-strip {
  width: 100%;
  max-width: none;
  margin-top: 0;
  height: 430px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: none;
  padding: 0.2rem;
}

.catalog-media-strip::after {
  display: none;
}

.ingredient-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  padding: 0.44rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  margin-bottom: 0.45rem;
}

.ingredient-name {
  font-weight: 700;
  color: var(--primary);
}
.ingredient-meta { color: var(--muted); font-size: 0.87rem; }

.item-actions {
  display: flex;
  gap: 0.28rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.46rem 0.78rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--cobalt), var(--primary));
  border-color: var(--primary);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(25, 73, 126, 0.14);
}

.button.ghost:hover { background: #edf5ff; }

.inline-contact-button {
  display: inline-flex;
  margin-left: 0.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.86rem;
  vertical-align: baseline;
}

.spec-layout,
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.8rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.trust-card {
  background: linear-gradient(160deg, #ffffff, #edf5ff);
}

.industry-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.industry-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.55rem;
  font: inherit;
  font-weight: 700;
  color: #153962;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.industry-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(39, 93, 154, 0.12);
}

.industry-tile.active {
  border-color: #4f86cf;
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(79, 134, 207, 0.16);
}

.spec-list-wrap,
.spec-viewer,
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
}

.quote-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.quote-steps strong {
  color: #153962;
}

.quote-steps span {
  color: var(--muted);
  font-size: 0.92rem;
}

.spec-list {
  margin-top: 0.62rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 380px;
  overflow: auto;
}

.spec-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.6rem;
  background: #f3f8ff;
  font: inherit;
  cursor: pointer;
}

.spec-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.spec-viewer pre,
.quote-output {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  background: #f3f8ff;
  min-height: 170px;
  white-space: pre-wrap;
}

.spec-viewer h3 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.spec-draft-note {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.spec-block {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.6rem 0.72rem;
  background: #f5f9ff;
  margin-bottom: 0.55rem;
}

.spec-block h4 {
  margin: 0 0 0.35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary);
}

.spec-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.spec-block li {
  margin-bottom: 0.18rem;
  line-height: 1.4;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quote-note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.42rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.qty-control select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem 0.35rem;
  font: inherit;
  background: #fff;
}

.cart-toast {
  position: fixed;
  right: 1rem;
  bottom: 5.7rem;
  background: linear-gradient(135deg, #1b4a8f, #133967);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 36;
}

.cart-toast.show {
  animation: toastPop 500ms ease;
}

.cart-float {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #6d9fda;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  box-shadow: var(--shadow);
  font-weight: 700;
  z-index: 37;
}

@keyframes toastPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.9); }
  30% { opacity: 1; transform: translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-drawer {
  position: fixed;
  right: 1rem;
  top: 1rem;
  width: min(390px, 94vw);
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  z-index: 40;
  box-shadow: var(--shadow);
}

.drawer-head,
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head button,
.chat-header button {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.hidden { display: none; }

.chat-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border: none;
  background: linear-gradient(135deg, #2b77b0, var(--accent));
  color: #fff;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 30;
}

.chatbot {
  position: fixed;
  right: 1rem;
  bottom: 4.2rem;
  width: min(360px, 92vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 35;
}

.chat-header { padding: 0.55rem 0.72rem; background: #eef3f9; }
.chat-body { max-height: 240px; overflow: auto; padding: 0.7rem; }

.chat-body p {
  margin: 0 0 0.5rem;
  padding: 0.55rem;
  border-radius: 9px;
  font-size: 0.88rem;
}

.chat-body .bot { background: #edf5ff; }
.chat-body .user { background: #e9f7f5; margin-left: auto; }

#trust h2,
#industries h2,
#catalog h2,
#spec-sheets h2,
#cart h2,
#contact h2 {
  letter-spacing: 0.01em;
}

.chat-form {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.6rem;
}

.chat-form button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  padding: 0.55rem;
  font: inherit;
  font-weight: 700;
}

@media (max-width: 980px) {
  .top-nav {
    border-radius: 16px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    overflow: auto;
    white-space: nowrap;
  }

  .hero-list {
    grid-template-columns: 1fr;
  }

  .title-lockup {
    height: clamp(220px, 34vh, 340px);
  }

  .ops-strip {
    width: 100%;
    height: clamp(170px, 24vh, 250px);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-shell {
    padding: 0.4rem;
  }

  .catalog-media-strip {
    height: clamp(240px, 34vh, 320px);
  }

  .trust-media-row {
    grid-template-columns: 1fr;
  }

  .ingredient-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-actions {
    justify-content: flex-start;
  }

  .spec-layout,
  .quote-layout,
  .contact-grid,
  .trust-grid,
  .industry-band,
  .quote-steps {
    grid-template-columns: 1fr;
  }
}
