/* ============================================
   RIWEB MODERN THEME — modern.css
   All classes prefixed with m- to avoid collisions.
   ============================================ */

.modern-theme {
  --m-bg: #fafaf7;
  --m-bg-card: #ffffff;
  --m-bg-dark: #0a0a0a;
  --m-bg-soft: #f0efea;
  --m-bg-warm: #faf3ec;
  --m-bg-cool: #ecf3fa;
  --m-text: #0a0a0a;
  --m-text-muted: rgba(10,10,10,.6);
  --m-text-soft: rgba(10,10,10,.45);
  --m-line: rgba(10,10,10,.1);
  --m-line-soft: rgba(10,10,10,.06);

  --m-red: #E63946;
  --m-red-dark: #c63d2c;
  --m-blue: #1E6FBA;
  --m-blue-dark: #0c447c;
  --m-yellow: #F4C430;
  --m-yellow-dark: #c79e15;
  --m-green: #2d8b54;
  --m-coral: #D85A30;

  --m-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --m-font-serif: 'Newsreader', Georgia, serif;
  --m-font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --m-radius: 12px;
  --m-radius-sm: 6px;
  --m-radius-pill: 999px;

  --m-container: 1240px;

  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--m-font-sans);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.modern-theme *, .modern-theme *::before, .modern-theme *::after { box-sizing: border-box; }
.modern-theme img, .modern-theme svg { display: block; max-width: 100%; height: auto; }
.modern-theme a { color: inherit; text-decoration: none; }
.modern-theme button { font-family: inherit; cursor: pointer; border: none; background: none; }

.modern-theme .m-container {
  max-width: var(--m-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Brand bar */
.modern-theme .m-brand-bar {
  display: flex;
  height: 5px;
  width: 60px;
  border-radius: 2px;
  overflow: hidden;
}
.modern-theme .m-brand-bar > div:nth-child(1) { flex: 1.6; background: var(--m-red); }
.modern-theme .m-brand-bar > div:nth-child(2) { flex: 2.2; background: var(--m-blue); }
.modern-theme .m-brand-bar > div:nth-child(3) { flex: 1.2; background: var(--m-yellow); }
.modern-theme .m-brand-bar > div:nth-child(4) { flex: 1; background: var(--m-bg-dark); }

/* === TOP BAR === */
.modern-theme .m-topbar {
  background: var(--m-bg-dark);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-family: var(--m-font-mono);
  letter-spacing: .3px;
  padding: 9px 0;
}
.m-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.m-topbar a { color: rgba(255,255,255,.85); transition: color .15s; }
.m-topbar a:hover { color: #fff; }
.m-topbar-left, .m-topbar-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.m-topbar-sep { opacity: .4; }
.m-topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--m-green); box-shadow: 0 0 0 3px rgba(45,139,84,.2); display: inline-block; }
.m-lang-switch { position: relative; }
.m-lang-btn { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 4px; }
.m-lang-btn svg { width: 12px; height: 12px; }
.m-lang-btn:hover { background: rgba(255,255,255,.05); }
.m-lang-dropdown { position: absolute; top: 100%; right: 0; background: var(--m-bg-dark); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 4px 0; display: none; min-width: 80px; }
.m-lang-switch:hover .m-lang-dropdown { display: block; }
.m-lang-dropdown a { display: block; padding: 6px 12px; }
.m-lang-dropdown a:hover { background: rgba(255,255,255,.05); }

/* === HEADER === */
.modern-theme .m-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--m-line);
}
.m-nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.m-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.5px; }
.m-logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.m-logo-text { display: flex; flex-direction: column; line-height: 1; }
.m-logo-text strong { font-size: 18px; font-weight: 600; }
.m-logo-text small { font-size: 10px; font-weight: 400; color: var(--m-text-muted); font-family: var(--m-font-mono); letter-spacing: .5px; margin-top: 2px; }

.m-nav-menu { display: flex; gap: 4px; flex: 1; margin: 0 0 0 24px; padding: 0; list-style: none; }
.m-nav-item { position: relative; }
.m-nav-link {
  padding: 10px 14px; font-size: 14px; font-weight: 500;
  color: var(--m-text); border-radius: var(--m-radius-sm);
  display: flex; align-items: center; gap: 6px;
  transition: background .15s; white-space: nowrap;
}
.m-nav-link:hover { background: rgba(10,10,10,.04); }
.m-nav-link svg { width: 14px; height: 14px; opacity: .5; }

