/* =========================================================
   Inovosystems — Design System v3
   Warm · Brown · Gold · Beige · Glass · Inspired by Monitor
   ========================================================= */

/* --- Variables --- */
:root {
  --brown-dark: #3D2B1F;
  --brown-med: #5D4037;
  --brown-light: #8D6E63;
  --gold: #C4A35A;
  --gold-hover: #B8922E;
  --gold-subtle: rgba(196, 163, 90, 0.12);
  --saddle: #8B4513;
  --sienna: #A0522D;
  --beige: #F5F0E6;
  --beige-alt: #FAF7F0;
  --cream: #FFFDF7;
  --white: #FFFFFF;
  --text-dark: #2C1810;
  --text-med: #5D4037;
  --text-light: #8D6E63;
  --text-on-dark: rgba(255, 255, 255, 0.88);
  --text-on-dark-muted: rgba(255, 255, 255, 0.6);
  --border-light: #E8DFD0;
  --border-card: #EDE6D9;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(182, 113, 36, 0.3);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.08);
  --shadow-md: 0 4px 12px rgba(61, 43, 31, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
  --transition: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-image: url(/assets/images/Inovosystem-bg.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(61, 43, 31, 0.15);
  z-index: -1;
  pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--brown-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--text-med); line-height: 1.7; }
a { color: var(--saddle); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-hover); }
::selection { background: var(--saddle); color: white; }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Section spacing --- */
.section { padding: 80px 0; }
.section-beige { background: rgba(245, 240, 230, 0.7); backdrop-filter: blur(2px); }
.section-cream { background: rgba(255, 253, 247, 0.7); backdrop-filter: blur(2px); }
.section-brown {
  background: var(--brown-dark);
  color: var(--text-on-dark);
  position: relative;
}
.section-brown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url(/assets/images/sleepOnthejob.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}
.section-brown h2, .section-brown h3 { color: var(--white); }
.section-brown p { color: var(--white); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saddle), var(--sienna));
  color: white;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #CD853F, var(--saddle));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.4);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}
.btn-outline-light:hover {
  background: var(--gold-subtle);
  border-color: var(--saddle);
  color: var(--saddle);
}
.btn-outline-on-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-outline-on-dark:hover {
  background: rgba(196, 163, 90, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(182, 113, 36, 0.15);
  z-index: 1000;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-med); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: var(--transition);
}
.nav-icon-link {
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-icon-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.nav-icon-link:hover svg, .nav-icon-link.active svg { opacity: 1; }
.nav-links a:hover, .nav-links a.active { color: var(--brown-dark); }
.nav-links .btn { padding: 10px 20px; font-size: 0.85rem; }
.nav-links .btn svg { width: 16px; height: 16px; }
.nav-links .btn-primary { color: white; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown-dark); border-radius: 2px; transition: var(--transition); }

/* --- Dropdown Sub-menus --- */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.dropdown-icon { font-size: 10px; transition: var(--transition); }
.nav-item:hover .dropdown-icon { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--cream); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 8px; min-width: 220px;
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.15);
  opacity: 0; visibility: hidden; transition: all 0.2s ease;
  z-index: 100; margin-top: 8px;
}
.nav-item:hover .dropdown-menu {
  opacity: 1; visibility: visible; margin-top: 0;
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 6px;
  color: var(--text-med); font-size: 0.85rem; white-space: nowrap;
}
.dropdown-menu a svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
.dropdown-menu a:hover svg { opacity: 1; }
.dropdown-menu a:hover {
  background: var(--gold-subtle); color: var(--saddle);
}

/* Responsive: dropdowns collapse into stacked on mobile */
@media (max-width: 768px) {
  .nav-item { position: static; }
  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: none; box-shadow: none; padding: 0 0 0 16px; margin: 0; min-width: auto;
  }
  .dropdown-icon { display: none; }
}

