/* ==========================================
   NEURA DESIGN SYSTEM & VARS
   ========================================== */
:root {
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-logo: 'Outfit', sans-serif;
  
  --bg-color: #ffffff;
  --text-primary: #0a0a0c;
  --text-secondary: #585862;
  --text-muted: #868692;
  
  --accent: #ff4f12;
  --accent-hover: #e03f07;
  --accent-light: rgba(255, 79, 18, 0.08);
  
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 
                 0 1px 3px rgba(0, 0, 0, 0.02);
  --card-blur: blur(20px);
  
  --terminal-bg: #111115;
  --terminal-text: #a9b2c3;
  --terminal-accent: #38bdf8;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================
   VIDEO BACKGROUND INTEGRATION
   ========================================== */
.video-bg-wrapper {
  position: fixed; /* Lock to the browser window viewport */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  
  /* Apply a radial mask to fade out the borders completely to transparent */
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
}

.video-bg-element {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.video-bg-overlay {
  position: absolute;
  top: -2%;
  left: -2%;
  right: -2%;
  bottom: -2%;
  background: radial-gradient(ellipse at center, transparent 35%, #ffffff 68%);
  pointer-events: none;
  z-index: 2; /* Force stacking on top of the video element */
}

/* ==========================================
   HEADER NAVIGATION
   ========================================== */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  transition: var(--transition-fast);
}

.logo-icon {
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.logo:hover .logo-icon {
  transform: rotate(90deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-text {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-text:hover {
  color: var(--text-primary);
}

.btn-dark {
  text-decoration: none;
  background-color: var(--text-primary);
  color: var(--bg-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--text-primary);
  transition: var(--transition-smooth);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   HERO LAYOUT
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 90px;
  z-index: 10;
}

.hero-container {
  width: 100%;
  max-width: 1680px;
  margin: auto;
  padding: 40px 60px;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 1.15fr;
  width: 100%;
  align-items: center;
  gap: 60px;
}

.hero-center-spacer {
  height: 100%;
  min-height: 350px;
  pointer-events: none;
}

/* ==========================================
   HERO LEFT COLUMN
   ========================================== */
.hero-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f5f5f7;
  padding: 6px 12px;
  border-radius: 30px;
  margin-bottom: 32px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.badge-tag {
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
}

.hero-title {
  font-family: var(--font-main);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 480px;
}

.hero-cta-wrapper {
  margin-bottom: 56px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background-color: var(--text-primary);
  color: var(--bg-color);
  padding: 14px 18px 14px 28px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover .arrow-wrapper {
  transform: rotate(-45deg);
  background-color: var(--accent-hover);
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-color);
  margin-left: -8px;
  object-fit: cover;
}

.avatar-img:first-child {
  margin-left: 0;
}

.rating-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--accent);
}

.rating-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 6px;
}

.rating-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================
   HERO RIGHT COLUMN (CARDS)
   ========================================== */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Align all items to the right */
  width: 100%; /* Stretch to fill grid column */
  gap: 32px;
  z-index: 10;
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.08);
}

/* Capability Explorer Card */
.capability-card {
  padding: 24px;
  max-width: 420px;
  align-self: flex-end;
  width: 100%;
}

.card-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 12px;
}

.header-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  background-color: transparent;
  transition: var(--transition-fast);
}

.item-selector {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background-color: transparent;
  transition: var(--transition-fast);
}

.item-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.capability-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.capability-item.active {
  background-color: rgba(0, 0, 0, 0.03);
}

.capability-item.active .item-selector {
  border-color: var(--accent);
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.capability-item.active .item-text {
  color: var(--text-primary);
}

/* Terminal Log */
.terminal-log {
  background-color: var(--terminal-bg);
  border-radius: 12px;
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.log-title {
  color: var(--terminal-accent);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.log-output {
  color: var(--terminal-text);
  font-size: 0.78rem;
  line-height: 1.5;
  min-height: 36px;
  word-break: break-all;
}

/* Stats Card */
.stats-card {
  padding: 20px 24px;
  max-width: 320px;
  width: 100%;
}

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

.stats-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stats-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stats-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--success-light);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.trend-icon {
  font-size: 0.65rem;
}

/* Right Side Heading */
.subheading-right {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  text-align: right;
  max-width: 300px;
  align-self: flex-end;
  margin-top: 10px;
}

/* ==========================================
   BOTTOM LOGO MARQUEE
   ========================================== */
.marquee-section {
  width: 100%;
  padding: 40px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 10;
}

.marquee-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.marquee-container {
  width: 100%;
  max-width: 1680px;
  padding: 0 60px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* Mask gradients to fade out left and right edges */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

/* Pause scroll on hover for interactivity */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

.marquee-logo:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.logo-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-50% - 30px), 0, 0);
  }
}

/* ==========================================
   LANDING PAGE SECTIONS (COMMON)
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: 120px 0;
  width: 100%;
  position: relative;
  background-color: var(--bg-color);
  z-index: 10;
}

.section-container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================
   SOLUTIONS/SERVICES SECTION
   ========================================== */