.m-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Megamenu */
.m-megamenu {
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 0.5px solid var(--m-line);
  border-radius: var(--m-radius);
  box-shadow: 0 20px 40px -12px rgba(10,10,10,.15);
  padding: 12px;
  min-width: 360px;
  display: none;
  z-index: 100;
}
.m-has-children:hover .m-megamenu { display: block; }
.m-megamenu-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.m-megamenu-item {
  display: block;
  padding: 12px;
  border-radius: var(--m-radius-sm);
  transition: background .15s;
}
.m-megamenu-item:hover { background: var(--m-bg-soft); }
.m-megamenu-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.m-megamenu-item span { display: block; font-size: 12px; color: var(--m-text-muted); }

/* Hamburger */
.m-burger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.m-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--m-text); border-radius: 2px;
  transition: all .2s;
}
.m-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.m-burger.is-open span:nth-child(2) { opacity: 0; }
.m-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.m-mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--m-bg);
  z-index: 49; overflow-y: auto;
}
.m-mobile-menu.is-open { display: block; }
.m-mobile-menu-inner { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.m-mobile-link, .m-mobile-group summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-size: 16px; font-weight: 500;
  border-radius: var(--m-radius-sm);
  cursor: pointer; list-style: none;
}
.m-mobile-group summary::-webkit-details-marker { display: none; }
.m-mobile-link:hover, .m-mobile-group summary:hover { background: rgba(10,10,10,.04); }
.m-mobile-group summary svg { width: 16px; height: 16px; transition: transform .2s; }
.m-mobile-group[open] summary svg { transform: rotate(180deg); }
.m-mobile-sub { padding: 4px 0 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.m-mobile-sub a { padding: 10px 16px; font-size: 14px; color: var(--m-text-muted); border-radius: var(--m-radius-sm); }
.m-mobile-sub a:hover { background: rgba(10,10,10,.03); color: var(--m-text); }

/* === BUTTONS === */
.modern-theme .m-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--m-radius-pill);
  font-size: 14px; font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  border: none;
}
.m-btn svg { width: 16px; height: 16px; }
.m-btn-primary { background: var(--m-bg-dark); color: #fff; }
.m-btn-primary:hover { background: var(--m-red); transform: translateY(-1px); }
.m-btn-ghost { color: var(--m-text); border: 0.5px solid var(--m-line); }
.m-btn-ghost:hover { background: rgba(10,10,10,.04); }
.m-btn-yellow { background: var(--m-yellow); color: #1a1a1a; font-weight: 600; }
.m-btn-yellow:hover { background: #ffd54f; transform: translateY(-1px); }
.m-btn-outline-white { background: transparent; color: #fff; border: 0.5px solid rgba(255,255,255,.3); }
.m-btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.05); }
.m-btn-lg { padding: 13px 24px; font-size: 15px; }
.m-btn-block { display: flex; width: 100%; justify-content: center; }

.m-link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 13px; font-weight: 500;
  color: var(--m-text);
  font-family: var(--m-font-mono);
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: gap .2s;
}
.m-link-arrow:hover { gap: 10px; color: var(--m-red); }
.m-link-arrow svg { width: 14px; height: 14px; }

.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--m-green); box-shadow: 0 0 0 3px rgba(45,139,84,.2); display: inline-block; }

/* === HERO === */
.modern-theme .m-hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.m-hero::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(244,196,48,.18), transparent 60%);
  pointer-events: none;
}
.m-hero::after {
  content: ''; position: absolute;
  bottom: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(30,111,186,.10), transparent 60%);
  pointer-events: none;
}
.m-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.m-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--m-font-mono);
  font-size: 11px;
  color: var(--m-text-soft);
  letter-spacing: .5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.m-breadcrumb a { color: var(--m-text-muted); }
.m-breadcrumb a:hover { color: var(--m-text); }
.m-breadcrumb-sep { opacity: .5; }