/* --- Hero --- */
.hero {
  min-height: calc(100vh - 72px); display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 56px 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url(/assets/images/Hero.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 253, 247, 0.3) 0%,
    rgba(245, 240, 230, 0.25) 40%,
    rgba(255, 253, 247, 0.3) 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -30%; right: -10%; width: 60%; height: 160%;
  background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  position: relative; z-index: 1;
}
.hero-tagline {
  display: inline-block; padding: 8px 16px; border-radius: 100px;
  background: var(--gold-subtle); color: var(--saddle);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(182, 113, 36, 0.25);
}
.hero-logo img { height: 64px; margin-bottom: 16px; }
.hero h1 { color: var(--brown-dark); margin-bottom: 12px; font-size: clamp(1.4rem, 3.8vw, 2.4rem); }
.hero p { font-size: 0.95rem; max-width: 540px; margin-bottom: 14px; color: var(--text-med); line-height: 1.5; }
.hero p a { color: var(--saddle); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold); font-weight: 500; }
.hero p a:hover { color: var(--brown-dark); text-decoration-color: var(--brown-dark); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 440px; }
.hero-visual .hero-tagline { align-self: stretch; text-align: center; margin-bottom: 10px; font-size: 0.8rem; padding: 6px 14px; }
.hero-visual .video-poster { max-width: 100%; }

/* --- Video Splash / Loading Overlay --- */
.video-splash {
  position: absolute;
  inset: 0;
  background: rgba(29, 19, 10, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.video-splash.active {
  opacity: 1;
}
.video-splash-content {
  text-align: center;
  padding: 24px;
}
.video-splash-ring {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 3px solid rgba(196, 163, 90, 0.15);
  border-top-color: #C4A35A;
  border-radius: 50%;
  animation: splash-spin 1s linear infinite;
}
.video-splash-icon {
  margin: 0 auto 18px;
  width: 48px;
  height: 48px;
}
.video-splash-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #C4A35A;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.video-splash-text {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  animation: splash-pulse 1.8s ease-in-out infinite;
  line-height: 1.6;
  margin: 0;
}
.video-splash-text small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 4px;
  font-weight: 400;
}
.video-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
}

@keyframes splash-spin {
  to { transform: rotate(360deg); }
}
@keyframes splash-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- Video Controls --- */
.video-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: none;
}
.video-pause-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.video-pause-btn:hover {
  background: rgba(0,0,0,0.75);
  border-color: var(--gold);
}
.video-note {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  max-width: 420px;
  opacity: 0.75;
}
.video-notice {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--saddle);
  text-align: center;
  max-width: 420px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.video-notice-icon {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  vertical-align: middle;
  margin-left: 4px;
  font-size: 0.85rem;
}

.hero-code-window {
  width: 100%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  box-shadow: var(--shadow-lg);
}
.hero-code-window .code-comment { color: #8D8D8D; }
.hero-code-window .code-keyword { color: #9C27B0; }
.hero-code-window .code-string { color: #2E7D32; }
.hero-code-window .code-func { color: #1565C0; }
.hero-code-window .code-accent { color: var(--saddle); font-weight: 600; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.92) translateY(20px); }
  70%  { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.12); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 4px rgba(196, 163, 90, 0.1); }
  50%      { box-shadow: 0 0 20px rgba(196, 163, 90, 0.3), 0 0 40px rgba(196, 163, 90, 0.08); }
}

/* Entrance: cards pop in */
.card { animation: popIn 0.5s ease-out both; }
.product-card { animation: popIn 0.5s ease-out both; }
.testimonial-card { animation: popIn 0.5s ease-out both; }
.why-item { animation: fadeInUp 0.4s ease-out both; }

/* Staggered delays */
.card:nth-child(1), .product-card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2), .product-card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3), .product-card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.2s; }
.why-item:nth-child(2) { animation-delay: 0.05s; }
.why-item:nth-child(3) { animation-delay: 0.1s; }
.why-item:nth-child(4) { animation-delay: 0.15s; }
.why-item:nth-child(5) { animation-delay: 0.2s; }
.why-item:nth-child(6) { animation-delay: 0.25s; }

/* Subtle living icons */
.card-icon-gold { animation: pulse 3s ease-in-out infinite; }
.card-icon-brown { animation: pulse 3s ease-in-out infinite 1.5s; }

/* Hero float + glow */
.hero-code-window { animation: float 5s ease-in-out infinite; }
.hero-tagline { animation: glow 3s ease-in-out infinite; }

/* Hover micro-interaction: icon responds */
.card:hover .card-icon-gold,
.card:hover .card-icon-brown {
  animation: pulse 0.6s ease-in-out 2;
}

/* --- Section headers --- */
.section-label {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: var(--gold-subtle); color: var(--saddle);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
  border: 1px solid rgba(182, 113, 36, 0.2);
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-med); }

/* --- Brand statement two-column --- */
.brand-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 48px;
}
.brand-text p {
  font-size: 1.05rem; line-height: 1.7; color: var(--text-med); margin: 0;
}
.brand-image img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: block;
}

