/* ============================================
   Lab41 — Engineered Lead Generation
   Design System & Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --navy: #0A1628;
  --navy-light: #0F1D32;
  --charcoal: #1A1F2E;
  --teal: #0D7377;
  --teal-dark: #095456;
  --cyan: #00D4FF;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --gold: #C8952E;
  --gold-dim: rgba(200, 149, 46, 0.15);
  --white: #F4F6F8;
  --white-pure: #FFFFFF;
  --slate: #6B7A8D;
  --slate-light: #8A97A8;
  --text: #121820;
  --text-muted: #6B7A8D;
  --surface-dark: #0E1525;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(10, 22, 40, 0.08);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Reveal Animation --- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0; transition: all 0.4s var(--ease); }
.nav--scrolled { background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 12px 0; box-shadow: 0 1px 0 var(--border); }
.nav__container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--cyan); color: var(--navy); font-family: var(--font-heading); font-weight: 700; font-size: 14px; border-radius: 8px; }
.nav__logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--white-pure); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 500; transition: color 0.3s; letter-spacing: -0.01em; }
.nav__link:hover { color: var(--white-pure); }
.nav__link--cta { color: var(--navy); background: var(--cyan); padding: 10px 20px; border-radius: 8px; font-weight: 600; transition: all 0.3s var(--ease); }
.nav__link--cta:hover { color: var(--navy); background: var(--white-pure); transform: translateY(-1px); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white-pure); margin: 5px 0; transition: all 0.3s; border-radius: 1px; }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--teal-dark) 100%); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 24px; }
.hero__label { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 24px; }
.hero__title { font-family: var(--font-heading); font-size: clamp(40px, 6vw, 72px); font-weight: 700; color: var(--white-pure); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero__title--accent { background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__subtitle { font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, 0.65); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.35); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: all 0.3s var(--ease); letter-spacing: -0.01em; }
.btn--primary { background: var(--cyan); color: var(--navy); }
.btn--primary:hover { background: var(--white-pure); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3); }
.btn--ghost { background: transparent; color: var(--white-pure); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); }
.btn--full { width: 100%; }

/* ============================================
   LOGOS
   ============================================ */
.logos { padding: 64px 0; border-bottom: 1px solid var(--border-light); }
.logos__label { text-align: center; font-size: 13px; font-weight: 500; color: var(--slate); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 32px; }
.logos__grid { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 40px; }
.logos__item { opacity: 0.35; transition: opacity 0.3s; }
.logos__item:hover { opacity: 0.7; }
.logos__svg { height: 28px; width: auto; color: var(--text); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header__label { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--teal); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 16px; }
.section-header__title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-header__desc { font-size: 17px; color: var(--slate); line-height: 1.7; }
.section-header__label--light { color: var(--cyan); }
.section-header__title--light { color: var(--white-pure); }
.section-header__desc--light { color: rgba(255, 255, 255, 0.6); }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 120px 0; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white-pure); border: 1px solid var(--border-light); border-radius: 16px; padding: 36px; transition: all 0.4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08); border-color: transparent; }
.card__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--cyan-dim); color: var(--teal); border-radius: 12px; margin-bottom: 20px; }
.card__title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 12px; letter-spacing: -0.02em; }
.card__desc { font-size: 15px; color: var(--slate); line-height: 1.7; }

/* ============================================
   METHODOLOGY
   ============================================ */
.methodology { padding: 120px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%); }
.methodology__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.methodology__step { position: relative; }
.methodology__number { font-family: var(--font-mono); font-size: 48px; font-weight: 500; background: linear-gradient(135deg, var(--cyan), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 24px; line-height: 1; }
.methodology__line { width: 48px; height: 2px; background: linear-gradient(to right, var(--cyan), transparent); margin-bottom: 24px; }
.methodology__step-title { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--white-pure); margin-bottom: 12px; letter-spacing: -0.02em; }
.methodology__step-desc { font-size: 15px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; margin-bottom: 24px; }
.methodology__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.methodology__tags li { font-size: 12px; font-weight: 500; color: var(--cyan); background: var(--cyan-dim); padding: 5px 12px; border-radius: 6px; letter-spacing: 0.02em; }

