/* ══════════════════════════════════════
   TOKENS
   ══════════════════════════════════════ */
:root {
  --green: #16A34A;
  --green-hover: #15803D;
  --green-light: #F0FDF4;
  --black: #111111;
  --gray-900: #1A1A1A;
  --gray-700: #404040;
  --gray-500: #6B6B6B;
  --gray-300: #D4D4D4;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-300);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  font-size: 18px;
}
.brand-badge {
  width: 36px;
  height: 36px;
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Space Grotesk', monospace;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ── Buttons ── */
.btn-cta {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover {
  background: var(--green-hover);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-cta:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-lang {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-lang:hover { border-color: var(--black); }


/* ── Burger ── */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
  font-size: 24px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  padding: 16px 24px;
  gap: 16px;
}
.mobile-menu a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}
.mobile-menu.open { display: flex; }

@media (max-width: 991px) {
  .nav-links,
  .nav-right .btn-cta { display: none; }
  .burger { display: block; }
}


/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero { padding: 80px 0 64px; }

.hero-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 20px;
  max-width: 620px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  max-width: 100%;
  height: auto;
}
.hero-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--gray-500);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}


/* ══════════════════════════════════════
   TOOLS MARQUEE
   ══════════════════════════════════════ */
.tools-strip {
  background: var(--gray-100);
  padding: 24px 0;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  overflow: hidden;
  position: relative;
}
.tools-strip::before,
.tools-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.tools-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--gray-100), transparent);
}
.tools-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--gray-100), transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee-scroll 45s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }

.tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-700);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s;
}
.tool-item:hover { color: var(--black); }
.tool-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.3s, opacity 0.3s;
}
.tool-item:hover .tool-icon-img {
  filter: grayscale(0%);
  opacity: 1;
}
.tool-item i {
  font-size: 24px;
  color: var(--gray-500);
  transition: color 0.3s;
}
.tool-item:hover i { color: var(--black); }

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


/* ══════════════════════════════════════
   SECTIONS - SHARED
   ══════════════════════════════════════ */
.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  color: var(--black);
}


/* ══════════════════════════════════════
   SERVICES
   ══════════════════════════════════════ */
.services { padding: 80px 0; }

.service-card {
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  padding: 32px 28px;
  height: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.1);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service-icon i {
  font-size: 24px;
  color: var(--green);
}
.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}
.service-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}


/* ══════════════════════════════════════
   PAIN POINTS
   ══════════════════════════════════════ */
.pain {
  padding: 80px 0;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.pain-card { padding: 32px 0; }
.pain-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--black);
}
.pain-card p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.65;
  margin: 0;
  max-width: 500px;
}


/* ══════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════ */
.how { padding: 80px 0; }

.step {
  text-align: center;
  padding: 24px 16px;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  transition: background 0.3s, transform 0.3s;
}
.step:hover .step-number {
  background: var(--green);
  transform: scale(1.1);
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.step p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}


/* ══════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════ */
.projects {
  padding: 80px 0;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.project-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.project-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.1);
  transform: translateY(-4px);
}
.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.project-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--gray-100);
  display: grid;
  place-items: center;
  color: var(--gray-500);
  font-size: 13px;
  border-bottom: 1px solid var(--gray-300);
}
.project-body { padding: 28px 24px; }
.project-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.project-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}
.project-body p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 0 16px;
}
.project-result {
  font-size: 14px;
  color: var(--gray-500);
  font-style: italic;
  margin: 0 0 20px;
}
.link-arrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.link-arrow:hover {
  gap: 10px;
  color: var(--green-hover);
}


/* ══════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════ */
.testimonials {
  padding: 80px 0;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
}
.testimonials-row {
  overflow: hidden;
  margin-bottom: 20px;
}
.testimonials-row:last-child { margin-bottom: 0; }

.testimonials-track.row-left { animation: marquee-left 45s linear infinite; }
.testimonials-track.row-right { animation: marquee-right 45s linear infinite; }

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

.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  padding: 24px;
  width: 360px;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--green); }

.testimonial-stars {
  color: var(--green);
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0 0 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin: 0;
}
.testimonial-role {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.contact { padding: 80px 0; }

.contact-form { max-width: 560px; }
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--black);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-note {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 16px;
  line-height: 1.5;
}


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 48px 0 32px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--gray-300);
  font-size: 22px;
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: var(--white);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
}


/* ══════════════════════════════════════
   GSAP INITIAL STATES
   Elements start hidden and GSAP animates them.
   If GSAP fails to load, this fallback shows them.
   ══════════════════════════════════════ */
.gs-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Fallback: if JS doesn't run within 3s, show everything */
@media (prefers-reduced-motion: reduce) {
  .gs-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .marquee-track,
  .testimonials-track.row-left,
  .testimonials-track.row-right {
    animation: none !important;
  }
}