.m-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: rgba(30,111,186,.08);
  color: var(--m-blue-dark);
  font-family: var(--m-font-mono);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--m-radius-pill);
  margin-bottom: 22px;
  border: 0.5px solid rgba(30,111,186,.2);
}
.m-hero-h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 600;
  margin: 0 0 24px 0;
}
.m-hero-h1 em {
  font-family: var(--m-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--m-red);
}
.m-hero-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--m-text-muted);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 0 32px 0;
}
.m-hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }
.m-hero-meta {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 0.5px solid var(--m-line);
  font-size: 13px;
  color: var(--m-text-muted);
}
.m-hero-meta strong { color: var(--m-text); font-weight: 600; }

/* Hero visual */
.m-hero-visual {
  position: relative;
  aspect-ratio: 1/1.05;
  background: linear-gradient(135deg, var(--m-bg-dark) 0%, #1a1a1a 100%);
  border-radius: 28px;
  padding: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(10,10,10,.25), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.m-hero-visual::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(to right,
    var(--m-red) 0%, var(--m-red) 22%,
    var(--m-blue) 22%, var(--m-blue) 64%,
    var(--m-yellow) 64%, var(--m-yellow) 84%,
    #fff 84%, #fff 100%);
}
.m-hero-visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.m-hero-vis-circle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%; aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(230,57,70,.25), rgba(30,111,186,.15) 60%, transparent);
  filter: blur(40px);
  pointer-events: none;
}
.m-hero-vis-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; color: #fff; }
.m-hero-vis-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border: 0.5px solid rgba(255,255,255,.12);
  border-radius: var(--m-radius-pill);
  font-family: var(--m-font-mono);
  font-size: 11px;
  align-self: flex-start;
  color: rgba(255,255,255,.85);
}
.m-hero-vis-tag .m-dot { background: var(--m-yellow); box-shadow: 0 0 8px rgba(244,196,48,.6); }

.m-hero-vis-stats { margin-top: auto; }
.m-hero-vis-stats-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.m-hero-vis-stat {
  padding: 18px;
  background: rgba(255,255,255,.04);
  border: 0.5px solid rgba(255,255,255,.08);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.m-hero-vis-stat-num { font-size: 32px; font-weight: 600; letter-spacing: -1px; line-height: 1; }
.m-hero-vis-stat-num small { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.5); margin-left: 4px; }
.m-hero-vis-stat-label { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px; font-family: var(--m-font-mono); letter-spacing: .3px; }
.m-hero-vis-svg { width: 100%; height: 100%; max-height: 320px; color: rgba(255,255,255,.7); }

/* === SECTION === */
.modern-theme .m-section { padding: 96px 0; }
.modern-theme .m-section-soft { background: var(--m-bg-soft); }
.modern-theme .m-section-warm { background: var(--m-bg-warm); }
.m-section-head { max-width: 720px; margin-bottom: 56px; }
.m-section-head-narrow { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.m-section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--m-font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--m-text-muted);
  margin-bottom: 16px;
}
.m-section-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px;
  background: var(--m-red);
}
.m-section-h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0 0 16px 0;
}
.m-section-h2 em {
  font-family: var(--m-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--m-red);
}
.m-section-lead {
  font-size: 18px;
  color: var(--m-text-muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

/* === INTRO === */
.m-intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}
.m-intro-prose { color: var(--m-text); }
.m-intro-prose p { font-size: 16px; line-height: 1.65; margin: 0 0 16px 0; color: var(--m-text-muted); }
.m-intro-prose .m-prose-first { font-size: 17px; line-height: 1.65; color: var(--m-text); }
.m-intro-prose strong { color: var(--m-text); font-weight: 600; }
.m-intro-stats {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px;
  background: var(--m-bg-card);
  border: 0.5px solid var(--m-line);
  border-radius: var(--m-radius);
}
.m-intro-stat { padding: 12px 0; border-bottom: 0.5px dashed var(--m-line-soft); }
.m-intro-stat:last-child { border-bottom: none; padding-bottom: 0; }
.m-intro-stat:first-child { padding-top: 0; }
.m-intro-stat-num {
  font-size: 32px; font-weight: 600; letter-spacing: -1px;
  line-height: 1; color: var(--m-red);
  font-family: var(--m-font-sans);
}
.m-intro-stat-num small { font-size: .55em; color: var(--m-text-soft); margin-left: 2px; font-weight: 500; }
.m-intro-stat-label {
  font-size: 12px; color: var(--m-text-muted);
  font-family: var(--m-font-mono);
  letter-spacing: .3px; margin-top: 6px;
}

/* === FEATURES === */
.m-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.m-feature-card {
  position: relative; overflow: hidden;
  padding: 32px 28px 28px;
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  border: 0.5px solid var(--m-line);
  transition: all .25s;
  display: flex; flex-direction: column;
}
.m-feature-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(10,10,10,.12); border-color: transparent; }
.m-feature-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.m-tile-red::before { background: var(--m-red); }
.m-tile-blue::before { background: var(--m-blue); }
.m-tile-yellow::before { background: var(--m-yellow); }
.m-tile-green::before { background: var(--m-green); }
.m-tile-coral::before { background: var(--m-coral); }
.m-tile-dark::before { background: var(--m-bg-dark); }

