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

:root {
  --navy:        #0a1628;
  --navy-mid:    #112240;
  --navy-light:  #1e3a5f;
  --accent:      #00c896;
  --accent-dim:  #00a87e;
  --white:       #ffffff;
  --off-white:   #f4f6f9;
  --text-main:   #1a2332;
  --text-muted:  #5a6a80;
  --text-light:  #8a9ab0;
  --border:      rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.10);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --max-w: 1100px;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

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

/* =====================
   UTILITY
   ===================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 2.5rem;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  padding: 0.65rem 1.4rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-nav {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
}
.btn-nav:hover { background: var(--navy-mid); }

.btn-large {
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-logo-accent { color: var(--accent); }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  background: var(--navy);
  padding: 9rem 2rem 6rem;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,150,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,150,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,200,150,0.12);
  border: 1px solid rgba(0,200,150,0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
}

/* =====================
   PAIN POINTS
   ===================== */
.pain {
  padding: 6rem 2rem;
  background: var(--off-white);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.pain-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.pain-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.pain-bridge {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  text-align: center;
}

.pain-bridge p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--white);
  line-height: 1.5;
  font-weight: 400;
}

.pain-bridge strong {
  color: var(--accent);
  font-weight: 400;
}

/* =====================
   SERVICES
   ===================== */
.services {
  padding: 6rem 2rem;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card--featured {
  border-color: var(--navy);
  background: var(--navy);
}

.service-featured-label {
  position: absolute;
  top: -12px; left: 1.5rem;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border-radius: 100px;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card--featured .service-title { color: var(--white); }

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-card--featured .service-desc { color: rgba(255,255,255,0.6); }

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-dim);
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* =====================
   AUTHORITY
   ===================== */
.authority {
  padding: 6rem 2rem;
  background: var(--off-white);
}

.authority-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .authority-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.authority-body {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.authority-certs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.cert-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.cert-icon {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.cert-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.cert-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-pill {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  transition: all 0.2s;
}

.tech-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =====================
   CONTACT
   ===================== */
.contact {
  background: var(--navy);
  padding: 7rem 2rem;
  text-align: center;
}

.contact-inner { max-width: 640px; }

.contact-eyebrow { color: var(--accent); }

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.contact-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.contact-trust {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: #070f1c;
  padding: 1.75rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.footer-email {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}
.footer-email:hover { text-decoration: underline; }

.footer .nav-logo { color: var(--white); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 640px) {
  .hero { padding: 8rem 1.5rem 5rem; min-height: auto; }
  .hero-stats { gap: 1.25rem; }
  .pain, .services, .authority, .contact { padding: 4rem 1.5rem; }
  .pain-bridge { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-inner { max-width: 100%; }
}