*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a1628;
  --navy-light: #13203d;
  --navy-mid: #1a2d54;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-dark: #1d4ed8;
  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--blue-dark);
}

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

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

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

/* ── Navbar ───────────────────── */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 68px;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo:hover {
  color: var(--blue-bright);
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 800;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  color: var(--gray-300);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── Hero ─────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(37,99,235,0.25), transparent),
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(13,148,136,0.18), transparent);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: var(--blue-bright);
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-300);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.975rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gray-500);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gray-200);
  color: var(--navy);
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}
.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal-bright);
  margin-bottom: 16px;
  font-weight: 700;
}
.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 4px;
}
.hero-card-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-600);
}
.hero-dot.active {
  background: var(--blue-bright);
  box-shadow: 0 0 12px rgba(59,130,246,0.5);
}

/* ── Section common ───────────── */
.section {
  padding: 90px 0;
}
.section-alt {
  background: var(--gray-50);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Services grid ────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-icon.blue  { background: #dbeafe; color: #1d4ed8; }
.service-icon.teal  { background: #ccfbf1; color: #0f766e; }
.service-icon.purple{ background: #ede9fe; color: #6d28d9; }
.service-icon.amber { background: #fef3c7; color: #b45309; }
.service-icon.rose  { background: #ffe4e6; color: #be123c; }
.service-icon.green { background: #dcfce7; color: #15803d; }
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── Features ─────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 3px;
}
.feature-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 0.925rem;
  color: var(--gray-600);
}
.features-visual {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  color: var(--white);
}
.features-visual h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.features-visual p {
  color: var(--gray-300);
  font-size: 0.975rem;
  margin-bottom: 28px;
  line-height: 1.7;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-tag {
  background: var(--navy-mid);
  color: var(--gray-200);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── CTA banner ───────────────── */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(37,99,235,0.3), transparent);
}
.cta-banner .container {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.cta-banner p {
  font-size: 1.15rem;
  color: var(--gray-300);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero (subpages) ─────── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(37,99,235,0.22), transparent);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--gray-300);
  max-width: 600px;
}

/* ── Legal content ────────────── */
.legal-content {
  padding: 70px 0;
}
.legal-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-content p,
.legal-content li {
  font-size: 0.975rem;
  color: var(--gray-700);
  margin-bottom: 12px;
  line-height: 1.75;
}
.legal-content ul,
.legal-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
.legal-content ul li,
.legal-content ol li {
  margin-bottom: 8px;
}
.legal-content strong {
  color: var(--navy);
  font-weight: 700;
}
.legal-content a {
  word-break: break-all;
}
.legal-content .last-updated {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  font-style: italic;
}

/* ── About page ───────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.about-text p {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.75;
}
.about-sidebar {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
}
.about-sidebar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.about-info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.about-info-row .label {
  color: var(--gray-500);
  min-width: 80px;
  font-weight: 500;
}
.about-info-row .value {
  color: var(--gray-800);
  font-weight: 600;
}

/* ── Services detail page ─────── */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.service-detail-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-detail-card h3 .sd-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.sd-icon.blue  { background: #dbeafe; color: #1d4ed8; }
.sd-icon.teal  { background: #ccfbf1; color: #0f766e; }
.sd-icon.purple{ background: #ede9fe; color: #6d28d9; }
.sd-icon.amber { background: #fef3c7; color: #b45309; }
.sd-icon.rose  { background: #ffe4e6; color: #be123c; }
.sd-icon.green { background: #dcfce7; color: #15803d; }
.service-detail-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}
.service-detail-card ul {
  list-style: none;
  padding: 0;
}
.service-detail-card ul li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 6px 0 6px 22px;
  position: relative;
}
.service-detail-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Contact page ─────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 28px;
  line-height: 1.7;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-method-text h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.contact-method-text p {
  font-size: 0.925rem;
  color: var(--gray-600);
  margin-bottom: 0;
}
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Footer ───────────────────── */
.footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--gray-400);
  font-size: 0.925rem;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-bottom-links a {
  color: var(--gray-500);
  font-size: 0.875rem;
}
.footer-bottom-links a:hover {
  color: var(--gray-300);
}

/* ── Responsive ───────────────── */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner h2 {
    font-size: 1.7rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
}
