@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg-0: #f5f0e8;
  --bg-1: #ede6d6;
  --bg-2: rgba(240, 232, 218, 0.82);
  --bg-3: rgba(235, 226, 210, 0.96);
  --bg-card: linear-gradient(180deg, rgba(245, 238, 225, 0.88), rgba(238, 230, 214, 0.94));
  --line: rgba(160, 140, 110, 0.22);
  --line-strong: rgba(140, 120, 90, 0.32);
  --text-0: #110e08;
  --text-1: #2a2318;
  --text-2: #5a5040;
  --moss: #4a7058;
  --amber: #8a7040;
  --steel: #4a6a7a;
  --clay: #7a5248;
  --gold: #9a7e3a;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow-soft: 0 24px 70px rgba(120, 100, 70, 0.12);
  --shadow-card: 0 16px 40px rgba(120, 100, 70, 0.08);
  --brand-accent: #008888;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-0);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(93, 129, 103, 0.10), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(109, 141, 161, 0.08), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(175, 143, 84, 0.06), transparent 22%),
    linear-gradient(180deg, #f5f0e8 0%, #ede6d6 42%, #f2ece0 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 82%);
  opacity: 0.32;
}

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

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

.page-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
}

.brand-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 30% 30%, rgba(109, 141, 161, 0.4), transparent 40%),
    linear-gradient(145deg, #161d22, #0d1012);
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(175, 143, 84, 0.1), rgba(93, 129, 103, 0.8));
}

.brand-mark span:nth-child(1) {
  inset: 12px 11px auto;
  height: 5px;
}

.brand-mark span:nth-child(2) {
  inset: 24px 11px auto;
  height: 5px;
}

.brand-mark span:nth-child(3) {
  inset: 36px 11px auto;
  height: 5px;
}

.brand-kicker,
.eyebrow,
.card-label,
.offer-tag {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.brand-block h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.brand-copy {
  margin: 6px 0 0;
  color: var(--text-1);
  font-size: 0.9rem;
  line-height: 1.5;
}

.menu-toggle {
  display: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-0);
  font: inherit;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-nav a,
.rail-cta,
.btn {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.site-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-1);
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text-0);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(2px);
}

.rail-card,
.info-card,
.platform-card,
.offer-card,
.software-card,
.visual-panel,
.application-item {
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.rail-card {
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  color: var(--text-1);
  line-height: 1.6;
}

.rail-card p:last-child {
  margin-bottom: 0;
}

.rail-cta {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(93, 129, 103, 0.92), rgba(79, 100, 125, 0.92));
  color: #f7fafb;
  font-weight: 700;
}

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

.content {
  padding: 38px 42px 54px;
}

.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 10px 0 36px;
}

.hero-copy,
.contact-panel {
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.hero h2,
.section-heading h3,
.contact-panel h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.section-heading h3,
.contact-panel h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.9rem);
  max-width: 18ch;
}

.hero-text,
.section-heading + *,
.contact-panel p,
.info-card p,
.platform-card p,
.offer-card p,
.software-card p,
.application-item p {
  color: var(--text-1);
  line-height: 1.7;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 62ch;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(175, 143, 84, 0.92), rgba(109, 141, 161, 0.84));
  color: #101417;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-0);
}

.hero-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text-1);
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--moss));
}

.hero-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}

.visual-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.visual-primary {
  min-height: 420px;
}

.visual-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.visual-secondary {
  display: grid;
  gap: 12px;
}

.metric-label {
  margin: 0;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-1);
}

.metric-row strong {
  color: var(--text-0);
}

.section {
  padding: 20px 0 26px;
}

.section-heading {
  margin-bottom: 22px;
}

.vision-grid,
.platform-grid,
.offer-grid,
.software-layout {
  display: grid;
  gap: 18px;
}

.vision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.software-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.platform-card,
.offer-card,
.software-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.info-card h4,
.platform-card h4,
.offer-card h4,
.software-card h4,
.application-item span {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.info-card p,
.platform-card p,
.offer-card p,
.software-card p {
  margin-bottom: 0;
}

.applications-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: center;
}

.applications-art {
  width: 100%;
  min-height: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  background: var(--bg-card);
}

.application-list {
  display: grid;
  gap: 14px;
}