.solutions-section {
  background-color: #fafafa;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  position: relative;
  background-color: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: var(--card-shadow);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Service Card Cursor Glow */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 79, 18, 0.06), transparent 50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* Glassmorphic Shine Overlay */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.6) 0%, transparent 50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
  transition: opacity 0.5s ease, transform 0.1s ease-out;
}

.service-card:hover {
  /* Use immediate tracking transition during active hover */
  transition: transform 0.08s linear, border-color 0.4s ease, box-shadow 0.4s ease;
  border-color: rgba(255, 79, 18, 0.2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.1);
}

.service-icon,
.service-card-title,
.service-card-desc,
.card-action {
  position: relative;
  z-index: 3;
}

.card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  transform: translateY(4px);
  transition: var(--transition-smooth);
}

.service-card:hover .card-action {
  opacity: 1;
  transform: translateY(0);
}

.card-action-arrow {
  transition: transform 0.3s ease;
}

.service-card:hover .card-action-arrow {
  transform: translateX(4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.05);
  background-color: var(--accent);
  color: #ffffff;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.service-card-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.features-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.features-left-panel {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
}

.features-left-panel .section-title {
  text-align: left;
}

/* Features Visual Container */
.features-visual-container {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-visual {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.feature-visual.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Visual 1: Memory Loops Terminal & Chart */
.visual-terminal {
  background-color: #111115;
  border-radius: 12px;
  padding: 16px;
  height: 100%;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
}
.term-dot:nth-child(2) { background-color: #eab308; }
.term-dot:nth-child(3) { background-color: #22c55e; }

.terminal-body {
  flex-grow: 1;
}

.visual-line {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #a9b2c3;
  margin-bottom: 4px;
}

.c-green { color: #10b981; }
.c-dim { color: #64748b; }
.c-orange { color: var(--accent); }
.c-bold { font-weight: 700; }

.terminal-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 80px;
  margin-top: 10px;
  padding: 8px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 16%;
}

.chart-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px 3px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#memory-success-bar {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.chart-label {
  font-size: 0.58rem;
  font-family: monospace;
  color: #64748b;
}

/* Visual 2: SOC2 Security */
.visual-vault {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.vault-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--success), transparent);
  box-shadow: 0 0 10px var(--success);
  z-index: 5;
  pointer-events: none;
  animation: scan-vertical 4s infinite ease-in-out;
}

@keyframes scan-vertical {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(230px); }
}

.vault-shield {
  color: var(--success);
  width: 50px;
  height: 50px;
  z-index: 2;
  animation: pulse 2s infinite ease-in-out;
}

.vault-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
}

.vault-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.vault-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.vault-logs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
  z-index: 2;
  text-align: left;
  width: 80%;
  padding-left: 20px;
}

.v-log {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Visual 3: Integrations Hub */
.visual-hub {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hub-connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hub-center-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.hub-center {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 2.5s infinite ease-in-out;
}

.hub-center svg {
  width: 18px;
  height: 18px;
}

.hub-center-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.hub-node-item {
  position: absolute;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: var(--transition-fast);
  animation: float 4s infinite ease-in-out;
}

.hub-node-item:hover, .hub-node-item.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 15px var(--accent-light);
  transform: translateY(-2px);
}

.node-slack { top: 25px; left: 10px; }
.node-jira { bottom: 25px; left: 10px; animation-delay: 1s; }
.node-stripe { top: 25px; right: 10px; animation-delay: 2s; }
.node-notion { bottom: 25px; right: 10px; animation-delay: 3s; }


/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 79, 18, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 79, 18, 0.3); }
}

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

.features-right-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-block {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.feature-block:hover {
  background-color: rgba(0, 0, 0, 0.015);
}

.feature-block.active {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--card-shadow);
}

.feature-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-block-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: var(--transition-smooth);
}

.feature-block:not(.active) .feature-block-dot {
  background-color: var(--text-muted);
  box-shadow: none;
}

.feature-block-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-block-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 20px;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
  background-color: #fafafa;
}

.testimonials-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: grab;
}

.testimonials-carousel-track:active {
  cursor: grabbing;
}

.testimonial-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 10px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.carousel-btn {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background-color: var(--accent);
  width: 22px;
  border-radius: 4px;
}

.testimonial-card {
  background-color: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 50px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 36px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 0px solid transparent;
  padding-left: 0;
  transition: border-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s ease;
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item.active {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  background-color: rgba(255, 79, 18, 0.015);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-main);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-icon {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25), color 0.3s ease;
  transform-origin: center;
}

.faq-question:hover .faq-icon {
  color: var(--accent);
}

