/* ============================================
   AsyncLogic - Main Stylesheet
   Dark-first, glassmorphism, premium gradients
   ============================================ */

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

:root {
  --bg-primary: #050810;
  --bg-secondary: #080d1a;
  --bg-card: rgba(255,255,255,0.04);
  --bg-glass: rgba(255,255,255,0.06);
  --border-glass: rgba(255,255,255,0.08);
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #0f172a 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(59,130,246,0.15) 0%, transparent 70%);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px rgba(59,130,246,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); line-height: 1.75; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

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

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 40px 0; }
.section-sm { padding: 60px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header p { max-width: 600px; margin-top: 16px; font-size: 1.1rem; }
.section-header.center p { margin: 16px auto 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: var(--bg-glass);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-blue);
  padding: 10px 0;
}
.btn-ghost:hover { gap: 12px; }

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  line-height: 1;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

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

.nav-cta {
  padding: 10px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: transparent;
  border: none;
  outline: none;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(5,8,16,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 20px 16px;
  z-index: 999;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--text-primary); background: var(--bg-glass); }

/* --- Cards & Glass --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(59,130,246,0.08);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
}

.card-icon.cyan { background: rgba(6,182,212,0.12); border-color: rgba(6,182,212,0.2); }
.card-icon.violet { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.2); }
.card-icon.emerald { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.2); }
.card-icon.amber { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.2); }
.card-icon.rose { background: rgba(244,63,94,0.12); border-color: rgba(244,63,94,0.2); }

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-1 { grid-column: span 4; }
.bento-2 { grid-column: span 6; }
.bento-3 { grid-column: span 8; }
.bento-4 { grid-column: span 12; }
.bento-3-col { grid-column: span 3; }

/* --- Tags & Badges --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59,130,246,0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,0.2);
}

.tag.cyan { background: rgba(6,182,212,0.12); color: var(--accent-cyan); border-color: rgba(6,182,212,0.2); }
.tag.violet { background: rgba(139,92,246,0.12); color: var(--accent-violet); border-color: rgba(139,92,246,0.2); }
.tag.emerald { background: rgba(16,185,129,0.12); color: var(--accent-emerald); border-color: rgba(16,185,129,0.2); }

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border-glass);
  margin: 0;
}

/* --- Glow Effects --- */
.glow-blue { box-shadow: 0 0 60px rgba(59,130,246,0.15); }
.glow-violet { box-shadow: 0 0 60px rgba(139,92,246,0.15); }

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
}

.bg-glow-violet {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: unset;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-glow-1 {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 60%);
  z-index: 1;
}

.hero-glow-2 {
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
}

.hero p.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-glass);
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-dashboard {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 60px rgba(59,130,246,0.1);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-dot.red { background: #ef4444; }
.dashboard-dot.yellow { background: #f59e0b; }
.dashboard-dot.green { background: #10b981; }

.dashboard-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.workflow-nodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workflow-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.workflow-node:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
}

.node-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.node-label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.node-sub { font-size: 0.7rem; color: var(--text-muted); }

.node-status {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.node-status.active { background: rgba(16,185,129,0.15); color: var(--accent-emerald); }
.node-status.processing { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.node-status.queued { background: rgba(245,158,11,0.15); color: #f59e0b; }

.workflow-connector {
  display: flex;
  align-items: center;
  padding-left: 28px;
  gap: 0;
}

.connector-line {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(59,130,246,0.4), rgba(139,92,246,0.4));
  margin-left: 15px;
}

/* ============================================
   TRUST / METRICS SECTION
   ============================================ */
.trust-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.metric-item {
  background: var(--bg-secondary);
  padding: 36px 32px;
  text-align: center;
  transition: var(--transition);
}

.metric-item:hover { background: rgba(59,130,246,0.05); }

.metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   CAPABILITIES SECTION
   ============================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.capability-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 30px rgba(59,130,246,0.08);
}

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

.capability-card h3 { margin: 16px 0 10px; font-size: 1.1rem; }
.capability-card p { font-size: 0.875rem; line-height: 1.7; }

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.capability-tag {
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   HOW WE MODERNIZE - LIFECYCLE
   ============================================ */
.lifecycle-section { position: relative; }

.lifecycle-steps {
  display: flex;
  gap: 0;
  position: relative;
}

.lifecycle-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet), var(--accent-cyan));
  z-index: 0;
}

.lifecycle-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
}

.lifecycle-step:hover .step-number,
.lifecycle-step.active .step-number {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 0 30px rgba(59,130,246,0.4);
  transform: scale(1.1);
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   AI HIGHLIGHT SECTION
   ============================================ */
.ai-section {
  position: relative;
  overflow: hidden;
}

.ai-flow {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow-x: auto;
}

.ai-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: default;
}

.ai-flow-node:hover {
  background: rgba(59,130,246,0.08);
}

.ai-flow-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
}

