/* ==========================================================================
   nixyGT - Futuristic Dark Mode & Glassmorphic Stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #000000;
  --bg-surface: #070709;
  --bg-surface-elevated: #0f0f12;
  --bg-card: rgba(14, 14, 18, 0.65);
  --bg-card-hover: rgba(22, 22, 28, 0.85);
  
  /* Borders & Glass */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(255, 255, 255, 0.45);
  --glass-blur: blur(20px);
  
  /* Text */
  --text-white: #ffffff;
  --text-primary: #f4f4f6;
  --text-secondary: #9494a0;
  --text-muted: #5e5e6b;
  --text-accent: #ffffff;
  
  /* Glow & Accents */
  --glow-white: 0 0 35px rgba(255, 255, 255, 0.15);
  --glow-strong: 0 0 50px rgba(255, 255, 255, 0.28);
  --glow-spotlight: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.08), transparent 40%);
  
  /* Gradients */
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #d4d4d8 50%, #71717a 100%);
  --grad-border: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03));
  --grad-btn: #ffffff;
  --grad-btn-hover: #e4e4e7;
  
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Layout */
  --max-width: 1340px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  overflow-x: hidden;
}

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

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* ==========================================================================
   Canvas & Background Lighting
   ========================================================================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-lighting {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  transition: transform 1.5s ease-out;
}

.ambient-orb-1 {
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 45vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(120, 120, 140, 0.1) 60%, transparent 80%);
}

.ambient-orb-2 {
  bottom: 5%;
  left: 10%;
  width: 40vw;
  height: 35vh;
  background: radial-gradient(circle, rgba(200, 200, 220, 0.15) 0%, transparent 70%);
}

.ambient-orb-3 {
  top: 40%;
  right: 5%;
  width: 45vw;
  height: 40vh;
  background: radial-gradient(circle, rgba(160, 160, 180, 0.12) 0%, transparent 70%);
}

/* Grid Overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
  pointer-events: none;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.app-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Floating Navigation
   ========================================================================== */
.main-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-pill-wrapper {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: calc(100% - 48px);
  max-width: var(--max-width);
  padding: 10px 20px;
  background: rgba(10, 10, 14, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8),
              0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav-pill-wrapper:hover {
  border-color: var(--border-active);
  box-shadow: 0 12px 50px -10px rgba(0, 0, 0, 0.9),
              0 0 20px rgba(255, 255, 255, 0.05);
}

/* Brand Logo */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  cursor: pointer;
}

.logo-badge {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.brand-logo-link:hover .logo-badge {
  transform: scale(1.06) rotate(6deg);
  border-color: #ffffff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.3);
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  align-items: baseline;
}

.brand-name .gt-badge {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 1px 6px;
  margin-left: 4px;
  background: #ffffff;
  color: #000000;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}

.nav-item-link:hover,
.nav-item-link.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-item-link.highlight-pricing-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.nav-item-link.highlight-pricing-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.12);
}

.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 8px #ffffff;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-toggle-btn:hover {
  color: var(--text-white);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.1);
}

.audio-toggle-btn.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #000000;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-contact:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section View
   ========================================================================== */
.hero-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 60px;
  background: #0a0a0a;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Peripheral floating glass cards */
.hero-peripheral-card {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero-peripheral-card.card-ai   { top: 18%;  left: 6%;  animation: float 6s ease-in-out infinite; }
.hero-peripheral-card.card-code { top: 22%;  right: 7%; animation: float 7s ease-in-out infinite 1s; }
.hero-peripheral-card.card-nfc  { bottom: 22%; left: 8%; animation: float 5.5s ease-in-out infinite 0.5s; }
.hero-peripheral-card.card-web  { bottom: 18%; right: 6%; animation: float 6.5s ease-in-out infinite 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

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

/* Micro Badge */
.hero-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-smooth);
}

.hero-pill-badge:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

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

/* Limited-Time Offer Badge on Service Cards */
.limited-offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff00cc, #3333ff, #00e5ff);
  background-size: 200% 200%;
  border-radius: 30px;
  animation: badge-gradient 3s ease infinite, badge-glow 2s ease-in-out infinite alternate;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

@keyframes badge-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes badge-glow {
  from { box-shadow: 0 0 6px rgba(255, 0, 204, 0.6), 0 0 12px rgba(0, 229, 255, 0.3); }
  to   { box-shadow: 0 0 14px rgba(0, 229, 255, 0.8), 0 0 24px rgba(255, 0, 204, 0.4); }
}

/* Ensure service-card has relative positioning for badge placement */
.service-card {
  position: relative;
}

/* Hero Title */
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 36px;
  text-wrap: balance;
}

.hero-headline .text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #a1a1aa 70%, #52525b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline .highlight-glow {
  position: relative;
  display: inline-block;
}

.hero-headline .highlight-glow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  box-shadow: 0 0 12px #ffffff;
}

/* Hero Subtitle */
.hero-subheadline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  text-wrap: balance;
}

/* ==========================================================================
   Interactive Search & Requirement Selector
   ========================================================================== */
.requirement-selector-container {
  width: 100%;
  max-width: 800px;
  margin: 32px auto 48px;
  position: relative;
  z-index: 100;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  z-index: 110;
}

.search-box-card {
  position: relative;
  background: rgba(14, 14, 18, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7),
              0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s ease;
  z-index: 10;
}

