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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.text-center { text-align: center; }

/* ===========================
   TYPOGRAPHY
   =========================== */
.section-label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 40rem;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: #1e40af;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: #3b82f6;
}

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #1e40af;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}

/* Hamburger menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  gap: 0.5rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f8fafc;
}

.nav-mobile a:hover {
  color: #1e40af;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: #e0e7ff;
  border-color: rgba(199, 210, 254, 0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #c7d2fe;
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #334155 100%);
  color: #ffffff;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated dots/grid pattern */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #bfdbfe;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
}

.hero h1 .accent {
  display: block;
  color: #93c5fd;
  margin-top: 0.25rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: #bfdbfe;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .hero-desc { font-size: 1.25rem; }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

/* Decorative wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

/* Stats bar */
.stats-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem 1.5rem;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-inner { grid-template-columns: repeat(4, 1fr); }
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #1e40af;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
  background: #f8fafc;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 0;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
  border-color: #bfdbfe;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon.blue  { background: #2563eb; }
.service-icon.slate { background: #475569; }

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: #ffffff;
  stroke: #ffffff;
}

.service-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: #374151;
  font-size: 0.975rem;
}

.service-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  stroke: #16a34a;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how-it-works {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #334155 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.how-it-works .section-title { color: #ffffff; }
.how-it-works .section-subtitle { color: #93c5fd; }

.steps-grid {
  display: grid;
  gap: 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Connecting line */
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: calc(16.67% + 1rem);
    right: calc(16.67% + 1rem);
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.4), rgba(255,255,255,0.15));
  }
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 5rem;
  height: 5rem;
  background: #ffffff;
  color: #1e40af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.step p {
  color: #93c5fd;
  line-height: 1.7;
  font-size: 0.975rem;
}

.how-cta {
  text-align: center;
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
}

.how-cta p {
  font-size: 1.125rem;
  font-weight: 700;
  color: #bfdbfe;
}

/* ===========================
   TEAM SECTION
   =========================== */
.team {
  background: #ffffff;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-card {
  background: #f8fafc;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.team-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.team-avatar svg {
  width: 3rem;
  height: 3rem;
  fill: #ffffff;
}

.avatar-blue  { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.avatar-slate { background: linear-gradient(135deg, #475569, #334155); }
.avatar-mixed { background: linear-gradient(135deg, #1d4ed8, #475569); }

.team-photo {
  object-fit: cover;
  border: 4px solid #e2e8f0;
}

.team-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.875rem;
}

.team-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

.team-linkedin:hover {
  color: #1d4ed8;
}

.team-linkedin svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
  background: #f8fafc;
}

.contact-wrapper {
  max-width: 42rem;
  margin: 0 auto;
}

.contact-form-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

@media (min-width: 768px) {
  .contact-form-card { padding: 3rem; }
}

.form-group {
  margin-bottom: 1.375rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.625rem;
  font-size: 1rem;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

textarea.form-input {
  resize: vertical;
  min-height: 8rem;
}

.form-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.375rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 4rem;
  height: 4rem;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.form-success-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: #16a34a;
}

.form-success h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: #64748b;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #0f172a;
  color: #ffffff;
  padding: 3.5rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.footer-logo span {
  color: #60a5fa;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-copy {
  color: #475569;
  font-size: 0.8rem;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.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; }
