/* =====================================================
   ACME, INC. — Global Stylesheet
   Primary: #e1001c | Grays, Black & White
   ===================================================== */

/* ============================
   CSS CUSTOM PROPERTIES
   ============================ */
:root {
  --red:          #e1001c;
  --red-dark:     #b8001a;
  --red-light:    rgba(225, 0, 28, 0.08);

  --black:        #0a0a0a;
  --gray-900:     #111111;
  --gray-800:     #1c1c1c;
  --gray-700:     #2e2e2e;
  --gray-600:     #444444;
  --gray-500:     #666666;
  --gray-400:     #888888;
  --gray-300:     #aaaaaa;
  --gray-200:     #cccccc;
  --gray-100:     #e5e5e5;
  --gray-50:      #f5f5f5;
  --white:        #ffffff;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w:        1200px;
  --nav-h:        72px;

  --radius:       6px;
  --radius-lg:    12px;
  --radius-xl:    20px;

  --shadow:       0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.13);
  --shadow-xl:    0 16px 60px rgba(0,0,0,0.18);

  --ease:         200ms ease;
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5 {
  line-height: 1.12;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.875rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1875rem; }
h5 { font-size: 0.9375rem; letter-spacing: 0; }

p { color: var(--gray-500); line-height: 1.8; }
.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--gray-500);
}

/* ============================
   LAYOUT
   ============================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 780px; }

.section    { padding: 6rem 0; }
.section-lg { padding: 8rem 0; }
.section-sm { padding: 4rem 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

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

/* ============================
   SECTION HEADER
   ============================ */
.section-header {
  margin-bottom: 4rem;
}
.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead { margin-top: 0.25rem; }

/* ============================
   EYEBROW LABEL
   ============================ */
.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.875rem;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.5); }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: var(--ease);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.btn-lg { padding: 0.9375rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.875rem; }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(225, 0, 28, 0.32);
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--black); }

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.99);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav__logo {
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}
.nav__logo span { color: var(--red); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--ease);
  border-radius: 2px;
}
.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta { margin-left: 1.5rem; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.375rem;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--ease);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--gray-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.5rem 1.75rem;
  flex-direction: column;
  gap: 0;
  z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link {
  font-size: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav__mobile .btn { margin-top: 1rem; align-self: flex-start; }

/* ============================
   HERO — HOME
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.78) 38%, rgba(10, 10, 10, 0.44) 66%, rgba(10, 10, 10, 0.62) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.16) 0%, rgba(10, 10, 10, 0.42) 100%),
    url('https://images.unsplash.com/photo-1548783300-70b41bc84f56?auto=format&fit=crop&w=1800&q=80'),
    linear-gradient(180deg, #171717 0%, #0d0d0d 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center center, center center, 68% center, center center;
  background-size: cover, cover, cover, cover;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.12) 0%, transparent 20%),
    radial-gradient(circle at 90% 55%, rgba(255, 255, 255, 0.06) 0%, transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: auto, auto, 160px 160px, 160px 160px;
  opacity: 0.42;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 0, 28, 0.35), transparent);
}

/* Decorative red glow */
.hero__glow {
  position: absolute;
  top: 4%; right: 6%;
  width: 560px; height: 560px;
  background: radial-gradient(circle at center, rgba(225, 0, 28, 0.08) 0%, rgba(225, 0, 28, 0.02) 38%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(225, 0, 28, 0.1);
  border: 1px solid rgba(225, 0, 28, 0.22);
  border-radius: 100px;
  padding: 0.3125rem 1rem;
  margin-bottom: 2rem;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__badge span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.hero h1 { color: var(--white); margin-bottom: 1.375rem; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { color: rgba(255, 255, 255, 0.55); margin-bottom: 2.5rem; max-width: 580px; }
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Geometric visual */
.hero__visual {
  position: absolute;
  right: 2%; top: 54%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  pointer-events: none;
  opacity: 0.22;
}
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  top: 50%; left: 50%;
}
.hero__ring:nth-child(1) {
  width: 160px; height: 160px;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 255, 255, 0.22);
}
.hero__ring:nth-child(2) { width: 240px; height: 240px; transform: translate(-50%, -50%); border-color: rgba(255, 255, 255, 0.08); }
.hero__ring:nth-child(3) { width: 320px; height: 320px; transform: translate(-50%, -50%); border-color: rgba(255, 255, 255, 0.05); }
.hero__ring:nth-child(4) { width: 400px; height: 400px; transform: translate(-50%, -50%); border-color: rgba(255, 255, 255, 0.03); }

.hero__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 50px rgba(225, 0, 28, 0.35);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 56px),
    var(--gray-900);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2.5rem 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.375rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-num sup { font-size: 1.25rem; color: var(--red); vertical-align: super; }
.stat-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================
   PAGE HERO (inner pages)
   ============================ */
.page-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, #161616 0%, var(--black) 100%);
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.08) 0%, transparent 17%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: auto, 140px 140px, 140px 140px;
  opacity: 0.5;
  pointer-events: none;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red), rgba(225, 0, 28, 0.2), transparent 60%);
}
.page-hero__content { max-width: 700px; position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1.125rem; }
.page-hero .lead { color: rgba(255, 255, 255, 0.55); }
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}
.page-hero__breadcrumb a { transition: color var(--ease); }
.page-hero__breadcrumb a:hover { color: rgba(255, 255, 255, 0.7); }
.page-hero__breadcrumb span { color: rgba(255, 255, 255, 0.2); }

