/* ============================================
   ISOFORT · Design System
   Shared styles across all pages
   ============================================ */

:root {
  /* Background tones */
  --bg-page: #FBF9F6;
  --bg-surface: #FFFFFF;
  --bg-card: #FDFCFA;
  --bg-soft: #F5F0EA;
  --bg-mist: #F9F6FB;
  --bg-deep-card: #1A0F33;
  --bg-darker: #07020F;

  /* Borders */
  --border-light: #EDE8E0;
  --border-mid: #D8CFC2;
  --border-soft-purple: #E8E0F0;

  /* Text */
  --text-primary: #1A0F33;
  --text-body: #4A3D6B;
  --text-caption: #7A6B96;
  --text-muted: #A89BC4;

  /* Brand accents */
  --accent: #E91E63;
  --accent-hover: #C2185B;
  --accent-deep: #880E4F;
  --accent-soft: #FFE0EC;
  --accent-glow: #FFF5F9;

  /* Purple */
  --purple: #2D1B4E;
  --purple-soft: #F2EDF8;
  --purple-mid: #6B4F8F;
  --purple-light: #E8E0F0;

  /* Semantic */
  --success: #0F6E56;
  --success-soft: #E1F5EE;
  --warning: #BA7517;
  --warning-soft: #FAEEDA;
  --info: #185FA5;
  --info-soft: #E6F1FB;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 15, 51, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(45, 27, 78, 0.12);
  --shadow-lg: 0 16px 36px -16px rgba(233, 30, 99, 0.15);
  --shadow-xl: 0 32px 80px -30px rgba(45, 27, 78, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(237, 232, 224, 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  gap: 1px;
}
.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin: 0 1px 10px;
}
.nav-links { display: flex; gap: 30px; }
.nav-link {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.nav-link i { font-size: 14px; opacity: 0.6; }
.nav-cta-group { display: flex; gap: 12px; align-items: center; }
.btn-sign-in { color: var(--text-body); font-size: 14px; font-weight: 500; }
.btn-sign-in:hover { color: var(--text-primary); }

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-page);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.1px;
}
.btn-primary:hover { background: var(--purple); }
.btn-primary:active { transform: scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:active { transform: scale(0.98); }

.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover { border-color: var(--text-primary); }

.btn-big { padding: 13px 22px; font-size: 15px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow-mono::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.h1 {
  font-size: 76px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -2.8px;
  margin-bottom: 24px;
  max-width: 920px;
}
.h2 {
  font-size: 54px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -1.8px;
  margin-bottom: 20px;
  max-width: 820px;
}
.h3 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.serif-accent {
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -2px;
}
.serif-accent-purple {
  color: var(--purple);
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -1.5px;
}

.subhead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-body);
  max-width: 620px;
  margin-bottom: 36px;
  font-weight: 400;
}
.body-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 640px;
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-mist { background: var(--bg-mist); }
.section-divider { border-bottom: 1px solid var(--border-light); }
.section-tight { padding: 70px 0; }

.section-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.section-headline-left { flex: 1; min-width: 320px; }
.section-headline-right { max-width: 360px; padding-bottom: 8px; }
.section-headline-right p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ============================================
   HERO PILL (announcement)
   ============================================ */

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 13px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
}
.hero-pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.hero-pill-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.hero-arrow-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-caption);
  margin-left: 14px;
  letter-spacing: 0.3px;
}

/* ============================================
   LIGHT DASHBOARD — Enterprise UI mockup
   ============================================ */

.app-mockup {
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(45, 27, 78, 0.18), 0 2px 4px rgba(45, 27, 78, 0.04);
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 540px;
  position: relative;
}

/* App sidebar */
.app-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 4px;
}
.app-sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.app-sidebar-logo i { font-size: 18px; }
.app-sidebar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.app-sidebar-icon i { font-size: 18px; }
.app-sidebar-icon:hover { background: var(--purple-soft); color: var(--purple); }
.app-sidebar-icon.active { background: var(--accent-soft); color: var(--accent); }
.app-sidebar-icon.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.app-sidebar-spacer { flex: 1; }
.app-sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  margin-top: 8px;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 1px var(--border-light);
}

