/* ============================================
   SILVONZA TECH - DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  /* Colors */
  --bg-primary: #050810;
  --bg-secondary: #080d1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-violet: #6366f1;
  --accent-pink: #ec4899;

  --grad-main: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  --grad-text: linear-gradient(135deg, #60a5fa, #a78bfa, #67e8f9);
  --grad-glow: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(139,92,246,0.3));
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255,255,255,0.07);
  --border-glow: rgba(99,102,241,0.4);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
  --shadow-glow-blue: 0 0 40px rgba(59,130,246,0.25), 0 0 80px rgba(59,130,246,0.1);
  --shadow-glow-purple: 0 0 40px rgba(139,92,246,0.25), 0 0 80px rgba(139,92,246,0.1);
  --shadow-btn: 0 8px 32px rgba(99,102,241,0.4);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-theme="light"] {
  --bg-primary: #faf9f4;
  --bg-secondary: #f4f5ff;
  --bg-card: rgba(15, 23, 42, 0.045);
  --bg-card-hover: rgba(15, 23, 42, 0.085);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.99), rgba(247,250,255,0.95));
  --text-primary: #0b1220;
  --text-secondary: #334155;
  --text-muted: #526176;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(59, 130, 246, 0.34);
  --grad-main: linear-gradient(135deg, #2563eb, #7c3aed, #0891b2);
  --grad-text: linear-gradient(135deg, #1e40af, #6d28d9, #0f766e);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.07), 0 1px 0 rgba(255,255,255,0.8) inset;
  --shadow-btn: 0 10px 28px rgba(59, 130, 246, 0.25);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(59,130,246,0.08), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(139,92,246,0.06), transparent 34%),
    var(--bg-primary);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-violet) var(--bg-secondary);
  overflow-x: clip;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-violet); border-radius: 4px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: auto;
  position: relative;
  isolation: isolate;
}

body.ultra-ui .hero-grid {
  background-size: 56px 56px;
  opacity: 0.95;
  animation: grid-drift 14s linear infinite;
}

@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(28px, 28px, 0); }
}

body.ultra-ui .glass-card {
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

body.ultra-ui .section-title .gradient-text {
  filter: drop-shadow(0 8px 22px rgba(99,102,241,0.26));
}

body.ultra-ui::before,
body.ultra-ui::after {
  content: '';
  position: fixed;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
  animation: ambient-float 18s ease-in-out infinite;
}

body.ultra-ui::before {
  background: radial-gradient(circle, rgba(59,130,246,0.42), transparent 70%);
  top: -14vmax;
  left: -10vmax;
}

body.ultra-ui::after {
  background: radial-gradient(circle, rgba(139,92,246,0.35), transparent 70%);
  right: -12vmax;
  bottom: -16vmax;
  animation-delay: -9s;
}

@keyframes ambient-float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(2.2vmax,-1.6vmax,0) scale(1.06); }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- CUSTOM CURSOR ---- */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(99,102,241,0.6);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hover {
  width: 48px; height: 48px;
  border-color: var(--accent-purple);
  background: rgba(139,92,246,0.08);
}

/* Default cursor mode */
.cursor-dot,
.cursor-ring {
  display: none;
}

*,
*::before,
*::after {
  cursor: auto !important;
}

a,
.btn,
.nav-link,
.filter-btn,
.pricing-tab,
.slider-dot,
.social-link,
.whatsapp-btn,
.back-to-top,
.project-demo-btn,
.nav-toggle {
  cursor: pointer !important;
}

/* ---- PRELOADER ---- */
#preloader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.16), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(139,92,246,0.14), transparent 45%),
    var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }
html.skip-preloader #preloader { display: none !important; }

.preloader-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(6,182,212,0.45);
  background: rgba(6,182,212,0.1);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.preloader-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preloader-bar {
  width: 200px; height: 2px;
  background: var(--border-subtle);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  background: var(--grad-main);
  border-radius: 99px;
  animation: preload 2s ease-in-out forwards;
}

