/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e; line-height: 1.6; background: #fff;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TOKENS (shared with AfriScan) === */
:root {
  --primary: #0f4c75; --primary-dark: #0b3954;
  --accent: #e8672f; --accent-hover: #d45a24;
  --teal: #5eead4;
  --dark: #0d1117; --dark-card: #161b22;
  --gray-100: #f5f6f8; --gray-200: #e2e4e9; --gray-600: #5a5f6d;
  --white: #fff; --radius: 12px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* === NAV === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,17,23,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--white); letter-spacing: -.01em; }
.logo span { color: var(--accent); }
.by-line { font-size: .52em; font-weight: 500; color: rgba(255,255,255,.45); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* === BUTTONS === */
.btn {
  position: relative; overflow: hidden;
  display: inline-block; padding: 11px 26px; border-radius: 7px;
  font-weight: 600; font-size: .9rem; transition: all .2s; cursor: pointer; border: none;
  background: var(--accent); color: var(--white);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
}
.btn:hover::after { animation: shine .7s ease; }
@keyframes shine { to { left: 130%; } }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

/* === HERO === */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 80px; color: var(--white); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,17,23,.92) 0%, rgba(11,57,84,.72) 45%, rgba(13,17,23,.35) 100%),
    linear-gradient(0deg, rgba(13,17,23,.85), transparent 45%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--teal); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; line-height: 1.08; margin-bottom: 20px; letter-spacing: -.02em; }
.hero h1 span { color: var(--accent); }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.85); margin-bottom: 34px; max-width: 580px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 12px 20px; border-radius: var(--radius); backdrop-filter: blur(6px);
}
.chip strong { display: block; font-size: 1.05rem; color: var(--white); }
.chip span { font-size: .8rem; color: rgba(255,255,255,.6); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { animation: fadeUp .7s ease both; }
.hero h1 { animation: fadeUp .8s .1s ease both; }
.hero-sub { animation: fadeUp .8s .22s ease both; }
.hero-cta { animation: fadeUp .8s .34s ease both; }
.hero-stats { animation: fadeUp .8s .46s ease both; }

/* === SECTIONS === */
.section { padding: 92px 0; }
.section-dark { background: var(--dark); color: var(--white);
  background-image: radial-gradient(ellipse 700px 420px at 85% -5%, rgba(15,76,117,.4), transparent),
                    radial-gradient(ellipse 500px 360px at 5% 105%, rgba(232,103,47,.07), transparent); }
.section-tint { background: var(--gray-100); }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -.01em; }
.section h2::after { content: ''; display: block; width: 58px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal)); margin-top: 16px; }
.text-center h2::after { margin-left: auto; margin-right: auto; }
.section-lead { font-size: 1.12rem; color: var(--gray-600); max-width: 640px; margin-bottom: 52px; line-height: 1.7; }
.section-dark .section-lead { color: rgba(255,255,255,.7); }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* === GRIDS === */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* === SERVICE CARDS (image + body) === */
.svc {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.svc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc:hover .svc-media img { transform: scale(1.06); }
.svc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,17,23,.35), transparent 55%); }
.svc-num { position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--teal);
  background: rgba(13,17,23,.7); padding: 4px 9px; border-radius: 5px; border: 1px solid rgba(94,234,212,.3); }
.svc-body { padding: 22px 24px 26px; }
.svc-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.svc-body p { color: var(--gray-600); font-size: .94rem; }

/* === CAPABILITY BAND === */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cap { text-align: center; }
.cap .num { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.cap .lbl { margin-top: 8px; font-size: .92rem; color: rgba(255,255,255,.7); }

/* === GALLERY === */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery a { position: relative; overflow: hidden; border-radius: 10px; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.08); }
.gallery a::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px; font-size: .8rem; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(13,17,23,.8), transparent);
  opacity: 0; transform: translateY(8px); transition: .3s; }
.gallery a:hover::after { opacity: 1; transform: none; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* === PRICING === */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 32px 28px; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.1); }
.plan-featured { border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(232,103,47,.12); }
.plan-tier { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.plan-badge { font-size: .62rem; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 10px; letter-spacing: .05em; }
.plan h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.plan-price { font-size: 2.6rem; font-weight: 800; color: var(--dark); margin: 6px 0 4px; }
.plan-price small { font-size: .85rem; font-weight: 500; color: var(--gray-600); }
.plan ul { margin: 18px 0 24px; flex: 1; }
.plan li { font-size: .92rem; color: var(--gray-600); padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--gray-100); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* === SPLIT (AfriScan promo) === */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .scanline { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(94,234,212,.06) 0 2px, transparent 2px 7px);
  mix-blend-mode: screen; }
.split-media .brackets { position: absolute; inset: 16px; border: 1px solid rgba(94,234,212,.4);
  box-shadow: 0 0 0 100vmax rgba(13,17,23,0) inset; }
.split-media .tag { position: absolute; top: 26px; left: 26px; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; color: var(--teal); background: rgba(13,17,23,.7); padding: 5px 10px; border-radius: 5px; }

/* === CONTACT === */
#contact { position: relative; overflow: hidden; }
#contact::before { content: ''; position: absolute; top: -220px; right: -220px; width: 620px; height: 620px;
  border-radius: 50%; background: conic-gradient(from 0deg, rgba(94,234,212,.14), transparent 70deg);
  animation: sweep 8s linear infinite; pointer-events: none; }
@keyframes sweep { to { transform: rotate(360deg); } }
#contact .container { position: relative; z-index: 1; }
.contact-form { max-width: 620px; margin: 0 auto; text-align: left; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row input, .form-row select, .contact-form textarea {
  flex: 1; width: 100%; padding: 13px 16px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: var(--white); font-size: .95rem; font-family: inherit;
}
.contact-form textarea { margin-bottom: 16px; resize: vertical; }
.form-row input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form select option { background: var(--dark); }
.contact-form .btn { width: 100%; text-align: center; }
.form-note { margin-top: 16px; font-size: .9rem; color: rgba(255,255,255,.65); text-align: center; }

/* === FOOTER === */
.footer { background: #080b10; color: rgba(255,255,255,.6); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand p { margin-top: 12px; font-size: .9rem; max-width: 280px; }
.footer h4 { color: var(--white); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer a { display: block; font-size: .9rem; margin-bottom: 9px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer a:hover { color: var(--white); }
.afriscan-link { color: var(--teal); }
.footer-bottom { margin-top: 44px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.07); }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .grid-4, .caps, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--dark); padding: 22px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mobile-toggle { display: block; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 100px 0 60px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery .wide { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
