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

/* ===== VARIABLES ===== */
:root {
  --navy: #0a1628;
  --navy-light: #0f1f38;
  --navy-mid: #162544;
  --teal: #14b8a6;
  --teal-dim: #0d9488;
  --teal-glow: rgba(20, 184, 166, 0.15);
  --teal-subtle: rgba(20, 184, 166, 0.06);
  --white: #f0f4f8;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --gray-dark: #64748b;
  --surface: #111c32;
  --border: rgba(148, 163, 184, 0.1);
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled { padding: 12px 0; background: rgba(10, 22, 40, 0.95); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  text-decoration: none;
  display: flex; align-items: center;
}
.logo-horizontal {
  height: 36px; width: auto;
}
.logo-icon {
  height: 36px; width: 36px;
  display: none;
}
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--gray); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--teal); }
.nav-links .nav-cta, .nav-links .nav-cta:hover {
  background: var(--teal); color: var(--navy); padding: 10px 22px;
  border-radius: 8px; font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: all 0.25s;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--teal-dim); transform: translateY(-1px); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-light); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--teal); color: var(--navy); padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all 0.25s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--teal-dim); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(20,184,166,0.25); }
.btn-secondary {
  background: transparent; color: var(--gray-light); padding: 14px 32px;
  border-radius: 10px; font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: all 0.25s; border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

/* ===== SECTIONS ===== */
section { padding: 100px 0; position: relative; }
section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-label {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 20px;
  letter-spacing: -0.02em; max-width: 600px;
}
.section-desc {
  font-size: 1.05rem; color: var(--gray); max-width: 560px; margin-bottom: 52px; line-height: 1.8;
}

/* ===== SERVICE CARDS (shared pattern) ===== */
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px; transition: all 0.3s;
}
.service-card:hover { border-color: rgba(20, 184, 166, 0.2); }
.service-num {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-dim);
  margin-bottom: 20px; letter-spacing: 0.05em;
}
.service-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }
.service-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal);
  background: var(--teal-subtle); border: 1px solid rgba(20, 184, 166, 0.15);
  padding: 4px 12px; border-radius: 100px; letter-spacing: 0.02em;
}

/* ===== CREDENTIALS (shared pattern) ===== */
.credentials { display: flex; flex-direction: column; gap: 16px; }
.credential {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; display: flex; gap: 16px; align-items: center;
}
.credential-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--teal-subtle); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.credential-text h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.credential-text p { font-size: 0.82rem; color: var(--gray-dark); }

/* ===== RESULT CARDS (shared pattern) ===== */
.result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 36px; position: relative;
}
.result-card::before {
  content: '\201C'; position: absolute; top: 20px; right: 28px;
  font-family: var(--font-display); font-size: 4rem; color: rgba(20, 184, 166, 0.1);
  line-height: 1;
}
.result-industry {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.result-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.result-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.result-metrics { display: flex; gap: 24px; flex-wrap: wrap; }
.result-metric {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal);
  background: var(--teal-subtle); padding: 5px 12px; border-radius: 6px;
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--gray-dark);
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--gray); text-decoration: none; }
footer a:hover { color: var(--teal); }
.footer-links { display: flex; gap: 24px; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -0.02em; color: var(--white);
}
.page-header p {
  font-size: 1.1rem; color: var(--gray); max-width: 560px; line-height: 1.8;
}

/* ===== FORMS (shared) ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 0.82rem; color: var(--gray);
  margin-bottom: 6px; font-weight: 500;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 8px; color: var(--white);
  font-family: var(--font-body); font-size: 0.92rem;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.form-input::placeholder { color: var(--gray-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  nav.mobile-open .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--navy);
    padding: 24px; gap: 20px; border-bottom: 1px solid var(--border);
  }
  .logo-horizontal { display: none; }
  .logo-icon { display: block; }
  section { padding: 72px 0; }
  .page-header { padding: 120px 0 60px; }
}
