*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #166534;
  --primary-dark: #14532d;
  --primary-light: #22c55e;
  --accent: #15803d;
  --bg: #0a0f0a;
  --bg-alt: #0f160f;
  --bg-card: #141c14;
  --text: #f0f5f0;
  --text-muted: #9ca39c;
  --text-light: #6b726b;
  --border: #1e2a1e;
  --border-light: #2d3d2d;
  --gradient-1: linear-gradient(135deg, #166534 0%, #15803d 100%);
  --gradient-2: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --font: "Oswald", "Bebas Neue", sans-serif;
  --font-display: "Bebas Neue", "Oswald", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Background texture overlay – noise grain */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Subtle grid texture */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: 
    linear-gradient(rgba(22, 101, 52, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 101, 52, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
}

body > .header,
body > main,
body > .footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--text);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .logo-text {
    display: none;
  }
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.45);
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-nav {
  padding: 0.625rem 1.25rem;
  background: var(--gradient-1);
  color: white;
  border-radius: 8px;
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* Hero */
.hero {
  min-height: min(70vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem 0;
  color: var(--text);
  text-transform: uppercase;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 auto 1rem;
  max-width: 65ch;
  line-height: 1.6;
}

.hero-video-highlight {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(22, 101, 52, 0.15);
  border: 1px solid rgba(22, 101, 52, 0.35);
  border-radius: 8px;
}

.hero-video-label {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
}

.hero-video-platforms {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.hero-subtitle strong {
  color: var(--primary-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number--large {
  font-size: 2.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-trust {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.9;
}

/* Trusted logos scrolling bar */
.trusted-logos-bar {
  margin-top: 2rem;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.trusted-logos-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: trusted-logos-scroll 40s linear infinite;
}

.trusted-logos-track:hover {
  animation-play-state: paused;
}

@keyframes trusted-logos-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trusted-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 120px;
}

.trusted-logo img {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.85);
  opacity: 0.9;
}

.trusted-logo-placeholder {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  opacity: 0.7;
}

.trusted-logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.9;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Sections */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(22, 101, 52, 0.15);
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.approach-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
  text-align: center;
}

.approach-item:hover {
  border-color: var(--primary);
}

.approach-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.approach-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.approach-item strong {
  color: var(--primary-light);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-featured {
  border-color: rgba(22, 101, 52, 0.4);
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.08) 0%, var(--bg-card) 100%);
}

.service-card-featured h3 {
  color: var(--primary-light);
}

.service-card-featured p strong {
  color: var(--primary-light);
}

.service-header {
  width: 100%;
  height: 160px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.1) 0%, rgba(21, 128, 61, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(22, 101, 52, 0.2);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

/* SVG images should maintain aspect ratio */
.service-image[src$=".svg"] {
  object-fit: contain;
  padding: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.result-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.result-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.15) 0%, rgba(21, 128, 61, 0.15) 100%);
}

.result-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--gradient-1);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

.result-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.result-description {
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.7;
}

.result-metrics {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  text-align: center;
}

.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 1.25rem 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  background: var(--gradient-1);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cta-content p {
  font-size: 1.25rem;
  margin: 0 0 1.5rem 0;
  opacity: 0.95;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 0 2rem 0;
  line-height: 1.7;
}

.contact-details {
  margin-top: 2rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.contact-link:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 0;
}

.footer-column h4 {
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile menu */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 100%);
    height: 100vh;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    box-shadow: none;
  }

  .nav-menu.is-open {
    transform: translateX(0);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-menu .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .nav-menu .btn-nav {
    margin-top: 0.5rem;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 1001;
    transition: transform 0.3s ease;
  }

  .mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.menu-open::after {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.5rem 1.5rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }
}
