/* ===== RESET & CUSTOM PROPERTIES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --royal: #1a3a8f;
  --royal-deep: #0d2157;
  --royal-dark: #091638;
  --royal-light: #2952c4;
  --royal-bright: #3b6ff0;
  --royal-pale: #e8edfb;
  --royal-mist: #f1f4fd;
  --gold: #c9a84c;
  --gold-light: #e2c76a;
  --gold-glow: rgba(201, 168, 76, 0.3);
  --silver: #b8c4d8;
  --gradient-royal: linear-gradient(135deg, #0d2157 0%, #1a3a8f 50%, #2952c4 100%);
  --gradient-hero: linear-gradient(160deg, #091638 0%, #0d2157 30%, #1a3a8f 60%, #162e6e 100%);
  --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #e2c76a 50%, #c9a84c 100%);
  --gradient-card: linear-gradient(180deg, rgba(26,58,143,0.03) 0%, rgba(26,58,143,0) 100%);
  --white: #ffffff;
  --off-white: #f7f8fc;
  --text: #1e293b;
  --text-light: #556a8a;
  --text-muted: #8898b5;
  --border: rgba(26, 58, 143, 0.1);
  --border-light: rgba(26, 58, 143, 0.06);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 4px rgba(13,33,87,0.04);
  --shadow: 0 4px 24px rgba(13,33,87,0.07);
  --shadow-lg: 0 12px 48px rgba(13,33,87,0.1);
  --shadow-xl: 0 24px 64px rgba(13,33,87,0.14);
  --shadow-royal: 0 8px 32px rgba(26,58,143,0.25);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.25);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.25s ease;
  --transition-slow: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a { color: var(--royal-light); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--royal-bright); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { color: var(--royal-deep); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-light); }

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

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

/* ===== LAYOUT ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--royal-pale);
  border: 1px solid rgba(26,58,143,0.12);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--royal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.section-header { text-align: center; margin-bottom: 68px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-14px) rotate(1deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(14px) rotate(-1deg); }
  66% { transform: translateY(8px) rotate(1deg); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 60% 40% 30% 60%; }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes draw-line {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes counter-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--gold); }
}
@keyframes particle-rise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-120px) scale(0); opacity: 0; }
}
@keyframes border-dance {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.12s; }
.animate-on-scroll.delay-2 { transition-delay: 0.24s; }
.animate-on-scroll.delay-3 { transition-delay: 0.36s; }
.animate-on-scroll.delay-4 { transition-delay: 0.48s; }
.animate-on-scroll.delay-5 { transition-delay: 0.60s; }

.animate-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-left.visible { opacity: 1; transform: translateX(0); }

.animate-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-right.visible { opacity: 1; transform: translateX(0); }

.animate-scale { opacity: 0; transform: scale(0.88); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-scale.visible { opacity: 1; transform: scale(1); }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  box-shadow: 0 1px 12px rgba(13,33,87,0.06);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: var(--transition-fast);
}

.navbar.scrolled .logo { color: var(--royal-deep); }
.logo span { color: var(--gold); }

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.navbar.scrolled .nav-links a { color: var(--text-light); }
.navbar.scrolled .nav-links a:hover { color: var(--royal); background: var(--royal-pale); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--royal-dark) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold) !important;
}

.navbar.scrolled .nav-cta {
  background: var(--royal) !important;
  color: var(--white) !important;
}

.navbar.scrolled .nav-cta:hover {
  background: var(--royal-light) !important;
  box-shadow: var(--shadow-royal) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.navbar.scrolled .nav-toggle span { background: var(--royal-deep); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: width 0.6s ease, height 0.6s ease, top 0.6s ease, left 0.6s ease;
  transform: translate(-50%, -50%);
}

.btn:active::after { width: 300px; height: 300px; }

.btn-primary {
  background: var(--gradient-royal);
  color: var(--white);
  box-shadow: var(--shadow-royal);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26,58,143,0.35);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--royal-dark);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn-gold:hover {
  color: var(--royal-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  color: var(--white);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--royal);
  border: 2px solid var(--royal);
}

.btn-outline:hover {
  background: var(--royal);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-royal);
}

.btn-lg { padding: 18px 44px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(3px); }

/* ===== HERO ===== */
.hero {
  padding: 0;
  background: var(--gradient-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: morph 15s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(41,82,196,0.2);
  top: -15%;
  right: -8%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 450px;
  height: 450px;
  background: rgba(201,168,76,0.08);
  bottom: -10%;
  left: -8%;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(59,111,240,0.12);
  top: 50%;
  left: 40%;
  animation-delay: -10s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particle-rise 4s ease-in infinite;
}

.particle:nth-child(1) { left: 10%; bottom: 0; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; bottom: 0; animation-delay: 0.8s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 45%; bottom: 0; animation-delay: 1.6s; }
.particle:nth-child(4) { left: 60%; bottom: 0; animation-delay: 2.4s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 78%; bottom: 0; animation-delay: 3.2s; width: 3px; height: 3px; }
.particle:nth-child(6) { left: 90%; bottom: 0; animation-delay: 1.2s; }
.particle:nth-child(7) { left: 35%; bottom: 0; animation-delay: 2s; width: 2px; height: 2px; }
.particle:nth-child(8) { left: 70%; bottom: 0; animation-delay: 0.4s; }

/* Decorative line */
.hero-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.15), transparent);
  transform: translateY(-50%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-gold 2s infinite;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.08;
  animation: fadeInUp 1s ease forwards;
}

