/* ===================================================================
   RentRev — AI-Powered Commercial Property Management System
   Design System — Neumorphic + Glassmorphic + Scroll-driven
   =================================================================== */

:root {
  /* Brand (from logo) */
  --brand-navy: #2E4568;
  --brand-navy-dark: #1E2E47;
  --brand-navy-deep: #13223A;
  --brand-graphite: #45464A;
  --brand-graphite-dark: #2A2B2F;

  /* Accents */
  --accent-indigo: #5B6FDB;
  --accent-violet: #8b5cf6;
  --accent-amber: #fbbf24;
  --accent-teal: #14b8a6;
  --accent-rose: #f43f5e;

  /* Surfaces */
  --bg: #f1f2f5;
  --bg-alt: #e9ebef;
  --card-bg: #ffffff;
  --card-bg-nested: #f5f6f9;
  --foreground: #13223A;
  --muted: #6b7280;
  --subtle: #9ca3af;
  --hairline: rgba(19, 34, 58, 0.08);

  /* Neumorphic shadow stack (signature) */
  --card-shadow:
    0px 0.7px 0.7px -0.67px rgba(19, 34, 58, 0.09),
    0px 1.8px 1.8px -1.33px rgba(19, 34, 58, 0.09),
    0px 3.6px 3.6px -2px rgba(19, 34, 58, 0.08),
    0px 6.9px 6.9px -2.67px rgba(19, 34, 58, 0.07),
    0px 13.6px 13.6px -3.33px rgba(19, 34, 58, 0.05),
    0px 30px 30px -4px rgba(19, 34, 58, 0.03),
    inset 0px 3px 1px 0px rgba(255, 255, 255, 1);

  --card-shadow-hover:
    0px 1px 1px -0.67px rgba(19, 34, 58, 0.10),
    0px 2.5px 2.5px -1.33px rgba(19, 34, 58, 0.10),
    0px 5px 5px -2px rgba(19, 34, 58, 0.09),
    0px 10px 10px -2.67px rgba(19, 34, 58, 0.08),
    0px 20px 20px -3.33px rgba(19, 34, 58, 0.06),
    0px 42px 42px -4px rgba(19, 34, 58, 0.04),
    inset 0px 3px 1px 0px rgba(255, 255, 255, 1);

  --pill-shadow:
    0px 0.7px 0.7px -0.67px rgba(19, 34, 58, 0.08),
    0px 1.8px 1.8px -1.33px rgba(19, 34, 58, 0.08),
    0px 3.6px 3.6px -2px rgba(19, 34, 58, 0.07),
    inset 0px 2px 1px 0px rgba(255, 255, 255, 1);

  --inset-shadow:
    inset 2px 2px 5px rgba(19, 34, 58, 0.08),
    inset -2px -2px 5px rgba(255, 255, 255, 0.85);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2E4568 0%, #3a5a87 50%, #5B6FDB 100%);
  --grad-accent: linear-gradient(90deg, #5B6FDB 0%, #8b5cf6 100%);
  --grad-dark: linear-gradient(135deg, #13223A 0%, #1E2E47 60%, #2A2B2F 100%);
  --grad-surface: linear-gradient(180deg, #ffffff 0%, #f5f6f9 100%);

  /* Type scale */
  --font-display: 'Bricolage Grotesque', 'Fraunces', serif;
  --font-body: 'Inter Tight', 'Geist', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', monospace;

  /* Layout */
  --container: 1400px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* Background grain & gradient orbs -------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 10% 10%, rgba(91, 111, 219, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(139, 92, 246, 0.08), transparent 60%),
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(46, 69, 104, 0.10), transparent 60%),
    var(--bg);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(19, 34, 58, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(19, 34, 58, 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-navy);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(91, 111, 219, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--foreground);
}

h1.display {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
}
h2.display {
  font-size: clamp(2rem, 5vw, 3.75rem);
}
h3.display {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 55ch;
  line-height: 1.55;
}

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.outline-text {
  -webkit-text-stroke: 1.5px var(--foreground);
  color: transparent;
}

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

/* Container ------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

/* Sections ------------------------------------------------------- */
section {
  position: relative;
  padding: 80px 0;
}
@media (min-width: 768px) {
  section { padding: 120px 0; }
}

/* Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.btn .arrow {
  width: 14px; height: 14px; transition: transform .3s var(--ease);
}
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn-primary {
  background: var(--brand-navy);
  color: #fff;
  box-shadow:
    0 8px 20px -6px rgba(19, 34, 58, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  background: var(--brand-navy-dark);
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px -6px rgba(19, 34, 58, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost {
  background: var(--card-bg);
  color: var(--foreground);
  box-shadow: var(--pill-shadow);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--card-shadow);
}

.btn-dark {
  background: var(--brand-graphite-dark);
  color: #fff;
  box-shadow:
    0 8px 20px -6px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-dark:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 28px; font-size: 15px; }

/* Cards ---------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19, 34, 58, 0.05);
  padding: 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card-nested {
  background: var(--card-bg-nested);
  border-radius: var(--radius-lg);
  box-shadow: var(--inset-shadow);
  padding: 24px;
}

.card-dark {
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.card-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(91,111,219,0.35), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(139,92,246,0.25), transparent 55%);
  pointer-events: none;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 28px);
  max-width: 1240px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow:
    0 1px 1px rgba(19,34,58,0.05),
    0 6px 20px -8px rgba(19,34,58,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 20px;
  transition: background .3s ease, border .3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.75);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}
.nav-brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand-navy);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.nav-brand-mark::before {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-bottom: 7px solid #fff;
  transform: rotate(25deg);
}
.nav-links {
  display: none;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-graphite);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(19, 34, 58, 0.06);
  color: var(--brand-navy);
}
.nav-cta {
  display: flex; align-items: center; gap: 8px;
}
.nav-cta .btn { padding: 10px 18px; font-size: 13px; }

.nav-burger {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--card-bg);
  box-shadow: var(--pill-shadow);
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--foreground);
  border-radius: 2px;
  position: relative;
  transition: all .3s var(--ease);
}
.nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  border-radius: inherit;
  transition: all .3s var(--ease);
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after  { top: 5px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: rotate(45deg); top: 0; }
.nav-burger.open span::after  { transform: rotate(-45deg); top: 0; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(241, 242, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 90px 24px 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu a {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a:hover { color: var(--brand-navy); }
.mobile-menu-cta { margin-top: 32px; }
.mobile-menu-cta .btn { width: 100%; justify-content: center; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ==========================================================
   HERO — scroll-driven 3D building stack
   ========================================================== */
.hero {
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    min-height: 78vh;
  }
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 {
  margin-top: 20px;
}
.hero-copy .lede { margin-top: 22px; }
.hero-ctas {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--pill-shadow);
}
.hero-stat .n {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  line-height: 1;
}
.hero-stat .l {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 3D Building Visual ---------------- */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  perspective: 1400px;
}
.scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(var(--yaw, -24deg));
  transition: transform 1s var(--ease);
}
.building {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform-style: preserve-3d;
  transform: translateX(-50%) translateZ(0);
}
.floor {
  position: relative;
  width: 220px;
  height: 54px;
  margin-top: -2px;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(24px);
  animation: floorRise .7s var(--ease) forwards;
}
.floor .face {
  position: absolute; inset: 0;
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow:
    0 4px 10px -4px rgba(19,34,58,0.25),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1px solid rgba(19,34,58,0.06);
}
.floor .face.top {
  transform: rotateX(90deg) translateZ(27px);
  background: linear-gradient(135deg, #ffffff, #e6e9f0);
}
.floor .face.front { transform: translateZ(110px); }
.floor .face.back  { transform: rotateY(180deg) translateZ(110px); }
.floor .face.left  { transform: rotateY(-90deg) translateZ(110px); width: 220px; }
.floor .face.right { transform: rotateY(90deg)  translateZ(110px); width: 220px; }
.floor .windows {
  position: absolute;
  inset: 10px 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  z-index: 2;
}
.floor .windows .w {
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(46,69,104,0.15), rgba(46,69,104,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  transition: background .4s ease;
}
.floor.active .windows .w {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.85), rgba(251, 191, 36, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 8px rgba(251, 191, 36, 0.6);
}
.floor.top-floor {
  height: 36px;
  width: 180px;
}
.floor.top-floor .windows { grid-template-columns: repeat(4, 1fr); }

@keyframes floorRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Floating annotation cards */
.anno {
  position: absolute;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 10px 30px -10px rgba(19,34,58,0.25),
    inset 0 1px 0 rgba(255,255,255,1);
  padding: 12px 16px;
  border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-graphite);
  z-index: 5;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: annoIn .7s var(--ease) forwards;
}
.anno .ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #fff;
  flex-shrink: 0;
}
.anno .ico svg { width: 14px; height: 14px; }
.anno b { color: var(--brand-navy); font-family: var(--font-display); font-weight: 600; }
.anno.a1 { top: 8%;  left: 4%; animation-delay: .8s; }
.anno.a2 { top: 32%; right: 0%; animation-delay: 1.1s; }
.anno.a3 { bottom: 22%; left: 0%; animation-delay: 1.4s; }
.anno.a4 { bottom: 6%; right: 8%; animation-delay: 1.6s; }

@keyframes annoIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ambient ring */
.hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 90%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(70deg);
  border-radius: 50%;
  border: 1px dashed rgba(19,34,58,0.12);
  z-index: 0;
  animation: ringSpin 30s linear infinite;
}
.hero-ring::before, .hero-ring::after {
  content: ""; position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 0 4px rgba(91,111,219,0.25);
}
.hero-ring::before { top: -5px; left: 50%; }
.hero-ring::after  { bottom: -5px; left: 50%; background: var(--accent-violet); box-shadow: 0 0 0 4px rgba(139,92,246,0.25); }
@keyframes ringSpin { to { transform: translate(-50%, -50%) rotateX(70deg) rotate(360deg); } }