/* ============================
   SERVICE CARDS
   ============================ */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gray-100);
  transition: background var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.service-card:hover::before { background: var(--red); }
.service-card__icon {
  width: 52px; height: 52px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.service-card__icon svg { width: 26px; height: 26px; color: var(--red); }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9375rem; margin-bottom: 1.5rem; }
.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--ease);
}
.service-card__link:hover { gap: 0.5rem; }

/* ============================
   FEATURE GRID (Why Acme)
   ============================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-item {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--ease), transform var(--ease);
}
.feature-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-item__num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 1rem;
}
.feature-item h4 { margin-bottom: 0.625rem; font-size: 1.0625rem; }
.feature-item p { font-size: 0.9rem; }

/* ============================
   PLATFORM MOCKUP
   ============================ */
.platform-mockup {
  background: var(--gray-800);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.platform-mockup__titlebar {
  background: var(--black);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pm-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.pm-dot:nth-child(1) { background: #ff5f57; }
.pm-dot:nth-child(2) { background: #febc2e; }
.pm-dot:nth-child(3) { background: #28c840; }
.pm-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  height: 22px;
  margin: 0 0.5rem;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}
.platform-mockup__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 320px;
}
.pm-sidebar {
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.25rem 0.75rem;
}
.pm-nav {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}
.pm-nav.active {
  background: rgba(225, 0, 28, 0.14);
  color: var(--red);
  font-weight: 600;
}
.pm-main {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pm-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.pm-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.875rem;
}
.pm-metric-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.375rem;
}
.pm-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pm-metric-value .accent { color: var(--red); font-size: 0.9rem; font-weight: 500; }
.pm-chart-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.875rem;
  flex: 1;
}
.pm-chart-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.875rem;
}
.pm-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.pm-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--red);
  opacity: 0.7;
  transition: opacity var(--ease);
}
.pm-bar:hover { opacity: 1; }

/* ============================
   TESTIMONIALS
   ============================ */
.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow var(--ease);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card__quote-mark {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 3.5rem;
  color: var(--gray-200);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--red);
  font-size: 0.9375rem;
}
.testimonial-card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gray-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 600; font-size: 0.9375rem; color: var(--black); }
.testimonial-card__role { font-size: 0.8125rem; color: var(--gray-400); margin-top: 0.0625rem; }

/* ============================
   DYNAMICS FORM SECTION
   ============================ */
.form-section { background: var(--gray-50); }
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.form-card h3 { margin-bottom: 0.5rem; }
.form-card > p { margin-bottom: 2rem; font-size: 0.9375rem; }

