/* ClickDialog Institutional V6 — Direction 1: Precision Systems & Kinetic Orchestration
   Deep tech aesthetic, Linear & Stripe inspired, Operations Canvas, realistic mockups, and accessible microinteractions. */

:root {
  --cd-ink: #f8fafc;
  --cd-muted: #94a3b8;
  --cd-subtle: #64748b;
  --cd-bg-base: #030712;
  --cd-bg-surface: #080f24;
  --cd-bg-card: rgba(13, 23, 49, 0.75);
  --cd-blue: #2563eb;
  --cd-azure: #38bdf8;
  --cd-border: rgba(56, 189, 248, 0.14);
  --cd-border-focus: rgba(56, 189, 248, 0.4);
  --cd-radius-sm: 8px;
  --cd-radius-md: 16px;
  --cd-radius-lg: 24px;
  --cd-glow: rgba(56, 189, 248, 0.25);
  --cd-emerald: #10b981;
  --cd-amber: #f59e0b;
}

.cd-home, .solutions-page.cd-inst {
  color: var(--cd-ink);
  background: var(--cd-bg-base);
  font-family: inherit;
  overflow-x: hidden;
  position: relative;
}

.cd-container {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

/* Ambient Grid & Glow */
.ambient-grid {
  position: absolute;
  top: 0; left: 0; right: 0; height: 1200px;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

/* Base Typographic Hierarchy */
.cd-home h1, .cd-home h2, .cd-home h3,
.solutions-page.cd-inst h1, .solutions-page.cd-inst h2, .solutions-page.cd-inst h3 {
  color: #ffffff;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
}

.cd-home p, .solutions-page.cd-inst p {
  color: var(--cd-muted);
  line-height: 1.6;
  margin: 0;
}

.cd-overline {
  font-size: 11px !important;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cd-azure) !important;
  font-weight: 700;
  margin: 0 0 10px 0;
  display: block;
}

/* Button & Link Primitives */
.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 99px;
  font-size: 14.5px;
  line-height: 1.2;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.cd-btn-primary {
  background: linear-gradient(135deg, var(--cd-blue), #1d4ed8);
  border: 1px solid var(--cd-blue);
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cd-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.55);
}

.cd-btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--cd-border);
  color: #ffffff !important;
  backdrop-filter: blur(12px);
}

.cd-btn-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--cd-border-focus);
  color: var(--cd-azure) !important;
  transform: translateY(-2px);
}

.cd-btn-lg {
  min-height: 52px;
  padding: 16px 36px;
  font-size: 15.5px;
}

.cd-btn span.arrow, .cd-text-link span.arrow, .cd-service-link span.arrow {
  transition: transform 0.18s ease;
}

.cd-btn:hover span.arrow, .cd-text-link:hover span.arrow, .cd-service-link:hover span.arrow {
  transform: translateX(4px);
}

.cd-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cd-azure);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.15s ease;
}

.cd-text-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================================================
   SECTION 1: HERO & OPERATIONS CANVAS
   ======================================================== */
.cd-home-hero {
  padding-block: 80px 100px;
  position: relative;
  z-index: 1;
}

.cd-home-hero-copy {
  max-width: 960px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-home-hero-copy .cd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cd-azure);
  margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.cd-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cd-azure);
  box-shadow: 0 0 10px var(--cd-azure);
  animation: cdPulse 2s infinite;
}

@keyframes cdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cd-home-hero h1 {
  font-size: clamp(38px, 4.8vw, 70px);
  line-height: 1.08;
  max-width: 900px;
  color: #ffffff;
  margin-bottom: 22px;
}

.cd-home-lead {
  max-width: 760px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--cd-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.cd-home-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cd-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.cd-trust-check {
  color: var(--cd-azure);
  font-weight: bold;
}

/* Direction 1 Hero Artwork: The Operations Canvas */
.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--cd-radius-lg);
  padding: 36px;
  background: linear-gradient(180deg, rgba(13, 23, 49, 0.85) 0%, rgba(5, 11, 26, 0.95) 100%);
  border: 1px solid var(--cd-border);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-align: left;
}

