/* ==========================================================================
   Wander - Premium CSS Design System
   Visual Identity: Premium Technology Startup (Linear, Vercel, Stripe, Raycast)
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* Color & Token Definitions */
:root {
  --bg-dark: #030303;
  --bg-card: #09090b;
  --bg-panel: #111115;
  --bg-input: #121216;
  
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-active: rgba(255, 255, 255, 0.12);
  --border-glow-cyan: rgba(6, 182, 212, 0.2);
  --border-glow-blue: rgba(59, 130, 246, 0.2);
  --border-glow-red: rgba(239, 68, 68, 0.15);
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --accent-cyan-glow: rgba(6, 182, 212, 0.15);
  --accent-blue-glow: rgba(59, 130, 246, 0.15);
  --accent-red-glow: rgba(239, 68, 68, 0.08);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

/* Base resets & global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  background-color: var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #18181b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #27272a;
}

/* Base Typo */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
}

/* Background Glowing Blurs (Linear aesthetic) */
/* Background Grid & Ambient Glows (Premium Vercel/Linear style) */
@keyframes slow-glow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.12;
  }
  33% {
    transform: translate(30px, -40px) scale(1.05);
    opacity: 0.16;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
    opacity: 0.14;
  }
}

.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  mix-blend-mode: screen;
}

.glow-cyan {
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: -10%;
  left: 20%;
  animation: slow-glow 20s infinite ease-in-out alternate;
}

.glow-blue {
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  top: 35%;
  right: 5%;
  animation: slow-glow 25s infinite ease-in-out alternate-reverse;
}

.glow-purple {
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: 10%;
  left: 10%;
  animation: slow-glow 22s infinite ease-in-out alternate;
}

/* Premium Moving Background Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  mask-image: radial-gradient(circle 800px at 50% 200px, black, transparent);
  -webkit-mask-image: radial-gradient(circle 800px at 50% 200px, black, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Classes */
.glass {
  background: rgba(9, 9, 12, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}

.glass-nav {
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
}

.header-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 3, 3, 0.85);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: transparent;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 24px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid var(--border-glow-cyan);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Mini Trust Signals */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Dashboard Mockup Visual */
.hero-visual {
  position: relative;
}

.dashboard-panel {
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--border-subtle);
  font-family: var(--font-mono);
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.panel-dots {
  display: flex;
  gap: 6px;
}

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

.panel-title {
  font-size: 12px;
  color: var(--text-secondary);
}

.panel-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.system-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
}

.status-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.status-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-glow 2s infinite;
}

.status-activity {
  flex-grow: 1;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
}

.log-line {
  display: flex;
  gap: 10px;
  color: var(--text-secondary);
}

.log-time {
  color: var(--text-muted);
  flex-shrink: 0;
}

.log-success { color: var(--accent-cyan); }
.log-event { color: var(--text-primary); }

/* Custom Animations */
@keyframes pulse-glow {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   Solutions Section
   -------------------------------------------------------------------------- */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

/* Linear Card Design with Hover Glow */
/* Linear Card Design with Hover Glow */
@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.solution-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.solution-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.solution-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.12);
}

.solution-card:hover::after {
  transform: scaleX(1);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(6, 182, 212, 0.12), transparent 50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.solution-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  z-index: 2;
  transition: var(--transition-smooth);
}

.solution-icon-wrap svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
}

.solution-card:hover .solution-icon-wrap {
  background: var(--accent-cyan-glow);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.solution-card:hover .solution-icon-wrap svg {
  animation: icon-pulse 1.2s infinite ease-in-out;
  color: #fff;
}

.solution-card-title {
  font-size: 18px;
  font-weight: 600;
  z-index: 2;
  transition: color 0.3s ease;
}

.solution-card:hover .solution-card-title {
  color: #ffffff;
}

.solution-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  z-index: 2;
  flex-grow: 1;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Interactive Demos Section
   -------------------------------------------------------------------------- */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.demo-tabs {
  display: flex;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}

.demo-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.demo-tab-btn.active {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.02);
}

.demo-panel-container {
  min-height: 480px;
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Problems We Solve Section
   -------------------------------------------------------------------------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.problem-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.problem-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.problem-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow-red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(239, 68, 68, 0.1);
}

.problem-card:hover::after {
  transform: scaleX(1);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(239, 68, 68, 0.1), transparent 50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.problem-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  z-index: 2;
  transition: var(--transition-smooth);
}

.problem-icon-wrap svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
}