.form-embed {
  width: 100%;
}

.form-embed > div[data-form-id] {
  width: 100%;
}

.d365-preview-notice {
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.d365-preview-notice strong {
  display: block;
  color: var(--black);
  font-size: 1rem;
  margin-bottom: 0.625rem;
}

.d365-preview-notice p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.75;
}

.d365-preview-notice p + p {
  margin-top: 0.625rem;
}

.newsletter-panel {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--black) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.newsletter-panel__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}

.newsletter-panel__content {
  padding: 3rem;
  position: relative;
}

.newsletter-panel__content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at top right, rgba(225, 0, 28, 0.2), transparent 62%);
  pointer-events: none;
}

.newsletter-panel__form {
  background: var(--white);
  padding: 3rem;
}

.newsletter-panel__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.newsletter-panel__stat {
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-panel__stat strong {
  display: block;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.375rem;
  letter-spacing: -0.03em;
}

.newsletter-panel__stat span {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Placeholder shown before Dynamics embed is added */
.d365-placeholder {
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}
.d365-placeholder svg { margin: 0 auto 0.75rem; color: var(--gray-300); }
.d365-placeholder strong { display: block; color: var(--gray-500); margin-bottom: 0.375rem; }
.d365-placeholder p { font-size: 0.8125rem; color: var(--gray-400); }

/* ============================
   CTA SECTION (dark)
   ============================ */
.cta-section {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #131313 0%, var(--black) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(225, 0, 28, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.09) 0%, transparent 16%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: auto, 110px 110px, 110px 110px;
  opacity: 0.55;
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section .section-header h2 { color: var(--white); }
.cta-section .section-header .lead { color: rgba(255, 255, 255, 0.5); }

/* ============================
   FEATURE LIST (checklist)
   ============================ */
.feature-list { display: flex; flex-direction: column; gap: 0.875rem; }
.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.check-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon svg { width: 11px; height: 11px; color: var(--white); }

/* ============================
   DARK FEATURE LIST
   ============================ */
.feature-list--light .feature-list__item { color: rgba(255, 255, 255, 0.7); }

/* ============================
   ABOUT PAGE
   ============================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.value-card {
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.value-card__number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--red);
  opacity: 0.07;
  line-height: 1;
  position: absolute;
  top: 0.5rem; right: 1rem;
}
.value-card h4 { margin-bottom: 0.625rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.team-card { text-align: center; }
.team-card__photo {
  width: 160px; height: 160px;
  border-radius: var(--radius-xl);
  background: var(--gray-800);
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.team-card__photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
.team-card h4 { margin-bottom: 0.25rem; }
.team-card__role { font-size: 0.8125rem; color: var(--red); font-weight: 600; margin-bottom: 0.75rem; }
.team-card p { font-size: 0.875rem; }

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.recognition-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.recognition-item__year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.recognition-item h5 { font-size: 0.9375rem; color: var(--black); margin-bottom: 0.25rem; }
.recognition-item p { font-size: 0.8125rem; }

/* Science section */
.science-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 28px),
    var(--gray-900);
  position: relative;
  overflow: hidden;
}
.science-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 72%, rgba(255, 255, 255, 0.075) 0%, transparent 20%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.045) 0%, transparent 18%);
  opacity: 0.7;
  pointer-events: none;
}
.science-section .container { position: relative; z-index: 1; }
.science-stat {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.science-stat:last-child { border-right: none; }
.science-stat__num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.science-stat__num span { color: var(--red); }
.science-stat__label { font-size: 0.8125rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================
   SERVICES PAGE
   ============================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-visual {
  background: var(--gray-900);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-visual::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, rgba(225, 0, 28, 0.18), transparent 60%);
}
.service-visual__inner { text-align: center; position: relative; }
.service-visual__icon { font-size: 4.5rem; margin-bottom: 1rem; }
.service-visual__label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.service-content h2 { margin-bottom: 1rem; }
.service-content > p { margin-bottom: 1.75rem; }
.service-content .feature-list { margin-bottom: 2rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem; left: calc(12.5% + 1rem); right: calc(12.5% + 1rem);
  height: 2px;
  background: var(--gray-100);
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.process-step__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--red);
  transition: var(--ease);
}
.process-step:hover .process-step__num {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: scale(1.08);
}
.process-step h5 { margin-bottom: 0.375rem; font-size: 0.9375rem; }
.process-step p { font-size: 0.8125rem; }