.application-item {
  padding: 18px 20px;
  border-radius: 20px;
}

.application-item span {
  display: block;
  margin-bottom: 10px;
}

.application-item p {
  margin: 0;
}

.highlight-card {
  background:
    radial-gradient(circle at top right, rgba(175, 143, 84, 0.18), transparent 42%),
    var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Deep Section CSS */
.deep-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.deep-section-content h3 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-0);
  margin-bottom: 16px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-1);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.feature-list strong {
  color: var(--text-0);
}

.deep-section-image {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.img-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(10, 14, 18, 0.85) 100%);
}

.product-box-overlay {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 65%;
  max-width: 400px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.8));
  transition: transform 400ms ease, filter 400ms ease;
}

.reverse-layout .product-box-overlay {
  right: auto;
  left: -20px;
}

.deep-section-image:hover .product-box-overlay {
  transform: translateY(-8px) scale(1.02);
  filter: drop-shadow(0 40px 50px rgba(0,0,0,0.9));
}

/* CSS Fader Loop */
.fader-loop {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 85%;
  max-width: 460px;
  aspect-ratio: 16/9;
  transform: rotate(-2deg);
  transition: transform 400ms ease;
  z-index: 10;
}

.fader-loop-inline {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-top: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

.fader-loop-inline img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-1);
  animation: fadeLoop4 12s infinite ease-in-out;
  opacity: 0;
}

.fader-loop-inline img:nth-child(1) { animation-delay: 0s; }
.fader-loop-inline img:nth-child(2) { animation-delay: 3s; }
.fader-loop-inline img:nth-child(3) { animation-delay: 6s; }
.fader-loop-inline img:nth-child(4) { animation-delay: 9s; }

/* Interactive Tabs Component */
.industries-section { padding-top: 40px; }

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.tab-button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  border-color: var(--text-2);
  color: var(--text-0);
}

.tab-button.is-active {
  background: #3c5474; /* Classic industrial blue matching the PNG */
  color: #fff;
  border-color: #3c5474;
}

.tabs-container {
  max-width: 1100px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  animation: fadeInTab 0.4s ease;
}

.tab-pane.is-active {
  display: grid;
}

.tab-image {
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  min-height: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
  background: #0c1417;
}

.tab-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
}

.tab-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.tab-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.tab-text h4 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--text-0);
  line-height: 1.1;
}

.tab-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 30px;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reverse-layout .fader-loop {
  right: auto;
  left: -20px;
  transform: rotate(2deg);
}

.fader-loop img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  animation: fadeLoop 9s infinite ease-in-out;
  opacity: 0;
}

.fader-loop img:nth-child(1) { animation-delay: 0s; }
.fader-loop img:nth-child(2) { animation-delay: 3s; }
.fader-loop img:nth-child(3) { animation-delay: 6s; }

@keyframes fadeLoop {
  0%   { opacity: 0; transform: scale(0.98); }
  10%  { opacity: 1; transform: scale(1); }
  33%  { opacity: 1; transform: scale(1); }
  43%  { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; }
}

@keyframes fadeLoop4 {
  0%   { opacity: 0; transform: scale(0.99); }
  5%   { opacity: 1; transform: scale(1); }
  25%  { opacity: 1; transform: scale(1); }
  30%  { opacity: 0; transform: scale(1.01); }
  100% { opacity: 0; }
}

.deep-section-image:hover .fader-loop {
  transform: translateY(-8px) scale(1.02);
}

/* ROI & FAQ Section */
.roi-faq-section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.roi-faq-container {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr; /* FAQ | Image | KPI */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center; /* Center the 3 blocks vertically */
}

/* Visual column order (HTML stays KPI -> Image -> FAQ; CSS reorders) */
.roi-faq-container .faq-column      { order: 1; }
.roi-faq-container .roi-visual-column { order: 2; }
.roi-faq-container .kpi-column      { order: 3; }

.kpi-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.roi-visual-column {
  perspective: 1000px;
}

.live-kpi-box {
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: rotateY(5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  position: relative; /* Ensure overlay fits */
}

.live-kpi-box:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.kpi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.05) 0%, rgba(10, 14, 18, 0.35) 100%);
  pointer-events: none;
}

.kpi-pulse {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulseLed 2s infinite;
}