.ai-flow-label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.ai-flow-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.ai-flow-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 8px;
}

/* ============================================
   CASE STUDIES
   ============================================ */
.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}

.case-study-card:hover {
  border-color: rgba(59,130,246,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.case-study-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.case-study-industry {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.case-study-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.case-study-card p { font-size: 0.875rem; }

.case-study-body { padding: 24px 32px; }

.case-study-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.cs-metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.cs-metric-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.case-study-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-pill {
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   TECH ECOSYSTEM
   ============================================ */
.tech-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tech-domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-domain-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.25);
  transform: translateY(-4px);
}

.tech-domain-card h4 { font-size: 1rem; margin: 12px 0 8px; }
.tech-domain-card p { font-size: 0.8rem; color: var(--text-muted); }

.tech-stack-reveal {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 6px;
}

.tech-domain-card:hover .tech-stack-reveal { display: flex; }

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

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

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--text-primary); }

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

.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   FLOATING CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  text-decoration: none;
}

.floating-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.floating-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.4);
}

.floating-btn-whatsapp {
  background: #25d366;
  color: #fff;
  width: 52px;
  height: 52px;
  padding: 0;
  justify-content: center;
  font-size: 1.3rem;
}

.floating-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.4);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up { animation: fadeInUp 0.7s ease forwards; }
.animate-fade-in { animation: fadeIn 0.7s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   STICKY NAV CTA BAR
   ============================================ */
.sticky-cta-bar {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 800;
  background: rgba(59,130,246,0.95);
  backdrop-filter: blur(12px);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.sticky-cta-bar.visible { transform: translateY(0); }

.sticky-cta-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-blue);
  background: rgba(59,130,246,0.05);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

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

.form-select option { background: var(--bg-secondary); }

/* ============================================
   RESPONSIVE
   ============================================ */
/* --- Global overflow containment --- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent absolutely-positioned decorative glows from causing scroll */
.hero-glow-1,
.hero-glow-2,
.bg-glow,
.bg-glow-blue,
.bg-glow-violet {
  max-width: 100vw;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-domain-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { gap: 24px; }
  .bento-1, .bento-2, .bento-3 { grid-column: span 6; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 16px; }

  /* Hero */
  .hero { padding-top: 110px; padding-bottom: 60px; }
  .hero-visual { display: none; }
  .hero-glow-1,
  .hero-glow-2 { width: 300px; height: 300px; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .page-hero { padding: 120px 0 60px; }

  /* Named grid classes */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .tech-domain-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }

  /* Inline two-column grids used throughout page content */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* gap:0 grids (case studies, insights featured) */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:0"],
  [style*="grid-template-columns: 1fr 1fr"][style*="gap:0"] {
    gap: 0 !important;
  }

  /* Reduce heavy padding inside grid cells */
  [style*="padding:48px"] {
    padding: 24px !important;
  }
  [style*="padding:40px"] {
    padding: 24px !important;
  }
  [style*="gap:80px"] {
    gap: 32px !important;
  }
  [style*="gap:64px"] {
    gap: 32px !important;
  }

  /* Lifecycle / AI flow */
  .lifecycle-steps { flex-direction: column; gap: 24px; }
  .lifecycle-steps::before { display: none; }
  .ai-flow { flex-direction: column; }
  .ai-flow-arrow { transform: rotate(90deg); }
  .ai-flow-node { min-width: unset; width: 100%; }

  /* Hero stats */
  .hero-stats { flex-wrap: wrap; gap: 20px; }

  /* Bento */
  .bento-1, .bento-2, .bento-3, .bento-4 { grid-column: span 12; }

  /* Misc */
  .floating-cta { bottom: 20px; right: 20px; }
  .case-study-metrics { gap: 16px; }
  .case-study-header,
  .case-study-body,
  .case-study-footer { padding-left: 20px; padding-right: 20px; }

  /* Footer */
  .footer { padding: 56px 0 32px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .metrics-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }

  /* Inline grids — single column on small phones */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Reduce section padding further */
  .section { padding: 48px 0; }
  .page-hero { padding: 100px 0 48px; }

  /* Nav */
  .nav { padding: 0 12px; }

  /* Cards */
  .card { padding: 20px; }
  .capability-card { padding: 24px; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   UTILITY
   ============================================ */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ============================================
   DROPDOWN NAV - Modern redesign
   ============================================ */
.nav-links li { position: relative; }

.nav-links li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-links li.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: rgba(10,14,26,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 6px;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

/* invisible hover bridge */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown:focus-within .nav-dropdown {
  display: block;
  animation: dropdownIn 0.15s cubic-bezier(0.16,1,0.3,1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.nav-dropdown a:hover {
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.06) !important;
}

.dropdown-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.nav-dropdown a:nth-child(1) .dropdown-icon { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.2); }
.nav-dropdown a:nth-child(2) .dropdown-icon { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.2); }
.nav-dropdown a:nth-child(3) .dropdown-icon { background: rgba(6,182,212,0.12);  border-color: rgba(6,182,212,0.2); }

.dropdown-label { display: flex; flex-direction: column; gap: 1px; }
.dropdown-label-main { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.dropdown-label-sub  { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; line-height: 1.3; }

.nav-dropdown a:hover .dropdown-label-main { color: #fff; }

/* ============================================
   HERO WITH BG IMAGE
   ============================================ */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/bgpage.jpeg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,8,16,0.82) 0%,
    rgba(5,8,16,0.55) 50%,
    rgba(5,8,16,0.80) 100%
  );
}

/* Remove floating CTA */
.floating-cta { display: none; }

/* Word-based hero stats (no counter animation) */
.hero-stat-value:not([data-target]) {
  font-size: 1.4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-value:not([data-target]) {
  font-size: 1.6rem;
}

/* ============================================
   CAREERS NAV - Internship highlight
   ============================================ */

/* Highlighted dropdown item (Internships) */
.nav-dropdown-highlight {
  position: relative;
  border: 1px solid rgba(139,92,246,0.25) !important;
  background: rgba(139,92,246,0.06) !important;
  margin-top: 4px;
}

.nav-dropdown-highlight:hover {
  background: rgba(139,92,246,0.14) !important;
  border-color: rgba(139,92,246,0.4) !important;
}

.nav-dropdown-highlight .dropdown-icon {
  background: rgba(139,92,246,0.18) !important;
  border-color: rgba(139,92,246,0.35) !important;
}

/* "Now Open" badge inside dropdown */
.nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(139,92,246,0); }
}

/* Mobile nav internship highlight */
.nav-mobile a.nav-mobile-highlight {
  color: var(--accent-violet) !important;
  background: rgba(139,92,246,0.08) !important;
  border: 1px solid rgba(139,92,246,0.2);
  font-weight: 600;
}

.nav-mobile a.nav-mobile-highlight:hover {
  background: rgba(139,92,246,0.16) !important;
  color: #fff !important;
}

/* ============================================
   AI SECTION — IMAGE PANEL (index.html)
   ============================================ */
.ai-section-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-image: url('assets/images/bgpage.jpeg');
  background-size: cover;
  background-position: center center;
  border: 1px solid var(--border-glass);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 60px rgba(59,130,246,0.08);
}

/* Dark gradient overlay — heavier on left to blend into section bg, lighter on right */
.ai-section-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(5,8,16,0.72) 0%,
    rgba(5,8,16,0.25) 50%,
    rgba(5,8,16,0.15) 100%
  );
}

/* Small floating badge at bottom-left */
.ai-section-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(5,8,16,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-section-image-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ai-section-image {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
  }
}