@keyframes preload {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ---- SCROLL PROGRESS ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad-main);
  z-index: 9998;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-blue);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

body.ultra-ui .navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,0.8), rgba(167,139,250,0.9), transparent);
  background-size: 220% 100%;
  opacity: 0.55;
  animation: nav-line-shift 8s linear infinite;
  pointer-events: none;
}

@keyframes nav-line-shift {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}

.navbar.scrolled {
  background: rgba(5, 8, 16, 0.85);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: rgba(15,23,42,0.12);
}

html[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px rgba(15,23,42,0.12);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 52px;
  max-width: 250px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-logo-image {
  display: block;
  width: auto;
  object-fit: contain;
}

.navbar .brand-logo-image {
  height: 34px;
  max-width: 230px;
}

.brand-logo-footer {
  height: 50px;
  max-width: 280px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

html[data-theme="light"] .nav-link {
  color: #334155;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
  color: #0b1220;
  background: rgba(15,23,42,0.08);
}

.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega Dropdown */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 480px;
  background: rgba(8, 13, 26, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border-subtle);
}

html[data-theme="light"] .mega-dropdown {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 40px rgba(15,23,42,0.14), 0 0 0 1px var(--border-subtle);
}

.nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.dropdown-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.dropdown-icon {
  width: 36px; height: 36px;
  background: var(--grad-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dropdown-text { font-size: 0.8rem; }
.dropdown-text strong { display: block; font-weight: 600; color: var(--text-primary); font-size: 0.875rem; margin-bottom: 2px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-moon { display: inline-flex; }
html[data-theme="light"] .theme-icon-sun { display: none; }

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-glow);
  background: rgba(99,102,241,0.12);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255,255,255,0.75);
}

html[data-theme="light"] .btn-outline {
  background: rgba(255,255,255,0.82);
  color: #1e293b;
  border-color: rgba(15,23,42,0.14);
}

html[data-theme="light"] .btn-outline:hover {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.34);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(37,99,235,0.14);
}

html[data-theme="light"] .section-label {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.22);
  color: #1d4ed8;
}

html[data-theme="light"] .section-label::before {
  background: #2563eb;
  box-shadow: 0 0 10px rgba(37,99,235,0.4);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99,102,241,0.5); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

/* Ripple */
.btn-primary .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-violet);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 20px rgba(99,102,241,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 11px 16px;
}

.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }

.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ---- SECTION COMMONS ---- */
.section {
  padding: 120px 5%;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-violet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-violet);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-violet);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-title .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.75;
}

.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 140deg, rgba(103,232,249,0), rgba(103,232,249,0.45), rgba(167,139,250,0.55), rgba(103,232,249,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
  z-index: 0;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-8px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.2), var(--shadow-glow-purple);
}

html[data-theme="light"] .glass-card {
  background: var(--grad-card);
}

html[data-theme="light"] .glass-card:hover {
  border-color: rgba(59,130,246,0.28);
  box-shadow: 0 14px 30px rgba(15,23,42,0.11), 0 0 0 1px rgba(59,130,246,0.12);
}

html[data-theme="light"] .glass-card:hover h1,
html[data-theme="light"] .glass-card:hover h2,
html[data-theme="light"] .glass-card:hover h3,
html[data-theme="light"] .glass-card:hover h4,
html[data-theme="light"] .glass-card:hover p,
html[data-theme="light"] .glass-card:hover li,
html[data-theme="light"] .glass-card:hover span {
  color: inherit;
}

.glass-card:hover::before { opacity: 1; }
.glass-card:hover::after { opacity: 0.88; }

.btn-primary {
  isolation: isolate;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -130%;
  left: -35%;
  width: 38%;
  height: 360%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.42), rgba(255,255,255,0));
  transform: rotate(24deg);
  filter: blur(1px);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: btn-sheen 1.15s ease forwards;
}

@keyframes btn-sheen {
  from { left: -35%; }
  to { left: 118%; }
}

