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

:root {
  --black:   #000000;
  --white:   #ffffff;
  --gray-50: #fafafa;
  --gray-100:#f4f4f5;
  --gray-200:#e4e4e7;
  --gray-400:#a1a1aa;
  --gray-600:#52525b;
  --gray-800:#27272a;
  --accent:  #000000;
  --radius:  8px;
  --radius-lg: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

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

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

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

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

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-50); color: var(--black); border-color: var(--gray-400); }

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

/* ─── Navigation ─────────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s;
}
.nav-wrapper.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--black); background: var(--gray-100); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 24px 100px;
  text-align: center;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  opacity: 0.4;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Stats ──────────────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 40px;
  gap: 4px;
}
.stat-number {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ─── Section Shared ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 480px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

/* ─── Services ───────────────────────────────────────────────── */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 40px;
  transition: background 0.15s;
}
.service-card:hover { background: var(--gray-50); }

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--black);
}

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

/* ─── About ──────────────────────────────────────────────────── */
.about { background: var(--gray-50); }

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

.about-text p {
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.75;
}
.about-text .section-title { margin-bottom: 24px; }

.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-card-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-600);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green  { background: #22c55e; }
.dot-blue   { background: #3b82f6; }
.dot-purple { background: #a855f7; }
.dot-orange { background: #f97316; }

.about-quote {
  border-left: 3px solid var(--black);
  padding-left: 20px;
}
.about-quote blockquote {
  font-size: 15px;
  font-style: italic;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.6;
}
.about-quote cite {
  font-size: 13px;
  color: var(--gray-400);
  font-style: normal;
}

/* ─── Team ───────────────────────────────────────────────────── */
.team { background: var(--white); }

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

.team-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.team-avatar::after { content: attr(data-initials); }

.team-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-role {
  font-size: 12px;
  color: var(--gray-400);
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.team-info p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact { background: var(--gray-50); }

.contact-centered {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-text p {
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.contact-text .section-title { margin-bottom: 16px; }

.contact-details { display: flex; justify-content: center; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--gray-600);
}
.contact-item a:hover { color: var(--black); }
.contact-item svg { flex-shrink: 0; }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group:last-of-type { margin-bottom: 24px; }

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
}

input, select, textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
textarea { resize: vertical; min-height: 110px; }

.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
  min-height: 20px;
}

/* ─── Careers ────────────────────────────────────────────────── */
.careers-centered {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.careers-hero { background: var(--gray-50); }
.careers-sub {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
}
.careers-centered .btn { margin-top: 12px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--gray-200);
  padding: 40px 0;
  background: var(--white);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand p {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--gray-600);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--black); }
.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}

/* ─── Fade-in animation ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stat-divider { display: none; }
  .stats-inner { gap: 0; }
  .stat { padding: 16px 24px; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .nav-links, .nav > .btn-primary { display: none; }
  .nav-hamburger { display: flex; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .hero { padding: calc(var(--nav-h) + 48px) 24px 80px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Mobile menu open state */
.nav-wrapper.menu-open .nav-links,
.nav-wrapper.menu-open .nav > .btn-primary {
  display: flex;
}
@media (max-width: 600px) {
  .nav-wrapper.menu-open .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 24px 20px;
    gap: 16px;
  }
  .nav-wrapper.menu-open .nav-links {
    flex-direction: column;
    width: 100%;
    order: 3;
  }
  .nav-wrapper.menu-open .nav-links a {
    padding: 10px 12px;
  }
}