/* Logo marquee */
.marquee {
  position: relative;
  margin-top: 70px;
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--subtle);
  display: flex; align-items: center; gap: 12px;
}
.marquee-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--subtle);
  opacity: 0.5;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ==========================================================
   Scroll reveal system
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .65s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .75s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: .85s; }

/* ==========================================================
   Section Heading block
   ========================================================== */
.section-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head .lede { margin-inline: auto; }
.section-head.left { text-align: left; margin-inline: 0; }

/* ==========================================================
   Bento grid (for features overview)
   ========================================================== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento > .b1 { grid-column: span 6; }
  .bento > .b2 { grid-column: span 3; }
  .bento > .b3 { grid-column: span 3; }
  .bento > .b4 { grid-column: span 2; }
  .bento > .b5 { grid-column: span 2; }
  .bento > .b6 { grid-column: span 2; }
  .bento > .b7 { grid-column: span 3; }
  .bento > .b8 { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .bento > .b1 { grid-column: span 4; grid-row: span 2; }
  .bento > .b2 { grid-column: span 2; }
  .bento > .b3 { grid-column: span 2; }
  .bento > .b4 { grid-column: span 2; }
  .bento > .b5 { grid-column: span 2; }
  .bento > .b6 { grid-column: span 2; }
  .bento > .b7 { grid-column: span 3; }
  .bento > .b8 { grid-column: span 3; }
}

.bento-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19, 34, 58, 0.05);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.bento-card.dark {
  background: var(--grad-dark);
  color: #fff;
  border-color: rgba(255,255,255,0.08);
}
.bento-card.dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(91,111,219,0.35), transparent 55%),
    radial-gradient(circle at 15% 95%, rgba(139,92,246,0.25), transparent 50%);
  pointer-events: none;
}
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.bento-card.dark h3 { color: #fff; }
.bento-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 42ch;
}
.bento-card.dark p { color: rgba(255,255,255,0.7); }
.bento-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--card-bg-nested);
  box-shadow: var(--inset-shadow);
  display: grid; place-items: center;
  color: var(--brand-navy);
  margin-bottom: 22px;
}
.bento-card.dark .bento-icon {
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  color: #fff;
}
.bento-icon svg { width: 22px; height: 22px; }

.bento-viz {
  position: relative;
  margin-top: 24px;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================
   Feature grid (3-column) for features page
   ========================================================== */
