/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg: #050d1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.07);
  --text-primary: #ffffff;
  --text-body: #5a7a8a;
  --text-muted: #6a8090;
  --text-dim: #2a4050;
  --accent: #4db8d4;
  --cred-val: #8aaabb;

  --nav-height: 64px;
  --container-max: 1100px;
  --container-pad: clamp(20px, 5vw, 80px);
  --section-pad: clamp(60px, 8vw, 120px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

address {
  font-style: normal;
}

/* ============================================
   BACKGROUND GLOW
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 5% 40%, rgba(20, 55, 69, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(77, 184, 212, 0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 1;
}

/* ============================================
   SHARED TYPOGRAPHY
   ============================================ */
.eyebrow {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

/* ============================================
   SCROLL FADE-IN
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.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(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(5, 13, 26, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px var(--container-pad);
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-body);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

/* ============================================
   HERO LOAD ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--section-pad) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  border-color: rgba(77, 184, 212, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.service-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

.rnd-note {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  padding: 14px 18px;
  border-left: 2px solid rgba(77, 184, 212, 0.2);
  font-style: italic;
  max-width: 700px;
}

/* ============================================
   CREDIBILITY STRIP
   ============================================ */
.cred-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

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

.cred-item {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.cred-item:last-child {
  border-right: none;
}

.cred-val {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--cred-val);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.cred-label {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: clamp(40px, 6vw, 80px) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer address {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-right {
  text-align: right;
}

.not-accepting {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 6px;
}

.copyright {
  font-size: 11px;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile: < 768px */
@media (max-width: 767px) {
  /* Show hamburger, hide inline nav links */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  /* Services: single column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Credibility strip: wrap to 3/2 layout */
  .cred-items {
    flex-wrap: wrap;
  }

  .cred-item {
    flex: 0 0 33.333%;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 8px;
  }

  /* Remove right border from 3rd and 5th items (end of each row) */
  .cred-item:nth-child(3),
  .cred-item:nth-child(5) {
    border-right: none;
  }

  /* Remove bottom border from last row */
  .cred-item:nth-child(4),
  .cred-item:nth-child(5) {
    border-bottom: none;
  }

  /* Footer: stack vertically */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-right {
    text-align: left;
  }
}

/* Tablet: 768px – 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .services-grid {
    gap: 10px;
  }

  .service-card {
    padding: 22px;
  }
}
