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

:root {
  --blue: #1a56db;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --blue-mid: #dbeafe;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --white: #ffffff;
  --off-white: #f8faff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #0ea5e9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 32px rgba(26,86,219,0.08);
  --shadow-lg: 0 16px 64px rgba(26,86,219,0.14);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===================== CURSOR ===================== */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-follower {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--blue-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  opacity: 0.6;
}
body:hover .cursor { opacity: 1; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
em { font-style: normal; color: var(--blue); }

.label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid var(--blue-mid);
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(.22,1,.36,1);
  border: none; cursor: none;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,86,219,0.35); }
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
  padding: 14px 24px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  transition: all 0.2s;
  cursor: none;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }

.btn-sm { padding: 11px 22px; font-size: 0.88rem; }
.btn-full { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

/* ===================== NAV ===================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; gap: 40px;
  max-width: 1180px; margin: 0 auto; padding: 20px 32px;
  justify-content: space-between;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo .dot { color: var(--blue); }
.nav-links {
  display: flex; gap: 36px; margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--blue);
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #1343b8; transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  padding: 0 32px 16px;
  background: rgba(255,255,255,0.98);
}
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--ink-soft);
}
.mobile-menu.open { display: flex; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  background: var(--off-white);
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
#particleCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,86,219,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--blue-pale);
  border: 1px solid var(--blue-mid);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  display: flex; flex-direction: column;
  margin-bottom: 24px;
  line-height: 1.08;
}
.hero-title .line { display: block; font-family: Georgia, 'Times New Roman', Times, serif}
.hero-title .accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-muted); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--blue-light), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ===================== MARQUEE ===================== */
.marquee-wrapper {
  background: var(--blue);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 32px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track .sep { color: rgba(255,255,255,0.35); font-size: 0.7rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== SERVICES ===================== */
.services {
  padding: 120px 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
  background: var(--white);
}
.service-hover-line {
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(to right, var(--blue), var(--accent));
  transition: width 0.4s cubic-bezier(.22,1,.36,1);
}
.service-card:hover .service-hover-line { width: 100%; }
.service-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  transition: all 0.3s;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--blue); color: white; }
.service-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 20px; }
.service-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service-tags li {
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--blue-mid);
}
.service-card--cta {
  background: linear-gradient(135deg, var(--ink) 0%, #1e3a5f 100%);
  border-color: transparent;
  display: flex; align-items: center; justify-content: center;
}
.service-card--cta:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(15,23,42,0.3); }
.cta-card-content { position: relative; z-index: 2; text-align: center; }
.cta-card-content h3 { color: white; margin-bottom: 12px; }
.cta-card-content p { color: rgba(255,255,255,0.65); margin-bottom: 24px; font-size: 0.92rem; }
.cta-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===================== PROCESS ===================== */
.process {
  padding: 120px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.process-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--blue-mid), var(--blue-light), var(--blue-mid));
  margin-top: 32px;
  position: relative;
}
.process-connector::after {
  content: '';
  position: absolute; right: -1px; top: -4px;
  border-left: 8px solid var(--blue-light);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.process-step {
  flex: 0 0 200px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.step-number {
  width: 60px; height: 60px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(26,86,219,0.3);
  transition: all 0.3s;
}
.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(26,86,219,0.45);
}
.step-body h4 { margin-bottom: 8px; font-size: 1rem; }
.step-body p { color: var(--ink-muted); font-size: 0.85rem; line-height: 1.6; }

/* ===================== STATS ===================== */
.stats {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--ink) 0%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative; z-index: 1;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  display: inline;
}
.stat-suffix {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--blue-light);
  display: inline;
}
.stat-label {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials {
  padding: 120px 0;
  background: var(--white);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s;
  position: relative;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-mid);
}
.testi-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testi-card > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author {
  display: flex; align-items: center; gap: 14px;
}
.avatar {
  width: 44px; height: 44px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.9rem; font-weight: 600; }
.testi-author span { font-size: 0.78rem; color: var(--ink-muted); }

/* ===================== CONTACT ===================== */
.contact {
  padding: 120px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-left h2 { margin: 8px 0 16px; }
.contact-left > p { color: var(--ink-muted); line-height: 1.7; margin-bottom: 36px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-soft); font-size: 0.9rem;
}
.contact-info-item svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--off-white);
  outline: none;
  transition: all 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-muted); }
.form-group select { cursor: none; }
#submitBtn svg { width: 18px; height: 18px; transition: transform 0.2s; }
#submitBtn:hover svg { transform: translateX(4px); }

.form-success {
  display: none;
  align-items: center; gap: 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 12px;
}
.form-success svg { width: 18px; height: 18px; }
.form-success.show { display: flex; animation: fadeInUp 0.4s ease; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink);
  padding: 72px 0 0;
}
.footer-inner {
  display: flex; gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { flex: 0 0 260px; }
.footer-brand .logo { color: white; font-size: 1.3rem; display: inline-block; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.7; }
.footer-links { display: flex; gap: 80px; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 {
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a { color: rgba(255,255,255,0.45); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .process-connector { display: none; }
  .process-step { flex: 0 0 calc(50% - 16px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-brand { flex: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .contact-form { padding: 28px 20px; }
  .hero-scroll-hint {
    display: none;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-step { flex: 0 0 100%; }
  .cursor {display: none;}
  .cursor-follower {display: none;}
}
