/* =========================================================================
   APEX SOLUTIONS — Landing page styles
   Palette:  #2ECC71 (green) · #0E5C3A (deep green) · #16241E (ink)
   Type:     Space Grotesk
   ========================================================================= */

:root {
  --green: #2ecc71;
  --green-600: #23b863;
  --green-dark: #0e5c3a;
  --ink: #16241e;
  --ink-2: #1d2f27;
  --ink-3: #25382f;
  --white: #ffffff;
  --paper: #f4f7f5;
  --paper-2: #eef2f0;
  --muted: #5b6b63;
  --muted-light: #a9bbb1;
  --line: rgba(22, 36, 30, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 76px;

  --shadow: 0 18px 50px -20px rgba(14, 92, 58, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { width: 100%; max-width: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: var(--ink); padding: 10px 16px;
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 18px;
}
.eyebrow--light { color: var(--green); }
.grad-text {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section__title {
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; font-weight: 700;
  letter-spacing: -0.02em;
}
.section__title--light { color: var(--white); }
.section__intro { margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.section__intro--light { color: var(--muted-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); white-space: nowrap;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; justify-content: center; }
.btn--primary { background: var(--green); color: var(--ink); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-light); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-2px); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18, 30, 25, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-light);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--white); }
.brand__sub { font-weight: 500; font-size: 10.5px; letter-spacing: .42em; color: var(--green); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav__links a { color: rgba(255,255,255,.82); font-weight: 500; font-size: 15.5px; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--green); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* floating card that drops in from the top-right (not a full-screen cover) */
.mobile-menu {
  position: fixed; top: calc(var(--header-h) + 10px); right: 16px; left: auto; z-index: 120;
  width: min(310px, calc(100% - 32px));
  background: var(--ink-2);
  border: 1px solid var(--line-light); border-radius: 16px;
  box-shadow: 0 24px 64px -18px rgba(0, 0, 0, 0.6);
  padding: 12px; display: flex; flex-direction: column; gap: 2px;
  transform-origin: top right;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.96); pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mobile-menu a { color: rgba(255,255,255,.92); font-weight: 500; font-size: 16px; padding: 12px 14px; border-radius: 10px; }
.mobile-menu a:hover { background: rgba(255,255,255,.07); color: var(--white); }
.mobile-menu a.btn { border: 0; margin-top: 8px; justify-content: center; background: var(--green); color: var(--ink); }
.mobile-menu a.btn:hover { background: var(--green-600); }
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; background: var(--ink); color: var(--white);
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
}
.hero__glow {
  position: absolute; top: -20%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, rgba(46, 204, 113, 0.30) 0%, rgba(46, 204, 113, 0.05) 45%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(circle at 75% 20%, #000 0%, transparent 60%);
  opacity: .5;
}
.hero__inner { position: relative; z-index: 2; max-width: 940px; }
.hero__title {
  font-size: clamp(44px, 8vw, 104px); line-height: 0.98; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero__lede { font-size: clamp(17px, 1.7vw, 22px); color: rgba(255,255,255,.82); max-width: 720px; }
.hero__lede strong { color: var(--white); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.hero__pills li {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9);
  border: 1px solid var(--line-light); border-radius: 999px; padding: 9px 18px;
  background: rgba(255,255,255,.03);
}
.hero__pills span { color: var(--muted-light); }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--green); transform: translateX(-50%); animation: scrolldot 1.7s infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0;transform:translate(-50%,12px);} 100%{opacity:0;} }

/* =========================================================================
   STATS
   ========================================================================= */
.stats { background: var(--ink-2); color: var(--white); padding: 0; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-light);
}
.stat { padding: 48px 32px; border-right: 1px solid var(--line-light); }
.stat__num {
  display: block; font-size: clamp(38px, 5vw, 60px); font-weight: 700; line-height: 1;
  color: var(--green); letter-spacing: -0.02em; margin-bottom: 14px;
}
.stat__label { font-size: 15px; color: var(--muted-light); }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 38px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden; min-height: 280px;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card__index { font-size: 14px; font-weight: 600; letter-spacing: .15em; color: var(--muted); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--green-dark); transition: background .35s var(--ease), color .35s var(--ease); }
.card__icon svg { width: 24px; height: 24px; }
.card:hover .card__icon { background: var(--green); color: var(--ink); }
.card__title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.card__desc { color: var(--muted); font-size: 16px; }
.card__more { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--green-dark); display: inline-flex; gap: 6px; }
.card__more span { transition: transform .25s var(--ease); }
.card:hover .card__more span { transform: translateX(5px); }

.card--feature { background: var(--ink); color: var(--white); border-color: transparent; }
.card--feature .card__index { color: var(--muted-light); }
.card--feature .card__icon { background: rgba(255,255,255,.08); color: var(--green); }
.card--feature .card__desc { color: rgba(255,255,255,.8); }
.card--feature .card__more { color: var(--green); }
.card--feature:hover .card__icon { background: var(--green); color: var(--ink); }

/* =========================================================================
   WHY (dark)
   ========================================================================= */
.why { background: var(--ink); color: var(--white); }
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.why__intro .btn { margin-top: 30px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.why__list li { background: var(--ink); padding: 30px; transition: background .3s var(--ease); }
.why__list li:hover { background: var(--ink-2); }
.why__list h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.why__list h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--green); border-radius: 3px; margin-right: 10px; vertical-align: middle; }
.why__list p { color: var(--muted-light); font-size: 15.5px; }

/* =========================================================================
   PROCESS
   ========================================================================= */
.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step__num { font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--green-dark); }
.step h3 { font-size: 21px; font-weight: 700; margin: 16px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 38px; background: var(--green); }

/* =========================================================================
   INSIGHTS
   ========================================================================= */
.insights { background: var(--white); }
.insights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.insight {
  display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.insight:hover { transform: translateY(-6px); background: var(--white); box-shadow: var(--shadow); border-color: var(--line); }
.insight__tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); background: rgba(46,204,113,.14); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.insight h3 { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.insight p { color: var(--muted); font-size: 15.5px; }
.insight__more { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--green-dark); display: inline-flex; gap: 6px; }
.insight:hover .insight__more span { transform: translateX(5px); }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band { background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%); color: var(--ink); }
.cta-band__inner { text-align: center; padding: clamp(56px, 8vw, 96px) 0; max-width: 760px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.cta-band p { font-size: clamp(17px, 1.6vw, 20px); margin: 18px 0 34px; color: rgba(22,36,30,.78); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact__details { margin-top: 34px; display: grid; gap: 18px; }
.contact__details li { display: grid; grid-template-columns: 80px 1fr; align-items: baseline; gap: 12px; font-size: 16px; }
.contact__details span { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__details a:hover { color: var(--green-dark); }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--white); padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(46,204,113,.16);
}
.field textarea { resize: vertical; }
/* Honeypot — off-screen for humans, still present for bots to fill. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 22px; }
.form__status.ok { color: var(--green-dark); }
.form__status.err { color: #c0392b; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: var(--white); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.brand--footer { margin-bottom: 18px; }
.footer__brand p { color: var(--muted-light); font-size: 15px; max-width: 320px; }
.footer__col h4 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: rgba(255,255,255,.78); font-size: 15px; }
.footer__col a:hover { color: var(--green); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { color: var(--muted-light); font-size: 14px; }
.footer__legal a:hover { color: var(--green); }

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .insights__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line-light); }
  .cards { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .stats__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