.search-box-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 56px -10px rgba(0, 0, 0, 0.85),
              0 0 25px rgba(255, 255, 255, 0.15),
              0 0 1px 1px rgba(255, 255, 255, 0.08) inset;
}

.search-box-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 24px 56px -10px rgba(0, 0, 0, 0.9),
              0 0 30px rgba(180, 140, 255, 0.25),
              0 0 60px rgba(0, 200, 255, 0.12),
              0 0 1px 1px rgba(255, 255, 255, 0.12) inset;
}

.search-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.search-box-card:focus-within .search-icon-wrapper {
  color: #ffffff;
}

.requirement-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #ffffff;
  padding: 10px 0;
}

.requirement-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  transition: opacity var(--transition-fast);
}

.requirement-input:focus::placeholder {
  opacity: 0.5;
}

.clear-search-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.clear-search-btn.show {
  display: flex;
}

.submit-req-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.submit-req-btn:hover {
  background: #f0f0ff;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.45),
              0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Quick Requirement Prompt Chips */
.quick-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 10;
}

.chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 4px;
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prompt-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* ── Main CTA chip "Consultar mis precios" — premium hover (A+C) ── */
.prompt-chip[data-target-service="pricing"] {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.prompt-chip[data-target-service="pricing"]:hover {
  transform: scale(1.06) translateY(-3px);
  background: linear-gradient(135deg, rgba(120, 80, 255, 0.35), rgba(0, 200, 255, 0.25));
  border-color: rgba(140, 100, 255, 0.7);
  color: #ffffff;
  box-shadow:
    0 0 18px rgba(120, 80, 255, 0.55),
    0 0 40px rgba(0, 200, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.45);
}

.prompt-chip span.chip-icon {
  font-size: 0.9rem;
}

/* Live Search Suggestions Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 14, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.98), 
              0 0 30px rgba(255, 255, 255, 0.08),
              0 0 1px 1px rgba(255, 255, 255, 0.15) inset;
  display: none;
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
}

.search-suggestions-dropdown.open {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.suggestion-item:last-child {
  margin-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
  background: rgba(255, 255, 255, 0.07);
}

.suggestion-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.suggestion-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.suggestion-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.suggestion-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.suggestion-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.suggestion-item:hover .suggestion-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

/* ==========================================================================
   4 Glassmorphic Service Cards Grid
   ========================================================================== */
.services-grid-container {
  width: 100%;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  perspective: 1200px;
}

/* Individual Glass Card */
.service-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--transition-smooth), 
              border-color var(--transition-smooth), 
              box-shadow var(--transition-smooth),
              background var(--transition-smooth);
  will-change: transform;
}

/* Card Spotlight Glow pseudo-element */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* Shimmer Border Glow */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.015);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95),
              0 0 35px rgba(255, 255, 255, 0.09);
}

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

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

/* Card Content Layout */
.card-header-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.service-card:hover .service-tag {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.card-body {
  position: relative;
  z-index: 2;
  flex: 1;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.service-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.card-metrics-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.card-footer-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-action-text {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.service-card:hover .card-action-text {
  gap: 10px;
}

.action-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-smooth);
}

.service-card:hover .action-arrow-circle {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Footer & Micro Details
   ========================================================================== */
.main-footer {
  position: relative;
  z-index: 2;
  padding: 40px 0 30px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--text-secondary);
}

.footer-legal-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  user-select: none;
}

.footer-legal-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #a1a1aa;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
}

.footer-legal-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(139, 92, 246, 0.45);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Contact / Proposal Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: rgba(14, 14, 18, 0.95);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 255, 255, 0.08);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* AI Unavailable Modal (Exact Match with Design Reference) */
.ai-unavailable-card {
  max-width: 440px;
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  text-align: center;
  padding: 44px 32px 34px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.04);
}

.ai-modal-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 22px;
}

.ai-unavailable-card .modal-title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ai-unavailable-card .modal-subtitle {
  font-size: 0.92rem;
  color: #8e8e93;
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.ai-modal-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: pulseDot 2s infinite ease-in-out;
}

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

#btn-understood-ai {
  border-radius: 12px;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ==========================================================================
   Legal Modals (Glassmorphism Pop-ups: Privacy & Terms)
   ========================================================================== */
.legal-modal-overlay {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.82);
}

.legal-modal-card {
  max-width: 680px;
  width: 100%;
  background: rgba(14, 14, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 255, 255, 0.07);
  padding: 36px 32px 30px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.legal-modal-header {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.legal-modal-card .modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.legal-modal-card .modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.custom-legal-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 14px;
  margin: 12px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.03);
}

.custom-legal-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-legal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.custom-legal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.custom-legal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.legal-section {
  margin-bottom: 20px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-section p {
  font-size: 0.87rem;
  line-height: 1.65;
  color: #d4d4d8;
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #d4d4d8;
}

.legal-section li strong {
  color: #ffffff;
}

.legal-modal-footer {
  flex-shrink: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .legal-modal-card {
    padding: 28px 20px 24px;
    max-height: 92vh;
  }
  .legal-modal-card .modal-title {
    font-size: 1.3rem;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.form-select option {
  background: #121214;
  color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.form-submit-btn:hover {
  background: #e4e4e7;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-headline {
    font-size: 2.3rem;
  }
  
  .quick-prompt-chips {
    justify-content: flex-start;
  }
  
  .footer-content-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}