.faq-item.active .faq-icon {
  transform: rotate(135deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.faq-answer p {
  padding-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================
   CALL TO ACTION SECTION
   ========================================== */
.cta-section {
  background-color: var(--bg-color);
  padding: 100px 0;
}

.cta-banner {
  background: radial-gradient(circle at 10% 20%, rgba(255, 79, 18, 0.12), transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.08), transparent 45%),
              linear-gradient(135deg, #17171e 0%, #060608 100%);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: mesh-glow 16s infinite alternate ease-in-out;
}

@keyframes mesh-glow {
  0% {
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 79, 18, 0.12), transparent 45%),
                      radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.08), transparent 45%),
                      linear-gradient(135deg, #17171e 0%, #060608 100%);
  }
  50% {
    background-image: radial-gradient(circle at 80% 30%, rgba(255, 79, 18, 0.08), transparent 45%),
                      radial-gradient(circle at 20% 70%, rgba(56, 189, 248, 0.12), transparent 45%),
                      linear-gradient(135deg, #1a1a24 0%, #08080a 100%);
  }
  100% {
    background-image: radial-gradient(circle at 30% 90%, rgba(255, 79, 18, 0.14), transparent 45%),
                      radial-gradient(circle at 70% 10%, rgba(56, 189, 248, 0.06), transparent 45%),
                      linear-gradient(135deg, #15151b 0%, #050507 100%);
  }
}

/* CTA Workflow Compiler Styles */
.cta-builder-wrapper {
  margin-top: 50px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  position: relative;
  z-index: 5;
}

.builder-teaser-title {
  font-family: var(--font-logo);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-align: center;
}

.cta-builder-container {
  display: flex;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px 8px 8px 18px;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.cta-builder-container:focus-within {
  border-color: rgba(255, 79, 18, 0.4);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(255, 79, 18, 0.1);
}

#cta-builder-input {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: var(--font-main);
}

#cta-builder-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

#cta-builder-btn {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

#cta-builder-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.builder-output {
  background-color: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 18px;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  min-height: 120px;
}

.builder-output-header {
  font-size: 0.65rem;
  color: #4b5563;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.builder-code {
  font-size: 0.76rem;
  line-height: 1.6;
  color: #a7f3d0;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

.cta-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-primary-cta {
  text-decoration: none;
  background-color: var(--accent);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-primary-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary-cta {
  text-decoration: none;
  background-color: transparent;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.btn-secondary-cta:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
  background-color: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 100px 0 40px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.footer-container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.brand-tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h5 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.footer-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 14px;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
  padding-left: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.legal-link {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.legal-link:hover {
  color: var(--text-primary);
}

/* ==========================================
   RESPONSIVE LAYOUTS
   ========================================== */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .hero-center-spacer {
    display: none;
  }
  
  .video-bg-wrapper {
    max-width: 700px;
    height: 400px;
    opacity: 0.85;
  }
  
  .hero-left, .hero-right {
    width: 100%;
  }
  
  .capability-card, .stats-card {
    align-self: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .features-left-panel {
    position: static;
  }
  
  .grid-testimonials {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }
  
  .nav-links {
    display: none; /* Hide nav links on mobile, show mobile trigger instead */
  }
  
  .hero-container {
    padding: 40px 20px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .video-bg-wrapper {
    top: 35%;
    max-width: 90%;
    height: 300px;
  }
  
  .hero-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .subheading-right {
    font-size: 2.2rem;
    align-self: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .grid-services {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .cta-banner {
    padding: 60px 20px;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--accent), #ff8f00);
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* ==========================================
   FLOATING AGENT SANDBOX WIDGET
   ========================================== */
.neura-sandbox-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: var(--font-main);
}

.sandbox-trigger {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--text-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.sandbox-trigger:hover {
  transform: scale(1.05);
  background-color: var(--accent);
}

.sandbox-icon {
  width: 24px;
  height: 24px;
  transition: var(--transition-smooth);
}

.sandbox-trigger:hover .sandbox-icon {
  transform: rotate(15deg);
}

/* Pulsing ring animation around the trigger */
.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse-ring-glow 3s infinite ease-out;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes pulse-ring-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.trigger-tooltip {
  position: absolute;
  right: 76px;
  background-color: var(--text-primary);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.sandbox-trigger:hover .trigger-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Sandbox Window Panel */
.sandbox-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateY(20px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.sandbox-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.sandbox-header {
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sandbox-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sandbox-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  display: inline-block;
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.sandbox-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sandbox-header p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sandbox-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.sandbox-close:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.sandbox-chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg.system {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.sandbox-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-sandbox-opt {
  text-align: left;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sandbox-opt:hover {
  background-color: rgba(255, 79, 18, 0.05);
  border-color: rgba(255, 79, 18, 0.15);
  color: var(--accent);
  padding-left: 18px;
}

.btn-sandbox-opt.active {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff;
}

/* Terminal Log inside widget */
.sandbox-terminal {
  background-color: #0b0b0d;
  border-radius: 12px;
  padding: 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sandbox-terminal-header {
  font-family: monospace;
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.sandbox-terminal-output {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #38bdf8;
  min-height: 80px;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