@media (prefers-reduced-motion: reduce) {
  body.ultra-ui::before,
  body.ultra-ui::after,
  body.ultra-ui .navbar::after {
    animation: none !important;
  }

  .glass-card,
  .glass-card:hover {
    transform: none !important;
  }

  .btn-primary:hover::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ---- GRID LAYOUTS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-zoom.active { opacity: 1; transform: scale(1); }

/* Stagger delay */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .nav-logo { font-size: 1.6rem; margin-bottom: 16px; display: inline-block; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.social-link:hover {
  background: rgba(99,102,241,0.15);
  border-color: var(--border-glow);
  color: var(--text-primary);
  box-shadow: 0 0 16px rgba(99,102,241,0.2);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--text-primary); }
.footer-links a:hover::before { content: '→'; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- WHATSAPP BUTTON ---- */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: all var(--transition-spring);
  animation: float-wa 3s ease-in-out infinite;
}

.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37,211,102,0.5); }

@keyframes float-wa {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 100px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(99,102,241,0.15);
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ---- SVG DIVIDERS ---- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}

.wave-divider svg { display: block; width: 100%; }

/* ---- HAMBURGER ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orb-float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-blue), transparent);
  top: -200px; right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-purple), transparent);
  bottom: -100px; left: -100px;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-cyan), transparent);
  top: 40%; left: 40%;
  animation-delay: -2s;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-violet);
  margin-bottom: 28px;
  animation: fadeDown 0.8s ease both;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.2s both;
  text-wrap: balance;
}

.hero-title .line { display: block; }

.hero-title .highlight {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300%;
  animation: gradient-shift 5s ease infinite, fadeUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin: 0 auto 40px;
  max-width: 670px;
  animation: fadeUp 0.8s ease 0.35s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  justify-content: center;
  text-align: center;
  animation: fadeUp 0.8s ease 0.65s both;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* ---- TYPING EFFECT ---- */
.typing-wrap { display: inline; }

.typed-text { border-right: 2px solid var(--accent-cyan); }

/* ---- FLOATING SHAPES ---- */
.float-shape {
  position: absolute;
  border-radius: 50%;
  animation: float-shape 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-shape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* ---- KEYFRAMES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- SERVICES ---- */
.service-card {
  padding: 32px;
  position: relative;
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--grad-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-smooth);
}

.service-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.glass-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-card .learn-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-violet);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.glass-card:hover .learn-more { gap: 10px; }

.service-card-number {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}

/* ---- TECH GRID ---- */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--transition-smooth);
  text-align: center;
}

.tech-item:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.06);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(99,102,241,0.15);
}

.tech-icon { font-size: 2.2rem; }
.tech-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.tech-name { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

/* ---- PROCESS ---- */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 48px;
}

.process-step:last-child { padding-bottom: 0; }

.process-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-number {
  width: 52px; height: 52px;
  background: var(--grad-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: white;
  box-shadow: 0 0 24px rgba(99,102,241,0.4);
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  margin-top: 12px;
  min-height: 48px;
  background: linear-gradient(to bottom, var(--accent-violet), transparent);
}

.process-step:last-child .step-line { display: none; }

.step-content { padding-top: 12px; }

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---- STATS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.stat-card:hover::after { transform: scaleX(1); }

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  padding-right: 0.1em;
  overflow: visible;
}

.hero-stat-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  padding-right: 0.1em;
  overflow: visible;
}

.stat-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* ---- INDUSTRIES ---- */
.industry-card {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.industry-card::after {
  content: attr(data-hover);
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-smooth);
}

.glass-card:hover.industry-card::after { opacity: 1; transform: translateX(0); }

.industry-icon { font-size: 2rem; flex-shrink: 0; }

.industry-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.industry-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ---- TESTIMONIALS ---- */
.testimonials-slider { position: relative; overflow: hidden; }

.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  padding: 32px;
}

.testimonial-stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}

.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: none;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-violet);
}

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad-main);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.15;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}

