/* ==========================================================================
   STARTECK 2.0 — DESIGN SYSTEM STYLESHEET
   Architectural Direction: Technical Precision + Editorial Restraint
   Tokens, Layout, Components, Animations & Responsive Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- 1. DESIGN TOKENS --- */
:root {
  /* Canvas & Surface Colors */
  --canvas-bg: #07090e;
  --surface-base: #0c111d;
  --surface-elevated: #131b2e;
  --surface-hover: #1a243c;
  --surface-overlay: rgba(7, 9, 14, 0.85);
  --surface-card: rgba(19, 27, 46, 0.7);

  /* Brand Primary */
  --brand-primary: #0b3f8a;
  --brand-light: #1e5bb8;
  --brand-vibrant: #2563eb;
  --brand-gradient: linear-gradient(135deg, #0b3f8a 0%, #1e5bb8 50%, #2563eb 100%);
  --accent-glow: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 70%);

  /* Technical Accents */
  --accent-cyan: #38bdf8;
  --accent-teal: #14b8a6;
  --accent-violet: #818cf8;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Typography / Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-tertiary: #64748b;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(56, 189, 248, 0.6);
  --border-brand: rgba(37, 99, 235, 0.3);

  /* Font Families */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1.0rem;
  --space-6: 1.5rem;
  --space-8: 2.0rem;
  --space-12: 3.0rem;
  --space-16: 4.0rem;
  --space-20: 5.0rem;
  --space-24: 6.0rem;
  --space-32: 8.0rem;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-elevated: 0 20px 45px -15px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(56, 189, 248, 0.15);
  --shadow-glow: 0 0 35px -5px rgba(37, 99, 235, 0.3);

  /* Transitions */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms var(--ease-standard);
  --transition-normal: 280ms var(--ease-standard);
  --transition-slow: 450ms var(--ease-standard);

  /* Container */
  --container-max: 1320px;
  --container-narrow: 980px;
  --container-reading: 780px;
}

/* --- 2. BASE RESETS & GLOBAL SETUP --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  background-color: var(--canvas-bg);
  color: var(--text-secondary);
  line-height: 1.6;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0d1629 0%, var(--canvas-bg) 60%);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--accent-cyan) !important;
  outline-offset: 3px !important;
}

/* Selection */
::selection {
  background: rgba(37, 99, 235, 0.4);
  color: #fff;
}

/* --- 3. TYPOGRAPHY SYSTEM --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.0rem, 3.5vw + 0.5rem, 3.25rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.2rem, 1.85rem);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-brand-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

/* --- 4. PREVIEW STATUS BAR --- */
.preview-status-bar {
  background: #0f172a;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.preview-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #38bdf8;
  font-weight: 600;
}

.preview-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.preview-nav-links {
  display: flex;
  gap: 1.25rem;
}

.preview-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.preview-nav-links a:hover,
.preview-nav-links a.active {
  color: #38bdf8;
}

/* --- 5. GLOBAL NAVIGATION --- */
.global-header {
  position: sticky;
  top: 36px;
  z-index: 900;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cmd-k-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-k-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.cmd-k-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

/* --- 6. BUTTON SYSTEM --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-vibrant);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--brand-light);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-whatsapp {
  background: #128c7e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp:hover {
  background: #075e54;
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.4);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.0rem 2.0rem;
  font-size: 1.1rem;
}

/* --- 7. SECTION LAYOUT SYSTEM --- */
.section {
  padding: var(--space-20) 1.5rem;
  position: relative;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- 8. CARD SYSTEM --- */
.starteck-card {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.starteck-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.starteck-card.featured {
  border-color: var(--border-brand);
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.9) 0%, rgba(11, 63, 138, 0.15) 100%);
}

/* Monospace Pill */
.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* --- 9. HERO SECTION (BUILD. AUTOMATE. GROW.) --- */
.hero-section {
  padding: var(--space-20) 1.5rem var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero-glow-backdrop {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(56, 189, 248, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw + 1rem, 5.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.35rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Hero Verification Bar */
.hero-verification-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 2rem;
  background: rgba(12, 17, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-width: 860px;
  margin: 0 auto;
}

.verify-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.verify-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
}

/* --- 10. INTERACTIVE "WHAT DO YOU NEED?" SELECTOR --- */
.intent-selector-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.intent-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.intent-btn {
  text-align: left;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intent-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.intent-btn.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--brand-vibrant);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.intent-arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-fast);
}

.intent-btn.active .intent-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-cyan);
}

.intent-display-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- 11. VIEWPORT SIMULATOR FRAME --- */
.viewport-simulator-frame {
  background: #0b0f19;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  transition: max-width var(--transition-slow);
  margin: 0 auto;
}

.viewport-browser-bar {
  background: #111726;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.browser-url-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.device-switcher-controls {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.device-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-radius: 4px;
}

.device-btn.active {
  background: var(--brand-vibrant);
  color: #ffffff;
}

.viewport-content-area {
  min-height: 520px;
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewport-iframe {
  width: 100%;
  height: 560px;
  border: none;
  background: #ffffff;
}

/* --- 12. INTERACTIVE CALCULATOR ENGINE --- */
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.calc-control-group {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-label-title {
  font-weight: 600;
  color: var(--text-primary);
}

.calc-label-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Range Input Styling */
.starteck-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.starteck-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  border: 2px solid #ffffff;
  transition: transform var(--transition-fast);
}

.starteck-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-output-card {
  background: linear-gradient(180deg, #131b2e 0%, #0d1424 100%);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.calc-result-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
}

.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* --- 13. COMMAND PALETTE MODAL (CMD+K) --- */
.command-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.command-palette-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.command-palette-dialog {
  background: #0f1626;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(56, 189, 248, 0.3);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform var(--transition-normal);
}

.command-palette-backdrop.open .command-palette-dialog {
  transform: translateY(0);
}

.cmd-search-input-box {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}

.cmd-search-input {
  width: 100%;
  font-size: 1.15rem;
  color: #ffffff;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
  list-style: none;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-item:hover,
.cmd-item.selected {
  background: rgba(37, 99, 235, 0.2);
  color: #ffffff;
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* --- 14. CONVERSATIONAL AI CONSULTANT WIDGET --- */
.ai-consultant-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
}

.ai-consultant-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.35rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-consultant-trigger:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.ai-chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  height: 520px;
  background: #0d1322;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.98);
  transition: all var(--transition-normal);
}

.ai-chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  padding: 1rem 1.25rem;
  background: #111a2f;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-messages-area {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ai-msg {
  max-width: 85%;
  padding: 0.75rem 1.0rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-msg.bot {
  background: #162035;
  color: var(--text-primary);
  align-self: flex-start;
  border: 1px solid var(--border-subtle);
}

.ai-msg.user {
  background: var(--brand-vibrant);
  color: #ffffff;
  align-self: flex-end;
}

.ai-chat-input-row {
  padding: 0.85rem;
  background: #10182b;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

.ai-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  color: #fff;
}

/* --- 15. GLOBAL FOOTER --- */
.global-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-20) 1.5rem var(--space-8);
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: var(--space-16);
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- 16. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .intent-selector-container { grid-template-columns: 1fr; }
  .calculator-container { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .cmd-k-trigger { display: none; }
  .mobile-nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-verification-bar { flex-direction: column; gap: 1rem; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ai-chat-window { width: calc(100vw - 32px); right: -8px; }
}