@keyframes pulseLed {
  0% { opacity: 0.5; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.5); }
  100% { opacity: 0.5; filter: brightness(1); }
}

.metric-item {
  display: flex;
  flex-direction: column; /* Stack Value and Label */
  align-items: flex-start;
  gap: 4px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber); /* Default accent for KPIs */
  box-shadow: var(--shadow-card);
  transform: translateX(-20px);
  opacity: 0;
  animation: slideInMetric 0.6s forwards;
}

.metric-item:nth-child(1) { animation-delay: 0.2s; }
.metric-item:nth-child(2) { animation-delay: 0.4s; }
.metric-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInMetric {
  to { transform: translateX(0); opacity: 1; }
}

.metric-item .value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-0);
}

.metric-item .label {
  font-size: 1rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.faq-item:hover, .faq-item[open] {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(245, 238, 225, 0.96), rgba(232, 222, 202, 0.98));
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 1.15rem;
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}

/* =========================================================================
   PARALLAX BANNERS & ANIMATIONS
   ========================================================================= */

.parallax-banner {
  height: 350px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.65);
}

.parallax-banner h3 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 5px 15px rgba(0,0,0,0.8);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  max-width: 800px;
}

/* =========================================================================
   STORE & FORWARD ANIMATED INFOGRAPHIC
   ========================================================================= */

.store-forward-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.sf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  width: 25%;
}

.sf-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  position: relative;
}

.sf-node h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-0);
}

.sf-node p {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* Pulsing border for edge box */
.pulse-edge {
  animation: pulseEdgeLine 2s infinite;
}
@keyframes pulseEdgeLine {
  0% { border-color: var(--line-strong); box-shadow: 0 0 0 rgba(57, 255, 20, 0); }
  50% { border-color: #39ff14; box-shadow: 0 0 20px rgba(57, 255, 20, 0.4); }
  100% { border-color: var(--line-strong); box-shadow: 0 0 0 rgba(57, 255, 20, 0); }
}

/* Destruction Node (Center) */
.sf-destruction .sf-icon-box {
  border-color: var(--amber);
  background: rgba(226, 168, 74, 0.1);
}
.sf-destruction .icon-flame {
  font-size: 40px;
  animation: flameFlicker 0.5s infinite alternate;
}
@keyframes flameFlicker {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 15px var(--amber); }
}

/* Connecting Lines */
.sf-line-container {
  flex-grow: 1;
  height: 2px;
  background: var(--line-strong);
  position: relative;
  z-index: 1;
  margin: 0 20px;
  margin-bottom: 60px; /* Align with circles */
}

/* The travelling data animation */
.sf-data-packet {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 10px #00d2ff;
}

.sf-packet-1 {
  background: #39ff14;
  box-shadow: 0 0 10px #39ff14;
  animation: travelRight 3s infinite linear;
}

.sf-packet-2 {
  background: #00d2ff;
  box-shadow: 0 0 10px #00d2ff;
  animation: travelRightDashed 4s infinite linear;
}

@keyframes travelRight {
  0% { left: 0; opacity: 1; }
  90% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes travelRightDashed {
  0% { left: 0; opacity: 0; }
  10% { left: 0; opacity: 1; }
  90% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* =========================================================================
   FORMS & MISC
   ========================================================================= */

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--amber);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--text-1);
  line-height: 1.7;
  font-size: 1rem;
  border-top: 1px solid transparent;
}
.faq-item[open] .faq-content {
  border-color: rgba(255,255,255,0.05);
  animation: fadeInFaq 0.4s ease;
}

