:root{
  /* softer operational palette preserved */
  --bg:#edf2ee;
  --bg2:#e5ebe7;
  --surface:#ffffff;
  --surface-soft:#f6f8f6;
  --text:#1f2c26;
  --muted:#66766d;

  /* original lexer dna */
  --green:#4db56d;
  --green-soft:#7ec494;
  --green-deep:#1d5e35;
  --gold:#b39b6d;
  --line:rgba(56,94,72,0.08);
  --shadow: 0 12px 40px rgba(0,0,0,0.06);
  --radius:28px;
  --white-bright: #ebebe5;
}

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

body{
  font-family:'Inter',sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(77,181,109,0.08), transparent 25%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

/* TOPOLOGY BACKGROUND SURFACE GRID BACKGROUND */
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:140px 140px;
  opacity:.8;
}

body::after{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(56,94,72,0.035) 2px, transparent 2px),
    linear-gradient(90deg, rgba(56,94,72,0.035) 2px, transparent 2px);
  background-size:420px 420px;
}

.wrap{
  width:min(1380px, calc(100% - 80px));
  margin:auto;
  position:relative;
  z-index:2;
}

/* FIXED CURSOR POINTER ADJUSTMENTS */
a, button, .filter-btn {
  cursor: pointer !important;
}

/* =====================================================
NAVBAR INTERFACE SETUP
===================================================== */
nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:84px;
  backdrop-filter:blur(-1px);
  background:rgba(237,242,238,0.78);
  border-bottom:1px solid rgba(56,94,72,0.08);
  z-index:100;
}

.nav-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Logo container resized to match native dimensions cleanly without string extensions */
.logo-zone{
  display:flex;
  align-items:center;
  padding:6px 12px;
  border-radius:12px;
  background:linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.55));
  border:1px solid rgba(56,94,72,0.08);
  box-shadow:var(--shadow);
}

.logo-img{
  height:38px;
  width:auto;
  display:block;
}

.nav-links{
  display:flex;
  gap:42px;
}

.nav-links a{
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  transition:.3s ease;
}

.nav-links a:hover{
  color:var(--green-deep);
}

.nav-btn-link {
  text-decoration: none !important;
}

.nav-btn{
  height:44px;
  padding:0 24px;
  border-radius:12px;
  background:var(--surface);
  border:1px solid rgba(77,181,109,0.25);
  color:var(--green-deep);
  font-weight:600;
  font-size:12px;
  letter-spacing:0.05em;
  box-shadow:var(--shadow);
  transition: all 0.2s ease;
}

.nav-btn:hover{
  background: var(--green-deep);
  color: var(--surface);
  border-color: var(--green-deep);
}

/* Core Structural Hiding Parameters */
.nav-toggle, .nav-toggle-label, .mobile-only-contact {
  display: none;
}

/* HERO & DYNAMIC BACKGROUND GALLERY RIBBON */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
  
}

.gallery-wrapper {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 z-index: 1;
 
 
}

.gallery-ribbon {
  display: flex;
  width:200%;
  height: 100%;
  animation: slideRightGallery 45s linear infinite; /* Highly efficient operational animation */
 
}


.gallery-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.gallery-item.active {
  opacity: 1;
}

/* Fallback base color states placeholder layers representing core themes */
.slide-1 { background-image: url('./media/lex_int-off.jpeg'); }
.slide-2 { background-image: url('./media/lexer_int-on.jpeg'); }

@keyframes slideRightGallery {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* Protective transparent overlay to ensure high-contrast type readable boundaries */
.hero-overlay-shield {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(12, 16, 19, 0.85) 0%,    /* Deep protective tone directly behind text */
    rgba(12, 16, 19, 0.50) 45%,   /* Smooth transition drop */
    rgba(12, 16, 19, 0.10) 100%   /* Crystal clear on the right for your image */
  );
  z-index: 2; /* Sits directly on top of the images */
  pointer-events: none;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr 0.9fr;
  gap:80px;
  align-items:center;
  width: 100%;
  width: min(1380px, calc(100% - 80px));

}

.hero-text-block {
  position: relative;
  z-index: 10;
}

.hero-right-visual {
  position: relative;
  z-index: 20;
  height: 400px;
  display: none;
}

