/* Self-hosted Inter + Playfair Display (was Google Fonts).
   .woff2 subsets (latin + latin-ext) in fonts/. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin_latin-ext-600.woff2') format('woff2');
}

:root {
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* High-Tech Grid Background */
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
  z-index: 0;
}

/* Background fade mask */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0) 0%, #ffffff 80%);
  pointer-events: none;
  z-index: -1;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  background: rgba(37, 99, 235, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  mix-blend-mode: multiply;
}
.custom-cursor.hover {
  width: 60px; height: 60px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.5);
  backdrop-filter: blur(2px);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

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

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.6rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-mark {
  display: inline-block;
  white-space: nowrap;
}

.logo-mark .slash {
  color: var(--accent-color);
  font-weight: 400;
  margin-left: 2px;
}

.logo-text {
  overflow: hidden;
  white-space: pre;
  max-width: 200px;
  opacity: 1;
  transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.navbar.scrolled .logo-text {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  background-color: var(--text-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.2s !important;
}

.nav-cta:hover {
  background-color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  text-align: left;
}

.hero-content {
  max-width: 600px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 90%;
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: 1px solid var(--accent-color);
  box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px rgba(37, 99, 235, 0.6);
}

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

.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

/* AI Chat Window in Hero */
.hero-interactive {
  perspective: 1000px;
}

.ai-chat-window {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.ai-chat-window:hover {
  transform: rotateY(0) rotateX(0) scale(1);
  box-shadow: 0 50px 100px -20px rgba(37,99,235,0.15), inset 0 0 0 1px rgba(255,255,255,0.8);
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.5);
}

.ai-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-color), #60a5fa);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  box-shadow: 0 8px 16px rgba(37,99,235,0.2);
}

.status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 3px solid #fff;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ai-info h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2px;
}

.ai-info span {
  font-size: 0.85rem;
  color: #10b981;
  font-weight: 500;
}

.chat-body {
  padding: 30px 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(248, 250, 252, 0.3);
}

.chat-message.ai {
  align-self: flex-start;
  max-width: 85%;
}

.chat-message.user {
  align-self: flex-end;
  max-width: 85%;
}

