/* ─────────────────────────────────────────────────────────────
   AlticDigital Design System — FINAL
   Black + Red + White. Shades of each. Light/Dark mirror.
   Aptos Black headings. Inter body. Flat. Minimal. Professional.
   ───────────────────────────────────────────────────────────── */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Black family */
  --black: #0f172a;
  --dark: #1e293b;
  --body: #334155;
  --body-muted: #475569;
  --secondary: #64748b;
  --muted: #94a3b8;

  /* White family */
  --white: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  /* Red family */
  --red: #dc2626;
  --red-hover: #b91c1c;
  --red-active: #991b1b;
  --red-deep: #7f1d1d;
  --red-light: #ef4444;
  --red-300: #fca5a5;
  --red-200: #fecaca;
  --red-100: #fee2e2;
  --red-50: #fef2f2;

  /* System */
  --success: #059669;
  --error: #dc2626;
  --warning: #d97706;

  /* Fonts */
  --font-heading: 'Aptos Black', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --nav-h: 64px;
  --section-px: 5%;
  --section-py: 80px;
  --max-w: 1152px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 100px;
}

@font-face {
  font-family: 'Aptos Black';
  src: url('/assets/fonts/aptos-black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
section {
  scroll-margin-top: var(--nav-h);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -1.5px;
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.8px;
  color: var(--dark);
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}
h4 {
  font-size: 0.95rem;
}

.text-red {
  color: var(--red);
}
.text-muted {
  color: var(--muted);
}
.text-secondary {
  color: var(--secondary);
}
.text-body {
  color: var(--body);
}
.text-white {
  color: var(--white);
}
.font-heading {
  font-family: var(--font-heading);
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section {
  padding: var(--section-py) var(--section-px);
  position: relative;
}
.section-white {
  background: var(--white);
}
.section-surface {
  background: var(--surface);
}
.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}
.section-dark p {
  color: var(--muted);
}
.section-dark .section-divider {
  background: var(--red);
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-tag-red {
  background: var(--red-50);
  color: var(--red);
  border: 1px solid var(--red-200);
}
.section-tag-neutral {
  background: var(--surface-2);
  color: var(--body-muted);
  border: 1px solid var(--border);
}
.section-dark .section-tag-red {
  background: rgba(220, 38, 38, 0.15);
  color: var(--red-300);
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.section-dark .section-tag-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-title {
  margin-bottom: 0.5rem;
}
.section-title .red {
  color: var(--red);
}
.section-dark .section-title .red {
  color: var(--red-light);
}

.section-divider {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.section-divider-red {
  background: var(--red);
}
.section-divider-grey {
  background: var(--border);
}

.section-desc {
  font-size: 0.92rem;
  color: var(--secondary);
  max-width: 100%;
  line-height: 1.75;
}
.section-dark .section-desc {
  color: var(--muted);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

/* Primary — black */
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--dark);
}

/* Brand — red */
.btn-brand {
  background: var(--red);
  color: var(--white);
}
.btn-brand:hover {
  background: var(--red-hover);
}

/* Secondary — outline */
.btn-secondary {
  background: var(--white);
  color: var(--body);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--border-hover);
}

/* Ghost — red text */
.btn-ghost {
  background: transparent;
  color: var(--red);
}
.btn-ghost:hover {
  background: var(--red-50);
  color: var(--red-hover);
}

/* Dark context buttons */
.section-dark .btn-primary {
  background: var(--white);
  color: var(--black);
}
.section-dark .btn-primary:hover {
  background: var(--surface);
}
.section-dark .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--dark);
}
.section-dark .btn-secondary:hover {
  background: var(--dark);
}
.section-dark .btn-ghost {
  color: var(--red-300);
}
.section-dark .btn-ghost:hover {
  background: rgba(220, 38, 38, 0.1);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.8rem;
  border-radius: 6px;
}
.btn-lg {
  padding: 13px 32px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.btn-arrow {
  transition: transform 0.15s;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

/* Red top accent line */
.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  z-index: 1;
}

.card-body {
  padding: 20px;
}
.card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}

/* Dark variant */
.section-dark .card {
  background: var(--dark);
  border-color: var(--body-muted);
  border-color: rgba(255, 255, 255, 0.08);
}
.section-dark .card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}
.section-dark .card h3,
.section-dark .card h4 {
  color: var(--white);
}
.section-dark .card p {
  color: var(--muted);
}