.canvas-bg-mesh {
  position: absolute; inset: 0;
  background-image: url('/assets/systems-kinetic-orchestration.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.canvas-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
  align-items: center;
}

.canvas-col-title {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  color: var(--cd-azure);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.canvas-card {
  background: rgba(8, 16, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  transition: all 0.25s;
}

.canvas-card:hover {
  border-color: var(--cd-azure);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.12);
}

.canvas-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge-channel {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.badge-whatsapp { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-google { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-booking { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.canvas-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.canvas-card p {
  font-size: 12.5px;
  color: var(--cd-muted);
  line-height: 1.45;
}

/* Canvas Center Engine Core */
.engine-core {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.3) 0%, rgba(8, 17, 44, 0.95) 75%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.engine-pulse-ring {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cd-azure), var(--cd-blue));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 32px var(--cd-azure);
  position: relative;
}

.engine-pulse-ring::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.6);
  animation: cdRotate 20s linear infinite;
}

@keyframes cdRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.engine-core h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.engine-core p {
  font-size: 13px;
  color: #94a3b8;
  max-width: 280px;
  margin: 0 auto 20px;
}

.engine-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.engine-layer-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.engine-layer-item .status-active {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cd-emerald);
  font-size: 11px;
}

.engine-layer-item .status-active::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cd-emerald);
  box-shadow: 0 0 8px var(--cd-emerald);
}

/* ========================================================
   SECTION 2: SERVICES & HOSPITALITY MINI
   ======================================================== */
.cd-home-section {
  padding-block: 100px;
  border-top: 1px solid var(--cd-border);
  position: relative;
  z-index: 1;
}

.cd-home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  gap: 32px;
}

.cd-home-section-heading h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  color: #ffffff;
}

.cd-home-section-heading>p {
  max-width: 440px;
  font-size: 16px;
  color: var(--cd-muted);
}