/* App main */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-topbar {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  gap: 16px;
  min-height: 56px;
}
.app-topbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.app-topbar-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.app-topbar-icon i { font-size: 14px; }
.app-topbar-breadcrumb {
  font-size: 13px;
  color: var(--text-caption);
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-topbar-breadcrumb i { font-size: 12px; }
.app-topbar-spacer { flex: 1; }
.app-topbar-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--purple-soft);
  color: var(--purple);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.app-topbar-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--purple-mid);
  border-radius: 50%;
}
.app-topbar-search {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-caption);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}
.app-topbar-search i { font-size: 13px; }
.app-topbar-shortcut {
  margin-left: auto;
  background: var(--bg-page);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  border: 1px solid var(--border-light);
}

/* App content */
.app-content {
  padding: 22px 24px;
  flex: 1;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.app-content-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.app-content-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}
.app-content-sub {
  font-size: 13px;
  color: var(--text-caption);
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-content-sub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.15);
  animation: pulse-soft 2.5s infinite;
}
.app-content-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.app-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 5px 11px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.app-pill:hover { border-color: var(--accent); color: var(--accent); }
.app-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.app-pill i { font-size: 12px; }
.app-pill .count {
  background: var(--bg-page);
  color: var(--text-caption);
  padding: 1px 6px;
  border-radius: 100px;
  font-size: 10px;
}
.app-pill.active .count { background: rgba(255,255,255,0.25); color: #fff; }

/* Stat cards row */
.app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.app-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
}
.app-stat-label {
  font-size: 11px;
  color: var(--text-caption);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.app-stat-num {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.app-stat-num .delta {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.app-stat-num .delta.up { background: var(--success-soft); color: var(--success); }
.app-stat-num .delta.down { background: var(--accent-soft); color: var(--accent-deep); }
.app-stat-spark {
  margin-top: 8px;
  height: 24px;
  display: flex;
  align-items: end;
  gap: 2px;
}
.spark { flex: 1; background: var(--purple-light); border-radius: 1px 1px 0 0; }
.spark.hi { background: var(--accent); }
.spark.mid { background: var(--accent-soft); }

/* Table */
.app-table {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}
.app-table-header {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 110px 90px 30px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-caption);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  gap: 12px;
}
.app-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 110px 90px 30px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  align-items: center;
  font-size: 13px;
  transition: background 0.15s;
  opacity: 0;
  transform: translateY(-4px);
  animation: row-in 0.4s ease-out forwards;
}
.app-row:last-child { border-bottom: none; }
.app-row:hover { background: var(--bg-card); }
@keyframes row-in {
  to { opacity: 1; transform: translateY(0); }
}
.app-row:nth-child(2) { animation-delay: 0.05s; }
.app-row:nth-child(3) { animation-delay: 0.1s; }
.app-row:nth-child(4) { animation-delay: 0.15s; }
.app-row:nth-child(5) { animation-delay: 0.2s; }
.app-row:nth-child(6) { animation-delay: 0.25s; }
.app-row:nth-child(7) { animation-delay: 0.3s; }
.app-row:nth-child(8) { animation-delay: 0.35s; }

.row-event-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
}
.row-event-id .ctx {
  color: var(--text-caption);
  font-weight: 400;
  font-size: 11.5px;
}
.row-customer {
  font-size: 13px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
}
.row-avatar.alt1 { background: var(--accent-soft); color: var(--accent-deep); }
.row-avatar.alt2 { background: var(--info-soft); color: var(--info); }
.row-avatar.alt3 { background: var(--success-soft); color: var(--success); }
.row-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  text-align: right;
  font-weight: 500;
}
.row-score {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  text-align: right;
  font-weight: 500;
  position: relative;
}
.row-score.high { color: var(--accent); }
.row-score-bar {
  position: absolute;
  bottom: -4px;
  right: 0;
  height: 2px;
  background: var(--purple-light);
  border-radius: 1px;
  width: 50px;
}
.row-score-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 1px;
  transform-origin: left;
  animation: bar-fill 0.8s ease-out forwards;
}
@keyframes bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(var(--w, 0.5)); }
}
.row-menu {
  color: var(--text-muted);
  display: flex;
  justify-content: end;
}
.row-menu i { font-size: 16px; cursor: pointer; }
.row-menu i:hover { color: var(--text-primary); }

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1px;
  gap: 5px;
}
.status-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
}
.status-pill.blocked { background: var(--accent-soft); color: var(--accent-deep); }
.status-pill.blocked::before { background: var(--accent); }
.status-pill.released { background: var(--success-soft); color: var(--success); }
.status-pill.released::before { background: var(--success); }
.status-pill.review { background: var(--warning-soft); color: var(--warning); }
.status-pill.review::before { background: var(--warning); }