@keyframes fadeInFaq {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .hero {
    flex-direction: column;
    padding-top: 40px;
  }
  .hero-visual {
    margin-top: 40px;
    height: 400px;
  }
  .roi-faq-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .kpi-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .metric-item {
    transform: none;
    opacity: 1;
    animation: none;
  }
  .page-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: sticky;
    height: auto;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 24px 22px 42px;
  }

  .hero,
  .applications-layout,
  .vision-grid,
  .platform-grid,
  .offer-grid,
  .software-layout,
  .deep-section,
  .contact-panel,
  .roi-faq-container {
    grid-template-columns: 1fr;
  }
  
  .deep-section.reverse-layout {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .deep-section {
    display: flex;
    flex-direction: column;
  }

  .product-box-overlay {
    bottom: -10px;
    right: -10px;
    width: 60%;
  }
  .reverse-layout .product-box-overlay {
    left: -10px;
  }

  .contact-panel {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .side-rail {
    gap: 16px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-copy,
  .contact-panel,
  .visual-panel,
  .info-card,
  .platform-card,
  .offer-card,
  .software-card,
  .application-item {
    padding: 20px;
  }

  .hero h2,
  .section-heading h3,
  .contact-panel h3 {
    max-width: none;
  }

  .visual-primary {
    min-height: 300px;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ==========================================================================
   ABSTRACT BACKGROUNDS & DATA NODES (Marketing/Sovereignty focus)
   ========================================================================== */
.bg-abstract-agro { color: #fff;
  background: radial-gradient(circle at top right, rgba(0, 184, 148, 0.15) 0%, transparent 50%),
              radial-gradient(circle at bottom left, rgba(0, 255, 170, 0.1) 0%, rgba(10, 20, 30, 1) 70%);
  background-color: #0c1619;
  position: relative;
  overflow: hidden;
}
.bg-abstract-indus { color: #fff;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.15) 0%, transparent 60%),
              linear-gradient(135deg, rgba(30, 40, 50, 1) 0%, #0d1217 100%);
  background-color: #0d1217;
  position: relative;
  overflow: hidden;
}
.bg-abstract-hydro { color: #fff;
  background: radial-gradient(circle at top left, rgba(9, 132, 227, 0.2) 0%, transparent 50%),
              linear-gradient(to bottom right, #091319 0%, #04090d 100%);
  background-color: #04090d;
  position: relative;
  overflow: hidden;
}
.bg-abstract-rail { color: #fff;
  background: linear-gradient(180deg, rgba(85, 239, 196, 0.1), transparent),
              repeating-linear-gradient(to right, transparent, transparent 40px, rgba(255,255,255,0.02) 41px, rgba(255,255,255,0.02) 42px);
  background-color: #0f161a;
  position: relative;
}
.bg-abstract-vision { color: #fff;
  background: radial-gradient(circle at center, rgba(162, 155, 254, 0.15) 0%, transparent 70%),
              linear-gradient(45deg, #090c12 0%, #171d28 100%);
  background-color: #0a0e14;
}
.bg-abstract-datacenter { color: #fff;
  background: linear-gradient(90deg, rgba(0, 206, 201, 0.1) 0%, transparent 50%, rgba(9, 132, 227, 0.1) 100%),
              repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(0,206,201,0.03) 11px, rgba(0,206,201,0.02) 12px);
  background-color: #060b10;
}
.bg-abstract-extreme { color: #fff;
  background: radial-gradient(ellipse at bottom, rgba(253, 121, 168, 0.15) 0%, transparent 60%),
              linear-gradient(to top, #15100f 0%, #11151a 100%);
}
.bg-abstract-generic { color: #fff;
  background: radial-gradient(circle at center, rgba(0, 184, 148, 0.1) 0%, transparent 50%);
  background-color: #0c1417;
}

/* Add data particles / sovereignty grids pseudo elements */
.bg-abstract-agro::before, .bg-abstract-indus::before, .bg-abstract-hydro::before, 
.bg-abstract-rail::before, .bg-abstract-vision::before, .bg-abstract-datacenter::before, 
.bg-abstract-extreme::before, .bg-abstract-generic::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Override brand-mark styles for the new SVG logo */
svg.brand-mark {
  background: none;
  border: none;
  border-radius: 0;
  width: 56px;
  height: 56px;
  overflow: visible;
  /* removing the old spans styles doesn't matter since they are gone */
}

/* ==========================================================================
   CUSTOM FORM STYLES (Marketing/High-End)
   ========================================================================== */
.nexa-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
}
.nexa-form-group {
  display: flex;
  flex-direction: column;
}
.nexa-form-group.full-width {
  grid-column: 1 / -1;
}
.nexa-form label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nexa-form input,
.nexa-form select,
.nexa-form textarea {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-0);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}
.nexa-form input:focus,
.nexa-form select:focus,
.nexa-form textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  background: rgba(0, 0, 0, 0.05);
}
.nexa-form textarea {
  resize: vertical;
  min-height: 120px;
}
.nexa-form button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 10px;
  cursor: pointer;
  border: none;
}
@media (max-width: 768px) {
  .nexa-form {
    grid-template-columns: 1fr;
  }
}

/* Fix dropdown options contrasting issue in dark theme */
.nexa-form select option {
  background-color: #0f161a;
  color: #ffffff;
}

/* Force dark native dropdowns (fixes Firefox white background issue) */
.nexa-form select {
  color-scheme: light;
  -moz-appearance: none; /* remove default Firefox styling */
  -webkit-appearance: none;
  appearance: none;
  background-image: url(\'data:image/svg+xml;utf8,<svg fill="%23110e08" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.nexa-form select option {
  background-color: var(--bg-0) !important;
  color: var(--text-0) !important;
}

.live-kpi-box { color: #ffffff; }
.live-kpi-box * { color: #ffffff !important; }

.parallax-banner { color: #ffffff !important; }
.parallax-banner * { color: #ffffff !important; }

/* ==========================================================================
   THEMED ANIMATED BANNER — palette parchemin (remplace les bannières dark)
   ========================================================================== */
.banner-themed {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin: 40px 0;
  padding: 60px 32px;
  background:
    radial-gradient(circle at 18% 28%, rgba(93, 129, 103, 0.22), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(175, 143, 84, 0.18), transparent 44%),
    radial-gradient(circle at 50% 50%, rgba(109, 141, 161, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(245, 238, 225, 0.96), rgba(232, 222, 202, 0.98));
}

.banner-themed::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 112, 88, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 112, 88, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}

.banner-themed::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  top: -120px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 126, 58, 0.22), transparent 65%);
  filter: blur(10px);
  animation: bannerOrbDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.banner-themed .banner-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.banner-themed .banner-orb.moss {
  width: 280px;
  height: 280px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(74, 112, 88, 0.28), transparent 65%);
  animation: bannerOrbDrift 22s ease-in-out infinite alternate-reverse;
}

.banner-themed .banner-orb.steel {
  width: 220px;
  height: 220px;
  top: 30%;
  left: 38%;
  background: radial-gradient(circle, rgba(74, 106, 122, 0.22), transparent 65%);
  animation: bannerOrbPulse 9s ease-in-out infinite;
}

@keyframes bannerOrbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

@keyframes bannerOrbPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.18); opacity: 1; }
}

.banner-themed h3 {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: var(--text-0);
  margin: 0;
}

.banner-themed h3 em {
  font-style: normal;
  color: var(--steel);
}

.banner-themed .eyebrow {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 14px;
  text-align: center;
  color: var(--text-2);
}

@media (prefers-reduced-motion: reduce) {
  .banner-themed::after,
  .banner-themed .banner-orb { animation: none; }
}

/* ==========================================================================
   TITRES ACCENTUÉS — about.html
   ========================================================================== */
.title-accent em {
  font-style: normal;
  color: var(--steel);
}

.title-accent.moss em { color: var(--moss); }
.title-accent.amber em { color: var(--amber); }
.title-accent.clay em { color: var(--clay); }

/* ==========================================================================
   COVER — Entête décoratif (template NXC-TEMPLATE-STD-2026-001)
   ========================================================================== */
.cover {
    position: relative;
    margin: 48px 0 56px;
    padding: 56px 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top left, rgba(93, 129, 103, 0.08), transparent 34%),
        radial-gradient(circle at bottom right, rgba(175, 143, 84, 0.06), transparent 30%),
        linear-gradient(180deg, rgba(245, 238, 225, 0.94), rgba(238, 230, 214, 0.98));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.cover-svg {
    position: absolute;
    top: -60px;
    right: -120px;
    width: 600px;
    opacity: 0.18;
    pointer-events: none;
}

.cover .eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 16px;
}

.cover h1,
.cover h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.cover h1 em,
.cover h2 em {
    font-style: normal;
    color: var(--steel);
}

.cover .subtitle {
    font-size: 1.15rem;
    color: var(--text-1);
    max-width: 52ch;
    margin-bottom: 24px;
}

.cover .tagline {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(93, 129, 103, 0.25), rgba(109, 141, 161, 0.2));
    border: 1px solid var(--line-strong);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-0);
    letter-spacing: 0.01em;
}

