/* === Custom Properties === */
:root {
  --bg: #ffffff;
  --surface: #f9fafb;
  --text: #111827;
  --primary: #059669;
  --primary-light: #ecfdf5;
  --accent: #f59e0b;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 8px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }

/* === Utility === */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.skip-link {
  position: absolute; top: -100%; left: 1rem; padding: 0.5rem 1rem;
  background: var(--primary); color: #fff; border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.875rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #047857; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; width: 90%; max-width: var(--max-width); margin: 0 auto;
}
.nav__logo { font-weight: 700; font-size: 1.125rem; color: var(--text); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 0.9375rem; }
.nav__links a:hover { color: var(--primary); }
.nav__cta { display: flex; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: 0.3s;
}

/* === Mobile Nav === */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 100; padding: 0.5rem 0 env(safe-area-inset-bottom);
}
.mobile-nav { display: flex; justify-content: space-around; }
.mobile-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.5rem; color: var(--text); opacity: 0.5; font-size: 0.6875rem;
  text-decoration: none;
}
.mobile-nav__item--active { opacity: 1; color: var(--primary); }
.mobile-nav__item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* === Footer === */
.footer {
  background: var(--surface); padding: 3rem 0; margin-bottom: 60px;
  contain: layout style;
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer__logo { font-weight: 700; font-size: 1.125rem; color: var(--text); }
.footer__copy { color: var(--text); opacity: 0.6; font-size: 0.875rem; }

/* === Scroll Reveal === */
.reveal { }
.reveal--animate { animation: revealSlide 0.6s ease both; }
.reveal--animate.reveal--delay-1 { animation-delay: 0.1s; }
.reveal--animate.reveal--delay-2 { animation-delay: 0.2s; }
.reveal--animate.reveal--delay-3 { animation-delay: 0.3s; }
@keyframes revealSlide {
  from { opacity: 0.4; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal--animate { animation: none; }
}

/* === Hero === */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  contain: layout style;
  background: url('../images/hero-laptop-analytics.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 1;
}
.hero__content {
  position: relative; z-index: 2; color: #fff;
  width: 90%; max-width: var(--max-width); margin: 0 auto;
  text-align: center; padding: calc(var(--nav-height) + 3rem) 0 4rem;
}
.hero__stats {
  display: flex; justify-content: center; gap: 3rem; margin-bottom: 2rem;
}
.stat-counter { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; }
.stat-counter__label { font-size: 0.875rem; opacity: 0.85; margin-top: 0.25rem; }
.hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.hero__subtitle { font-size: 1.125rem; opacity: 0.85; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* === Trust Bar === */
.trust-bar {
  background: var(--surface); padding: 2.5rem 0; text-align: center;
  contain: layout style;
}
.trust-bar__inner { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; align-items: center; }
.trust-bar__rating { display: flex; align-items: center; gap: 0.5rem; }
.trust-bar__stars { color: var(--accent); font-size: 1.25rem; }
.trust-bar__text { font-weight: 600; font-size: 0.875rem; }
.trust-bar__badge { width: 80px; height: 36px; background: var(--text); opacity: 0.08; border-radius: 4px; }

/* === Services Cards === */
.services-section { padding: 5rem 0; contain: layout style; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 0.75rem; }
.section-header p { font-size: 1.0625rem; opacity: 0.7; max-width: 600px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
  background: var(--bg); border-radius: var(--radius); padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06); transition: box-shadow 0.2s;
  position: relative;
}
.service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.service-card--popular { border-color: var(--primary); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.service-card__icon { width: 48px; height: 48px; margin-bottom: 1.25rem; }
.service-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card__desc { font-size: 0.9375rem; opacity: 0.7; margin-bottom: 1rem; line-height: 1.6; }
.service-card__image {
  width: calc(100% + 4rem); margin: -2rem -2rem 1.25rem;
  height: 180px; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.service-card--popular .service-card__image { margin-top: -2rem; }
.service-card__link { font-weight: 600; font-size: 0.875rem; }

/* === Results Section === */
.results-section { padding: 5rem 0; background: var(--surface); contain: layout style; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 800px; margin: 0 auto; }
.result-card { background: var(--bg); padding: 2rem; border-radius: var(--radius); text-align: center; }
.result-card__metric { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.25rem; }
.result-card__arrow { color: var(--primary); font-size: 1.25rem; margin-right: 0.25rem; }
.result-card__label { font-size: 0.875rem; opacity: 0.7; }
.results-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: none; }
.results-layout .results-grid { max-width: none; }
.results-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

/* === Testimonials Grid === */
.testimonials-section { padding: 5rem 0; contain: layout style; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
  background: var(--bg); border-radius: var(--radius); padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
}
.testimonial-card__stars { color: var(--accent); margin-bottom: 1rem; font-size: 1rem; }
.testimonial-card__quote { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; }
.testimonial-card__author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary-light); flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: 0.875rem; }
.testimonial-card__role { font-size: 0.8125rem; opacity: 0.6; }

/* === Process === */
.process-section { padding: 5rem 0; background: var(--surface); contain: layout style; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.process-step { text-align: center; }
.process-step__number {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.process-step__image {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 1.25rem;
}
.process-step__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step__desc { font-size: 0.9375rem; opacity: 0.7; }

/* === CTA Section === */
.cta-section { padding: 5rem 0; text-align: center; contain: layout style; }
.cta-section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.cta-section p { font-size: 1.0625rem; opacity: 0.7; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === Page Hero === */
.page-hero { background: var(--primary); color: #fff; padding: calc(var(--nav-height) + 3rem) 0 3rem; contain: layout style; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
.page-hero p { font-size: 1.0625rem; opacity: 0.85; margin-top: 0.75rem; }
.page-hero__stats { display: flex; gap: 3rem; margin-top: 1.5rem; }
.page-hero__stat { }
.page-hero__stat-number { font-size: 2rem; font-weight: 800; }
.page-hero__stat-label { font-size: 0.8125rem; opacity: 0.85; }

/* === Service Blocks (services page) === */
.service-blocks { padding: 4rem 0; contain: layout style; }
.service-block {
  padding: 3rem 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.service-block__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-block__desc { font-size: 1rem; opacity: 0.8; margin-bottom: 1rem; line-height: 1.7; }
.service-block__checklist { margin-bottom: 1rem; }
.service-block__checklist li {
  padding: 0.375rem 0; display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9375rem;
}
.service-block__checklist li svg { width: 20px; height: 20px; flex-shrink: 0; }
.service-block__result {
  background: var(--primary-light); padding: 1rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; color: var(--primary); display: inline-block;
}

/* === Contact Form === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 4rem 0; }
.form-card { background: var(--bg); padding: 2.5rem; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.info-card { padding: 2.5rem; background: var(--surface); border-radius: var(--radius); }
.info-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.info-card__item { margin-bottom: 1.25rem; }
.info-card__item strong { display: block; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; margin-bottom: 0.25rem; }
.info-card__item a { color: var(--primary); }
.trust-signals { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.06); }
.trust-signals__item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.875rem; }
.trust-signals__item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

/* === Sticky CTA (mobile) === */
.sticky-cta {
  display: none; position: fixed; bottom: 60px; left: 0; right: 0;
  padding: 0.75rem 5%; background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.08); z-index: 99;
}
.sticky-cta .btn { width: 100%; text-align: center; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links--open { display: flex; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg); padding: 1rem 5%; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .hero__stats { flex-direction: column; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .results-layout { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-hero__stats { flex-direction: column; gap: 1rem; }
  .sticky-cta { display: block; }
  .footer { margin-bottom: 120px; }
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none; }
}