.cta-orb {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.cta-orb-1 { background: var(--accent-blue); top: -100px; left: -100px; }
.cta-orb-2 { background: var(--accent-purple); bottom: -100px; right: -100px; }

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-inner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-inner .hero-actions { justify-content: center; }

/* ---- PRICING ---- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  width: fit-content;
  margin: 0 auto 48px;
}

.pricing-tab {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: none;
  transition: all var(--transition-fast);
}

.pricing-tab.active {
  background: var(--grad-main);
  color: white;
  box-shadow: var(--shadow-btn);
}

.pricing-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-grid.active { display: grid; }

.pricing-card {
  padding: 30px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pricing-card.featured {
  border-color: rgba(99,102,241,0.4) !important;
  transform: scale(1.015);
  overflow: visible;
  padding-top: 52px;
  background: linear-gradient(145deg, rgba(99,102,241,0.1), rgba(99,102,241,0.03)) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.3), var(--shadow-glow-purple) !important;
}

.popular-badge {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-main);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: var(--shadow-btn); }
  50% { box-shadow: 0 8px 32px rgba(99,102,241,0.7); }
}

.pricing-plan { font-size: 0.85rem; font-weight: 600; color: var(--accent-violet); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span { font-size: 1.2rem; font-weight: 500; color: var(--text-muted); vertical-align: super; }

.pricing-desc { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.55; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
}

.form-group { position: relative; margin-bottom: 24px; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder, .form-textarea::placeholder { color: transparent; }

.form-label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
  background: transparent;
}

.form-input:focus,
.form-input:not(:placeholder-shown) { border-color: var(--border-glow); box-shadow: 0 0 0 3px rgba(99,102,241,0.12), inset 0 0 0 1px rgba(99,102,241,0.1); }

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--accent-violet);
  background: var(--bg-primary);
  padding: 0 6px;
}

.form-textarea { resize: vertical; min-height: 120px; padding-top: 18px; }
.form-textarea ~ .form-label { top: 20px; transform: none; }
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label { top: 0; transform: translateY(-50%); font-size: 0.75px; color: var(--accent-violet); background: var(--bg-primary); padding: 0 6px; font-size: 0.75rem; }

.form-select {
  appearance: none;
  cursor: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.form-select option { background: var(--bg-secondary); }
.form-select:focus { border-color: var(--border-glow); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-info-card {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 48px; height: 48px;
  background: var(--grad-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-card h4 { font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-card p { font-size: 0.88rem; color: var(--text-secondary); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); margin-top: 24px; }
.map-embed iframe { display: block; width: 100%; height: 240px; filter: grayscale(100%) invert(90%) brightness(0.8); }

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 160px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0.3;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.team-card {
  padding: 28px 20px;
  text-align: center;
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.team-card h4 { font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; }
.team-card p { font-size: 0.82rem; color: var(--accent-violet); }

/* ---- PORTFOLIO ---- */
.portfolio-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: none;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: var(--text-primary);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: none;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,16,0.92), rgba(5,8,16,0.28) 58%, rgba(5,8,16,0.08) 100%);
  opacity: 1;
  transition: background var(--transition-smooth), transform var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.glass-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(5,8,16,0.95), rgba(5,8,16,0.38) 60%, rgba(5,8,16,0.12) 100%);
}