/* Stat card */
.stat-card {
  text-align: center;
  padding: 24px 16px;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--black);
  letter-spacing: -1px;
}
.stat-value .suffix {
  color: var(--red);
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.section-dark .stat-value {
  color: var(--white);
}
.section-dark .stat-value .suffix {
  color: var(--red-light);
}

/* ── Icon Box ──────────────────────────────────────────────── */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box-red {
  background: var(--red-50);
  border: 1px solid var(--red-200);
}
.icon-box-red svg {
  stroke: var(--red);
}
.icon-box-grey {
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.icon-box-grey svg {
  stroke: var(--secondary);
}
.icon-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-dark .icon-box-red {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
}
.section-dark .icon-box-red svg {
  stroke: var(--red-300);
}
.section-dark .icon-box-grey {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .icon-box-grey svg {
  stroke: var(--muted);
}

/* ── Chip / Tag ────────────────────────────────────────────── */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip-red {
  background: var(--red-50);
  color: var(--red);
  border: 1px solid var(--red-200);
}
.chip-grey {
  background: var(--surface-2);
  color: var(--body-muted);
  border: 1px solid var(--border);
}
.section-dark .chip-red {
  background: rgba(220, 38, 38, 0.15);
  color: var(--red-300);
  border-color: rgba(220, 38, 38, 0.3);
}
.section-dark .chip-grey {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form-input::placeholder {
  color: var(--muted);
}
.form-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}
.form-input-error {
  border-color: var(--red);
  background: var(--red-50);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06);
}
select.form-input {
  appearance: auto;
}
textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 12px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.form-submit:hover {
  background: var(--dark);
}

.section-dark .form-input {
  background: var(--dark);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .form-input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.section-dark .form-input::placeholder {
  color: var(--secondary);
}

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-px);
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled {
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--black);
}
.nav-logo .logo-slash {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-item {
  position: relative;
}
.nav-item > a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-item > a:hover,
.nav-item.active > a {
  color: var(--black);
}
.nav-item .active-line {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav-item.active .active-line {
  transform: scaleX(1);
}
.nav-item .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  stroke: currentColor;
}
.nav-item:hover .chevron {
  transform: rotate(180deg);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.nav-cta:hover {
  background: var(--dark);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 220px;
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s;
}
.nav-item:hover > .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--body);
  transition: all 0.2s;
}
.dropdown a:hover {
  background: var(--red-50);
  color: var(--red);
}

.has-sub {
  position: relative;
}
.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 50;
  min-width: 180px;
  padding-left: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: all 0.2s;
}
.has-sub:hover > .sub-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--black);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  z-index: 999;
  background: var(--white);
  padding: 1.5rem var(--section-px) 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.mobile-nav.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border);
}
.mobile-nav-item .mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.mobile-nav-item .mobile-nav-header a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary);
}
.mobile-nav-item.active .mobile-nav-header a {
  color: var(--black);
}

.mobile-expand {
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px;
}
.mobile-expand svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.mobile-expand.open svg {
  transform: rotate(180deg);
}

.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}
.mobile-dropdown.open {
  max-height: 800px;
}
.mobile-dropdown a {
  display: block;
  padding: 8px 16px;
  margin-left: 12px;
  font-size: 0.9rem;
  color: var(--secondary);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.mobile-dropdown a:hover {
  background: var(--red-50);
  color: var(--black);
}

.mobile-sub-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}
.mobile-sub-dropdown.open {
  max-height: 300px;
}
.mobile-sub-dropdown a {
  margin-left: 32px;
  font-size: 0.85rem;
}

@media (max-width: 1279px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  overflow: hidden;
  padding: 140px var(--section-px) 80px;
  background: var(--surface);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video,
.hero-bg .hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-bg .hero-img {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  transform: none;
  top: 0;
  left: 0;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(248, 250, 252, 0.92) 0%,
    rgba(248, 250, 252, 0.75) 40%,
    rgba(248, 250, 252, 0.4) 70%,
    rgba(248, 250, 252, 0.2) 100%
  );
  z-index: 1;
}