.problem-card:hover .problem-icon-wrap {
  background: var(--accent-red-glow);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.problem-card:hover .problem-icon-wrap svg {
  animation: icon-pulse 1.2s infinite ease-in-out;
  color: #fff;
}

.problem-card-title {
  font-size: 18px;
  font-weight: 600;
  z-index: 2;
  transition: color 0.3s ease;
}

.problem-card:hover .problem-card-title {
  color: #ffffff;
}

.problem-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  z-index: 2;
  flex-grow: 1;
  line-height: 1.5;
}

/* Widescreen Operations Console Styling */
.ops-console {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--border-subtle);
}

.console-logs-panel {
  background: #060609;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px;
  font-family: var(--font-mono);
  overflow: hidden;
}

.console-chat-panel {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.console-logs-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-logs-title {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-logs-area {
  flex-grow: 1;
  font-size: 11px;
  color: var(--text-secondary);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-dark);
}

.chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-card);
}

.chat-info {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-size: 13px;
  font-weight: 600;
}

.chat-tagline {
  font-size: 10px;
  color: var(--text-muted);
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  animation: message-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.msg-incoming {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.msg-outgoing {
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg-dark);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
  align-items: center;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-inputs {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.1);
}

.suggestion-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.suggestion-pill {
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.suggestion-pill:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.chat-form {
  display: flex;
  gap: 10px;
}

.chat-text-input {
  flex-grow: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.chat-text-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6,182,212,0.1);
}

.chat-send-btn {
  background: var(--text-primary);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  background: #ffffff;
}

/* Automation Flow Simulator Styling */
.flow-simulator {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  height: 460px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

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

.sim-headline {
  font-size: 14px;
  font-weight: 600;
}

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
}

.sim-canvas {
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
}

/* Connective lines for flows */
.flow-line-vertical {
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: rgba(255,255,255,0.03);
  z-index: 1;
}

.flow-pulse-line {
  position: absolute;
  left: 24px;
  top: 48px;
  width: 2px;
  height: 0%;
  background: var(--accent-gradient);
  z-index: 2;
  transition: height 3s linear;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 3;
  opacity: 0.6;
  transform: translateX(-4px);
  transition: all 0.4s ease;
}

.flow-node.active {
  opacity: 1;
  transform: translateX(0);
}

.flow-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #111116;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.flow-node.active .flow-node-icon {
  background: rgba(6,182,212,0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6,182,212,0.2);
}

.flow-node-content {
  flex-grow: 1;
}

.flow-node-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.flow-node-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.flow-node-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  transition: var(--transition-fast);
}

.flow-node.active .flow-node-meta {
  color: var(--accent-cyan);
}

.sim-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Workflow Section
   -------------------------------------------------------------------------- */
.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.workflow-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.workflow-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.workflow-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-secondary);
  margin: 0 auto 20px;
  transition: var(--transition-smooth);
}

.workflow-step:hover .workflow-num {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6,182,212,0.15);
  transform: translateY(-2px);
}

.workflow-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.workflow-desc {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 8px;
}

/* --------------------------------------------------------------------------
   Portfolio / Showcase Section
   -------------------------------------------------------------------------- */
.showcase-display {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.showcase-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.showcase-tabs {
  display: flex;
  gap: 12px;
}

.showcase-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.showcase-tab.active {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.showcase-body {
  padding: 40px;
  display: none;
  min-height: 420px;
}

.showcase-body.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.showcase-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-tag {
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.showcase-name {
  font-size: 32px;
  line-height: 1.2;
}

.showcase-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

.showcase-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.showcase-stat {
  border-left: 2px solid var(--accent-cyan);
  padding-left: 16px;
}

.showcase-stat-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

.showcase-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* UI Preview Mockups inside Showcase */
.showcase-preview {
  position: relative;
}

.mockup-ui {
  background: #111116;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  overflow: hidden;
  padding: 20px;
}

.ui-flex-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.ui-title {
  font-family: var(--font-mono);
  font-size: 12px;
}

.ui-status {
  font-size: 10px;
  color: #10b981;
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.1);
  padding: 2px 6px;
  border-radius: 99px;
}

.ui-chart-bar {
  height: 8px;
  background: var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.ui-chart-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
}

.ui-table {
  font-family: var(--font-mono);
  font-size: 11px;
  width: 100%;
}

.ui-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 8px;
}

.ui-table td {
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-avatar-container {
  position: relative;
  width: 360px;
  height: 460px;
  margin: 0 auto;
}

.about-avatar-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 390px;
  height: 490px;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.15), transparent 70%);
  opacity: 0.25;
  filter: blur(28px);
  z-index: 1;
}

