/* ============================================================
   QLEVER.AI — Main Stylesheet
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  --bg: #060608;
  --bg-2: #0c0c10;
  --bg-card: #0f0f14;
  --accent: #00d4ff;
  --accent-2: #6366f1;
  --accent-dim: rgba(0, 212, 255, 0.06);
  --accent-mid: rgba(0, 212, 255, 0.15);
  --accent-glow: rgba(0, 212, 255, 0.28);
  --text: #f0f0f4;
  --text-muted: rgba(240, 240, 244, 0.48);
  --text-faint: rgba(240, 240, 244, 0.22);
  --border: rgba(255, 255, 255, 0.055);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 212, 255, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-accent: 0 0 0 1px var(--border-accent), 0 8px 32px rgba(0, 212, 255, 0.12), 0 0 60px rgba(0, 212, 255, 0.06);
  --font: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-display: 'Syne', 'Inter', system-ui, sans-serif;
  --nav-h: 68px;
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] {
  --bg: #f5f5f8;
  --bg-2: #ebebf0;
  --bg-card: #ffffff;
  --accent: #0099bb;
  --accent-2: #4f52c5;
  --accent-dim: rgba(0, 153, 187, 0.07);
  --accent-mid: rgba(0, 153, 187, 0.16);
  --accent-glow: rgba(0, 153, 187, 0.25);
  --text: #080812;
  --text-muted: rgba(8, 8, 18, 0.52);
  --text-faint: rgba(8, 8, 18, 0.28);
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.13);
  --border-accent: rgba(0, 153, 187, 0.22);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-accent: 0 0 0 1px var(--border-accent), 0 8px 32px rgba(0, 153, 187, 0.1);
}

/* Light mode: hardcoded-color overrides */
html[data-theme="light"] #navbar.scrolled {
  background: rgba(245, 245, 248, 0.9);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.08);
}
html[data-theme="light"] #mobile-nav {
  background: rgba(245, 245, 248, 0.99);
}
html[data-theme="light"] .hero-grid {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}
html[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(0, 153, 187, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 75%, rgba(79, 82, 197, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
html[data-theme="light"] .case-front-logo {
  background: #e8eaf0;
}
html[data-theme="light"] .chatbot-panel {
  background: #f4f6fb;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 153, 204, 0.06);
}
html[data-theme="light"] .chatbot-header {
  background: linear-gradient(135deg, #dde8f0 0%, #e8eef5 100%);
}
html[data-theme="light"] .chatbot-name,
html[data-theme="light"] .chatbot-close { color: var(--text); }
html[data-theme="light"] .chatbot-close { background: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .chatbot-close:hover { background: rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .chatbot-messages {
  background: #eaecf4;
}
html[data-theme="light"] .chatbot-input-area {
  background: #f4f6fb;
  border-top-color: var(--border);
}
html[data-theme="light"] #chatbot-input {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="light"] #chatbot-input::placeholder {
  color: var(--text-muted);
}
html[data-theme="light"] .chat-msg.bot .chat-bubble {
  background: #ffffff;
  color: var(--text);
}
html[data-theme="light"] .lang-dropdown {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, #0077aa 40%, #5855d6 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, textarea { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 100px 0; }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
.section-header h2 { color: var(--text); }
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 16px auto 0;
  line-height: 1.72;
  font-weight: 400;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--t);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  letter-spacing: 0.01em;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 32px var(--accent-glow), 0 0 80px rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}
.btn-outline {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ===== NAV LINK ACTIVE ===== */
.nav-links a.active { color: var(--accent) !important; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
#navbar.scrolled {
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.nav-logo span { color: var(--accent); }
.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--t);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: #fff;
  box-shadow: 0 0 22px var(--accent-glow);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE NAV ===== */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
  display: block;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-cta {
  display: block;
  text-align: center;
  margin-top: 16px;
  border-bottom: none;
  padding: 12px;
}

/* ===== LANG SWITCHER DROPDOWN ===== */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  transition: color var(--t), border-color var(--t), background var(--t);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-trigger svg { width: 14px; height: 14px; flex-shrink: 0; }
.lang-trigger:hover {
  color: var(--text);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}
.lang-chevron { transition: transform 0.2s ease; }
.lang-trigger.open .lang-chevron { transform: rotate(180deg); }

/* Dropdown list */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.lang-dropdown.open { display: flex; }

/* Shared option style (dropdown + mobile) */
.lang-option {
  display: block;
  width: 100%;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color var(--t), background var(--t);
}
.lang-option:hover  { color: var(--text);   background: var(--accent-dim); }
.lang-option.active { color: var(--accent); background: var(--accent-dim); font-weight: 600; }

/* Mobile switcher */
.lang-switcher-mobile {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.lang-switcher-mobile .lang-option {
  flex: 1;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  font-size: 0.9rem;
}
.lang-switcher-mobile .lang-option.active {
  border-color: var(--border-accent);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}
.theme-toggle svg { width: 16px; height: 16px; }

/* Show sun in dark mode, moon in light mode */
html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
html[data-theme="light"]       .theme-toggle .icon-sun  { display: none; }

/* Mobile variant */
.theme-toggle--mobile {
  width: auto;
  gap: 8px;
  padding: 10px 13px;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  justify-content: flex-start;
  font-size: 0.9rem;
}
.theme-toggle--mobile .theme-toggle-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== HERO ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  padding-bottom: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(0, 212, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 75%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 35% 28% at 15% 65%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 20%, transparent 75%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px 7px 10px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2.5s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(0,212,255,0.4);
}
.hero h1 { margin-bottom: 24px; color: var(--text); }
.gradient-text {
  background: linear-gradient(130deg, var(--accent) 0%, #38d9f5 35%, #818cf8 70%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.78;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ===== SERVICES ===== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-mid), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 10% 10%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-5px);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: box-shadow var(--t);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon {
  box-shadow: 0 0 20px var(--accent-glow);
}
.service-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
  z-index: 1;
  font-size: 1rem;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.74;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* ===== WHY ===== */
.why {
  background: var(--bg-2);
  background-image: radial-gradient(ellipse 55% 40% at 85% 50%, rgba(99,102,241,0.05) 0%, transparent 60%);
  border-top: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-item {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.why-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-mid), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.why-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}
.why-item:hover::before { opacity: 1; }
.why-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
  transition: box-shadow var(--t), border-radius var(--t);
}
.why-icon svg { width: 26px; height: 26px; }
.why-item:hover .why-icon {
  box-shadow: 0 0 24px var(--accent-glow);
  border-radius: 50%;
}
.why-item h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.why-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.76;
  font-weight: 400;
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.about-text p:last-of-type { margin-bottom: 0; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.about-tag {
  padding: 5px 13px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.77rem;
  color: var(--accent);
  font-weight: 500;
}
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 0 1px var(--border), 0 0 80px rgba(0, 212, 255, 0.08), var(--shadow-card);
  overflow: hidden;
}
.about-card-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.about-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 2px solid var(--border-accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-card-visual h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.about-card-visual .role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-stat {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
}
.about-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.about-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== CASOS DE ÉXITO — FLIP CARDS ===== */
.cases {
  background: var(--bg-2);
  background-image: radial-gradient(ellipse 50% 50% at 15% 60%, rgba(0,212,255,0.04) 0%, transparent 60%);
  border-top: 1px solid var(--border);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Contenedor con perspectiva */
.case-card {
  height: 390px;
  cursor: pointer;
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

/* Eje de rotación */
.case-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.case-card.flipped .case-card-inner {
  transform: rotateY(180deg);
}

/* Caras compartidas */
.case-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-card);
}
.case-card:hover .case-face {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}
.case-face::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #3b82f6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── CARA FRONTAL ── */
.case-front {
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.case-front-logo {
  width: 160px;
  height: 90px;
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
}
.case-front-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.case-front .case-company {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.case-front .case-tag { margin-bottom: 0; }

/* Icono animado "haz clic" */
.case-flip-hint {
  position: absolute;
  bottom: 14px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  animation: hintPulse 2.5s ease-in-out infinite;
}
.case-flip-hint svg { width: 13px; height: 13px; }
@keyframes hintPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 0.8; transform: translateY(-3px); }
}

/* ── CARA TRASERA ── */
.case-back {
  transform: rotateY(180deg);
  justify-content: space-between;
}
.case-back .case-tag  { margin-bottom: 10px; align-self: flex-start; }
.case-back h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.case-back p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.72;
  flex: 1;
}
.case-metric {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.case-metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.case-metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Shared tag & company */
.case-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}
.case-company {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.case-product {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-2);
  background-image: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,212,255,0.04) 0%, transparent 55%);
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.contact-info-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.contact-info-sub {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  font-size: 0.95rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail-text { font-size: 0.88rem; line-height: 1.4; }
.contact-detail-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.contact-detail-text a:hover { color: var(--accent); transition: color var(--t); }

/* --- Contact Form Card --- */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-mid), transparent);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.form-submit:hover {
  background: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.form-submit svg { width: 17px; height: 17px; }

/* --- Form Success State --- */
.form-success {
  display: none;
  text-align: center;
  padding: 24px 16px;
}
.form-success.visible { display: block; }
.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent);
}
.form-success-icon svg { width: 24px; height: 24px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 320px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-mid), transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}
.footer-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.footer-logo span { color: var(--accent); }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.78;
  max-width: 270px;
  font-weight: 400;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-faint); }
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  transition: color var(--t);
}
.footer-social-link:hover { color: var(--accent); }
.footer-social-link svg { width: 16px; height: 16px; }
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-faint);
  transition: color var(--t);
}
.footer-legal a:hover { color: var(--text-muted); }