/* --- Card grids --- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius); padding: 32px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { 
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: rgba(139, 69, 19, 0.4);
  background: rgba(255, 255, 255, 0.7);
}
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.25rem;
}
.card-icon-gold { background: var(--gold-subtle); color: var(--saddle); }
.card-icon-brown { background: rgba(93, 64, 55, 0.08); color: var(--brown-med); }
.card-icon svg,
.card-icon img,
.why-icon svg,
.ai-lab-icon svg,
.infra-icon svg {
  width: 28px; height: 28px;
  display: block;
}
.card-icon svg { width: 24px; height: 24px; }
.why-icon svg { width: 20px; height: 20px; }
.infra-icon svg { width: 40px; height: 40px; color: var(--gold); }
.card h3 { margin-bottom: 12px; color: var(--brown-dark); }
.card p { font-size: 0.95rem; margin-bottom: 16px; color: var(--text-med); }
.card-link { color: var(--saddle); font-weight: 500; font-size: 0.9rem; }
.card-link:hover { color: var(--gold-hover); }

/* --- Stats bar --- */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; text-align: center; padding: 32px 0;
}
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--brown-dark); }
.stat-label { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }

.section-brown .stat-value { color: var(--gold); }
.section-brown .stat-label { color: var(--text-on-dark-muted); }

/* --- Client Logos Marquee --- */
.section-client-logos {
  padding: 48px 0; overflow: hidden;
  background: rgba(255, 253, 247, 0.5);
  border-top: 1px solid rgba(182, 113, 36, 0.1);
  border-bottom: 1px solid rgba(182, 113, 36, 0.1);
}
.client-logos-header { text-align: center; margin-bottom: 32px; }
.client-logos-header h2 { font-size: 1.3rem; margin-bottom: 0; }
.text-gold { color: var(--saddle); }
.logos-track-wrapper { overflow: hidden; width: 100%; }
.logos-track { overflow: hidden; }
.logos-track-inner {
  display: flex; gap: 48px; align-items: center;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}
.logos-track-inner img {
  height: 40px; width: auto;
  opacity: 0.5; transition: opacity 0.3s;
  filter: grayscale(30%);
}
.logos-track-inner img:hover {
  opacity: 0.9;
  filter: grayscale(0%);
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Pause on hover */
.logos-track:hover .logos-track-inner {
  animation-play-state: paused;
}

/* --- Tech Stack Graph (D3) --- */
.section-tech-graph {
  background: rgba(245, 240, 230, 0.4);
  padding: 80px 0;
  overflow: hidden;
}
.tech-cta-link {
  color: var(--saddle);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--gold);
}
.tech-cta-link:hover {
  color: var(--brown-dark);
}
.tech-graph-container {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0 auto;
}
.tech-graph-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.tech-graph-nodes {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Breathing animation — uses filter + box-shadow to avoid D3 transform conflict */
@keyframes tech-node-breathe {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  50% {
    filter: brightness(1.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.1), 0 0 20px rgba(196,163,90,0.12);
  }
}

.tech-graph-node {
  position: absolute;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: grab;
  background: white;
  border: 2px solid;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  animation: tech-node-breathe 4s ease-in-out infinite;
  user-select: none;
  left: 0; top: 0;
}
.tech-graph-node:active {
  cursor: grabbing;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.tech-graph-node.dimmed {
  opacity: 0.2;
  transition: opacity 0.3s;
}
.tech-link {
  stroke: rgba(107, 114, 128, 0.2);
  stroke-width: 1.5;
  transition: opacity 0.3s;
}
.tech-link.dimmed {
  opacity: 0.05;
}
/* Group accent colors */
.group-frontend { background: rgba(139, 92, 246, 0.08); color: #5B21B6; }
.group-mobile   { background: rgba(59, 130, 246, 0.08); color: #1E40AF; }
.group-backend  { background: rgba(5, 150, 105, 0.08); color: #065F46; }
.group-api      { background: rgba(8, 145, 178, 0.08); color: #0E7490; }
.group-database { background: rgba(217, 119, 6, 0.08); color: #92400E; }
.group-data     { background: rgba(124, 58, 237, 0.08); color: #5B21B6; }
.group-infra    { background: rgba(107, 114, 128, 0.08); color: #374151; }
.group-ai       { background: rgba(196, 163, 90, 0.25); color: #4A3A10; font-weight: 700; }
.group-dotnet   { background: rgba(37, 99, 235, 0.08); color: #1E3A5F; }
@media (max-width: 768px) {
  .tech-graph-container { height: 400px; }
  .tech-graph-node { font-size: 0.75rem; padding: 6px 14px; }
}
.product-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius);
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 69, 19, 0.4);
  background: rgba(255, 255, 255, 0.7);
}
.product-card:last-child { margin-bottom: 0; }
.product-tag {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  background: var(--gold-subtle); color: var(--saddle);
  font-size: 0.75rem; font-weight: 600; margin-bottom: 12px;
}
.product-card h3 { margin-bottom: 12px; }
.product-card p { font-size: 0.95rem; }
.product-meta {
  font-size: 0.8rem; color: var(--text-light); margin-bottom: 16px;
  line-height: 1.5;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 69, 19, 0.4);
  background: rgba(255, 255, 255, 0.7);
}
.testimonial-text { font-style: italic; font-size: 0.95rem; margin-bottom: 20px; color: var(--text-med); line-height: 1.7; }
.testimonial-author { font-weight: 600; color: var(--brown-dark); }
.testimonial-role { font-size: 0.85rem; color: var(--text-light); }

/* --- Why grid --- */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
.why-item {
  display: flex; gap: 16px; padding: 20px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(182, 113, 36, 0.15);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-item:hover {
  border-color: rgba(139, 69, 19, 0.3);
  background: rgba(255, 255, 255, 0.7);
}
.why-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-subtle); color: var(--saddle);
  font-size: 1.1rem;
}
.why-item h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--brown-dark); }
.why-item p { font-size: 0.85rem; margin: 0; color: var(--text-med); }

/* --- Footer (glass on dark) --- */
.footer {
  background: var(--brown-dark);
  position: relative;
  padding: 60px 0 40px;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url(/assets/images/waitingforyou.jpg);
  background-size: cover;
  background-position: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  position: relative; z-index: 1;
}
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-on-dark-muted); }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: var(--gold); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; color: var(--text-on-dark-muted); font-size: 0.9rem; }
.footer a { color: var(--text-on-dark-muted); font-size: 0.9rem; transition: var(--transition); }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 40px;
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 0.85rem; color: var(--text-on-dark-muted);
  position: relative; z-index: 1;
}
.footer-bottom a { color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: var(--gold); }