.fg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 680px) { .fg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fg { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================
   Feature category (features.html)
   ========================================================== */
.fcat {
  margin-bottom: 100px;
  scroll-margin-top: 100px;
}
.fcat-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .fcat-head { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.fcat-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(46, 69, 104, 0.08);
  color: var(--brand-navy);
  margin-bottom: 16px;
}

/* Feature tile (used inside features/solutions) */
.ft {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19,34,58,0.05);
  padding: 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ft:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.ft-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--card-bg-nested);
  box-shadow: var(--inset-shadow);
  display: grid; place-items: center;
  color: var(--brand-navy);
  margin-bottom: 18px;
}
.ft-ico svg { width: 22px; height: 22px; }
.ft h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ft p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ==========================================================
   AI Moment (dark showcase block)
   ========================================================== */
.aisec {
  position: relative;
  padding: 100px 0;
  background: var(--grad-dark);
  color: #fff;
  overflow: hidden;
  border-radius: 32px;
  margin: 60px 20px;
}
.aisec::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 80% 0%, rgba(91,111,219,0.45), transparent 60%),
    radial-gradient(ellipse 70% 40% at 10% 100%, rgba(139,92,246,0.35), transparent 60%);
  pointer-events: none;
}
.aisec::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.aisec .container { position: relative; z-index: 2; }
.aisec h2 { color: #fff; }
.aisec .lede { color: rgba(255,255,255,0.72); }
.aisec .eyebrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 900px) { .ai-grid { grid-template-columns: repeat(3, 1fr); } }

