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

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2940;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #dbeafe;
  --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;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 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);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 3.25rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
  max-width: 600px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1;
}

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

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-blue {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: #1d4ed8;
  color: var(--white) !important;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--blue-pale) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

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

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

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

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

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

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

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

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 360px;
  box-shadow: var(--shadow-md);
}

.about-card-icon {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--white);
}

.about-card-icon svg {
  width: 32px;
  height: 32px;
}

.about-card h3 {
  font-size: 1.375rem;
  margin-bottom: 4px;
}

.about-card > p:first-of-type {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.about-card-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-title {
  max-width: 400px;
}

.contact-info > p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 2px;
  font-weight: 600;
}

.contact-item a,
.contact-item span {
  font-size: 1rem;
  color: var(--navy);
}

.contact-item a:hover {
  color: var(--blue);
}

/* Form */
.contact-form-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group .optional {
  font-weight: 400;
  color: var(--gray-400);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

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

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

.footer-brand .nav-brand {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul li,
.footer ul a {
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .services, .about, .contact {
    padding: 72px 0;
  }

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

  .about-stats {
    gap: 24px;
  }

  .contact-form-wrap {
    padding: 24px;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }

  .nav-links.active {
    display: flex;
  }

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

  .hero-actions .btn {
    text-align: center;
  }
}