/* ============================================
   RESULTS
   ============================================ */
.results { padding: 120px 0; }
.results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.results__stat { text-align: center; padding: 40px 24px; background: var(--white-pure); border: 1px solid var(--border-light); border-radius: 16px; transition: all 0.4s var(--ease); }
.results__stat:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08); }
.results__number { display: block; font-family: var(--font-mono); font-size: clamp(36px, 4vw, 52px); font-weight: 500; background: linear-gradient(135deg, var(--cyan), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; line-height: 1.1; }
.results__label { font-size: 14px; font-weight: 500; color: var(--slate); }

/* ============================================
   TECH STACK
   ============================================ */
.tech { padding: 120px 0; background: var(--navy); }
.tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.tech__category { padding: 32px; border: 1px solid var(--border); border-radius: 16px; transition: all 0.4s var(--ease); }
.tech__category:hover { border-color: rgba(0, 212, 255, 0.15); background: rgba(255, 255, 255, 0.02); }
.tech__category-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--cyan); margin-bottom: 20px; letter-spacing: -0.01em; text-transform: uppercase; letter-spacing: 0.05em; }
.tech__list li { font-size: 15px; color: rgba(255, 255, 255, 0.6); padding: 8px 0; border-bottom: 1px solid var(--border); transition: color 0.3s; }
.tech__list li:last-child { border-bottom: none; }
.tech__list li:hover { color: var(--white-pure); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 120px 0; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--white-pure); border: 1px solid var(--border-light); border-radius: 16px; padding: 36px; transition: all 0.4s var(--ease); }
.testimonial:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08); }
.testimonial__stars { color: var(--gold); font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial__quote { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), var(--cyan)); color: var(--white-pure); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 600; font-size: 13px; flex-shrink: 0; }
.testimonial__name { font-weight: 600; font-size: 14px; color: var(--navy); }
.testimonial__role { font-size: 13px; color: var(--slate); }

/* ============================================
   CTA
   ============================================ */
.cta { padding: 120px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cta__title { font-family: var(--font-heading); font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; color: var(--white-pure); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta__desc { font-size: 17px; color: rgba(255, 255, 255, 0.6); line-height: 1.7; margin-bottom: 32px; }
.cta__checklist { display: flex; flex-direction: column; gap: 12px; }
.cta__checklist li { color: rgba(255, 255, 255, 0.75); font-size: 15px; padding-left: 28px; position: relative; }
.cta__checklist li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan-dim); border: 2px solid var(--cyan); }

/* --- Form --- */
.cta__form { background: var(--white-pure); border-radius: 20px; padding: 40px; }
.form__group { margin-bottom: 20px; }
.form__label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.02em; }
.form__input { width: 100%; padding: 12px 16px; background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; font-size: 15px; color: var(--text); transition: all 0.3s; outline: none; }
.form__input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--cyan-dim); }
.form__input::placeholder { color: var(--slate-light); }
.form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7A8D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.form__privacy { font-size: 12px; color: var(--slate); text-align: center; margin-top: 16px; }
.cta__form .btn { margin-top: 4px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 64px 0 32px; background: var(--surface-dark); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer__tagline { font-size: 14px; color: rgba(255, 255, 255, 0.4); margin-top: 16px; max-width: 280px; }
.footer__links { display: flex; gap: 80px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__heading { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--white-pure); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: rgba(255, 255, 255, 0.45); transition: color 0.3s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { padding-top: 24px; text-align: center; }
.footer__bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.25); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .methodology__steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { gap: 48px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 22, 40, 0.98); flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
  .nav__links.is-open { display: flex; }
  .nav__links .nav__link { font-size: 20px; color: var(--white-pure); }
  .nav__links .nav__link--cta { margin-top: 8px; }
  .nav__toggle { display: block; }

  .hero__scroll { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .methodology__steps { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tech__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonials__grid { grid-template-columns: 1fr; }

  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .cta__form { padding: 28px; }

  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__links { gap: 48px; }

  .logos__grid { gap: 24px; }
}

@media (max-width: 480px) {
  .results__grid { grid-template-columns: 1fr; }
  .tech__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}