/* App input (bottom) */
.app-input-wrap {
  margin-top: auto;
  padding: 14px 0 4px;
}
.app-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px -6px rgba(45, 27, 78, 0.08);
}
.app-input-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-caption);
  font-family: var(--font-mono);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.app-input-attach {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.app-input-attach:hover { background: var(--bg-card); color: var(--text-primary); }
.app-input-attach i { font-size: 16px; }
.app-input-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.app-input-send:hover { background: var(--accent); }
.app-input-send i { font-size: 14px; transform: translateX(1px); }

/* App backdrop wrapper (for hero/section visuals) */
.app-backdrop {
  position: relative;
  padding: 32px;
  background: linear-gradient(135deg, #FFE0EC 0%, #F2EDF8 50%, #FBF9F6 100%);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-top: 60px;
}
.app-backdrop::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.app-backdrop::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(75, 43, 126, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.app-backdrop > * { position: relative; z-index: 2; }

/* ============================================
   ANIMATIONS — keyframes
   ============================================ */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(15, 110, 86, 0.05); }
}
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15); }
  50% { box-shadow: 0 0 0 7px rgba(233, 30, 99, 0.0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fade-up 0.5s ease-out forwards; opacity: 0; }
.fade-up.d1 { animation-delay: 0.05s; }
.fade-up.d2 { animation-delay: 0.15s; }
.fade-up.d3 { animation-delay: 0.25s; }
.fade-up.d4 { animation-delay: 0.35s; }
.fade-up.d5 { animation-delay: 0.45s; }

/* ============================================
   LOGOS BAND
   ============================================ */

.logos-band {
  padding: 50px 0 64px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.logos-band-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-caption);
  margin-bottom: 28px;
  font-weight: 400;
}
.logos-band-label strong { color: var(--text-primary); font-weight: 500; }
.logos-band-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}
.logo-mark {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 500;
}