/* Glass card in footer */
.footer-glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  position: relative; z-index: 1;
}

/* --- Contact form --- */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; color: var(--brown-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(182, 113, 36, 0.3);
  color: var(--text-dark); font-family: var(--font-sans); font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--saddle);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.15);
  background: rgba(255, 255, 255, 0.75);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Page hero (inner pages) --- */
.page-hero {
  padding: 140px 0 60px; text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url(/assets/images/AI_bg.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 1;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 253, 247, 0.85) 0%,
    rgba(245, 240, 230, 0.8) 50%,
    rgba(255, 253, 247, 0.85) 100%);
  pointer-events: none;
}
.page-hero h1 { color: var(--brown-dark); margin-bottom: 16px; position: relative; z-index: 1; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; color: var(--text-med); position: relative; z-index: 1; }
.page-hero .section-label { position: relative; z-index: 1; }

/* --- Hero variants with Ai-bg.jpg background --- */
.page-hero-ai::before {
  background-image: url(/assets/images/Ai-bg.jpg);
  background-position: center 70%;
  opacity: 0.4;
}
.page-hero-ai::after {
  background: linear-gradient(135deg,
    rgba(61, 43, 31, 0.8) 0%,
    rgba(93, 64, 55, 0.7) 50%,
    rgba(61, 43, 31, 0.8) 100%);
}
.page-hero-ai h1 { color: var(--cream); }
.page-hero-ai p { color: var(--text-on-dark); }
.page-hero-ai .section-label { color: var(--gold); }

/* --- About workflow --- */
.workflow-step {
  display: flex; gap: 16px; align-items: flex-start;
}
.workflow-number {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.workflow-number-gold { background: var(--gold-subtle); color: var(--saddle); }
.workflow-number-brown { background: rgba(93, 64, 55, 0.08); color: var(--brown-med); }

/* --- Feature badges row --- */
.feature-badge {
  padding: 24px; background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius-sm); text-align: center;
  box-shadow: var(--shadow-sm);
}
.feature-badge-icon { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.feature-badge-label { font-size: 0.9rem; color: var(--text-med); }

/* --- Contact card --- */
.contact-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 24px; }
.contact-label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-light); margin-bottom: 4px;
}
.contact-value { font-size: 1.1rem; color: var(--brown-dark); }

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(61, 43, 31, 0.08); }
::-webkit-scrollbar-thumb { background: var(--saddle); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sienna); }