.m-feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.m-tile-red .m-feature-icon { background: rgba(230,57,70,.1); color: var(--m-red); }
.m-tile-blue .m-feature-icon { background: rgba(30,111,186,.1); color: var(--m-blue); }
.m-tile-yellow .m-feature-icon { background: rgba(244,196,48,.15); color: var(--m-yellow-dark); }
.m-tile-green .m-feature-icon { background: rgba(45,139,84,.1); color: var(--m-green); }
.m-tile-coral .m-feature-icon { background: rgba(216,90,48,.1); color: var(--m-coral); }
.m-tile-dark .m-feature-icon { background: rgba(10,10,10,.06); color: var(--m-text); }
.m-feature-icon svg { width: 26px; height: 26px; stroke-width: 1.6; }
.m-feature-num {
  font-family: var(--m-font-mono); font-size: 11px;
  color: var(--m-text-soft); letter-spacing: .5px;
  margin-bottom: 8px;
}
.m-feature-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 8px 0; }
.m-feature-card p { font-size: 14.5px; color: var(--m-text-muted); line-height: 1.55; margin: 0; }
.m-feature-meta {
  margin-top: 14px; padding-top: 14px;
  border-top: 0.5px solid var(--m-line-soft);
  font-size: 12.5px; color: var(--m-text-soft);
  font-family: var(--m-font-mono); line-height: 1.5;
}
.m-feature-meta strong { color: var(--m-text); font-weight: 600; }

/* === USECASES === */
.m-usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.m-usecase-card {
  padding: 28px 24px;
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  border: 0.5px solid var(--m-line);
  position: relative;
}
.m-usecase-num {
  font-family: var(--m-font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--m-red);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.m-usecase-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px 0; letter-spacing: -.2px; }
.m-usecase-card p { font-size: 14px; color: var(--m-text-muted); line-height: 1.55; margin: 0; }
.m-usecase-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.m-tag {
  padding: 4px 10px;
  background: var(--m-bg-soft);
  border-radius: var(--m-radius-pill);
  font-size: 11px;
  font-family: var(--m-font-mono);
  color: var(--m-text-muted);
  letter-spacing: .3px;
}

/* === COMPARISON === */
.m-comparison {
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  border: 0.5px solid var(--m-line);
  overflow: hidden;
}
.m-comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 0.5px solid var(--m-line-soft);
}
.m-comparison-row:last-child { border-bottom: none; }
.m-comparison-row:first-child { background: var(--m-bg-soft); font-weight: 600; }
.m-comparison-cell { padding: 18px 24px; font-size: 14px; }

