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

:root {
  --primary: #1a56db;
  --primary-dark: #1340a8;
  --primary-light: #e8effc;
  --accent: #0ea5e9;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1200px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Navbar ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow .3s;
}
.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}
.logo svg {
  width: 36px;
  height: 36px;
}
.logo:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: .938rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  transition: background .2s, transform .15s;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 6px 0;
  transition: transform .3s, opacity .3s;
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, #f0f9ff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .938rem;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
}
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 40px 32px;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray-500);
  font-size: .938rem;
  line-height: 1.7;
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.about-text p {
  margin-bottom: 16px;
  color: var(--gray-500);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
}
.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-item .stat-label {
  font-size: .85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.about-visual {
  position: relative;
}
.about-visual-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 16px;
  padding: 60px 40px;
  color: var(--white);
  text-align: center;
}
.about-visual-box h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 16px;
}
.about-visual-box p {
  opacity: .9;
  font-size: .95rem;
  line-height: 1.7;
}

/* ===== Industries ===== */
.industries-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .938rem;
  color: var(--gray-700);
  transition: border-color .2s, box-shadow .2s;
}
.industry-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.industry-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: .938rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-item p,
.contact-item a {
  font-size: .875rem;
  color: var(--gray-500);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 40px;
}
.contact-form h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .938rem;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: .875rem;
  line-height: 1.7;
  margin-top: 16px;
  color: var(--gray-500);
}

.footer h4 {
  color: var(--white);
  font-size: .938rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 12px;
}
.footer ul li a {
  color: var(--gray-500);
  font-size: .875rem;
  transition: color .2s;
}
.footer ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--gray-500);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--gray-500);
  font-size: .8rem;
}
.footer-bottom-links a:hover {
  color: var(--white);
}

/* ===== Legal Pages ===== */
.legal-hero {
  padding: 140px 0 60px;
  background: var(--gray-100);
  text-align: center;
}
.legal-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
.legal-hero p {
  color: var(--gray-500);
  margin-top: 12px;
}

.legal-content {
  padding: 60px 0 100px;
}
.legal-content .container {
  max-width: 800px;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
}
.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 12px;
}
.legal-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}
.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-content ul {
  list-style: disc;
}
.legal-content ol {
  list-style: decimal;
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--gray-100);
    transform: translateY(-120%);
    transition: transform .3s;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    transform: translateY(0);
  }

  .hero {
    padding: 130px 0 70px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .industries-list {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.625rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