.cd-home-services, .cd-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.cd-service-card {
  background: rgba(13, 23, 49, 0.65);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.cd-service-card:hover {
  border-color: var(--cd-border-focus);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.cd-service-card.featured {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.2) 0%, rgba(13, 23, 49, 0.8) 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

.cd-service-tag {
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--cd-azure);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.cd-tag-accent {
  color: #38bdf8;
}

.cd-service-card h3 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 12px;
}

.cd-service-card p {
  font-size: 14.5px;
  color: var(--cd-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Hospitality Mini Visual inside Service Card */
.cd-hosp-mini-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
  position: relative;
}

.cd-hosp-mini-visual img {
  width: 100%; height: 160px; object-fit: cover; display: block;
}

.cd-hosp-mini-bar {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  background: rgba(8, 15, 36, 0.9);
  backdrop-filter: blur(10px);
  padding: 6px 12px; border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
}

.cd-mini-direct { color: #34d399; font-weight: 700; }
.cd-mini-ota { color: #f87171; text-decoration: line-through; }

.cd-service-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0;
}

.cd-service-items li {
  font-size: 13.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-service-items li::before {
  content: '✓';
  color: var(--cd-azure);
  font-weight: bold;
}

.cd-service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cd-azure);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.cd-service-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Connected Operations Comparison Matrix */
.cd-contrast-block {
  margin-top: 48px;
}

.cd-contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cd-contrast-card {
  padding: 32px;
  border-radius: var(--cd-radius-md);
  border: 1px solid var(--cd-border);
}

.cd-contrast-card.problem {
  background: rgba(30, 16, 26, 0.5);
  border-color: rgba(239, 68, 68, 0.2);
}

.cd-contrast-card.problem h3 {
  color: #fca5a5;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cd-contrast-card.solution {
  background: rgba(8, 28, 38, 0.6);
  border-color: rgba(16, 185, 129, 0.25);
}

.cd-contrast-card.solution h3 {
  color: #6ee7b7;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cd-contrast-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-contrast-list li {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ========================================================
   SECTION 3: REVIEW BOOST PRODUCT SHOWCASE
   ======================================================== */
.cd-home-feature {
  padding-block: 100px;
  border-top: 1px solid var(--cd-border);
  position: relative;
  z-index: 1;
}

.cd-home-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.cd-feature-info h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  color: #ffffff;
  margin-bottom: 18px;
}

.cd-feature-info>p {
  font-size: 17px;
  color: var(--cd-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.cd-feature-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.cd-point-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cd-point-num {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--cd-azure);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.cd-point-item strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}

.cd-point-item p {
  font-size: 13.5px;
  color: var(--cd-muted);
  line-height: 1.5;
}

/* Realistic Software Mockup Window */
.rb-mockup-window {
  background: #0b1329;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.rb-mockup-bar {
  background: #111c3d;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rb-dot { width: 10px; height: 10px; border-radius: 50%; }
.rb-dot-red { background: #ef4444; }
.rb-dot-yellow { background: #f59e0b; }
.rb-dot-green { background: #10b981; }

.rb-mockup-title {
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
  margin-left: 8px;
}

.rb-review-card {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}

.rb-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rb-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-weight: 700; font-size: 14px;
}

.rb-meta h5 {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.rb-meta span {
  font-size: 12px;
  color: #64748b;
}

.rb-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-left: auto;
}

.rb-text {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.55;
}

.rb-ai-box {
  padding: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, rgba(11, 19, 41, 0.8) 100%);
}

.rb-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.rb-ai-draft {
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.55;
  background: rgba(8, 15, 36, 0.85);
  padding: 16px;
  border-radius: 12px;
  border-left: 3px solid var(--cd-azure);
  margin-bottom: 18px;
}

.rb-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rb-gate-tag {
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-approve {
  background: var(--cd-azure);
  color: #030712;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transition: all 0.2s;
}

.btn-approve:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

.cd-home-feature-note {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #94a3b8;
  display: flex;
  gap: 8px;
}

.cd-home-feature-note strong {
  color: #ffffff;
}

/* ========================================================
   SECTION 4: METHODOLOGY & INTEGRATIONS
   ======================================================== */
.cd-home-method {
  padding-block: 100px;
  border-top: 1px solid var(--cd-border);
  position: relative;
  z-index: 1;
}

.cd-home-process {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.cd-process-card {
  background: rgba(13, 23, 49, 0.65);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.cd-process-step {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--cd-azure);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  align-self: flex-start;
  margin-bottom: 18px;
}

.cd-process-card h3 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 12px;
}

.cd-process-card p {
  font-size: 14.5px;
  color: var(--cd-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.cd-process-sub {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--cd-azure);
  font-family: 'JetBrains Mono', monospace;
}

.cd-process-action {
  text-align: center;
  margin-bottom: 56px;
}

.cd-home-integrations {
  padding: 36px 32px;
  background: rgba(8, 15, 36, 0.7);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-md);
  text-align: center;
}

.cd-integrations-title {
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cd-azure);
  margin-bottom: 24px;
}

.cd-integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cd-integration-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cd-integration-chip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cd-azure);
}

/* ========================================================
   SECTION 5: FINAL CLOSER
   ======================================================== */
.cd-home-last {
  padding-block: 100px 120px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.22) 0%, #030712 75%);
  border-top: 1px solid var(--cd-border);
  text-align: center;
  position: relative;
  z-index: 1;
}

.cd-last-content h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  color: #ffffff;
  margin-bottom: 18px;
}

.cd-last-content p {
  font-size: 18px;
  color: var(--cd-muted);
  max-width: 620px;
  margin: 0 auto 16px;
}

.cd-last-meta {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 36px;
}

.cd-last-meta .sep { margin-inline: 8px; }

/* ========================================================
   SOLUTIONS V4 PAGE STYLES (PRESERVED & UPGRADED)
   ======================================================== */
.solutions-page.cd-inst {
  padding-block: 60px 100px;
}

.cd-inst .cd-entry-card {
  background: rgba(13, 23, 49, 0.7);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-md);
  padding: 32px 28px;
  transition: all 0.25s;
}

.cd-inst .cd-entry-card:hover {
  border-color: var(--cd-border-focus);
  transform: translateY(-2px);
}

.cd-inst .cd-objective {
  background: rgba(13, 23, 49, 0.5);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-md);
  margin-bottom: 20px;
}