/* === CASE PREVIEW === */
.m-case-large {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 0;
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  overflow: hidden;
  border: 0.5px solid var(--m-line);
}
.m-case-card {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  overflow: hidden;
  border: 0.5px solid var(--m-line);
  transition: all .2s;
}
.m-case-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(10,10,10,.1); border-color: var(--m-bg-dark); }
.m-case-visual {
  background: linear-gradient(135deg, var(--m-bg-dark) 0%, #2a2a2a 100%);
  position: relative; overflow: hidden;
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.m-visual-red { background: linear-gradient(135deg, var(--m-red) 0%, var(--m-red-dark) 100%); }
.m-visual-blue { background: linear-gradient(135deg, var(--m-blue) 0%, var(--m-blue-dark) 100%); }
.m-visual-yellow { background: linear-gradient(135deg, var(--m-yellow) 0%, var(--m-yellow-dark) 100%); }
.m-case-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.m-case-visual-tag {
  position: absolute; top: 20px; left: 20px;
  padding: 6px 12px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: var(--m-radius-pill);
  border: 0.5px solid rgba(255,255,255,.2);
  font-family: var(--m-font-mono);
  font-size: 11px; color: #fff;
  letter-spacing: .4px;
}
.m-case-visual-num {
  font-size: 120px; font-weight: 700;
  color: rgba(255,255,255,.12);
  letter-spacing: -3px;
  font-family: var(--m-font-serif);
  line-height: 1;
}
.m-case-content { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.m-case-meta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 14px;
  font-family: var(--m-font-mono); font-size: 11px;
  color: var(--m-text-soft); letter-spacing: .5px;
  text-transform: uppercase; flex-wrap: wrap;
}
.m-case-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--m-text-soft); }
.m-case-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 10px 0; line-height: 1.25; }
.m-case-card p { font-size: 15px; color: var(--m-text-muted); line-height: 1.55; margin: 0 0 8px 0; }

/* === FAQ === */
.m-faq-list { max-width: 800px; margin: 0 auto; }
.m-faq-item {
  background: var(--m-bg-card);
  border: 0.5px solid var(--m-line);
  border-radius: var(--m-radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.m-faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px; font-weight: 600;
  list-style: none;
  color: var(--m-text);
}
.m-faq-question::-webkit-details-marker { display: none; }
.m-faq-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--m-text-muted);
}
.m-faq-item[open] .m-faq-icon { transform: rotate(180deg); }
.m-faq-answer {
  padding: 0 24px 24px;
  font-size: 14.5px; line-height: 1.65;
  color: var(--m-text-muted);
}
.m-faq-answer strong { color: var(--m-text); font-weight: 600; }

/* === HTML === */
.m-prose p { font-size: 16px; line-height: 1.7; color: var(--m-text-muted); margin: 0 0 16px 0; }
.m-prose strong { color: var(--m-text); font-weight: 600; }
.m-prose h3 { font-size: 22px; font-weight: 600; margin: 28px 0 12px 0; }
.m-prose ul, .m-prose ol { padding-left: 20px; margin: 0 0 16px 0; }
.m-prose li { margin-bottom: 6px; line-height: 1.6; }

/* === HOMEPAGE: Voor wie tegels === */
.m-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.m-big-tile {
  position: relative; overflow: hidden;
  padding: 32px 28px 28px;
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  border: 0.5px solid var(--m-line);
  transition: all .25s;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.m-big-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(10,10,10,.12); border-color: transparent; }
.m-big-tile::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; transition: height .25s; }
.m-big-tile:hover::before { height: 5px; }
.m-big-tile.m-tile-red::before { background: var(--m-red); }
.m-big-tile.m-tile-blue::before { background: var(--m-blue); }
.m-big-tile.m-tile-yellow::before { background: var(--m-yellow); }
.m-big-tile-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.m-big-tile.m-tile-red .m-big-tile-icon { background: rgba(230,57,70,.1); color: var(--m-red); }
.m-big-tile.m-tile-blue .m-big-tile-icon { background: rgba(30,111,186,.1); color: var(--m-blue); }
.m-big-tile.m-tile-yellow .m-big-tile-icon { background: rgba(244,196,48,.15); color: var(--m-yellow-dark); }
.m-big-tile-icon svg { width: 26px; height: 26px; stroke-width: 1.6; }
.m-big-tile h3 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 8px 0; }
.m-big-tile p { font-size: 14.5px; color: var(--m-text-muted); line-height: 1.55; flex: 1; margin: 0; }
.m-tile-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 13px; font-weight: 500;
  color: var(--m-text);
  font-family: var(--m-font-mono);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.m-tile-link svg { width: 14px; height: 14px; transition: transform .2s; }
.m-big-tile:hover .m-tile-link svg { transform: translateX(4px); }