/* ============================================
   ANATOMY GRID
   ============================================ */

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
}
.anatomy-step {
  padding: 32px 26px;
  border-right: 1px solid var(--border-light);
  position: relative;
  transition: background 0.2s;
}
.anatomy-step:last-child { border-right: none; }
.anatomy-step:hover { background: var(--accent-glow); }
.anatomy-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 22px;
  font-weight: 500;
}
.anatomy-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.anatomy-step:hover .anatomy-icon { background: var(--accent); color: #fff; transform: rotate(-4deg) scale(1.05); }
.anatomy-icon i { font-size: 24px; }
.anatomy-title {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.anatomy-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

/* ============================================
   MODULES GRID
   ============================================ */

.modules-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.module-card.featured {
  grid-column: span 1;
  grid-row: span 2;
}
.module-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(140deg, var(--accent-glow) 0%, var(--purple-soft) 100%);
}
.module-card.featured .module-visual {
  height: 320px;
  background: linear-gradient(155deg, #FFE0EC 0%, #F2EDF8 100%);
}
.module-visual.pink { background: linear-gradient(140deg, #FFE0EC 0%, #FFF5F9 100%); }
.module-visual.purple { background: linear-gradient(140deg, #F2EDF8 0%, #FBF9F6 100%); }
.module-visual.mixed { background: linear-gradient(140deg, #FFE0EC 0%, #F2EDF8 100%); }

.module-body { padding: 22px 22px 24px; }
.module-card.featured .module-body { padding: 26px 28px 30px; }
.module-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.module-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.module-card.featured .module-title {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.module-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
}
.module-card.featured .module-desc { font-size: 14.5px; }
.module-link {
  margin-top: 16px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Mini visual UI elements */
.mini-table {
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  width: 92%;
  padding: 8px;
  box-shadow: var(--shadow-md);
}
.mini-table-row {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 10px;
  align-items: center;
  gap: 8px;
}
.mini-table-row:last-child { border-bottom: none; }
.mini-tag {
  font-size: 8.5px;
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.mini-tag.risk { background: var(--accent-soft); color: var(--accent-deep); }
.mini-tag.ok { background: var(--success-soft); color: var(--success); }
.mini-tag.review { background: var(--warning-soft); color: var(--warning); }
.mini-table-id { color: var(--text-caption); font-size: 9.5px; }
.mini-table-amount { color: var(--text-primary); text-align: right; font-weight: 500; font-size: 10px; }

.mini-id-card {
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 14px;
  width: 78%;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}
.mini-id-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 11px; font-family: var(--font-mono); }
.mini-id-row.head { border-bottom: 1px solid var(--border-light); padding-bottom: 8px; margin-bottom: 6px; }
.mini-id-label { color: var(--text-caption); }
.mini-id-val { color: var(--text-primary); font-weight: 500; }
.mini-id-val.flag { color: var(--accent); }

.mini-graph {
  width: 82%;
  height: 70%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.mini-graph-bar { height: 9px; background: var(--accent-soft); border-radius: 2px; }
.mini-graph-bar.hi { background: var(--accent); }
.mini-graph-bar.mid { background: var(--purple-soft); }
.mini-graph-bar.dark { background: var(--purple-light); }

.mini-network {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-network svg { width: 80%; height: 80%; max-width: 200px; }
.mini-network-circle {
  animation: pulse-soft-circle 3s infinite ease-in-out;
}
@keyframes pulse-soft-circle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mini-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mini-lock-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow-md);
}
.mini-lock-icon i { font-size: 28px; }
.mini-lock-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-caption);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ============================================
   INTEGRATIONS
   ============================================ */

.integrations {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 36px;
  margin-top: 40px;
}
.int-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.int-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-body);
  letter-spacing: 0.3px;
  text-align: center;
  transition: all 0.15s;
  font-weight: 500;
}
.int-cell:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.int-cell i { font-size: 22px; color: var(--text-caption); transition: color 0.15s; }
.int-cell:hover i { color: var(--accent); }

/* ============================================
   PILOT SECTION (dark)
   ============================================ */

.pilot {
  background: var(--bg-deep-card);
  padding: 100px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pilot::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.pilot::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(75, 43, 126, 0.4) 0%, transparent 65%);
  pointer-events: none;
}
.pilot-inner { position: relative; z-index: 2; }
.pilot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.pilot .eyebrow-mono { color: var(--accent); }
.pilot .eyebrow-mono::before { background: var(--accent); }
.pilot-headline { color: #fff; font-size: 54px; font-weight: 500; line-height: 1.05; letter-spacing: -1.8px; margin-bottom: 24px; }
.pilot-headline em { color: var(--accent); font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -1.5px; }
.pilot-lead { font-size: 18px; color: rgba(255,255,255,0.72); line-height: 1.6; margin-bottom: 32px; max-width: 540px; }

.pilot-perks {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pilot-perk {
  display: flex;
  align-items: start;
  gap: 16px;
}
.pilot-perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.pilot-perk-icon i { font-size: 18px; }
.pilot-perk-text { padding-top: 2px; }
.pilot-perk-title { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 4px; letter-spacing: -0.2px; }
.pilot-perk-body { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.55; }

.pilot-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(8px);
}
.pilot-form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pilot-form-label::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.pilot-form-title {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.pilot-form-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin-bottom: 26px;
}
.pilot-form-field {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
  outline: none;
}
.pilot-form-field::placeholder { color: rgba(255,255,255,0.35); }
.pilot-form-field:focus { border-color: var(--accent); }
.pilot-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pilot-form-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.pilot-form-btn:hover { background: var(--accent-hover); }
.pilot-form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

/* ============================================
   FIELD NOTES
   ============================================ */

.field-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}
.field-note {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.field-note:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.field-note-visual {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  color: var(--accent);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  letter-spacing: -1px;
}
.field-note-visual.pink { background: linear-gradient(140deg, #FFE0EC 0%, #FFF5F9 100%); }
.field-note-visual.purple { background: linear-gradient(140deg, #F2EDF8 0%, #FBF9F6 100%); }
.field-note-visual.mixed { background: linear-gradient(140deg, #FFE0EC 0%, #F2EDF8 100%); }
.field-note-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.field-note-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.field-note-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.field-note-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 18px;
  flex: 1;
}
.field-note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-caption);
  letter-spacing: 0.3px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.field-note-read { color: var(--accent); font-weight: 500; }

/* ============================================
   BUILT FOR GRID
   ============================================ */

.built-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}
.built-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 30px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.built-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.built-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
}
.built-icon i { font-size: 22px; }
.built-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}
.built-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 22px;
}
.built-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.built-tag {
  background: var(--purple-soft);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.2px;
  font-weight: 500;
}
.built-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   COMPLIANCE STRIP
   ============================================ */

.compliance-strip { padding: 56px 0; background: var(--bg-surface); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.compliance-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.compliance-text { flex: 1; min-width: 280px; }
.compliance-title { font-size: 18px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; letter-spacing: -0.3px; }
.compliance-sub { font-size: 14px; color: var(--text-body); }
.compliance-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.compliance-badge {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compliance-badge i { color: var(--success); font-size: 15px; }

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  padding: 130px 0;
  text-align: center;
  background: var(--bg-deep-card);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 50%, rgba(233, 30, 99, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(75, 43, 126, 0.5) 0%, transparent 65%);
}
.final-cta-inner { position: relative; z-index: 2; }
.final-h2 {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -2.4px;
  margin-bottom: 28px;
}
.final-h2 em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -1.8px;
}
.final-sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  margin: 0 auto 38px;
  max-width: 580px;
}
.final-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final-cta .btn-primary { background: #fff; color: var(--text-primary); }
.final-cta .btn-primary:hover { background: var(--accent); color: #fff; }
.final-cta .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.25); color: #fff; }
.final-cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* ============================================
   FOOTER
   ============================================ */

.footer { padding: 70px 0 36px; background: var(--bg-darker); color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; gap: 36px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.foot-col a { display: block; color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 10px; transition: color 0.15s; }
.foot-col a:hover { color: #fff; }
.foot-tagline { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.55; max-width: 240px; margin-top: 14px; }
.footer .logo { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.5px; flex-wrap: wrap; gap: 14px; }

/* ============================================
   PAGE HEADER (sub-pages)
   ============================================ */

.page-header {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header-content { max-width: 800px; }
.page-header h1 {
  font-size: 60px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.page-header h1 em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -1.6px;
}
.page-header p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 620px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .h1 { font-size: 56px; letter-spacing: -1.8px; }
  .h2 { font-size: 40px; letter-spacing: -1.2px; }
  .final-h2 { font-size: 46px; }
  .pilot-headline { font-size: 40px; letter-spacing: -1.2px; }
  .page-header h1 { font-size: 44px; letter-spacing: -1.4px; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .module-card.featured { grid-column: span 2; grid-row: span 1; }
  .anatomy-grid { grid-template-columns: repeat(2, 1fr); }
  .anatomy-step:nth-child(2) { border-right: none; }
  .anatomy-step:nth-child(1), .anatomy-step:nth-child(2) { border-bottom: 1px solid var(--border-light); }
  .built-grid, .field-notes-grid { grid-template-columns: 1fr; }
  .pilot-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-headline { flex-direction: column; align-items: start; gap: 20px; }
  .int-grid { grid-template-columns: repeat(3, 1fr); }
  .app-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .nav-links { display: none; }
  .h1 { font-size: 38px; letter-spacing: -1px; }
  .h2 { font-size: 28px; letter-spacing: -0.8px; }
  .final-h2 { font-size: 32px; letter-spacing: -1px; }
  .pilot-headline { font-size: 30px; letter-spacing: -1px; }
  .page-header h1 { font-size: 32px; letter-spacing: -1px; }
  .subhead { font-size: 17px; }
  .section { padding: 60px 0; }
  .pilot { padding: 70px 0; }
  .final-cta { padding: 80px 0; }
  .modules-grid { grid-template-columns: 1fr; }
  .module-card.featured { grid-column: span 1; }
  .anatomy-grid { grid-template-columns: 1fr; }
  .anatomy-step { border-right: none; border-bottom: 1px solid var(--border-light); }
  .anatomy-step:last-child { border-bottom: none; }
  .pilot-form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations { padding: 22px; }
  .app-mockup { grid-template-columns: 48px 1fr; min-height: 480px; }
  .app-table-header, .app-row { grid-template-columns: 70px 1fr 90px 30px; }
  .app-table-header span:nth-child(3), .app-row > *:nth-child(3),
  .app-table-header span:nth-child(5), .app-row > *:nth-child(5) { display: none; }
  .app-stats { grid-template-columns: 1fr; }
}

/* ============================================
   ARCHITECTURE · 3-layer stack
   ============================================ */
.arch-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 44px; }
.arch-layer {
  display: grid; grid-template-columns: 128px 1fr; gap: 28px; align-items: start;
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-left: 3px solid var(--purple-mid); border-radius: 16px; padding: 26px 30px; box-shadow: var(--shadow-sm);
}
.arch-layer.accent { border-left-color: var(--accent); }
.arch-layer-num { font-family: var(--font-mono); font-size: 40px; font-weight: 500; color: var(--purple-light); line-height: 1; letter-spacing: -1px; }
.arch-layer.accent .arch-layer-num { color: var(--accent-soft); }
.arch-layer-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-caption); margin-top: 10px; }
.arch-layer-title { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; color: var(--text-primary); margin-bottom: 8px; }
.arch-layer-title .accent-word { color: var(--accent); }
.arch-layer-desc { font-size: 15px; line-height: 1.6; color: var(--text-body); margin-bottom: 16px; max-width: 640px; }
.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-chip { font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: 8px; background: var(--purple-soft); color: var(--purple); border: 1px solid var(--border-soft-purple); }
.arch-chip.pink { background: var(--accent-soft); color: var(--accent-deep); border-color: #F8C6D9; }
.arch-note { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.5px; color: var(--text-caption); }
.arch-note i { color: var(--accent); }

/* ============================================
   AGENTIC AI · spotlight (dark, the centerpiece)
   ============================================ */
.agentic { background: linear-gradient(158deg, #2D1B4E 0%, #1A0F33 68%, #07020F 100%); padding: 96px 0; color: #fff; overflow: hidden; }
.agentic-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #FF6FA3; border: 1px solid rgba(255,111,163,0.3); border-radius: 100px; padding: 6px 14px; }
.agentic-h2 { font-size: 48px; font-weight: 500; letter-spacing: -1.8px; line-height: 1.06; color: #fff; margin: 22px 0 20px; max-width: 800px; }
.agentic-h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #FF7AA8; }
.agentic-lead { font-size: 18px; line-height: 1.65; color: #C8BBE0; max-width: 720px; }
.agentic-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; margin-top: 52px; align-items: stretch; }
.agentic-panel { background: #FBF9F6; border-radius: 18px; padding: 22px 24px; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6); }
.ap-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-caption); padding-bottom: 14px; border-bottom: 1px solid var(--border-light); margin-bottom: 14px; }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ap-live { margin-left: auto; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.ap-step { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; color: var(--text-body); border-bottom: 1px dashed var(--border-light); }
.ap-step:last-child { border-bottom: none; }
.ap-step i { font-size: 18px; flex-shrink: 0; }
.ap-step.done i { color: var(--success); }
.ap-step.wait { color: var(--accent-deep); font-weight: 500; }
.ap-step.wait i { color: var(--accent); }
.agentic-roles { display: flex; flex-direction: column; gap: 12px; }
.agentic-role { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.agentic-role i { font-size: 22px; color: #FF7AA8; margin-top: 2px; flex-shrink: 0; }
.agentic-role-t { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.agentic-role-d { font-size: 13px; line-height: 1.5; color: #A99BC6; }
.agentic-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12); }
.agentic-stat-num { font-size: 46px; font-weight: 500; letter-spacing: -2px; color: #fff; line-height: 1; }
.agentic-stat-num span { color: #FF7AA8; }
.agentic-stat-lbl { font-size: 13.5px; line-height: 1.45; color: #A99BC6; margin-top: 10px; }

@media (max-width: 860px) {
  .arch-layer { grid-template-columns: 1fr; gap: 12px; }
  .arch-layer-num { font-size: 30px; }
  .agentic-h2 { font-size: 34px; letter-spacing: -1.2px; }
  .agentic-grid { grid-template-columns: 1fr; }
  .agentic-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ============================================
   NAV MEGA-MENU
   ============================================ */
.nav-inner { position: relative; }
.nav-item { position: static; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0;
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: 20px; box-shadow: var(--shadow-xl); padding: 30px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mega-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-caption); display: flex; align-items: center; gap: 8px; }
.mega-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mega-lead { font-size: 21px; font-weight: 500; letter-spacing: -0.5px; color: var(--text-primary); line-height: 1.35; margin: 14px 0 26px; max-width: 720px; }
.mega-lead em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mega-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; transition: background .14s, border-color .14s; position: relative; }
.mega-card:hover { background: var(--bg-soft); border-color: var(--border-light); }
.mega-card-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--purple-soft); color: var(--purple-mid); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mega-card.flag .mega-card-ico { background: var(--accent-soft); color: var(--accent); }
.mega-card-t { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; display: flex; align-items: center; gap: 7px; }
.mega-card-t .tag-new { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 5px; }
.mega-card-d { font-size: 13px; line-height: 1.5; color: var(--text-caption); }
.mega-card-arrow { position: absolute; right: 16px; top: 18px; color: var(--text-muted); opacity: 0; transition: opacity .14s, transform .14s; }
.mega-card:hover .mega-card-arrow { opacity: 1; transform: translateX(3px); }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.mega-foot-note { font-size: 13px; color: var(--text-caption); }
.mega-foot a { font-size: 13.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.mega-col-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 7px; }
.mega-col-head .n { color: var(--text-muted); }
.mega-col .mega-card { padding: 13px 12px; }

@media (max-width: 900px) {
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 8px 0 0; border-radius: 0; display: none; }
  .nav-item.open .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-cols { grid-template-columns: 1fr; gap: 18px; }
  .mega-lead { font-size: 17px; }
}

/* ============================================
   INTELLIGENCE FABRIC · data / signal ecosystem
   ============================================ */
.fabric-chains { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 40px 0 44px; }
.fabric-chain { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--text-body); background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 100px; padding: 8px 16px; }
.fabric-chain::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.fabric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fabric-cat { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 16px; padding: 24px; }
.fabric-cat-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--purple-soft); color: var(--purple-mid); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.fabric-cat h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 14px; }
.fabric-cat ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fabric-cat li { font-size: 13px; color: var(--text-caption); display: flex; gap: 9px; align-items: start; line-height: 1.45; }
.fabric-cat li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.fabric-note { text-align: center; margin-top: 30px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.5px; color: var(--text-caption); }
.fabric-note b { color: var(--accent); font-weight: 500; }
@media (max-width: 900px) { .fabric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fabric-grid { grid-template-columns: 1fr; } }

/* Web2 + Web3 duality columns */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.duo-col { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 20px; padding: 30px 30px 34px; }
.duo-col.web3 { border-top: 4px solid var(--accent); }
.duo-col.web2 { border-top: 4px solid var(--purple-mid); }
.duo-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 13px; border-radius: 100px; margin-bottom: 16px; }
.duo-col.web3 .duo-tag { background: var(--accent-soft); color: var(--accent-deep); }
.duo-col.web2 .duo-tag { background: var(--purple-soft); color: var(--purple); }
.duo-col h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.5px; color: var(--text-primary); margin-bottom: 8px; }
.duo-col > p { font-size: 14.5px; line-height: 1.6; color: var(--text-body); margin-bottom: 18px; }
.duo-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.duo-list li { font-size: 14px; color: var(--text-body); display: flex; gap: 10px; align-items: start; line-height: 1.5; }
.duo-list li i { color: var(--accent); font-size: 17px; margin-top: 1px; flex-shrink: 0; }
.duo-col.web2 .duo-list li i { color: var(--purple-mid); }
.duo-col .fabric-chains { margin: 0 0 18px; justify-content: flex-start; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ============================================
   DECISION LAYER · the conductor visual
   ============================================ */
.cond { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 44px; }
.cond.reverse { direction: rtl; }
.cond.reverse > * { direction: ltr; }
.cond-body { font-size: 16px; line-height: 1.65; color: var(--text-body); margin-bottom: 22px; }
.cond-panel { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-md); }
.cond-panel-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-caption); padding-bottom: 14px; border-bottom: 1px solid var(--border-light); margin-bottom: 8px; }
.cond-panel-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cond-row { display: grid; grid-template-columns: 116px 1fr 74px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--border-light); }
.cond-row:last-of-type { border-bottom: none; }
.cond-src { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.cond-bar { height: 6px; border-radius: 3px; background: var(--purple-soft); position: relative; overflow: hidden; }
.cond-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); }
.cond-bar.muted span { background: var(--text-muted); }
.cond-role { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-caption); text-align: right; }
.cond-role.lead { color: var(--accent); }
.cond-verdict { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border-light); font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.5px; }
@media (max-width: 860px) { .cond { grid-template-columns: 1fr; gap: 32px; } .cond.reverse { direction: ltr; } }

/* Hero agentic-AI punch line */
.hero-punch { font-size: 23px; font-weight: 500; letter-spacing: -0.5px; line-height: 1.35; color: var(--text-primary); margin: 6px 0 20px; max-width: 640px; }
@media (max-width: 640px) { .hero-punch { font-size: 19px; } }

/* ============================================
   HOME · feature bar (replaces the logo band)
   ============================================ */
.featbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 38px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.feat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feat-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 14px; }
.feat-ico.purple { background: var(--purple-soft); color: var(--purple-mid); }
.feat-t { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--text-primary); margin-bottom: 6px; }
.feat-d { font-size: 13px; line-height: 1.45; color: var(--text-caption); max-width: 190px; }
.featbar-note { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px; color: var(--text-muted); margin-top: 22px; }
@media (max-width: 860px) { .featbar { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

/* ============================================
   HOME · Web2 <-> Web3 animated flow
   ============================================ */
.flow { display: flex; align-items: stretch; gap: 0; margin-top: 44px; }
.flow-panel { flex: 1; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.flow-panel.web2 { border-top: 4px solid var(--purple-mid); }
.flow-panel.web3 { border-top: 4px solid var(--accent); }
.flow-panel:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid); transform: translateY(-3px); }
.flow-panel h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--text-primary); margin-bottom: 12px; }
.flow-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-caption); margin-bottom: 12px; }
.flow-list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.flow-list li { font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 7px; background: var(--bg-soft); color: var(--text-body); }
.flow-wire { position: relative; width: 84px; flex-shrink: 0; align-self: center; height: 44px; }
.flow-wire::before { content: ""; position: absolute; top: 50%; left: 2px; right: 2px; height: 2px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, var(--border-mid) 0 5px, transparent 5px 11px); }
.flow-dot { position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; opacity: 0; }
.flow-wire.left .flow-dot { background: var(--purple-mid); animation: flowR 1.9s linear infinite; }
.flow-wire.right .flow-dot { background: var(--accent); animation: flowL 1.9s linear infinite; }
@keyframes flowR { 0% { left: 2px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 74px; opacity: 0; } }
@keyframes flowL { 0% { right: 2px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { right: 74px; opacity: 0; } }
.flow-center { flex-shrink: 0; align-self: center; text-align: center; padding: 0 2px; }
.flow-node { width: 72px; height: 72px; margin: 0 auto; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 22px; background: linear-gradient(135deg, #2D1B4E 0%, #E91E63 130%); box-shadow: var(--shadow-lg); animation: nodePulse 2.4s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,30,99,0.32); } 50% { box-shadow: 0 0 0 13px rgba(233,30,99,0); } }
.flow-node-lbl { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-caption); margin-top: 10px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .flow-dot { opacity: 1; animation: none; } .flow-node { animation: none; } }
@media (max-width: 860px) { .flow { flex-direction: column; gap: 16px; } .flow-wire { display: none; } .flow-panel { width: 100%; } }