/* ============================
   PLATFORM PAGE
   ============================ */
.platform-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pf-card {
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: var(--ease);
}
.pf-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pf-card__icon {
  width: 48px; height: 48px;
  background: var(--black);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.pf-card__icon svg { width: 22px; height: 22px; color: var(--red); }
.pf-card h4 { margin-bottom: 0.5rem; }
.pf-card p { font-size: 0.9rem; }

.security-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.security-badge {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}
.security-badge__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.security-badge h5 { font-size: 0.9rem; color: var(--black); margin-bottom: 0.25rem; }
.security-badge p { font-size: 0.8125rem; }

.integration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.integration-chip {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--ease);
}
.integration-chip:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--red); }
.contact-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}
.contact-info-value { font-weight: 600; font-size: 0.9375rem; color: var(--gray-700); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  cursor: pointer;
  transition: color var(--ease);
}
.faq-btn:hover { color: var(--red); }
.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--gray-500);
  transition: var(--ease);
}
.faq-item.open .faq-icon {
  background: var(--red);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand-logo {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__brand-logo span { color: var(--red); }
.footer__brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.75;
  max-width: 280px;
}
.footer__col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.25rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--ease);
}
.footer__link:hover { color: var(--white); }
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.25);
}
.footer__legal {
  display: flex;
  gap: 1.75rem;
}
.footer__legal a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.25);
  transition: color var(--ease);
}
.footer__legal a:hover { color: rgba(255, 255, 255, 0.6); }

/* ============================
   UTILITY
   ============================ */
.divider   { height: 1px; background: var(--gray-100); }
.mt-sm     { margin-top: 1rem; }
.mt-md     { margin-top: 1.5rem; }
.mt-lg     { margin-top: 2.5rem; }
.mb-sm     { margin-bottom: 1rem; }
.mb-md     { margin-bottom: 1.5rem; }
.mb-lg     { margin-bottom: 2.5rem; }

.text-white   { color: var(--white) !important; }
.text-red     { color: var(--red); }
.text-muted   { color: var(--gray-400); }
.bg-dark      { background: var(--gray-900); }
.bg-black     { background: var(--black); }
.bg-gray      { background: var(--gray-50); }

/* White text modifiers for dark sections */
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 { color: var(--white); }
.on-dark p,
.on-dark .lead { color: rgba(255, 255, 255, 0.55); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
  .hero__visual { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: 100%; }
  .recognition-grid { grid-template-columns: repeat(2, 1fr); }
  .security-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .feature-grid,
  .platform-features { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.06); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .process-steps::before { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__links,
  .nav__cta  { display: none; }
  .nav__hamburger { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4,
  .values-grid,
  .service-detail,
  .recognition-grid { grid-template-columns: 1fr; }

  .service-detail.reverse { direction: ltr; }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1.25rem; }
  .stat-item:last-child { border-bottom: none; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero {
    background-position: center center, center center, 72% center, center center;
  }
  .section { padding: 4rem 0; }
  .section-lg { padding: 5rem 0; }

  .form-card { padding: 1.75rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }

  .platform-mockup__body { grid-template-columns: 1fr; }
  .pm-sidebar { display: none; }

  .newsletter-panel__grid { grid-template-columns: 1fr; }
  .newsletter-panel__content,
  .newsletter-panel__form { padding: 1.75rem; }
  .newsletter-panel__meta { grid-template-columns: 1fr; }

  .process-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero { min-height: 90vh; }
  .container { padding: 0 1rem; }
  .feature-grid,
  .platform-features,
  .team-grid,
  .security-row { grid-template-columns: 1fr; }
}