.ai-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ai-card .ai-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 16px;
}
.ai-card h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ai-card p { color: rgba(255,255,255,0.66); font-size: 14px; line-height: 1.6; }

/* ==========================================================
   Dashboard mockup (for features page etc.)
   ========================================================== */
.mockup {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19, 34, 58, 0.06);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.mockup-bar {
  display: flex; gap: 6px; margin-bottom: 18px;
}
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(19,34,58,0.15); }
.mockup-bar .dot:nth-child(1) { background: #f87171; }
.mockup-bar .dot:nth-child(2) { background: #fbbf24; }
.mockup-bar .dot:nth-child(3) { background: #34d399; }
.mockup-head {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px;
}
.mockup-head h4 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em;
}
.mockup-head .mhr {
  font-family: var(--font-mono); font-size: 11px; color: var(--subtle);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.mockup-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px;
}
.mockup-kpi {
  padding: 14px;
  background: var(--card-bg-nested);
  border-radius: 12px;
  box-shadow: var(--inset-shadow);
}
.mockup-kpi .n {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.mockup-kpi .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.mockup-kpi .d { font-size: 11px; color: var(--accent-teal); margin-top: 4px; font-weight: 600; }
.mockup-kpi .d.down { color: var(--accent-rose); }

.mockup-chart {
  position: relative;
  height: 120px;
  background: var(--card-bg-nested);
  border-radius: 12px;
  box-shadow: var(--inset-shadow);
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.mockup-chart .bar {
  flex: 1;
  background: var(--grad-brand);
  border-radius: 3px;
  opacity: 0.9;
  animation: barRise 1.2s var(--ease) backwards;
  transition: height 3s var(--ease-smooth);
}
@keyframes barRise {
  from { height: 0 !important; }
}

/* ==========================================================
   Process / steps
   ========================================================== */
.steps {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19,34,58,0.05);
  padding: 28px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-indigo);
  letter-spacing: 0.06em;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 8px;
  margin-top: 40px;
  letter-spacing: -0.01em;
}
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ==========================================================
   Pricing
   ========================================================== */
.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.plan {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19,34,58,0.05);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  background: var(--grad-dark);
  color: #fff;
  transform: scale(1.02);
  z-index: 2;
  overflow: hidden;
}
.plan.featured::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(91,111,219,0.35), transparent 55%);
  pointer-events: none;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.plan-tag { font-size: 13px; color: var(--muted); }