/* ===== CHATBOT WIDGET ===== */
.chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chatbot-toggle {
  width: 58px;
  height: 58px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  position: relative;
  flex-shrink: 0;
}
.chatbot-toggle:hover {
  background: #fff;
  transform: scale(1.07);
  box-shadow: 0 6px 36px var(--accent-glow);
}
.chatbot-toggle-icon-open,
.chatbot-toggle-icon-close {
  position: absolute;
  width: 24px; height: 24px;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.chatbot-toggle-icon-open { opacity: 1; transform: scale(1) rotate(0deg); }
.chatbot-toggle-icon-close { opacity: 0; transform: scale(0.6) rotate(-90deg); }
.chatbot-widget.open .chatbot-toggle-icon-open { opacity: 0; transform: scale(0.6) rotate(90deg); }
.chatbot-widget.open .chatbot-toggle-icon-close { opacity: 1; transform: scale(1) rotate(0deg); }

.chatbot-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulseRing 2.8s ease-out infinite;
}
.chatbot-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 19px;
  height: 19px;
  background: #f43f5e;
  border-radius: 50%;
  border: 2px solid var(--bg);
  font-size: 0.62rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Chat Panel --- */
.chatbot-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 375px;
  max-height: 530px;
  background: #111;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 200, 255, 0.08);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
  transform-origin: bottom right;
}
.chatbot-widget.open .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0d1c22 0%, #111 100%);
  border-bottom: 1px solid var(--border-accent);
  flex-shrink: 0;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 11px;
}
.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.chatbot-name {
  font-size: 0.88rem;
  font-weight: 700;
}
.chatbot-status {
  font-size: 0.7rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.chatbot-close {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--t);
}
.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.chatbot-close svg { width: 15px; height: 15px; }