.hero-content h1 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

.hero-content > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  line-height: 1.85;
  max-width: 500px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.hero-stat { position: relative; }

.hero-stat::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

.hero-stat:last-child::after { display: none; }

.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Hero Visual - Phone */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 1s ease 0.5s forwards;
  opacity: 0;
}

.phone-stack { position: relative; width: 320px; height: 620px; }

.phone-mockup {
  position: absolute;
  width: 270px;
  height: 540px;
  background: var(--royal-dark);
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  transition: var(--transition-slow);
}

.phone-mockup-1 {
  top: 0;
  left: 0;
  z-index: 3;
  animation: float 7s ease-in-out infinite;
}

.phone-mockup-2 {
  top: 50px;
  left: 65px;
  z-index: 2;
  opacity: 0.6;
  transform: scale(0.9);
  animation: float-reverse 7s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: var(--royal-dark);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-screen-1 { background: linear-gradient(180deg, #1a3a8f 0%, #2952c4 100%); }
.phone-screen-2 { background: linear-gradient(180deg, #c9a84c 0%, #a68a38 100%); }

.phone-app-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.phone-app-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 140px;
}

.phone-bar {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.phone-bar:nth-child(2) { width: 75%; }
.phone-bar:nth-child(3) { width: 55%; }

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-xl);
  z-index: 10;
  border: 1px solid rgba(26,58,143,0.08);
}

.floating-card-1 {
  top: 50px;
  right: -50px;
  animation: float 5s ease-in-out infinite;
  animation-delay: -1.5s;
}

.floating-card-2 {
  bottom: 70px;
  left: -35px;
  animation: float-reverse 5.5s ease-in-out infinite;
  animation-delay: -3s;
}

.floating-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.floating-card-title { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.floating-card-value { font-size: 1.05rem; font-weight: 800; color: var(--royal-deep); }

/* ===== TRUSTED BY ===== */
.trusted-section {
  padding: 56px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.trusted-section p {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 600;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.trusted-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--royal-deep);
  opacity: 0.18;
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.trusted-logo:hover { opacity: 0.5; }

/* ===== SERVICES ===== */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-royal);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,58,143,0.12);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }

.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-bounce);
}

.service-card:hover .service-icon { transform: scale(1.1) rotate(-3deg); }