.about-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid var(--border-active);
  background: var(--bg-card);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.about-avatar:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--accent-cyan);
}

/* Modern Portrait Wrapper */
.avatar-graphic {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-title {
  font-size: 36px;
  line-height: 1.2;
}

.about-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pillar-check {
  color: var(--accent-cyan);
  margin-top: 4px;
}

.pillar-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-box {
  background: radial-gradient(circle at top right, rgba(6,182,212,0.06), transparent 50%), var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.cta-title {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6,182,212,0.1);
}

/* Dynamic simulation on submission */
.simulating-portal {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-direction: column;
  gap: 12px;
  background: #06060a;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  min-height: 280px;
}

.portal-title {
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.portal-logs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.portal-success {
  text-align: center;
  padding: 24px 0;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,0.08);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(16,185,129,0.2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 280px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-socials a {
  color: var(--text-muted);
}

.footer-socials a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .workflow-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .workflow-timeline::before {
    display: none;
  }
  
  .showcase-body.active {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(3, 3, 3, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 32px 32px;
    gap: 20px;
    z-index: 99;
    box-sizing: border-box;
  }
  .nav-links.active {
    display: flex !important;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    width: 100%;
    display: block;
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text-primary);
  }
  
  .nav-actions .btn {
    display: none !important; /* Force hide all buttons on mobile to avoid header squeezing */
  }
  .menu-toggle {
    display: block;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .workflow-timeline {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 320px;
    margin: 40px auto 0;
  }
  
  .workflow-step {
    display: flex;
    text-align: left;
    gap: 16px;
    align-items: flex-start;
  }
  
  .workflow-num {
    margin: 0;
    flex-shrink: 0;
  }
  
  .workflow-desc {
    padding: 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Mobile Overflow & Alignment Fixes */
  .ambient-glow {
    width: 280px !important;
    height: 280px !important;
    filter: blur(80px) !important;
  }
  
  .cta-box {
    padding: 32px 20px !important;
    border-radius: 12px !important;
  }
  
  .about-avatar-container {
    width: 260px !important;
    height: 260px !important;
  }
  
  .about-avatar-glow {
    width: 280px !important;
    height: 280px !important;
  }
  
  .showcase-body {
    padding: 24px 16px !important;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Widescreen Console Mobile Overrides */
  .ops-console {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  .console-logs-panel {
    display: none !important;
  }
  .problems-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --------------------------------------------------------------------------
   n8n Chat Integration Container
   -------------------------------------------------------------------------- */
.n8n-chat-wrapper {
  width: 100%;
  max-width: 800px;
  height: 520px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-active);
  background: #06060a;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(6,182,212,0.06);
  position: relative;
  z-index: 2;
}

/* n8n widget color overrides to match Wander dark aesthetic */
.n8n-chat-wrapper div[class*="chat-layout"] {
  background-color: #06060a !important;
  color: var(--text-primary) !important;
}

/* --------------------------------------------------------------------------
   Timeline Dynamic Scroll Animation Classes
   -------------------------------------------------------------------------- */
.timeline-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-dot.active {
  background: var(--accent-cyan);
  border-color: #fff;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Multi-step Diagnostic Form CSS
   -------------------------------------------------------------------------- */
.form-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: form-step-fade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  display: flex;
}

@keyframes form-step-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-progress-container {
  margin-bottom: 24px;
}

.form-progress-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.form-progress-bar-fill {
  width: 33.3%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-steps-indicators {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-indicator-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.step-indicator-label.active {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Selection Pills */
.form-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.form-pill-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 13px;
  user-select: none;
}

.form-pill-option input[type="radio"] {
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.form-pill-option:hover {
  border-color: var(--border-active);
  background: rgba(255,255,255,0.02);
}

.form-pill-option.selected {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.04);
}

/* Badges styling */
.form-badge-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.form-badge {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.form-navigation .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Timeline dynamic timeline styling updates
   -------------------------------------------------------------------------- */
.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  position: relative;
  margin-top: 60px;
}

.workflow-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.workflow-step:hover {
  transform: translateY(-4px);
}

.workflow-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.workflow-step:hover .workflow-step-icon {
  border-color: var(--accent-cyan);
  color: #fff;
  background: var(--accent-cyan-glow);
  box-shadow: 0 0 20px rgba(6,182,212,0.3);
}

/* Prova Social Hero Block */
.hero-social-proof {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-social-proof span {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