/* --- Messages Area --- */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 3px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: 2px;
}
.chat-msg {
  display: flex;
  gap: 7px;
  max-width: 92%;
}
.chat-msg.user { flex-direction: row-reverse; align-self: flex-end; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 4px;
}
.chat-msg.bot .chat-msg-avatar {
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: #000;
}
.chat-msg.user .chat-msg-avatar {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.chat-bubble {
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.855rem;
  line-height: 1.62;
  word-break: break-word;
}
.chat-msg.bot .chat-bubble {
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid var(--border-accent);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: var(--accent);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* --- Typing Indicator --- */
.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 2px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingDot 1.3s ease-in-out infinite;
  opacity: 0.4;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

/* --- Input Area --- */
.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #111;
  flex-shrink: 0;
}
#chatbot-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 9px 15px;
  color: var(--text);
  font-size: 0.855rem;
  transition: border-color var(--t);
}
#chatbot-input:focus { outline: none; border-color: var(--border-accent); }
#chatbot-input::placeholder { color: var(--text-faint); }
#chatbot-input:disabled { opacity: 0.5; cursor: not-allowed; }
#chatbot-send {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: var(--t);
  flex-shrink: 0;
}
#chatbot-send:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}
#chatbot-send:disabled { opacity: 0.5; cursor: not-allowed; }
#chatbot-send svg { width: 16px; height: 16px; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ===== NAV SERVICES DROPDOWN ===== */
.nav-has-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color var(--t);
}
.nav-dropdown-trigger:hover,
.nav-has-dropdown.open .nav-dropdown-trigger { color: var(--text); }
.nav-dropdown-trigger svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav-dd-chevron { transition: transform 0.22s ease; }
.nav-has-dropdown.open .nav-dd-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 300;
}
.nav-dropdown-menu.open { display: flex; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t), background var(--t);
}
.nav-dropdown-menu a:hover { color: var(--text); background: var(--accent-dim); }
.nav-dropdown-menu .dd-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.nav-dropdown-menu .dd-icon svg { width: 14px; height: 14px; }
html[data-theme="light"] .nav-dropdown-menu { box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

/* Mobile services */
.nav-mobile-services {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.nav-mobile-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 0 0 8px;
}
.nav-mobile-services a {
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-services a:last-child { border-bottom: none; }
.nav-mobile-services a:hover { color: var(--accent); }

/* ===== SUBPAGE HERO ===== */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% -10%, rgba(0, 212, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.page-hero h1 { margin-bottom: 24px; color: var(--text); font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
.page-hero-sub {
  font-size: clamp(1rem, 2vw, 1.14rem);
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 42px;
  font-weight: 400;
}

/* ===== HOW IT WORKS — STEPS ===== */
.steps { background: var(--bg-2); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-mid), transparent 80%);
  pointer-events: none;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: var(--shadow-card);
}
.step-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}
.step-number {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #000;
  margin: 0 auto 20px;
  flex-shrink: 0;
  font-family: var(--font-display);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}
.step-card h3 { margin-bottom: 10px; color: var(--text); font-size: 1rem; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.68; font-weight: 400; }

/* ===== USE CASES ===== */
.usecases { background: var(--bg); }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-card);
}
.usecase-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}
.usecase-icon {
  width: 42px; height: 42px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.usecase-icon svg { width: 20px; height: 20px; }
.usecase-card h3 { margin-bottom: 10px; color: var(--text); }
.usecase-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ===== FAQ ===== */
.faq { background: var(--bg-2); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-card);
}
.faq-item.open {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent), var(--shadow-card);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  font-family: var(--font);
  transition: color var(--t);
}
.faq-question:hover { color: var(--accent); }
.faq-chevron { flex-shrink: 0; transition: transform 0.25s ease; color: var(--text-muted); }
.faq-chevron svg { width: 16px; height: 16px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
}
.faq-item.open .faq-answer { display: block; }