/* --- Info card on dark bg --- */
.info-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  position: relative; z-index: 1;
}
.info-card p { color: var(--text-on-dark-muted); }

/* --- Timeline divider (about page) --- */
.timeline-line {
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-subtle), rgba(182, 113, 36, 0.3));
  margin: 0 auto;
}

/* ===== AI Capability / AI Lab (from Inovomatrix merge) ===== */
.ai-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 40px;
}
.ai-lab-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius); padding: 32px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: popIn 0.5s ease-out both;
}
.ai-lab-card:nth-child(1) { animation-delay: 0.05s; }
.ai-lab-card:nth-child(2) { animation-delay: 0.15s; }
.ai-lab-card:nth-child(3) { animation-delay: 0.25s; }
.ai-lab-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: rgba(139, 69, 19, 0.4);
  background: rgba(255, 255, 255, 0.7);
}
.ai-lab-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.ai-lab-icon-gold { background: var(--gold-subtle); color: var(--saddle); }
.ai-lab-icon-brown { background: rgba(93, 64, 55, 0.08); color: var(--brown-med); }
.ai-lab-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.ai-lab-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ===== NEW: Infrastructure section (from Inovomatrix merge) ===== */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 40px;
}
.infra-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 32px; text-align: center;
  transition: var(--transition);
  animation: popIn 0.5s ease-out both;
}
.infra-card:nth-child(1) { animation-delay: 0.05s; }
.infra-card:nth-child(2) { animation-delay: 0.15s; }
.infra-card:nth-child(3) { animation-delay: 0.25s; }
.infra-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}
.infra-card h3 { color: var(--white); margin-bottom: 12px; font-size: 1.1rem; }
.infra-card p { color: var(--text-on-dark-muted); font-size: 0.9rem; margin-bottom: 0; }

/* ===== NEW: Metric badges on service cards ===== */
.card-metrics {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin: 16px 0;
}
.card-metric {
  display: flex; flex-direction: column; align-items: center;
  min-width: 70px;
}
.card-metric-value {
  font-size: 1.3rem; font-weight: 700; color: var(--saddle);
  line-height: 1.2;
}
.card-metric-label {
  font-size: 0.7rem; color: var(--text-light);
  text-align: center; line-height: 1.2;
}

/* ===== NEW: Hero terminal typing animation ===== */
.hero-terminal {
  width: 100%;
  background: rgba(61, 43, 31, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
  min-height: 200px;
}
.terminal-bar {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot-red { background: #FF5F56; }
.terminal-dot-yellow { background: #FFBD2E; }
.terminal-dot-green { background: #27C93F; }
.terminal-line { white-space: nowrap; overflow: hidden; }
.terminal-prompt { color: var(--saddle); font-weight: 600; }
.terminal-cursor {
  display: inline-block; width: 8px; height: 1.2em;
  background: var(--saddle);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.terminal-comment { color: #8D8D8D; }
.terminal-keyword { color: #9C27B0; font-weight: 600; }
.terminal-string { color: #2E7D32; }
.terminal-accent { color: var(--saddle); font-weight: 600; }
.terminal-func { color: #1565C0; }
.terminal-output { color: var(--text-light); }

.section-brown .section-header p { color: var(--white); }

/* Section brown override for infra section */
.section-brown .section-label {
  background: rgba(196, 163, 90, 0.2);
  border-color: rgba(196, 163, 90, 0.3);
  color: var(--gold);
}

/* ===== NEW: Pipeline / Coming Next section ===== */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 40px;
}
.pipeline-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(182, 113, 36, 0.2);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: popIn 0.5s ease-out both;
}
.pipeline-card:nth-child(1) { animation-delay: 0.05s; }
.pipeline-card:nth-child(2) { animation-delay: 0.15s; }
.pipeline-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: rgba(139, 69, 19, 0.4);
  background: rgba(255, 255, 255, 0.7);
}
.pipeline-label {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  background: var(--gold-subtle); color: var(--saddle);
  font-size: 0.75rem; font-weight: 600; margin-bottom: 12px;
}
.pipeline-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.pipeline-card p { font-size: 0.9rem; margin-bottom: 0; }
.pipeline-icon { font-size: 2rem; margin-bottom: 12px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .brand-two-col { grid-template-columns: 1fr; gap: 32px; }
  .product-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .logos-track-inner { gap: 32px; }
  .logos-track-inner img { height: 30px; }
  .client-logos-header h2 { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