.cd-inst .cd-objective summary {
  padding: 24px 28px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 650;
  color: #ffffff;
}

/* Solutions Hub Canvas & Upgrades */
.cd-solutions-hero {
  padding-block: 70px 90px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cd-solutions-hero-copy {
  max-width: 880px;
}

.cd-solutions-canvas {
  background: radial-gradient(ellipse at 50% 20%, rgba(30, 58, 138, 0.4) 0%, rgba(7, 14, 38, 0.95) 70%);
  border: 1px solid rgba(77, 120, 240, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.cd-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.cd-canvas-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.cd-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: cdPulse 2s infinite ease-in-out;
}

@keyframes cdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cd-canvas-caption {
  font-size: 13px;
  color: #94a3b8;
}

.cd-canvas-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Solutions Entry Cards */
.cd-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.cd-inst .cd-entry-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cd-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.cd-entry-meta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #60a5fa;
}

.cd-entry-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(49, 91, 255, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(49, 91, 255, 0.35);
}

.cd-chip-product {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.cd-entry-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.cd-entry-summary {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.cd-entry-boundary {
  background: rgba(15, 23, 42, 0.6);
  border-left: 2px solid var(--cd-azure);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 24px;
}

.cd-entry-boundary .boundary-label {
  display: block;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.cd-entry-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Objectives details styling */
.cd-objective-intro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px 0;
}

.cd-objective-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--cd-azure);
}

.cd-objective-text h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.cd-objective-text p {
  font-size: 14.5px;
  color: #94a3b8;
  margin: 0;
}

.cd-objective-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cd-objective-details ul {
  list-style: none;
  padding: 0 28px 24px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.cd-objective-details li a {
  display: block;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.cd-objective-details li a:hover {
  background: rgba(49, 91, 255, 0.15);
  border-color: rgba(49, 91, 255, 0.4);
  transform: translateX(3px);
}

.cd-objective-details li strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.cd-objective-details li span {
  display: block;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
}

/* Resources section */
.cd-ia-resource-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.cd-resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: rgba(13, 23, 49, 0.7);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.cd-resource-card:hover {
  border-color: var(--cd-border-focus);
  background: rgba(22, 38, 77, 0.7);
  transform: translateY(-2px);
}

.cd-resource-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cd-azure);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.cd-resource-content strong {
  display: block;
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 4px;
}

.cd-resource-content span {
  display: block;
  font-size: 13.5px;
  color: #94a3b8;
}

.cd-resource-arrow {
  font-size: 20px;
  color: var(--cd-azure);
  margin-left: 16px;
}

/* Accessibility & Focus Rings */
:focus-visible {
  outline: 2px solid var(--cd-azure);
  outline-offset: 3px;
}

/* Media Queries for Deterministic Contracts */
@media (max-width:1024px) {
  .canvas-grid { grid-template-columns: 1fr; }
  .cd-services-grid, .cd-home-process { grid-template-columns: 1fr; }
  .cd-home-feature-inner { grid-template-columns: 1fr; }
  .cd-contrast-grid { grid-template-columns: 1fr; }
}

@media (max-width:600px) {
  .cd-home-hero { padding-block: 54px 64px; }
  .hero-canvas { padding: 18px; }
  .cd-home-hero h1 { font-size: 34px; }
  .cd-home-lead { font-size: 16px; }
  .cd-home-section-heading { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