.hero-kicker{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #7ec494 !important; /* Switched from deep green to bright green-soft for maximum contrast */
  font-weight: 600;
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero h1{
  font-family: 'Oswald', sans-serif;
  font-size: clamp(54px, 7vw, 95px);
  line-height: .92;
  text-transform: uppercase;
  margin-bottom: 34px;
  color: #ffffff !important; /* Pure high-contrast white */
  
  /* Advanced multi-layered drop shadow to anchor text boundaries against any image tone */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 span{
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95) !important;
  
  /* Internal shadowing matrix to preserve hollow text definitions over light backdrops */
  filter: drop-shadow(0px 4px 12px rgba(0,0,0,0.5));
}

.hero-copy{
  max-width: 560px;
  color: rgba(15, 100, 33, 0.788) !important; /* Raised to near pure white instead of muted text */
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 42px;
  margin-top: 20px;
  font-weight: 400;

  /* Smooth layout shadow keeping dense paragraphs easy to read */
  text-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.329),
    0 1px 6px rgba(133, 240, 142, 0.089);

}

.hero-actions{
  display:flex;
  gap:24px;
  align-items:center;
}

.btn-main-link {
  text-decoration: none !important;
}

/* Flip text color to high-contrast white so it stands out against the dark shield */
.hero-text-block h1,
.hero-text-block .hero-copy {
  color: #ffffff !important;
}

.hero-text-block h1 span {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6) !important;
}
.btn-main{
  height:56px;
  padding:0 30px;
  border-radius:999px;
  border:none;
  background: var(--green-deep);
  color: var(--surface);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow:var(--shadow);
  transition: all 0.2s ease;
}

.btn-main:hover{
  background: var(--text);
  transform: translateY(-1px);
}

.btn-link{
  text-decoration: solid underline;
  font-size: 14px;
  font-weight: 600;
  color: var(--white-bright);
  transition: color 0.2s ease;
}

.btn-link-bg {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--white-bright);
  transition: all 0.2s ease;
}

.btn-link-bg:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white-bright);
}

.btn-link:hover {
  color: var(--text);
}

/* CASCADING SEQUENTIAL TEXT REVEAL PROPERTIES */
.cascading-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.7s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.cascading-text.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
HERO SCROLL INDICATOR */

.gallery-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
} 

.gallery-control-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white-bright);
  font-size: 24px;
  padding: 8px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-control-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--white-bright);
} 






/*ERATIONAL NETWORKS INFRASTRUCTURE LAYERS
===================================================== */
.lane{
  position:absolute;
  height:2px;
  background: linear-gradient(90deg, rgba(77,181,109,0.1), rgba(77,181,109,0.4), rgba(77,181,109,0.1));
  overflow:hidden;
}

.lane::after{
  content:'';
  position:absolute;
  width:24%;
  height:100%;
  left:-24%;
  background: linear-gradient(90deg, transparent, rgba(77,181,109,0.6), transparent);
  animation:flow 4s linear infinite;
}

@keyframes flow{
  to{ left:124%; }
}

.pin{
  position:absolute;
  width:8px;
  height:24px;
  background:rgba(56,94,72,0.25);
  border-radius:999px;
}

.sync-node{
  position:absolute;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--green);
  box-shadow: 0 0 0 8px rgba(77,181,109,0.12);
  animation:pulse 3s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.25); }
}

/* =====================================================
SECTION CORE ARCHITECTURE
===================================================== */
.section{
  padding:120px 0;
  position: relative;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:60px;
}

.kicker{
  font-family:'JetBrains Mono', monospace;
  font-size:11px;
  letter-spacing:.22em;
  color:var(--green-deep);
  margin-bottom:16px;
}

.section h2{
  font-family:'Oswald', sans-serif;
  font-size:clamp(44px, 6vw, 84px);
  line-height:.94;
  text-transform:uppercase;
}

.section-side{
  max-width:360px;
  color:var(--muted);
  line-height:1.8;
  font-size: 15px;
}

/* MAP BLOCKS HORIZONTAL OVERFLOW MATRIX */
.map-scroll{
  display:flex;
  gap:26px;
  overflow-x:auto;
  padding-bottom:24px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}

.map-scroll::-webkit-scrollbar{
  display:none;
}

.pm-module{
  min-width:440px;
  scroll-snap-align:center;
  padding:42px;
  border-radius:20px;
  background:linear-gradient(145deg, rgba(255,255,255,0.96), rgba(245,248,246,0.96));
  border:1px solid rgba(56,94,72,0.08);
  box-shadow:var(--shadow);
  transition: all .3s ease;
  position:relative;
}

