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

:root {
  --dark-blue: #0a1628;
  --navy: #132744;
  --blue: #1a3a6b;
  --accent: #2b7be4;
  --accent-hover: #1a6ad0;
  --white: #ffffff;
  --off-white: #f4f7fb;
  --light-gray: #e2e8f0;
  --gray: #94a3b8;
  --text: #1e293b;
  --text-light: #64748b;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

.text-center {
  text-align: center;
  margin-top: 40px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark-blue);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

/* === Header === */
.site-header {
  background: var(--dark-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.logo img {
  height: 40px;
}

.logo-text {
  color: var(--white);
}

.logo-highlight {
  color: var(--accent);
}

.nav-main ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-main a {
  color: var(--light-gray);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-main a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

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

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--navy) 50%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(43, 123, 228, 0.2);
  color: #7bb3f0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(43, 123, 228, 0.3);
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Trust Stats === */
.trust-stats {
  background: var(--white);
  padding: 60px 0;
  border-bottom: 1px solid var(--light-gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

/* === Sections === */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--dark-blue);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* === About Preview === */
.about-preview {
  background: var(--off-white);
}

.about-preview .container {
  max-width: 800px;
  text-align: center;
}

.about-preview p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text);
}

/* === Solutions Grid === */
.solutions {
  background: var(--white);
}

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

.solution-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--light-gray);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.solution-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.solution-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* === Services === */
.services-overview {
  background: var(--off-white);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--light-gray);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  font-size: 20px;
  color: var(--dark-blue);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* === Partners === */
.partners {
  background: var(--white);
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 24px;
  align-items: center;
}

.partner-logo {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
}

.partner-logo img {
  max-height: 50px;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--dark-blue), var(--blue));
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 36px;
}

.cta-section p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 32px;
}

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, var(--dark-blue), var(--navy));
  color: var(--white);
  padding: 60px 0 48px;
}

.page-header h1 {
  font-size: 36px;
}

.page-header .lead {
  color: var(--gray);
  font-size: 17px;
  margin-top: 12px;
  max-width: 600px;
}

/* === Page Content === */
.page-content {
  padding: 60px 0;
  min-height: 40vh;
}

.page-content h2 {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 26px;
}

.page-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text);
}

.page-content ul, .page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* === Blog Posts === */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.post-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--light-gray);
  transition: all 0.3s;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.post-card h2 {
  text-align: left;
  font-size: 20px;
  margin-bottom: 8px;
}

.post-card h2 a {
  color: var(--dark-blue);
}

.post-card time {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.post-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

/* === Footer === */
.site-footer {
  background: var(--dark-blue);
  color: var(--gray);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--gray);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

/* === Responsive === */
@media (max-width: 992px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-main.open {
    display: block;
  }

  .nav-main ul {
    flex-direction: column;
  }

  .nav-main a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-toggle {
    display: flex;
  }

  section {
    padding: 50px 0;
  }

  section h2 {
    font-size: 26px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43, 123, 228, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(43, 123, 228, 0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-ctas {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.stat-item {
  animation: countUp 0.5s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.solution-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.solution-card:hover .solution-icon {
  transform: scale(1.15);
}

.solution-icon {
  transition: transform 0.3s ease;
}

.partner-logos {
  animation: fadeIn 0.8s ease-out;
}

.partner-logo {
  transition: all 0.4s ease;
}

.partner-logo:hover {
  transform: scale(1.1);
}

.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
}

.cta-section .btn {
  animation: pulseGlow 2s infinite;
}

.post-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
  transform: translateY(-4px);
}

.nav-main a {
  position: relative;
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-main a:hover::after {
  transform: scaleX(1);
}

.btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

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

.trust-stats .stat-number {
  display: inline-block;
}

.page-header {
  animation: fadeInUp 0.6s ease-out;
}

.page-content {
  animation: fadeIn 0.8s ease-out 0.1s both;
}