/* Dark hero — video background with dark overlay */
.hero-dark {
  background: var(--black);
}
.hero-dark .hero-bg .hero-img {
  opacity: 0.6;
}
.hero-overlay-dark {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.7) 40%,
      rgba(15, 23, 42, 0.3) 70%,
      rgba(15, 23, 42, 0.1) 100%
    ),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, transparent 20%),
    linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 20%);
}
.hero-badge-dark {
  background: rgba(220, 38, 38, 0.15);
  color: var(--red-300);
  border-color: rgba(220, 38, 38, 0.3);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: var(--red-50);
  color: var(--red);
  border: 1px solid var(--red-200);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  margin-bottom: 0.5rem;
}
.hero .hero-subtitle-light {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--body-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── Page Banner ───────────────────────────────────────────── */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 160px var(--section-px) 100px;
  background: var(--surface);
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-banner-bg .bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.page-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(248, 250, 252, 0.92) 0%,
    rgba(248, 250, 252, 0.75) 40%,
    rgba(248, 250, 252, 0.4) 70%,
    rgba(248, 250, 252, 0.2) 100%
  );
  z-index: 1;
}
.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.page-banner.align-right .page-banner-content {
  margin-left: auto;
  text-align: right;
}
.page-banner h1 {
  margin-bottom: 0.75rem;
}
.page-banner .banner-subtitle {
  color: var(--secondary);
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.page-banner.align-right .banner-subtitle {
  margin-left: auto;
}
.page-banner .banner-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-banner.align-right .banner-ctas {
  justify-content: flex-end;
}

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-item {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.marquee-item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Timeline ──────────────────────────────────────────────── */
.timeline {
  position: relative;
}
.timeline-line {
  display: none;
}

.timeline-item {
  display: flex;
  align-items: stretch;
  position: relative;
}
.timeline-marker {
  position: relative;
  z-index: 2;
  margin-right: 1.5rem;
  display: none;
  flex-direction: column;
  align-items: center;
}
/* Connector line between timeline numbers */
.timeline-marker::after {
  content: '';
  flex: 1;
  width: 2px;
  background: var(--border);
  margin-top: 0.5rem;
}
.timeline-item:last-child .timeline-marker::after {
  display: none;
}
@media (min-width: 768px) {
  .timeline-marker {
    display: flex;
  }
}
.timeline-number {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}
.timeline-item:hover .timeline-number {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-50);
}

.timeline-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}
.timeline-card:hover {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.timeline-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.timeline-card p {
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── Delivery Roadmap (Card Grid) ─────────────────────────── */
.roadmap-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .roadmap-timeline {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .roadmap-timeline {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.roadmap-timeline::before {
  display: none;
}
.roadmap-step {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.roadmap-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.3s;
}
.roadmap-step:hover {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.roadmap-step:hover::before {
  background: var(--red);
}
.roadmap-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.roadmap-step:hover .roadmap-number {
  background: var(--red-50);
  border-color: var(--red-200);
  color: var(--red);
}
.roadmap-body {
  flex: 1;
}
.roadmap-phase {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.roadmap-body h4 {
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.roadmap-body p {
  color: var(--secondary);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* ── Check Item ────────────────────────────────────────────── */
.check-item {
  display: flex;
  gap: 0.75rem;
}
.check-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--red-50);
  color: var(--red);
  margin-top: 2px;
}
.check-icon svg {
  width: 16px;
  height: 16px;
}
.check-item p {
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.section-dark .check-icon {
  background: rgba(220, 38, 38, 0.15);
  color: var(--red-300);
}

/* ── Pill ──────────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--body);
  background: var(--white);
  transition: all 0.2s;
}
.pill:hover {
  border-color: var(--border-hover);
  color: var(--black);
}
.pill-red {
  border-color: var(--red-200);
  color: var(--red);
  background: var(--red-50);
}
.section-dark .pill {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}
.section-dark .pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ── CTA Block ─────────────────────────────────────────────── */
.cta-block {
  background: var(--black);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
}
.cta-block h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.cta-block h2 .red {
  color: var(--red-light);
}
.cta-block p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
  line-height: 1.75;
}
.cta-block .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}
.cta-block .btn-primary {
  background: var(--white);
  color: var(--black);
}
.cta-block .btn-primary:hover {
  background: var(--surface);
}
.cta-block .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--dark);
}
.cta-block .btn-secondary:hover {
  background: var(--dark);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: var(--muted);
  border-top: 1px solid var(--dark);
  padding: 3.5rem var(--section-px) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--secondary);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark);
  font-size: 0.72rem;
  color: var(--secondary);
}
@media (max-width: 639px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
.footer-bottom a {
  color: var(--red);
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--secondary);
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Flip Card ─────────────────────────────────────────────── */
.flip-card {
  perspective: 1400px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-face {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card-front {
  position: relative;
}
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
}

/* Use-case card — side-by-side layout */
.usecase-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  position: relative;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.usecase-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border-color: var(--border-hover);
}
.usecase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  z-index: 1;
}
@media (min-width: 768px) {
  .usecase-card {
    grid-template-columns: 1fr 1fr;
  }
  .usecase-card.reverse {
    direction: rtl;
  }
  .usecase-card.reverse > * {
    direction: ltr;
  }
}
.usecase-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.usecase-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--red-50);
  border: 1px solid var(--red-200);
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.usecase-visual {
  position: relative;
  min-height: 280px;
}
.usecase-visual .flip-card {
  width: 100%;
  height: 100%;
}
.usecase-visual .flip-card-inner {
  min-height: 280px;
}
.usecase-visual .flip-card-front {
  height: 100%;
}
.usecase-visual .flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.usecase-visual .flip-card-front .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.05), transparent);
}
.usecase-visual .flip-card-back {
  background: var(--surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.usecase-visual .flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.usecase-visual .flip-btn-front {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.6);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.usecase-visual .flip-btn-front:hover {
  background: rgba(15, 23, 42, 0.8);
}
.usecase-visual .flip-btn-back {
  background: var(--white);
  color: var(--body);
  border: 1px solid var(--border);
  margin-top: 1.25rem;
  width: fit-content;
}
.usecase-visual .flip-btn-back:hover {
  background: var(--surface);
}

/* ── Reveal Animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── Grid Helpers ──────────────────────────────────────────── */
.grid {
  display: grid;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}
.gap-16 {
  gap: 4rem;
}

@media (max-width: 1023px) {
  .lg-grid-2 {
    grid-template-columns: 1fr;
  }
  .lg-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 639px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 640px) {
  .sm-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .lg-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Flex & Spacing ────────────────────────────────────────── */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.shrink-0 {
  flex-shrink: 0;
}
.text-center {
  text-align: center;
}
.mx-auto {
  margin: 0 auto;
}
.w-full {
  width: 100%;
}
.max-w-6xl {
  max-width: 72rem;
}
.relative {
  position: relative;
}
.overflow-hidden {
  overflow: hidden;
}

.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.pt-8 {
  padding-top: 2rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-5 > * + * {
  margin-top: 1.25rem;
}

/* ── Utility ───────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.border-t {
  border-top: 1px solid var(--border);
}
.section-dark .border-t {
  border-color: var(--dark);
}

/* ── Data Tables ─────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.7;
}
.data-table thead th {
  background: var(--black);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 1.25rem;
  text-align: left;
  border: none;
}
.data-table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}
.data-table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}
.data-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  vertical-align: top;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:nth-child(even) {
  background: var(--surface);
}
.data-table tbody td:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.data-table tbody td:nth-child(2) {
  font-weight: 600;
  color: var(--heading);
}
@media (max-width: 768px) {
  .data-table {
    font-size: 0.82rem;
  }
  .data-table thead th,
  .data-table tbody td {
    padding: 0.75rem 0.9rem;
  }
}

/* ── Heritage & Compliance Shield ─────────────────────────── */
.heritage-shield {
  background: linear-gradient(135deg, var(--black) 0%, #1a2744 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.heritage-shield::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.heritage-shield-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-300);
  margin-bottom: 1.25rem;
}
.heritage-shield-tag svg {
  width: 18px;
  height: 18px;
  stroke: var(--red-light);
}
.heritage-shield h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.heritage-shield p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.heritage-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.heritage-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s;
}
.heritage-cert:hover {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.1);
  color: var(--white);
}
.heritage-cert svg {
  width: 14px;
  height: 14px;
  stroke: var(--red-light);
  flex-shrink: 0;
}

/* ── Solution Layer Tabs ──────────────────────────────────── */
.layer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.layer-tab {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.layer-tab:hover {
  border-color: var(--red);
  color: var(--red);
}
.layer-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.layer-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.layer-panel.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.layer-panel-content {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .layer-panel-content {
    grid-template-columns: 1fr 1fr;
  }
}
.layer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.25s;
}
.layer-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.layer-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.layer-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--secondary);
}

/* ── Mega Menu ────────────────────────────────────────────── */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding-top: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  transform: translateX(-50%) translateY(-8px);
}
.nav-item:hover .mega-dropdown,
.nav-item.mega-open .mega-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-width: 560px;
}
.mega-col h5 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.mega-col a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--body);
  transition: all 0.2s;
}
.mega-col a:hover {
  background: var(--red-50);
  color: var(--red);
}
.mega-col a .mega-icon {
  display: none;
}