.plan.featured .plan-tag { color: rgba(255,255,255,0.7); }
.plan-price {
  margin: 24px 0 4px;
  display: flex; align-items: baseline; gap: 6px;
}
.plan-price .n {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand-navy);
}
.plan.featured .plan-price .n { color: #fff; }
.plan-price .u { font-size: 14px; color: var(--muted); }
.plan.featured .plan-price .u { color: rgba(255,255,255,0.7); }
.plan-note { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.plan.featured .plan-note { color: rgba(255,255,255,0.6); }
.plan ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin: 24px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  flex: 1;
}
.plan.featured ul { border-color: rgba(255,255,255,0.15); }
.plan ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: var(--brand-graphite);
}
.plan.featured ul li { color: rgba(255,255,255,0.85); }
.plan ul li svg {
  width: 16px; height: 16px;
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.plan.featured ul li svg { color: #6ee7b7; }
.plan .btn { width: 100%; justify-content: center; }
.plan-badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-amber);
  color: var(--brand-navy-deep);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-q {
  width: 100%;
  padding: 24px 4px;
  display: flex; align-items: center; justify-content: space-between;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  transition: color .2s ease;
}
.faq-q:hover { color: var(--brand-navy); }
.faq-q-ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card-bg-nested);
  box-shadow: var(--inset-shadow);
  color: var(--brand-navy);
  transition: transform .4s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q-ico { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 4px 28px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
}

/* ==========================================================
   CTA Block
   ========================================================== */
.final-cta {
  position: relative;
  margin: 100px 20px 20px;
  padding: 90px 40px;
  background: var(--grad-dark);
  color: #fff;
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91,111,219,0.45), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(139,92,246,0.35), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta .lede { color: rgba(255,255,255,0.72); margin-inline: auto; margin-bottom: 32px; }
.final-cta .ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.final-cta .btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.final-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.18);
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  padding: 80px 0 40px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { max-width: 340px; }
.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.65; }
.footer h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 18px;
  letter-spacing: 0;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.footer ul a:hover { color: var(--brand-navy); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: grid; place-items: center;
  box-shadow: var(--pill-shadow);
  color: var(--brand-graphite);
  transition: color .2s ease, transform .3s var(--ease);
}
.footer-bottom .socials a:hover { color: var(--brand-navy); transform: translateY(-2px); }
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ==========================================================
   Page header (non-home pages)
   ========================================================== */
.page-head {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 { max-width: 20ch; margin: 0 auto 20px; }
.page-head .lede { margin-inline: auto; }
.page-head-deco {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,111,219,0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================
   Mobile App showcase (mobile-apps.html)
   ========================================================== */
.app-hero {
  display: grid;
  gap: 60px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .app-hero { grid-template-columns: 1.15fr 1fr; }
  .app-hero.reverse { grid-template-columns: 1fr 1.15fr; }
  .app-hero.reverse .app-phone-wrap { grid-column: 1; grid-row: 1; }
  .app-hero.reverse .app-copy { grid-column: 2; grid-row: 1; }
}

.app-phone-wrap {
  perspective: 1500px;
  display: flex;
  justify-content: center;
}
.app-phone {
  width: 280px;
  aspect-ratio: 9/19;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 30px 60px -20px rgba(19,34,58,0.35),
    inset 0 0 0 2px #2a2a2a;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-12deg) rotateX(6deg);
  transition: transform .8s var(--ease);
}
.app-phone:hover { transform: rotateY(-6deg) rotateX(2deg); }
.app-phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 3;
}
.app-phone-screen {
  background: var(--bg);
  border-radius: 32px;
  height: 100%;
  overflow: hidden;
  position: relative;
  padding: 50px 14px 20px;
}
.app-phone-screen .sb {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-navy);
  padding: 0 8px;
  margin-bottom: 14px;
}
.app-phone-content {
  height: calc(100% - 30px);
  overflow: hidden;
}
.app-phone-header { margin-bottom: 14px; }
.app-phone-header .greeting { font-size: 11px; color: var(--muted); }
.app-phone-header .name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; letter-spacing: -0.02em; }
.app-phone-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.app-phone-card .ci {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.app-phone-card .ci svg { width: 16px; height: 16px; }
.app-phone-card .ct { font-size: 11px; color: var(--muted); }
.app-phone-card .cn { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; }
.app-phone-card .cv {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.app-phone-banner {
  background: var(--grad-dark);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.app-phone-banner h5 { font-family: var(--font-display); font-size: 14px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.01em; }
.app-phone-banner p { font-size: 10.5px; color: rgba(255,255,255,0.7); line-height: 1.45; }
.app-phone-banner::before {
  content: "";
  position: absolute;
  top: -10px; right: -10px;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(91,111,219,0.5), transparent 70%);
}

.appgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 680px) { .appgrid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================
   Contact form
   ========================================================== */
.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.25fr; } }