.pm-module:hover{
  transform:translateY(-2px);
  border-color:rgba(77,181,109,0.25);
  background:#ffffff;
}

.pm-id{
  font-family:'JetBrains Mono', monospace;
  font-size:11px;
  letter-spacing:.16em;
  color:var(--gold);
  margin-bottom:22px;
}

.pm-module h3{
  font-size:28px;
  margin-bottom:18px;
  font-weight:500;
}

.pm-module p{
  color:var(--muted);
  line-height:1.8;
  margin-bottom:26px;
  font-size: 15px;
}

.pm-route{
  height:2px;
  background:linear-gradient(90deg, rgba(77,181,109,0.14), rgba(77,181,109,0.04));
}


.lang-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--green-deep);
    color: var(--green-deep);
    background: rgba(77, 181, 109, 0.05);
}

/* Download Action Asset Styles */
.download-spec-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-spec-btn:hover {
    background: var(--surface);
    border-color: var(--green-deep);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.download-spec-btn:hover .btn-icon-node {
    color: var(--green-deep);
    transform: translateY(2px);
}

.btn-icon-node {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* =====================================================
DIAGNOSTIC SECTION TERMINAL ENVIRONMENT
===================================================== */
.diagnostic-section {
  background-color: rgba(56, 94, 72, 0.03);
  border-top: 1px solid rgba(56,94,72,0.06);
  border-bottom: 1px solid rgba(56,94,72,0.06);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.diagnostic-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-top: 20px;
}

.terminal-container {
  background: #0f1411;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.05);
}

.terminal-header {
  background: #171e1a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: 10px;
}

.terminal-body {
  padding: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
}

.terminal-green { color: #4db56d; margin-bottom: 10px; }
.terminal-muted { color: rgba(255,255,255,0.4); margin-bottom: 30px; }

.terminal-btn {
  display: inline-block;
  background: #233229;
  border: 1px solid rgba(77,181,109,0.3);
  color: #7ec494;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.terminal-btn:hover {
  background: var(--green-deep);
  color: var(--surface);
  border-color: var(--green-deep);
}

/* =====================================================
USE CASES BLOCK GRID & FILTER COMPONENT MATRIX
==================================================== */
.use-cases-header {
  margin-bottom: 50px;
}

.filter-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid rgba(56,94,72,0.1);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.22s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--green-deep);
  color: var(--surface);
  border-color: var(--green-deep);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--surface);
  border: 1px solid rgba(56,94,72,0.08);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card.hidden-node {
  display: none !important;
}

.case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77,181,109,0.2);
  box-shadow: 0 16px 36px rgba(56,94,72,0.05);
}

.case-node-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.case-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 14px;
}

.case-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1;
}

.case-explore-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
}

.case-card:hover .case-explore-link {
  color: var(--text);
}

/* =====================================================
CALL TO ACTION PIPELINES
===================================================== */
.cta-section {
  background-color: var(--bg2);
  border-top: 1px solid rgba(56,94,72,0.06);
}

.text-center { text-align: center; }

.cta-subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-top: 15px;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  text-decoration: none !important; /* Total removal of default text underscores */
}

.btn-cta-link.btn-solid {
  background: var(--green-deep);
  color: var(--surface);
}

.btn-cta-link.btn-solid:hover {
  background: var(--text);
}

.btn-cta-link.btn-outline {
  background: transparent;
  border: 1px solid rgba(31,44,38,0.2);
  color: var(--text);
}

.btn-cta-link.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.2);
}

/* =====================================================
CORPORATE STRUCTURE FOOTER LAYOUT
===================================================== */
.footer {
  background: #111613;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: white;
}

.footer-logo-text .green-dot { color: var(--green); }

.footer-parent-notice {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  max-width: 440px;
}

.footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  transition: color 0.2s ease;
  text-decoration: underline;
}

.footer-link:hover {
  color: var(--green-soft);
}

.footer-links-social{
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}


