/* ============================================================
   CROSSOVER SOFTWARE — Corporate Website Stylesheet
   Industrial software products since 2016
   ============================================================ */

/* --- CSS Variables — Crossover institutional palette --- */
:root {
  /* Navy from the "crossover" wordmark */
  --primary: #2C3E50;
  --primary-light: #4B6477;
  --primary-lighter: #7A8E97;
  /* Steel blue-grey from the arrows logo */
  --teal: #6E8893;
  --teal-light: #A8BCC5;
  /* Subtle warm accents kept (used by icons) — muted to match the cool palette */
  --coral: #B85A52;
  --coral-light: #D78A82;
  --amber: #C28E45;
  --amber-light: #DBAD6E;
  --blue-bar: #5B7C8C;
  --dark: #1F2D3D;
  --dark-2: #2C3E50;
  --dark-3: #3A5168;
  --text: #2C3E50;
  --text-light: #6E7E89;
  --text-muted: #99A5AC;
  --bg: #FFFFFF;
  --bg-light: #F4F7F9;
  --bg-alt: #E5ECEF;
  --border: #D0D9DD;
  --shadow: 0 4px 6px rgba(44,62,80,0.07);
  --shadow-lg: 0 10px 40px rgba(44,62,80,0.12);
  --shadow-xl: 0 25px 60px rgba(44,62,80,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --gradient: linear-gradient(135deg, #2C3E50, #6E8893);
  --gradient-warm: linear-gradient(135deg, #B85A52, #C28E45);
  --gradient-blue: linear-gradient(135deg, #3A5168, #7A8E97);
  --gradient-dark: linear-gradient(135deg, #1F2D3D, #2C3E50);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- TRex brand override (applied via body.trex-brand) --- */
body.trex-brand {
  --primary: #3FA834;
  --primary-light: #5DBE52;
  --primary-lighter: #A4D69D;
  --teal: #2E8B27;
  --teal-light: #6FCC65;
  --dark: #1E3A1B;
  --dark-2: #2D552A;
  --dark-3: #3FA834;
  --gradient: linear-gradient(135deg, #2E8B27, #3FA834);
  --gradient-blue: linear-gradient(135deg, #3FA834, #5DBE52);
  --gradient-dark: linear-gradient(135deg, #1E3A1B, #2E8B27);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--dark); }

/* --- Utilities --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-warm { background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-primary { color: var(--primary); }
.text-teal { color: var(--teal); }
.text-muted { color: var(--text-light); }

/* --- Section Spacing --- */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .text-muted { color: rgba(255,255,255,0.6); }
.section-gradient { background: var(--gradient); color: #fff; }
.section-gradient h1, .section-gradient h2, .section-gradient h3 { color: #fff; }
.section-gradient-dark { background: var(--gradient-dark); color: #fff; }
.section-gradient-dark h1, .section-gradient-dark h2, .section-gradient-dark h3 { color: #fff; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header .badge {
  display: inline-block; padding: 6px 16px; background: rgba(27,79,114,0.1);
  color: var(--primary); border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-dark .section-header .badge { background: rgba(255,255,255,0.15); color: #fff; }
.section-gradient .section-header .badge { background: rgba(255,255,255,0.2); color: #fff; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { font-size: 1.15rem; color: var(--text-light); }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height); background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar-brand { display: flex; align-items: center; gap: 0; }
.navbar-brand img { height: 32px; width: auto; }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 500; color: var(--text); transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); background: rgba(44,62,80,0.06); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-nav a { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1280px) {
  .navbar-nav a { padding: 8px 10px; font-size: 0.9rem; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .navbar-actions > .btn { display: none; }
}

/* Brand logo image inside navbar */
.navbar-brand img { height: 38px; width: auto; display: block; }
.navbar-brand { display: inline-flex; align-items: center; }

/* Brand logo inside dark footer (invert dark logo to white) */
.footer-brand .logo img { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand .logo { display: inline-flex; align-items: center; }

/* TRex co-brand badge on TRex sub-pages (compact pill) */
.trex-cobrand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding: 8px 14px;
  background: rgba(63,168,52,0.08);
  border: 1px solid rgba(63,168,52,0.25);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--primary);
}
.trex-cobrand img { height: 22px; width: auto; display: block; }

/* Product hero brand mark (octopus.html, trex.html) — minimal:
   logo, a hairline rule, then a letter-spaced label and a muted by-line */
.trex-hero-brand,
.octopus-hero-brand {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 40px;
}
.trex-hero-logo,
.octopus-hero-mark { display: inline-flex; align-items: center; gap: 14px; }
.trex-hero-logo img { height: 46px; width: auto; display: block; }
.octopus-hero-arrows { height: 40px; width: auto; display: block; }
.trex-hero-mop {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.3em; line-height: 1;
  color: var(--teal); margin-right: -0.3em;
}
/* the acronym spelled out, initials highlighted */
.trex-hero-mop-full {
  margin-top: 12px;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-light);
}
.trex-hero-mop-full strong { color: var(--teal); font-weight: 700; }
.octopus-hero-wordmark {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: var(--primary); letter-spacing: -0.025em;
}
.octopus-hero-dot { display: none; }
.octopus-hero-mes {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.3em;
  color: var(--teal); text-transform: uppercase;
}
.trex-hero-partner,
.octopus-hero-partner {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 22px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--primary);
}
/* hairline rule above the label */
.trex-hero-partner::before,
.octopus-hero-partner::before {
  content: ""; width: 36px; height: 1px; margin-bottom: 16px;
  background: currentColor; opacity: 0.35;
}
/* Octopus has no label: the hairline sits above the by-line */
.octopus-hero-by {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 22px !important;
}
.octopus-hero-by::before {
  content: ""; width: 36px; height: 1px; margin-bottom: 16px;
  background: var(--primary); opacity: 0.35;
}
.trex-hero-line,
.octopus-hero-line { display: none; }
.trex-hero-by,
.octopus-hero-by {
  margin-top: 8px;
  font-size: 0.88rem; color: var(--text-light);
  font-weight: 400; letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .trex-hero-logo img { height: 38px; }
  .trex-hero-mop { font-size: 1.2rem; }
  .trex-hero-mop-full { font-size: 0.68rem; letter-spacing: 0.1em; }
  .octopus-hero-arrows { height: 34px; }
  .octopus-hero-wordmark { font-size: 1.8rem; }
  .octopus-hero-mes { font-size: 0.78rem; }
  .trex-hero-partner,
  .octopus-hero-partner { font-size: 0.66rem; letter-spacing: 0.22em; }
}

body.trex-brand .navbar-nav a:hover,
body.trex-brand .navbar-nav a.active { color: var(--primary); background: rgba(63,168,52,0.08); }

/* Language selector */
.lang-selector {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  background: var(--bg-light); border: 1px solid var(--border);
}
.lang-selector:hover { border-color: var(--primary); }
.lang-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 160px; opacity: 0;
  visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 100;
}
.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  font-size: 0.9rem; color: var(--text); transition: var(--transition);
}
.lang-dropdown a:hover { background: var(--bg-light); color: var(--primary); }
.lang-dropdown a.active { color: var(--primary); font-weight: 600; }

/* Mobile toggle */
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.navbar-toggle span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  margin: 5px 0; transition: var(--transition); border-radius: 2px;
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  font-family: var(--font); text-align: center; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 15px rgba(27,79,114,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(27,79,114,0.45); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-light); transform: translateY(-2px); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: rgba(27,79,114,0.06); }

/* Button overrides for dark/gradient sections */
.section-dark .btn-secondary,
.section-gradient .btn-secondary,
.section-gradient-dark .btn-secondary,
.cta-section .btn-secondary { background: transparent; border-color: #fff; color: #fff; }
.section-dark .btn-secondary:hover,
.section-gradient .btn-secondary:hover,
.section-gradient-dark .btn-secondary:hover,
.cta-section .btn-secondary:hover { background: #fff; color: var(--primary); }
.section-dark .btn-ghost,
.section-gradient .btn-ghost,
.section-gradient-dark .btn-ghost,
.cta-section .btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.section-dark .btn-ghost:hover,
.section-gradient .btn-ghost:hover,
.section-gradient-dark .btn-ghost:hover,
.cta-section .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.section-dark .btn-white:hover,
.section-gradient .btn-white:hover { box-shadow: var(--shadow-xl); }

.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: 12px; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

/* --- Hero --- */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 100px;
  background: linear-gradient(180deg, #F0F5FA 0%, #fff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(14,138,126,0.06) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -15%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,79,114,0.05) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px; }
.hero-text p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 32px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image .placeholder-img {
  width: 100%; aspect-ratio: 4/3; background: var(--gradient);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 1.1rem; font-weight: 500;
}
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat .number { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: 0.9rem; color: var(--text-light); }

.hero-centered .hero-content { grid-template-columns: 1fr; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-centered .hero-text p { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 32px; }
.hero-centered .hero-buttons { justify-content: center; }
.hero-centered .hero-stats { justify-content: center; }
.hero-centered .hero-text h1 { font-size: 3.2rem; }

/* --- Feature / Service Cards --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px;
  border: 1px solid var(--border); transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); opacity: 0; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { opacity: 1; }
.feature-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card .icon-primary { background: rgba(27,79,114,0.1); color: var(--primary); }
.feature-card .icon-teal { background: rgba(14,138,126,0.1); color: var(--teal); }
.feature-card .icon-coral { background: rgba(214,75,106,0.1); color: var(--coral); }
.feature-card .icon-amber { background: rgba(232,168,56,0.1); color: var(--amber); }
.feature-card .icon-blue { background: rgba(74,127,181,0.1); color: var(--blue-bar); }
.feature-card .icon-dark { background: rgba(13,33,55,0.08); color: var(--dark); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }
.feature-card .learn-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 0.9rem; }
.feature-card .learn-more::after { content: '\2192'; transition: var(--transition); }
.feature-card:hover .learn-more::after { transform: translateX(4px); }

/* --- Feature Detail --- */
.feature-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.feature-detail-text .badge { display: inline-block; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; }
.feature-detail-text h2 { font-size: 2.2rem; margin-bottom: 16px; }
.feature-detail-text p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 24px; }
.feature-detail-text ul { display: flex; flex-direction: column; gap: 12px; }
.feature-detail-text ul li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; }
.feature-detail-text ul li .check {
  width: 24px; height: 24px; min-width: 24px; border-radius: 50%;
  background: rgba(14,138,126,0.1); color: var(--teal); display: flex;
  align-items: center; justify-content: center; font-size: 0.75rem; margin-top: 2px;
}
.feature-detail-image .placeholder-img {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #EBF0F5, #E8F6F3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; box-shadow: var(--shadow-lg);
}
.placeholder-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 20px;
}
.hero-image .placeholder-img img { padding: 30px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; padding: 0; }

/* --- Stats --- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; padding: 32px; }
.stat-item .number { font-family: var(--font-display); font-size: 3rem; font-weight: 800; margin-bottom: 8px; }
.stat-item .label { font-size: 1rem; opacity: 0.8; }
.section-gradient .stat-item .number,
.section-gradient-dark .stat-item .number { color: #fff; }

/* --- Testimonials --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); position: relative;
}
.testimonial-card .quote { font-size: 1.05rem; color: var(--text); line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.testimonial-card .author-info .name { font-weight: 600; font-size: 0.95rem; }
.testimonial-card .author-info .role { font-size: 0.85rem; color: var(--text-light); }
.testimonial-card .stars { color: var(--amber); margin-bottom: 16px; font-size: 1.1rem; letter-spacing: 2px; }

/* --- Portfolio / Case Studies --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.portfolio-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portfolio-card .card-img {
  height: 400px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500;
  overflow: hidden;
}
.portfolio-card .card-img.bg-gradient { background: var(--gradient); }
.portfolio-card .card-img.bg-gradient-warm { background: var(--gradient-warm); }
.portfolio-card .card-img.bg-gradient-blue { background: var(--gradient-blue); }
.portfolio-card .card-img.bg-gradient-dark { background: var(--gradient-dark); }
.portfolio-card .card-body { padding: 28px; }
.portfolio-card .card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.portfolio-card .card-body p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 16px; }
.portfolio-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.portfolio-card .tag {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; background: var(--bg-alt); color: var(--text-light);
}

/* --- Technology Grid --- */
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tech-item {
  aspect-ratio: 1; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition); padding: 20px;
}
.tech-item:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.tech-item .icon { font-size: 2rem; }
.tech-item .name { font-size: 0.8rem; font-weight: 500; color: var(--text-light); text-align: center; }

/* --- Steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step-card { text-align: center; padding: 32px 24px; }
.step-card .step-number {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gradient);
  color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-light); }

/* --- Checklist --- */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.checklist-item {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  transition: var(--transition);
}
.checklist-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.checklist-item .check-icon {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  background: rgba(14,138,126,0.1); color: var(--teal); display: flex;
  align-items: center; justify-content: center; font-size: 0.8rem;
}
.checklist-item span { font-size: 0.95rem; font-weight: 500; }

/* --- Timeline --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; height: 100%; background: var(--border);
}
.timeline-item { display: flex; margin-bottom: 40px; position: relative; }
.timeline-item:nth-child(odd) { justify-content: flex-start; padding-right: 55%; }
.timeline-item:nth-child(even) { justify-content: flex-end; padding-left: 55%; }
.timeline-dot {
  position: absolute; left: 50%; transform: translateX(-50%); top: 20px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--primary);
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--primary);
}
.timeline-content {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.timeline-content h4 { margin-bottom: 8px; }
.timeline-content p { font-size: 0.9rem; color: var(--text-light); }

/* --- CTA Section --- */
.cta-section { text-align: center; padding: 100px 0; }
.cta-section h2 { font-size: 2.8rem; margin-bottom: 20px; }
.cta-section p { font-size: 1.2rem; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Industries --- */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.industry-card {
  text-align: center; padding: 32px 20px; background: #fff;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  transition: var(--transition);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.industry-card .icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.industry-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.industry-card p { font-size: 0.85rem; color: var(--text-light); }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.faq-item.active { border-color: var(--primary); box-shadow: 0 4px 20px rgba(27,79,114,0.1); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.05rem;
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font); color: var(--text); transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question .toggle { font-size: 1.5rem; transition: var(--transition); color: var(--primary); }
.faq-item.active .faq-question .toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-card {
  background: var(--bg-light); border-radius: var(--radius-lg); padding: 28px;
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px;
}
.contact-info-card .icon {
  width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
  background: rgba(27,79,114,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-form { background: #fff; border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 10px; font-size: 1rem; font-family: var(--font);
  transition: var(--transition); background: var(--bg-light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(27,79,114,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- Logo Carousel --- */
.logo-carousel { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; padding: 40px 0; }
.logo-carousel .logo-item {
  width: 140px; height: 50px; background: var(--bg-alt); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.8rem; opacity: 0.6; transition: var(--transition);
}
.logo-carousel .logo-item:hover { opacity: 1; }

/* Animated Logo Carousel */
.logo-carousel-track {
  display: flex;
  animation: scroll-logos 30s linear infinite;
  gap: 60px;
  align-items: center;
}
.logo-carousel-wrapper {
  overflow: hidden;
  padding: 40px 0;
}
.logo-carousel-track img {
  height: 40px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.logo-carousel-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Bar accent (from logo) --- */
.bar-accent {
  display: flex; gap: 4px; margin-bottom: 20px;
}
.bar-accent span {
  width: 4px; height: 32px; border-radius: 2px;
}
.bar-accent .bar-1 { background: var(--blue-bar); }
.bar-accent .bar-2 { background: var(--teal); }
.bar-accent .bar-3 { background: var(--coral); }
.bar-accent .bar-4 { background: var(--amber); }
.bar-accent .bar-5 { background: var(--dark); }

/* --- Footer --- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand .logo { display: flex; align-items: center; gap: 0; margin-bottom: 16px; }
.footer-brand .logo img { height: 28px; filter: brightness(10); }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: 0.85rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: #fff; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.95); transition: opacity 0.5s ease, transform 0.5s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- Back to top --- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--primary); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0;
  visibility: hidden; transition: var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--teal); transform: translateY(-4px); }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark); color: rgba(255,255,255,0.8);
  padding: 20px; display: none; align-items: center;
  justify-content: space-between; gap: 20px; font-size: 0.9rem;
}
.cookie-banner.show { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text h1 { font-size: 2.3rem; }
  .hero-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }
  .hero-centered .hero-text h1 { font-size: 2.2rem; }

  .feature-detail { grid-template-columns: 1fr; gap: 40px; }
  .feature-detail.reverse { direction: ltr; }
  .feature-detail-image { order: -1; }

  .features-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.8rem; }
  .cta-section h2 { font-size: 2rem; }

  .navbar-toggle { display: block; }
  /* Clear backdrop-filter on mobile so the fixed .navbar-nav can escape the
     navbar's containing block (backdrop-filter creates one in modern browsers,
     which was collapsing the menu to a few pixels). */
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.98); }
  .navbar-nav {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    flex-direction: column; background: rgba(255,255,255,0.98);
    padding: 24px;
    transform: translateX(100%); transition: transform 0.3s ease;
    gap: 4px; overflow-y: auto; align-items: stretch;
  }
  .navbar-nav.open { transform: translateX(0); }
  .navbar-nav a { padding: 14px 16px; font-size: 1.1rem; }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item .number { font-size: 2.2rem; }

  .timeline::before { left: 20px; }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    justify-content: flex-start; padding-left: 50px; padding-right: 0;
  }
  .timeline-dot { left: 20px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .bar-accent { justify-content: center; }
  .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.9rem; }
  .hero-centered .hero-text h1 { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .container { padding: 0 16px; }
  .feature-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.5rem; }
}

@media print {
  .navbar, .footer, .back-to-top, .cookie-banner { display: none; }
  .section { padding: 20px 0; }
}

/* Inline SVG icons */
.icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }

/* --- Hero visual (composed product cards) --- */
.hero-visual {
  position: relative;
  min-height: 460px;
  display: block;
}
.hv-blob {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 78%;
  height: 78%;
  background: radial-gradient(closest-side, rgba(110,136,147,0.28), transparent 70%);
  filter: blur(28px);
  z-index: 0;
  border-radius: 50%;
}
.hv-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(44,62,80,0.14), 0 4px 12px rgba(44,62,80,0.06);
  padding: 20px 22px;
  width: 88%;
}
.hv-card-octopus {
  margin-left: 0;
  border-top: 4px solid var(--teal);
  transform: rotate(-1.5deg);
}
.hv-card-trex {
  margin-left: 12%;
  margin-top: 22px;
  border-top: 4px solid #3FA834;
  transform: rotate(1.2deg);
}
.hv-card:hover {
  transform: rotate(0deg) translateY(-4px);
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hv-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.hv-logo { height: 32px; width: auto; display: block; }
.hv-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.1;
}
.hv-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}
.hv-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--teal);
  background: rgba(110,136,147,0.10);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.hv-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3FA834;
  box-shadow: 0 0 0 4px rgba(63,168,52,0.18);
  animation: hv-pulse 2s ease-in-out infinite;
}
@keyframes hv-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hv-chart {
  width: 100%; height: 68px;
  display: block;
  margin-bottom: 14px;
}
.hv-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.hv-metrics > div {
  display: flex; flex-direction: column;
}
.hv-v {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.1;
}
.hv-l {
  font-size: 0.7rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.3px;
  margin-top: 2px;
}
.hv-modules {
  display: flex; flex-direction: column; gap: 10px;
  margin: 4px 0 0 0; padding: 0;
  list-style: none;
}
.hv-modules li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}
.hv-modules li span:nth-child(2) { flex: 1; }
.hv-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.hv-dot-green { background: #3FA834; box-shadow: 0 0 0 3px rgba(63,168,52,0.14); }
.hv-dot-amber { background: #F0B141; box-shadow: 0 0 0 3px rgba(240,177,65,0.14); }
.hv-tick {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 700;
}
.hv-modules li:has(.hv-dot-amber) .hv-tick { color: #F0B141; }

@media (max-width: 900px) {
  .hero-visual { min-height: 380px; margin-top: 24px; }
  .hv-card { width: 92%; }
  .hv-card-trex { margin-left: 6%; }
}
@media (max-width: 480px) {
  .hv-card { padding: 16px; }
  .hv-metrics { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hv-v { font-size: 1rem; }
}

/* --- Cookie consent banner (accept / reject) --- */
.cookie-banner p { margin: 0; max-width: 860px; line-height: 1.5; }
.cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  padding: 9px 20px; border-radius: 8px; border: 1px solid #fff;
  background: #fff; color: #111827; transition: opacity .2s ease, background .2s ease;
}
.cookie-btn:hover { opacity: .9; }
.cookie-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.cookie-btn-ghost:hover { background: rgba(255,255,255,0.08); opacity: 1; }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }
}

/* --- Blog (pages generated by bot/blogbot.py) --- */
.blog-hero { padding-bottom: 40px; }
.blog-section { padding-top: 40px; }
.blog-article-section { padding-top: calc(var(--nav-height, 72px) + 16px); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card h3 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; margin: 6px 0 10px; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-light); font-size: .95rem; line-height: 1.6; }
.blog-card [data-blog-group] { flex: 1; }
.blog-read { margin-top: 18px; font-weight: 600; font-size: .9rem; color: var(--primary); text-decoration: none; }
.blog-read::after { content: ' \2192'; }
.blog-meta { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-light); }
.blog-empty { text-align: center; color: var(--text-light); padding: 40px 0; }
.blog-container { max-width: 780px; }
.blog-back { display: inline-block; margin: 24px 0 32px; font-size: .9rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.blog-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: 10px 0 18px; }
.blog-excerpt { font-size: 1.2rem; line-height: 1.6; color: var(--text-light); margin-bottom: 18px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.blog-tag { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-light); color: var(--text-light); border: 1px solid var(--border); }
.blog-body { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.blog-body p { margin: 0 0 1.2em; }
.blog-body h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; margin: 1.8em 0 .6em; }
.blog-body ul { margin: 0 0 1.2em 1.2em; padding: 0; list-style: disc; }
.blog-sources ol { list-style: decimal; }
.blog-body li { margin-bottom: .4em; }
.blog-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); font-size: 1.15rem; font-style: italic; color: var(--text-light); }
.blog-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.blog-sources h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.blog-sources ol { margin-left: 1.2em; font-size: .9rem; line-height: 1.7; }
.blog-sources a { color: var(--primary); word-break: break-word; }
.blog-source-domain { color: var(--text-light); font-size: .8rem; margin-left: 4px; }
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { padding: 22px; }
  .blog-body { font-size: 1rem; }
}

/* --- Mobile layout fixes: no horizontal overflow, no zoom-out --- */
/* Anything wider than the screen makes mobile browsers widen the page (sideways scrolling,
   zoom-out). clip (unlike hidden) creates no scroll container, so window scrolling, the fixed
   navbar and scroll animations keep working. */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
img, svg, video, iframe { max-width: 100%; }
/* grid/flex children may shrink below their content width */
.feature-detail > *, .hero-content > *, .footer-grid > *, .stats-row > *, [class*="-grid"] > * { min-width: 0; }
h1, h2, h3, h4, p, li, a, td, th, blockquote { overflow-wrap: break-word; }
pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 768px) {
  /* side entrance animations push content past the right edge while they run */
  .fade-in-left, .fade-in-right { transform: translateY(24px); }
  .fade-in-left.visible, .fade-in-right.visible { transform: none; }
  .stat-item { padding: 20px 8px; }
  .stat-item .number { font-size: 2.2rem; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* --- Contact form disabled: email notice (see contact.html) --- */
.contact-mail-notice { text-align: center; padding: 8px 0; }
.contact-mail-notice p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 24px; }
.contact-mail-notice .btn { max-width: 100%; overflow-wrap: anywhere; }