/* === STATS BAND === */
.m-section-stats {
  background: var(--m-bg-dark);
  color: #fff;
  position: relative; overflow: hidden;
}
.m-section-stats::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(to right,
    var(--m-red) 0%, var(--m-red) 22%,
    var(--m-blue) 22%, var(--m-blue) 64%,
    var(--m-yellow) 64%, var(--m-yellow) 84%,
    #fff 84%, #fff 100%);
}
.m-section-stats::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.m-section-stats .m-container { position: relative; z-index: 1; }
.m-section-stats .m-section-eyebrow { color: rgba(255,255,255,.55); }
.m-section-stats .m-section-eyebrow::before { background: var(--m-yellow); }
.m-section-stats .m-section-h2 { color: #fff; }
.m-section-stats .m-section-h2 em { color: var(--m-yellow); }
.m-section-stats .m-section-lead { color: rgba(255,255,255,.7); }
.m-stats-band-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.m-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid rgba(255,255,255,.1);
}
.m-stat-block {
  padding: 36px 28px;
  border-right: 0.5px solid rgba(255,255,255,.1);
}
.m-stat-block:last-child { border-right: none; }
.m-stat-num {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.m-stat-num small { font-size: .45em; color: var(--m-yellow); margin-left: 4px; -webkit-text-fill-color: var(--m-yellow); }
.m-stat-label {
  font-family: var(--m-font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.m-stat-desc { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.5; margin: 0; }

/* === SECTORS GRID === */
.m-sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.m-sector-tile {
  position: relative; overflow: hidden;
  padding: 24px;
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  border: 0.5px solid var(--m-line);
  transition: all .2s;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 160px;
}
.m-sector-tile:hover { transform: translateY(-2px); border-color: var(--m-bg-dark); box-shadow: 0 12px 24px -8px rgba(10,10,10,.12); }
.m-sector-tile-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.m-sector-tile.m-tile-red .m-sector-tile-icon { background: rgba(230,57,70,.08); color: var(--m-red); }
.m-sector-tile.m-tile-blue .m-sector-tile-icon { background: rgba(30,111,186,.08); color: var(--m-blue); }
.m-sector-tile.m-tile-yellow .m-sector-tile-icon { background: rgba(244,196,48,.15); color: var(--m-yellow-dark); }
.m-sector-tile.m-tile-green .m-sector-tile-icon { background: rgba(45,139,84,.1); color: var(--m-green); }
.m-sector-tile.m-tile-coral .m-sector-tile-icon { background: rgba(216,90,48,.1); color: var(--m-coral); }
.m-sector-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.m-sector-tile h4 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; margin: 0; }
.m-sector-tile p { font-size: 12.5px; color: var(--m-text-muted); line-height: 1.5; font-family: var(--m-font-mono); margin: 0; }

/* === CASES LIST === */
.m-cases-list { display: grid; gap: 20px; }

/* === PROCESS === */
.m-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.m-process::before {
  content: ''; position: absolute;
  top: 50px; left: calc(12.5% + 16px); right: calc(12.5% + 16px);
  height: 1px;
  background: repeating-linear-gradient(to right, var(--m-line) 0, var(--m-line) 4px, transparent 4px, transparent 8px);
  z-index: 0;
}
.m-process-step {
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  padding: 24px;
  border: 0.5px solid var(--m-line);
  position: relative;
  z-index: 1;
}
.m-process-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--m-bg);
  border: 0.5px solid var(--m-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--m-font-mono);
  font-size: 14px; font-weight: 600;
  margin-bottom: 18px;
}
.m-process-step h4 { font-size: 17px; font-weight: 600; margin: 0 0 8px 0; letter-spacing: -.2px; }
.m-process-step p { font-size: 14px; color: var(--m-text-muted); line-height: 1.55; margin: 0; }
.m-process-time {
  margin-top: 14px;
  font-family: var(--m-font-mono);
  font-size: 11px; color: var(--m-text-soft);
  letter-spacing: .5px;
}