.portfolio-overlay h4 { font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; color: #f8fafc; }
.portfolio-overlay p { font-size: 0.82rem; color: #cbd5e1; }

.project-demo-btn {
  margin-top: 12px;
  border: 1px solid rgba(99,102,241,0.45);
  background: rgba(99,102,241,0.15);
  color: var(--text-primary);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  transition: all var(--transition-fast);
}

.project-demo-btn:hover {
  background: rgba(99,102,241,0.25);
  box-shadow: 0 8px 20px rgba(99,102,241,0.2);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .project-modal-backdrop {
  background: rgba(15,23,42,0.28);
}

.project-modal-dialog {
  position: relative;
  width: min(840px, calc(100% - 28px));
  margin: 7vh auto 0;
  padding: 26px;
  z-index: 1;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s ease;
}

html[data-theme="light"] .project-modal-dialog {
  background: #ffffff;
  border-color: rgba(15,23,42,0.12);
  box-shadow: 0 22px 70px rgba(15,23,42,0.2);
}

.project-modal.open .project-modal-dialog {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
}

.project-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.project-modal-kicker {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

html[data-theme="light"] .project-modal-top h3,
html[data-theme="light"] .project-modal-overview,
html[data-theme="light"] .project-modal-meta h4,
html[data-theme="light"] .project-pill-wrap span,
html[data-theme="light"] .project-modal-close {
  color: #1e293b;
}

html[data-theme="light"] .project-pill-wrap span {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.14);
}

html[data-theme="light"] .project-modal-kicker {
  color: #475569;
}

html[data-theme="light"] .project-modal-close:hover {
  background: rgba(15,23,42,0.06);
}

.project-modal-top h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.2;
}

.project-modal-timeline {
  font-size: 0.76rem;
  font-weight: 700;
  color: #67e8f9;
  border: 1px solid rgba(103,232,249,0.35);
  border-radius: 999px;
  padding: 6px 10px;
}

html[data-theme="light"] .project-modal-timeline {
  color: #0e7490;
  border-color: rgba(14,116,144,0.35);
  background: rgba(6,182,212,0.08);
}

.project-modal-overview {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-modal-meta h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.project-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-pill-wrap span {
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.project-modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .process-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .service-split {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
    direction: ltr !important;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid.active { display: flex; flex-direction: column; }
  .pricing-card.featured {
    transform: none;
    padding-top: 34px;
  }
  .popular-badge {
    top: 8px;
    font-size: 0.7rem;
    padding: 5px 12px;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .testimonial-card { flex: 0 0 calc(100% - 0px); }
  .cta-inner { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .nav-logo { height: 44px; max-width: 172px; }
  .navbar .brand-logo-image { height: 24px; max-width: 150px; }
  .brand-logo-footer { height: 42px; max-width: 220px; }
  .nav-actions { gap: 8px; }
  .theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.85rem;
  }
  .nav-actions .btn-primary {
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
    padding: 9px 12px;
    font-size: 0.72rem;
    border-radius: 10px;
  }
  .nav-menu, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.mobile-open {
    position: absolute;
    top: 74px;
    left: 5%;
    right: 5%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(5, 8, 16, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    z-index: 1200;
  }
  html[data-theme="light"] .nav-menu.mobile-open {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(15,23,42,0.14);
  }
  .nav-menu.mobile-open .nav-item {
    width: 100%;
  }
  .nav-menu.mobile-open .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
  }
  .nav-menu.mobile-open .nav-link:hover {
    border-color: var(--border-subtle);
  }
  .nav-menu.mobile-open .mega-dropdown {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .nav-menu.mobile-open .nav-item:hover .mega-dropdown {
    display: grid;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { padding: 24px 12px; min-width: 0; }
  .stat-number { font-size: clamp(1.8rem, 8vw, 2.3rem); letter-spacing: -0.01em; }
  .section { padding: 80px 5%; }
  .hero { padding: 100px 5% 60px; }
  .hero-title { font-size: clamp(2rem, 11vw, 3.4rem); line-height: 1.1; }
  .hero-subtitle { font-size: 0.96rem; max-width: 100%; }
  .hero-stats { gap: 16px; margin-top: 44px; padding-top: 24px; }
  .process-layout .glass-card[style*="padding:48px"] { padding: 28px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .mega-dropdown { width: 90vw; left: 50%; }
  .project-modal-dialog {
    width: calc(100% - 16px);
    padding: 16px;
    margin-top: 2vh;
    max-height: 90vh;
    overflow-y: auto;
  }
  .project-modal-top { flex-direction: column; align-items: flex-start; }
  .project-modal-meta { grid-template-columns: 1fr; }
  .glass-card, .glass-card:hover { transform: none !important; }
}