.footer-link-logo{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* =====================================================
RESPONSIVE LAYOUT CONTROLS
===================================================== */
@media(max-width:980px){
  .hero-grid{ grid-template-columns:1fr; gap: 40px; }
  .hero-right-visual { display: none; }
  .nav-links{ display:none; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:28px; }
  .pm-module{ min-width:84vw; }
  .diagnostic-grid { grid-template-columns: 1fr; gap: 40px; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =====================================================
MULTI-PAGE COMPONENT LAYOUTS
===================================================== */
.page-header {
  padding-top: 180px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, rgba(77,181,109,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--line);
}

.content-block {
  padding: 80px 0;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media(max-width: 980px) {
  .grid-2col { grid-template-columns: 1fr; gap: 40px; }
  .wrap {
    width: calc(100% - 40px); /* Prevents layout drifts on edges */
  }
}

/* =====================================================
LOCAL DIAGNOSTIC FORM SYSTEM
===================================================== */
.diagnostic-form-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(56,94,72,0.15);
  background: var(--surface-soft);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  font-size: 14px;
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(77,181,109,0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2366766d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

textarea.form-control {
  height: 120px;
  padding: 16px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  height: 52px;
  background: var(--green-deep);
  color: var(--surface);
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.form-submit-btn:hover {
  background: var(--text);
  transform: translateY(-1px);
}

.alert-box {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  display: none;
}
.alert-box.success {
  display: block;
  background: rgba(77,181,109,0.1);
  border: 1px solid var(--green);
  color: var(--green-deep);
}
.alert-box.error {
  display: block;
  background: rgba(220,53,69,0.1);
  border: 1px solid #dc3545;
  color: #721c24;
}

/* =====================================================
   ADDITIONS: NATIVE HAMBURGER INTERACTION CORE
   ===================================================== */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 110;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--text);
  height: 2px;
  width: 22px;
  position: relative;
  transition: all 0.25s ease-in-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { bottom: -7px; }

/* =====================================================
   REWORKED: PROPORTIONAL MOBILE ARCHITECTURE MEDIA QUERY
   ===================================================== */
@media(max-width: 980px) {
  .wrap {
    width: calc(100% - 40px);
  }

  /* Hamburger Operational Blueprint */
  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen by default */
    width: 280px;
    height: 100vh;
    background: #edf2ee;
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
    padding: 40px;
  }

  .nav-links a {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
  }

  /* Hamburger transformation into an X when activated */
  .nav-toggle:checked ~ .nav-links {
    right: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  .nav-btn-link {
    display: none; /* Keeps mobile navigation uncluttered */
  }

  /* Proportional Hero Fix Rework */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0;
  }

  .hero-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 0 20px;
  }

  .hero-right-visual {
    display: none;
  }

  .hero h1 {
    font-size: clamp(32px, 7.5vw, 44px);
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 100%;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* <--- Aligne à gauche sans étirer */
    gap: 14px;
    width: 100%;
  }

  .btn-main, .btn-link-bg {
    width: auto;             /* <--- Annule le stretch plein écran */
    min-width: 240px;        /* <--- Largeur élégante et uniforme */
    text-align: center;
    height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Dynamic structural downstream adjustments */
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
  .pm-module { min-width: 290px; width: 85vw; padding: 24px; }
  .grid-2col { grid-template-columns: 1fr; gap: 30px; }
  .diagnostic-form-container { padding: 20px; }
  .use-cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-card { padding: 20px; }
  .cta-actions { flex-direction: column; gap: 12px; }
  .btn-cta-link { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }


  /* =====================================================
     MOBILE HAMBURGER CONTACT BUTTON MANAGEMENT
     ===================================================== */
  
  /* Hides the original desktop button from the main header bar */
  .desktop-only-contact {
    display: none !important;
  }

  /* Forces the new button inside the burger drawer to display nicely */
  .nav-links .mobile-only-contact {
    display: block !important;
    margin-top: 10px; /* Gives some breathing room below the language switcher */
    width: 100%;
  }

  .nav-links .mobile-only-contact .nav-btn {
    width: 100%;
    height: 48px;
    padding: 0 30px;
  }

}

/* =====================================================
   ADDITIONS: BACK TO TOP & PAGINATION INTERFACES
   ===================================================== */
.scroll-top-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background-color: var(--bg2);
}

.scroll-top-btn {
  background: transparent;
  border: 1px solid rgba(31,44,38,0.15);
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.scroll-top-btn:hover {
  border-color: var(--green-deep);
  color: var(--green-deep);
  background: var(--surface);
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.pagination-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(56,94,72,0.15);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--green-deep);
  color: var(--surface);
  border-color: var(--green-deep);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed !important;
}

.page-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

@media(max-width: 980px) {
  .pagination-wrapper { margin-top: 34px; }
}

.mobile-only-contact {
  display: none;
}