/* ============================================
   Vertex Pulse Global - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #1A3C6E;
  --accent: #F5A623;
  --bg: #F8FAFC;
  --dark: #0D1B2A;
  --text: #1A1A2E;
  --muted: #6B7280;
  --white: #ffffff;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(26,60,110,0.10);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { color: var(--muted); line-height: 1.75; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.split-60-40 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.split-40-60 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: center; }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-header h2 { color: var(--text); margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--primary); font-weight: 700; }
.btn-primary:hover { background: #e09415; color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: #152f58; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(13,27,42,0.97); backdrop-filter: blur(12px);
  padding: 12px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo span { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { margin-left: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all var(--transition); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; overflow: hidden;
  background: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1600&q=80') center/cover no-repeat var(--dark);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(13,27,42,0.93) 0%, rgba(26,60,110,0.85) 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.3; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3);
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 24px; line-height: 1.15; }
.hero h1 span { color: var(--accent); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.7); margin-bottom: 40px; min-height: 2em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.75rem; letter-spacing: 0.1em;
}
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--primary); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat-number span { color: var(--accent); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); font-weight: 500; }

/* ---- Cards ---- */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  transition: all var(--transition); position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,60,110,0.06);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(26,60,110,0.15); border-color: var(--border); border-left-color: var(--accent); }
.card-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,60,110,0.08), rgba(245,166,35,0.08));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { color: var(--text); margin-bottom: 10px; }

/* ---- Why Us ---- */
.why-us { background: var(--white); }
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2a5ba8);
  color: var(--white); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.why-item h3 { color: var(--text); margin-bottom: 8px; }

/* ---- Process Steps ---- */
.process { background: var(--bg); }
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 32px; left: 10%; right: 10%;
  height: 2px; background: linear-gradient(to right, var(--primary), var(--accent));
  z-index: 0;
}
.step { flex: 1; text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.step h3 { color: var(--text); margin-bottom: 8px; font-size: 1rem; }

/* ---- Testimonials ---- */
.testimonials { background: var(--dark); }
.testimonials .section-header .label { color: var(--accent); }
.testimonials .section-header h2 { color: var(--white); }
.testimonial-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 32px;
}
.testimonial-card:hover { background: rgba(255,255,255,0.08); }
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { color: rgba(255,255,255,0.75); font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1rem;
}
.author-name { font-weight: 600; color: var(--white); font-size: 0.9rem; }
.author-title { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---- Partners ---- */
.partners { background: var(--white); }
.partners-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.partner-logo {
  padding: 16px 28px; border: 1px solid var(--border); border-radius: 8px;
  font-weight: 700; font-size: 1rem; color: var(--muted);
  transition: all var(--transition); letter-spacing: 0.05em;
}
.partner-logo:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5ba8 100%);
  padding: 100px 0; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 40px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { background: var(--dark); padding: 80px 0 40px; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: gap;
  gap: 16px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.4); font-size: 0.85rem; transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }
.footer-address { color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: 8px; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  position: relative; padding: 180px 0 100px; text-align: center;
  background-size: cover; background-position: center;
  background-color: var(--dark);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.9) 0%, rgba(26,60,110,0.82) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; line-height: 1.2; letter-spacing: -0.01em; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 580px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* ---- Legal Pages ---- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { color: var(--text); margin: 48px 0 16px; font-size: 1.4rem; }
.legal-content h3 { color: var(--text); margin: 32px 0 12px; font-size: 1.1rem; }
.legal-content p { color: var(--muted); margin-bottom: 16px; }
.legal-content ul { margin: 16px 0 16px 24px; }
.legal-content ul li { color: var(--muted); margin-bottom: 8px; list-style: disc; }
.legal-content .last-updated {
  display: inline-block; background: rgba(26,60,110,0.08);
  color: var(--primary); font-size: 0.85rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 40px;
}

/* ---- Image Break Section ---- */
.image-break {
  height: 400px; background-size: cover; background-position: center;
  background-attachment: fixed; position: relative;
}
.image-break::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.5), rgba(26,60,110,0.3));
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.cookie-inner p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; opacity: 0; pointer-events: none;
  transition: all var(--transition); box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--dark); flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--white); font-size: 1.5rem; font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 32px; }
  .stat-item:nth-child(2n) { border-bottom: none; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .split-60-40, .split-40-60 { grid-template-columns: 1fr; gap: 40px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .steps { flex-direction: column; gap: 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .image-break { height: 250px; background-attachment: scroll; }
}
@media (max-width: 480px) {
  .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 24px; }
  .stat-item:last-child { border-bottom: none; }
}