/* === TESTIMONIAL === */
.m-section-testimonial { padding-top: 0; }
.m-testimonial {
  background: var(--m-bg-warm);
  border-radius: var(--m-radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.m-testimonial::before {
  content: '"';
  position: absolute;
  top: -40px; left: 30px;
  font-family: var(--m-font-serif);
  font-size: 240px;
  color: var(--m-red);
  opacity: .12;
  line-height: 1;
}
.m-testimonial-content { position: relative; z-index: 1; }
.m-testimonial-quote {
  font-family: var(--m-font-serif);
  font-size: 24px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--m-text);
  margin: 0 0 28px 0;
}
.m-testimonial-quote em { color: var(--m-red); font-style: italic; }
.m-testimonial-author { display: flex; align-items: center; gap: 14px; }
.m-testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--m-red), var(--m-yellow));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 18px;
  font-family: var(--m-font-serif);
}
.m-testimonial-author-info strong { display: block; font-size: 14px; font-weight: 600; }
.m-testimonial-author-info span { font-size: 12px; color: var(--m-text-muted); font-family: var(--m-font-mono); letter-spacing: .3px; }
.m-testimonial-card {
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  padding: 28px;
  border: 0.5px solid var(--m-line);
}
.m-testimonial-card-label {
  font-family: var(--m-font-mono);
  font-size: 11px; color: var(--m-text-soft);
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 18px;
}
.m-testimonial-card-rows { display: flex; flex-direction: column; gap: 14px; }
.m-testimonial-card-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  border-bottom: 0.5px dashed var(--m-line);
}
.m-testimonial-card-row:last-child { border-bottom: none; padding-bottom: 0; }
.m-testimonial-card-key { font-size: 13px; color: var(--m-text-muted); }
.m-testimonial-card-val { font-size: 14px; font-weight: 600; font-family: var(--m-font-mono); }
.m-testimonial-card-val.up { color: var(--m-green); }

/* === BIG CTA === */
.m-section-cta { padding-top: 64px; padding-bottom: 96px; }
.m-big-cta {
  background: var(--m-bg-dark);
  color: #fff;
  padding: 80px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}
.m-big-cta::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(to right,
    var(--m-red) 0%, var(--m-red) 22%,
    var(--m-blue) 22%, var(--m-blue) 64%,
    var(--m-yellow) 64%, var(--m-yellow) 84%,
    #fff 84%, #fff 100%);
}
.m-big-cta::after {
  content: ''; position: absolute;
  bottom: -300px; right: -300px;
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(244,196,48,.15), transparent 60%);
  pointer-events: none;
}
.m-big-cta-content { position: relative; z-index: 1; }
.m-big-cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 18px 0;
}
.m-big-cta h2 em {
  font-family: var(--m-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--m-yellow);
}
.m-big-cta p { font-size: 17px; color: rgba(255,255,255,.7); line-height: 1.6; margin: 0 0 28px 0; max-width: 540px; }
.m-big-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.m-big-cta-side {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.04);
  border: 0.5px solid rgba(255,255,255,.1);
  border-radius: var(--m-radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.m-big-cta-side h4 {
  font-size: 13px; font-family: var(--m-font-mono);
  font-weight: 500; color: rgba(255,255,255,.6);
  letter-spacing: .8px; text-transform: uppercase;
  margin: 0 0 18px 0;
}
.m-big-cta-list { list-style: none; padding: 0; margin: 0; }
.m-big-cta-list li {
  padding: 10px 0;
  font-size: 14px; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 0.5px solid rgba(255,255,255,.06);
}
.m-big-cta-list li:last-child { border-bottom: none; }
.m-big-cta-list svg { width: 16px; height: 16px; color: var(--m-yellow); flex-shrink: 0; }

/* === CONTACT === */
.m-section-contact { padding: 64px 0 96px; }
.m-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.m-contact-channels { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.m-contact-channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px;
  background: var(--m-bg-card);
  border: 0.5px solid var(--m-line);
  border-radius: var(--m-radius);
  transition: all .2s;
}
.m-contact-channel:hover { border-color: var(--m-bg-dark); transform: translateY(-2px); }
.m-contact-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m-contact-channel strong { display: block; font-size: 14px; font-weight: 600; }
.m-contact-channel span { font-size: 13px; color: var(--m-text-muted); font-family: var(--m-font-mono); }
.m-contact-form-wrapper { background: var(--m-bg-card); border: 0.5px solid var(--m-line); border-radius: var(--m-radius); padding: 36px; }
.m-contact-form h3 { font-size: 22px; font-weight: 600; margin: 0 0 24px 0; }
.m-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.m-form-full { display: block; margin-bottom: 20px; }
.m-contact-form label { display: block; }
.m-contact-form label span { display: block; font-size: 12px; font-weight: 500; color: var(--m-text-muted); margin-bottom: 6px; letter-spacing: .3px; text-transform: uppercase; }
.m-contact-form input, .m-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0.5px solid var(--m-line);
  border-radius: var(--m-radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--m-bg);
}
.m-contact-form input:focus, .m-contact-form textarea:focus { outline: none; border-color: var(--m-blue); box-shadow: 0 0 0 3px rgba(30,111,186,.1); }
.m-form-success { padding: 14px; background: rgba(45,139,84,.08); border-left: 3px solid var(--m-green); border-radius: 4px; margin-bottom: 20px; color: var(--m-green); font-size: 14px; }