.cover .tagline-en {
    display: block;
    margin-top: 8px;
    font-style: italic;
    font-size: 0.82rem;
    color: var(--text-2);
    font-weight: 400;
}

.cover-meta {
    margin-top: 32px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.cover-meta div {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-2);
    line-height: 1.6;
}

.cover-meta strong {
    color: var(--text-1);
    font-weight: 500;
}

@media (max-width: 768px) {
    .cover {
        padding: 36px 28px;
        margin: 24px 0 32px;
    }
    .cover-svg {
        width: 340px;
        right: -90px;
        top: -40px;
    }
}

/* Catalog Solutions Images in solutions.html */
.sol-img-agroedge { background-image: url('images/sol-agroedge.webp') !important; background-size: cover; background-position: center; }
.sol-img-indusguard { background-image: url('images/sol-indusguard.webp') !important; background-size: cover; background-position: center; }
.sol-img-hydroguard { background-image: url('images/sol-hydroguard.webp') !important; background-size: cover; background-position: center; }
.sol-img-railguard { background-image: url('images/sol-railguard.webp') !important; background-size: cover; background-position: center; }
.sol-img-visionbox { background-image: url('images/sol-visionbox.webp') !important; background-size: cover; background-position: center; }

/* ==========================================================================
   KPI box photographic backgrounds (index.html metric section)
   Placed at end of stylesheet to guarantee source-order victory over
   .bg-abstract-vision's `background:` shorthand.
   ========================================================================== */