.contact-side h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 14px; letter-spacing: -0.02em; }
.contact-side p { color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.contact-info {
  display: flex; flex-direction: column; gap: 14px;
}
.contact-info-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--pill-shadow);
}
.contact-info-item .ci-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--card-bg-nested);
  box-shadow: var(--inset-shadow);
  display: grid; place-items: center;
  color: var(--brand-navy);
  flex-shrink: 0;
}
.contact-info-item .ci-ico svg { width: 18px; height: 18px; }
.contact-info-item .ci-t { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-info-item .ci-v { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--foreground); letter-spacing: -0.01em; }

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19,34,58,0.05);
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card-bg-nested);
  box-shadow: var(--inset-shadow);
  border: 1px solid transparent;
  font-size: 14.5px;
  color: var(--foreground);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: var(--inset-shadow), 0 0 0 3px rgba(91, 111, 219, 0.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   Solutions page
   ========================================================== */
.sols {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .sols { grid-template-columns: repeat(2, 1fr); } }

.sol {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19,34,58,0.05);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sol:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.sol-vis {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -8px rgba(46, 69, 104, 0.35);
}
.sol-vis svg { width: 32px; height: 32px; }
.sol h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.sol p { color: var(--muted); line-height: 1.6; margin-bottom: 24px; font-size: 14.5px; }
.sol-feats {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.sol-feats li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  color: var(--brand-graphite);
}
.sol-feats li svg { width: 14px; height: 14px; color: var(--accent-teal); flex-shrink: 0; }

/* ==========================================================
   Timeline (about page)
   ========================================================== */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--accent-indigo), var(--accent-violet));
}
@media (min-width: 680px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
}
.tl-item {
  display: flex; gap: 24px;
  padding: 16px 0 32px 0;
  position: relative;
}
@media (min-width: 680px) {
  .tl-item {
    width: 50%;
    padding-right: 40px;
  }
  .tl-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px;
  }
  .tl-item:nth-child(even) .tl-dot { left: -6px; }
  .tl-item:nth-child(odd) .tl-dot  { right: -6px; }
}
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-navy);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--accent-indigo);
  flex-shrink: 0;
  margin-top: 8px;
}
@media (max-width: 679px) {
  .tl-dot { margin-left: 12px; }
  .tl-item { padding-left: 8px; }
}
@media (min-width: 680px) {
  .tl-dot {
    position: absolute;
    top: 24px;
  }
}
.tl-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19,34,58,0.05);
  flex: 1;
}
.tl-content .year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-indigo);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.tl-content h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.tl-content p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ==========================================================
   Team (about)
   ========================================================== */
.team {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, 1fr); } }

.member {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(19,34,58,0.05);
}
.member-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.member .nm { font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.member .rl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ==========================================================
   Helpers
   ========================================================== */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Loading bar top (optional) */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: var(--grad-accent);
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .15s linear;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Additional classes for contact.html + process strip
   ============================================ */

/* .contact-info-ico — used inline on contact.html with h5/p pattern */
.contact-info-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--card-bg-nested);
  box-shadow: var(--inset-shadow);
  display: grid; place-items: center;
  color: var(--brand-navy);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.contact-info-ico svg { width: 18px; height: 18px; }

.contact-info-item h5 {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-info-item p {
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0;
}
.contact-info-item p a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-item p a:hover { color: var(--accent-indigo); }

/* .process — 4-step grid (used on index and contact) */
.process {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(1, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 680px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.process-step {
  background: var(--card-bg);
  padding: 36px 28px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(19,34,58,0.04);
  position: relative;
}

.process-step .pst {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-indigo);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: inline-block;
  padding: 5px 12px;
  background: rgba(91, 111, 219, 0.08);
  border-radius: 999px;
}

.process-step h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--foreground);
}

.process-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Ensure contact-info-item allows block children (h5 + p stacked) */
.contact-info-item { align-items: flex-start; }
.contact-info-item > div:last-child { flex: 1; min-width: 0; }