.message-content {
  background: #fff;
  padding: 16px 20px;
  border-radius: 0 20px 20px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.chat-message.user .message-content {
  background: var(--accent-color);
  color: #fff;
  border-radius: 20px 0 20px 20px;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
  display: inline-block;
  margin-left: 12px;
}

.chat-input-area {
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 12px;
  background: #fff;
}

.chat-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.chat-input:focus {
  border-color: var(--accent-color);
}

.send-btn {
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* Call Btn Shimmer */
.call-btn {
  position: relative;
  overflow: hidden;
}

.call-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: shimmer-btn 3s infinite;
}

@keyframes shimmer-btn {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Tech Marquee */
.tech-stack {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.tech-stack::before,
.tech-stack::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

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

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

.tech-container {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-right: 60px;
  transition: transform 0.3s, color 0.3s;
}

.tech-item:hover {
  transform: scale(1.1);
  color: var(--accent-color);
}

/* Section Shared */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Interactive Tabs Layout */
.services-tabs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.services-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-tab {
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0.6;
}

.service-tab:hover {
  background: rgba(37, 99, 235, 0.05);
  opacity: 0.9;
  transform: translateX(5px);
}

.service-tab.active {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  opacity: 1;
  transform: translateX(10px);
}

.service-tab.active .tab-icon {
  color: #fff;
  background: var(--accent-color);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.tab-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--bg-secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.service-tab h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.2px;
}

.services-tabs-display {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 320px;
}

.service-display {
  position: absolute;
  inset: 0;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.service-display.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: scale(1) translateY(0);
}

.service-info {
  flex: 1;
}

.service-info h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.service-info p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Minimalist Visuals styling */
.minimal-visual {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.minimal-visual svg {
  max-width: 100%;
  max-height: 100%;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  padding: 30px;
  border-top: 2px solid var(--border-color);
  position: relative;
}

.process-step:hover {
  border-top-color: var(--accent-color);
}

.step-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 50px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--bg-color);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* Case Studies */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.case-metric {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.case-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.case-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Industries Section */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}
.industry-card i {
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}
.industry-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.industry-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover {
  border-color: var(--accent-color);
}
.faq-question {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.faq-question i {
  color: var(--accent-color);
  transition: transform 0.3s;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 30px;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 30px 24px 30px;
}
.faq-answer p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

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

.footer-brand h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-links h4, .footer-social h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}
.nav-links a:hover {
  color: var(--accent-color);
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn i {
  width: 24px;
  height: 24px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.social-icons a svg {
  width: 18px;
  height: 18px;
}

.social-icons a:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Hero social row */
.hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.hero-social-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}
.hero-social a svg {
  width: 16px;
  height: 16px;
}
.hero-social a:hover {
  color: #fff;
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Quiz Modal */
.quiz-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.quiz-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.quiz-modal-container {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.quiz-modal-overlay.active .quiz-modal-container {
  transform: translateY(0);
}
.quiz-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s;
}
.quiz-close-btn:hover {
  color: var(--text-primary);
}
.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--accent-color);
  transition: width 0.4s ease;
}
.quiz-step {
  display: none;
  animation: fadeIn 0.4s;
}
.quiz-step.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.spin-icon {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}
.quiz-step h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.quiz-step p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quiz-option {
  cursor: pointer;
}
.quiz-option input {
  display: none;
}
.option-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  background: var(--card-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.option-card i {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.option-card span {
  font-size: 0.95rem;
  font-weight: 500;
}
.quiz-option input:checked + .option-card {
  border-color: var(--accent-color);
  background: rgba(37, 99, 235, 0.1);
}
.quiz-option input:checked + .option-card i {
  color: var(--accent-color);
}
.quiz-option:hover .option-card {
  border-color: var(--text-secondary);
}
.quiz-footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.quiz-footer .btn {
  padding: 10px 24px;
}
.quiz-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Use Cases Section --- */
.use-cases-section {
    padding: 100px 0;
    background: var(--bg-color);
}
.use-cases-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.use-cases-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.use-cases-section .section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}
.uc-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}
.uc-sidebar {
    position: sticky;
    top: 100px;
    height: max-content;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}
.uc-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
}
.uc-tab:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--text-primary);
}
.uc-tab.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    font-weight: 500;
}
.uc-content {
    display: none;
    animation: fadeIn 0.4s;
}
.uc-content.active {
    display: block;
}
.uc-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}
.uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.uc-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}
.uc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}
.uc-card i {
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}
.uc-card p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    color: var(--text-secondary);
}
.uc-roi-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 23, 42, 0.3));
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
}
.uc-roi-banner h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.uc-roi-banner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-interactive {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .services-tabs-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-tabs-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
  }

  .services-tabs-list::-webkit-scrollbar { display: none; }

  .service-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    gap: 8px;
    transform: none !important;
    opacity: 1;
  }

  .service-tab h3 { font-size: 0.9rem; }
  .tab-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; }

  .services-tabs-display {
    min-height: 340px;
    border-radius: 20px;
  }

  .service-display {
    position: absolute;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    align-items: flex-start;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .uc-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .uc-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
    margin-bottom: 16px;
    position: static;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .uc-sidebar::-webkit-scrollbar {
    display: none;
  }

  .uc-tab {
    flex-shrink: 0;
    width: auto;
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: 20px;
    white-space: nowrap;
  }

  .uc-content-area {
    min-height: auto;
  }

  .uc-content {
    display: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
  }

  .uc-content.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    gap: 15px;
    align-items: center;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  
  .process-grid, .cases-grid, .industries-grid {
    grid-template-columns: 1fr;
  }
  
  .quiz-options {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Book a Call Section */
.book-call-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(15,23,42,0) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.book-call-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.book-call-text h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.book-call-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}
.book-call-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.book-call-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.book-call-list li i {
  color: var(--accent-color);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.book-call-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.book-call-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 992px) {
  .book-call-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .book-call-list li {
    justify-content: center;
  }
  .book-call-action {
    margin: 0 auto;
  }
}

/* Our Products Section */
.our-products {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}
.product-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}
.product-card h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary);
}
.product-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.product-status {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-status.coming-soon { color: var(--text-secondary); }
.product-status.live { color: #22c55e; }
.product-status.live i { width: 14px; height: 14px; }

/* Mobile compaction (UX iteration 2 — 2026-05-03) */
@media (max-width: 768px) {
  .our-products { padding: 60px 0; }
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { padding: 20px; }

  .services, .industries, .use-cases-section, .process,
  .cases, .book-call-section, .faq, .contact { padding: 60px 0; }

  .industry-card { padding: 22px; }
  .industry-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
  .industry-card p { font-size: 0.9rem; line-height: 1.5; }

  .footer { padding: 40px 0 20px; }

  /* Use-cases mobile accordion: hide horizontal tabs, show all sections as collapsible cards */
  .uc-sidebar { display: none; }
  .uc-content {
    display: block;
    margin-bottom: 12px;
  }
  .uc-content h3 {
    cursor: pointer;
    margin: 0;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    user-select: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .uc-content h3:hover { background: rgba(37, 99, 235, 0.05); }
  .uc-content h3::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1;
    flex-shrink: 0;
  }
  .uc-content.uc-open h3::after { content: "−"; }
  .uc-content .uc-grid {
    display: none;
    margin-top: 12px;
  }
  .uc-content.uc-open .uc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Floating "Free AI Audit" CTA on mobile when scrolled (logo collapses, CTA appears) */
  .navbar.scrolled .mobile-cta-quiz {
    display: inline-flex;
  }

  /* Quiz modal — make it scrollable, compact options on mobile */
  .quiz-modal-container {
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 20px;
    width: 94%;
  }
  .quiz-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
  .quiz-step p { font-size: 0.9rem; margin-bottom: 16px; }
  .quiz-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quiz-options .quiz-option { grid-column: auto !important; }
  .option-card {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center;
    text-align: left;
    padding: 12px 16px;
    gap: 12px;
  }
  .option-card i { width: 20px; height: 20px; flex-shrink: 0; }
  .option-card span { font-size: 0.9rem; }
}

/* Floating CTA button (mobile only, hidden by default; shown via .navbar.scrolled in @media above) */
.mobile-cta-quiz {
  display: none;
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-right: 8px;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.mobile-cta-quiz:hover { opacity: 0.9; }