/* === INTEGRATIONS === */
.m-integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.m-integration-cat {
  padding: 24px;
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  border: 0.5px solid var(--m-line);
}
.m-integration-cat h4 { font-size: 16px; font-weight: 600; margin: 0 0 14px 0; }
.m-integration-cat ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.m-integration-cat li { font-size: 13px; color: var(--m-text-muted); padding: 4px 0; font-family: var(--m-font-mono); }

/* === FOOTER === */
.modern-theme .m-footer {
  background: var(--m-bg);
  padding: 80px 0 40px;
  border-top: 0.5px solid var(--m-line);
}
.m-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.m-footer-brand .m-logo { margin-bottom: 16px; }
.m-footer-brand p { font-size: 14px; color: var(--m-text-muted); line-height: 1.6; margin: 16px 0 20px; max-width: 320px; }
.m-footer-col h5 {
  font-family: var(--m-font-mono);
  font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--m-text-soft);
  margin: 0 0 16px 0; font-weight: 500;
}
.m-footer-col ul { list-style: none; padding: 0; margin: 0; }
.m-footer-col li { margin-bottom: 10px; }
.m-footer-col a { font-size: 14px; color: var(--m-text-muted); transition: color .15s; }
.m-footer-col a:hover { color: var(--m-text); }
.m-footer-bottom {
  padding-top: 32px;
  border-top: 0.5px solid var(--m-line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--m-text-soft);
  font-family: var(--m-font-mono);
  letter-spacing: .3px; flex-wrap: wrap; gap: 16px;
}
.m-footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.m-footer-legal a { color: var(--m-text-soft); }
.m-footer-legal a:hover { color: var(--m-text); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .m-nav-menu { display: none; }
  .m-burger { display: flex; }
  .m-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .m-hero-visual { aspect-ratio: 16/10; max-height: 420px; }
  .m-stats-band-head { grid-template-columns: 1fr; gap: 24px; }
  .m-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .m-stat-block:nth-child(2) { border-right: none; }
  .m-stat-block:nth-child(1), .m-stat-block:nth-child(2) { border-bottom: 0.5px solid rgba(255,255,255,.1); }
  .m-tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .m-features-grid { grid-template-columns: repeat(2, 1fr); }
  .m-usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .m-sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .m-case-card, .m-case-large { grid-template-columns: 1fr; }
  .m-case-visual { min-height: 200px; }
  .m-process { grid-template-columns: repeat(2, 1fr); }
  .m-process::before { display: none; }
  .m-testimonial { grid-template-columns: 1fr; padding: 36px; }
  .m-big-cta { grid-template-columns: 1fr; padding: 48px; gap: 36px; }
  .m-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .m-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .m-contact-grid { grid-template-columns: 1fr; }
  .m-integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .m-comparison-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .modern-theme .m-section { padding: 64px 0; }
  .m-topbar-left, .m-topbar-right { width: 100%; }
  .m-tiles-grid, .m-features-grid, .m-usecases-grid, .m-sectors-grid, .m-integrations-grid { grid-template-columns: 1fr; }
  .m-stats-grid { grid-template-columns: 1fr; }
  .m-stat-block { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,.1); }
  .m-stat-block:last-child { border-bottom: none; }
  .m-process { grid-template-columns: 1fr; }
  .m-footer-grid { grid-template-columns: 1fr; }
  .m-big-cta { padding: 32px 24px; }
  .m-testimonial { padding: 28px 20px; }
  .m-testimonial-quote { font-size: 19px; }
  .m-form-row { grid-template-columns: 1fr; }
  .m-contact-form-wrapper { padding: 24px; }
  .m-hero { padding: 48px 0 64px; }
  .m-hero-visual { padding: 20px; }
}