.service-icon-1 { background: var(--gradient-royal); }
.service-icon-2 { background: linear-gradient(135deg, #1a3a8f, #3b6ff0); }
.service-icon-3 { background: linear-gradient(135deg, #2952c4, #5b8af5); }
.service-icon-4 { background: linear-gradient(135deg, #c9a84c, #e2c76a); }
.service-icon-5 { background: linear-gradient(135deg, #0d2157, #1a3a8f); }
.service-icon-6 { background: linear-gradient(135deg, #162e6e, #2952c4); }

.service-card h3 { margin-bottom: 12px; }
.service-card > p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

.service-features { display: flex; flex-wrap: wrap; gap: 8px; }

.service-feature {
  padding: 5px 14px;
  background: var(--royal-mist);
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--royal);
  font-weight: 600;
  transition: var(--transition-fast);
}

.service-card:hover .service-feature { background: var(--royal-pale); }

/* ===== ABOUT ===== */
.about-section { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-label { display: inline-flex; }

.about-features { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }

.about-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--transition);
  padding: 4px;
  border-radius: 12px;
}

.about-feature:hover { transform: translateX(6px); }

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--royal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.about-feature:hover .about-feature-icon {
  background: var(--royal);
}

.about-feature:hover .about-feature-icon svg { stroke: white; }

.about-feature h4 { margin-bottom: 4px; color: var(--royal-deep); }
.about-feature p { font-size: 0.88rem; margin-bottom: 0; }

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--white);
  padding: 36px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-royal);
  transform: scaleX(0);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-card:nth-child(2) { transform: translateY(24px); }
.stat-card:nth-child(2):hover { transform: translateY(18px); }

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--royal);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== PORTFOLIO ===== */
.portfolio-section { background: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.portfolio-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-image svg { transition: var(--transition); }
.portfolio-card:hover .portfolio-image svg { transform: scale(1.15) rotate(5deg); }

.portfolio-info { padding: 28px; }
.portfolio-info h3 { margin-bottom: 8px; }
.portfolio-info > p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 16px; }

.portfolio-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { padding: 4px 14px; background: var(--royal-mist); border-radius: 8px; font-size: 0.76rem; color: var(--royal); font-weight: 600; }

.portfolio-stats { display: flex; gap: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.portfolio-stat { font-size: 0.8rem; color: var(--text-muted); }
.portfolio-stat strong { color: var(--royal-deep); font-weight: 700; }

/* ===== PROCESS ===== */
.process-section {
  background: var(--gradient-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.process-section .hero-grid {
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.5;
}

.process-section .section-label { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.2); color: var(--gold-light); }
.process-section .section-header h2 { color: var(--white); }
.process-section .section-header p { color: rgba(255,255,255,0.55); }

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

/* Connecting line */
.process-connector {
  position: absolute;
  top: 42px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(201,168,76,0.4), rgba(255,255,255,0.1));
  z-index: 0;
}

.process-card {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.process-number {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 24px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.12);
  color: var(--gold);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.process-card:hover .process-number {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--royal-dark);
  box-shadow: var(--shadow-gold);
  transform: scale(1.1) rotate(-5deg);
}

.process-card h3 { color: var(--white); margin-bottom: 10px; }
.process-card p { color: rgba(255,255,255,0.5); font-size: 0.88rem; }

/* ===== TECH STACK ===== */
.tech-section { background: var(--off-white); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.tech-item {
  background: var(--white);
  padding: 28px 14px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: default;
}

.tech-item:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow);
  border-color: var(--royal);
}

.tech-icon { font-size: 2rem; margin-bottom: 10px; display: block; transition: var(--transition-bounce); }
.tech-item:hover .tech-icon { transform: scale(1.2); }
.tech-item span:last-child { font-size: 0.78rem; font-weight: 600; color: var(--text-light); }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--royal-pale);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(26,58,143,0.1);
}

.testimonial-stars { display: flex; gap: 3px; margin-bottom: 22px; }
.testimonial-star { color: var(--gold); font-size: 1rem; }

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--royal-deep); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-section { background: var(--off-white); }

.faq-grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active { border-color: var(--royal); box-shadow: var(--shadow); }

.faq-question {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--royal-deep);
  transition: var(--transition-fast);
  gap: 16px;
}

.faq-question:hover { color: var(--royal-light); }

.faq-toggle {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--royal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-toggle { background: var(--royal); transform: rotate(45deg); }
.faq-toggle svg { width: 14px; height: 14px; }
.faq-item.active .faq-toggle svg { stroke: white; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 28px 24px; color: var(--text-light); font-size: 0.92rem; line-height: 1.85; }

/* ===== CTA ===== */
.cta-section { padding: 120px 0; background: var(--white); }

.cta-card {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 90px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card .hero-grid {
  mask-image: none;
  -webkit-mask-image: none;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(41,82,196,0.1) 0%, transparent 60%);
}

.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: var(--white); margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Gold border animation */
.cta-card-border {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  padding: 2px;
  background: linear-gradient(90deg, var(--gold), transparent, var(--gold), transparent);
  background-size: 300% 100%;
  animation: border-dance 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--royal-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

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

.footer-brand .logo { color: var(--white); margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 0.88rem; opacity: 0.5; line-height: 1.8; max-width: 280px; }

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-social a svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.6); }
.footer-social a:hover svg { stroke: var(--royal-dark); }

.footer h4 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ===== LEGAL PAGES ===== */
.legal-hero {
  padding: 170px 0 80px;
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

.legal-hero > * { position: relative; z-index: 1; }
.legal-hero h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); animation: fadeInUp 0.8s ease; }
.legal-hero p { color: rgba(255,255,255,0.5); font-size: 0.95rem; animation: fadeInUp 0.8s ease 0.15s both; }

.legal-content { padding: 80px 0; }

.legal-content h2 {
  font-size: 1.35rem;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  color: var(--royal-deep);
}

.legal-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 12px; color: var(--royal); }
.legal-content p, .legal-content li { color: var(--text-light); font-size: 0.92rem; line-height: 1.9; }
.legal-content ul, .legal-content ol { margin: 12px 0 20px 24px; list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 10px; }
.legal-content a { color: var(--royal-light); font-weight: 600; }
.legal-content a:hover { color: var(--royal-bright); }
.legal-content strong { color: var(--text); }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-info-item:hover .contact-icon { transform: scale(1.08) rotate(-5deg); }

.contact-form {
  background: var(--white);
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-form:hover { box-shadow: var(--shadow-lg); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--royal-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--off-white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--royal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26,58,143,0.08);
}

.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 60px; padding-top: 140px; }
  .hero-content > p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .phone-stack { margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats-grid { max-width: 420px; margin: 0 auto; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-connector { display: none; }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active { display: flex; }
  .nav-links a { color: var(--text) !important; padding: 14px 18px; width: 100%; border-radius: 10px; }
  .nav-links a:hover { background: var(--royal-pale) !important; color: var(--royal) !important; }
  .nav-cta { background: var(--royal) !important; color: var(--white) !important; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; }
  .hero .container { padding-top: 120px; padding-bottom: 80px; }
  .hero-stats { gap: 28px; }
  .hero-stat-number { font-size: 1.5rem; }
  .floating-card { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-card { padding: 52px 28px; border-radius: var(--radius-lg); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .stat-card:nth-child(2) { transform: none; }
  .stat-card:nth-child(2):hover { transform: translateY(-6px); }
}

@media (max-width: 480px) {
  .hero-stat::after { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .trusted-logos { gap: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
