:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #102a43;
  background: #f7f9fc;
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #f7f9fc;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.whatsapp-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 55;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #102a43;
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: #475569;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #3b82f6;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.2rem;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #102a43;
  border-radius: 999px;
}

.section-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 1rem 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-block;
  color: #6366f1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.hero-copy p {
  max-width: 42rem;
  margin: 0;
  color: #475569;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: white;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.16);
}

.button-secondary {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.image-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.98);
  display: none;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  overflow: auto;
}

.image-popup-overlay.active {
  display: flex;
}

.image-popup-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-popup-inner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.popup-close {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #102a43;
  font-size: 1.5rem;
  cursor: pointer;
}

.popup-caption {
  color: #f8fafc;
  text-align: center;
  font-size: 0.95rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.25);
}

@media (max-width: 768px) {
  .image-popup-inner {
    padding: 1rem;
  }

  .popup-close {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
  }
}

.hero-card {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.hero-card p {
  margin: 0;
  color: #334155;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.hero-stats div {
  padding: 1rem;
  border-radius: 18px;
  background: #eff6ff;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: #102a43;
}

.hero-stats span {
  color: #475569;
}

.section {
  padding: 4rem 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-header span {
  color: #6366f1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.section-header h2 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.08;
}

.services .service-grid,
.testimonials .testimonial-grid,
.feature-grid .feature-cards,
.value-grid {
  display: grid;
  gap: 1.5rem;
}

.services .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: white;
}

.icon-web { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.icon-landing { background: linear-gradient(135deg, #7c3aed, #4338ca); }
.icon-ads { background: linear-gradient(135deg, #2563eb, #14b8a6); }
.icon-social { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.icon-brand { background: linear-gradient(135deg, #4338ca, #2563eb); }

.service-card h3 {
  margin: 0 0 0.75rem;
}

.service-card p {
  color: #475569;
}

.feature-cards,
.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.value-card,
.testimonial-card,
.about-card,
.service-detail-card,
.contact-info-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.feature-card h3,
.value-card h3,
.contact-info-card h2,
.service-detail-card h2 {
  margin-top: 0;
}

.feature-card p,
.value-card p,
.contact-info-card p {
  color: #475569;
}

.testimonials .testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card p {
  margin: 0 0 1.5rem;
  color: #334155;
}

.testimonial-card span {
  color: #64748b;
  font-size: 0.95rem;
}

.cta-banner {
  padding: 3rem 0;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  box-shadow: 0 20px 80px rgba(15, 23, 42, 0.08);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 2.2vw, 2.5rem);
}

.cta-panel p {
  margin: 0.75rem 0 0;
  color: #475569;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
}

.footer-links a {
  color: #475569;
}

.footer-note {
  margin-top: 1.5rem;
  color: #64748b;
  text-align: center;
}

.page-main {
  padding-top: 1rem;
}

.alt-hero {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.centered-copy {
  text-align: center;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 0.9fr;
}

.about-card ul,
.service-detail-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.about-card li,
.service-detail-card li {
  position: relative;
  padding-left: 1.5rem;
  color: #475569;
}

.about-card li::before,
.service-detail-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6366f1;
}

.value-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-heading h2 {
  margin: 0;
}

.contact-section {
  padding-bottom: 5rem;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.contact-item a {
  color: #475569;
}

.whatsapp-button {
  width: fit-content;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: #0f172a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  padding: 1rem 1.1rem;
  color: #0f172a;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.form-status {
  font-weight: 600;
  min-height: 1.5rem;
}

.status-success {
  color: #047857;
}

.status-error {
  color: #b91c1c;
}

.section.page-content {
  padding: 4rem 0 6rem;
}

.page-content h1,
.page-content h2 {
  color: #102a43;
}

.page-content p {
  color: #475569;
  max-width: 850px;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .feature-cards,
  .services .service-grid,
  .testimonials .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 740px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: 72px;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    transform: scale(0.95);
    opacity: 0;
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }

  .site-nav.nav-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.5rem 0;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .button {
    width: 100%;
  }
}