/* ===== PAGE CTA ===== */
.page-cta {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 104px 24px;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0, 212, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-cta-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.page-cta h2 { margin-bottom: 16px; }
.page-cta p { color: var(--text-muted); margin-bottom: 40px; line-height: 1.75; font-size: 1.05rem; font-weight: 400; }
.page-cta .btn { min-width: 240px; }

/* ===== SUBPAGE RESPONSIVE ===== */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .usecases-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 60px; }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
  .page-cta { padding: 64px 24px; }
}

/* ===== CONTACT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(28px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border-accent), 0 0 80px rgba(0,212,255,0.06);
}
.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-mid), transparent);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t), border-color var(--t);
}
.modal-close:hover { color: var(--text); background: var(--accent-dim); border-color: var(--border-accent); }
.modal-close svg  { width: 16px; height: 16px; }
.modal-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.modal-box > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  text-align: center;
  font-weight: 400;
}
.modal-form-group { margin-bottom: 0.85rem; }
.modal-form-group input,
.modal-form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
  box-sizing: border-box;
  font-weight: 400;
}
.modal-form-group input:focus,
.modal-form-group textarea:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.06);
}
.modal-form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.modal-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.modal-success {
  text-align: center;
  padding: 2rem 0 0.5rem;
}
.modal-success svg { color: var(--accent); width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
.modal-success h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.modal-success p  { color: var(--text-muted); font-size: 0.9rem; }
html[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.45); }

@media (max-width: 540px) {
  .modal-box { padding: 1.75rem 1.25rem; }
}

/* ===== KEYFRAMES ===== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.5; }
  80%, 100% { transform: scale(1.45); opacity: 0; }
}
@keyframes badgePop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-5px); opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .about-inner { gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  #lang-switcher-desktop { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card { height: 360px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .chatbot-panel { width: calc(100vw - 32px); right: -4px; max-height: 80vh; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-trust { gap: 12px; }
  .why-grid { grid-template-columns: 1fr; }
  .chatbot-widget { bottom: 20px; right: 16px; }
  .chatbot-panel { right: -2px; }
}

/* ============================================================
   CLIENTS STRIP (P1-3)
   ============================================================ */
.clients-strip {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.clients-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
.clients-track img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.55);
  opacity: 0.7;
  transition: filter var(--t), opacity var(--t);
  flex-shrink: 0;
}
.clients-track img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ============================================================
   CTA BANNER FINAL (P1-6)
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-accent);
  text-align: center;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(0,212,255,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(99,102,241,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  max-width: 640px;
  line-height: 1.15;
}
.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .cta-banner { padding: 64px 0; }
  .clients-track { gap: 48px; }
  .clients-track img { height: 28px; }
}