.live-kpi-box.kpi-indusguard,
.live-kpi-box.kpi-railguard,
.live-kpi-box.kpi-agroedge,
.live-kpi-box.kpi-mineops,
.live-kpi-box.kpi-coldchain,
.live-kpi-box.kpi-remote {
  background-color: #0a0e14 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  min-height: 480px !important;
  transform: none !important;
}
.live-kpi-box.kpi-indusguard { background-image: url('images/sol-indusguard.webp') !important; }
.live-kpi-box.kpi-railguard  { background-image: url('images/sol-railguard.webp')  !important; }
.live-kpi-box.kpi-agroedge   { background-image: url('images/sol-agroedge.webp')   !important; }
.live-kpi-box.kpi-mineops    { background-image: url('images/about-banner-extreme.webp') !important; }
.live-kpi-box.kpi-coldchain  { background-image: url('images/solutions-header.webp') !important; }

/* The 3 catalog cards (IndusGuard / RailGuard / AgroEdge) are tall portrait
   "card" compositions that get cropped by `cover`. Use `contain` so the full
   image fits inside the box, on a dark backdrop matching the box. */
.live-kpi-box.kpi-indusguard,
.live-kpi-box.kpi-railguard,
.live-kpi-box.kpi-agroedge {
  background-size: contain !important;
  background-position: center !important;
  background-color: #0a0e14 !important;
}
/* The overlay would darken the contained image; soften it for these 3 only. */
.live-kpi-box.kpi-indusguard .kpi-overlay,
.live-kpi-box.kpi-railguard  .kpi-overlay,
.live-kpi-box.kpi-agroedge   .kpi-overlay {
  background: transparent !important;
}
.live-kpi-box.kpi-remote     { background-image: url('images/about-vision.webp')   !important; }

/* ==========================================================================
   Cookie / Privacy notice banner (informative, dismissable, no tracking)
   ========================================================================== */
#cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-1);
  backdrop-filter: blur(10px);
  animation: cookieNoticeIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cookie-notice-text {
  margin: 0;
  flex: 1 1 320px;
  color: var(--text-1);
}
.cookie-notice-text a {
  color: var(--steel);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cookie-notice-close {
  flex: 0 0 auto;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--moss);
  border: 1px solid var(--moss);
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.cookie-notice-close:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cookie-notice-close:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
#cookie-notice.cookie-notice-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@keyframes cookieNoticeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  #cookie-notice { padding: 12px 14px; }
  .cookie-notice-text { font-size: 0.88rem; }
}

.fader-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeLoop4 12s infinite ease-in-out;
}
.fader-slide:nth-child(1) { animation-delay: 0s; }
.fader-slide:nth-child(2) { animation-delay: 3s; }
.fader-slide:nth-child(3) { animation-delay: 6s; }
.fader-slide:nth-child(4) { animation-delay: 9s; }
