:root {
  color-scheme: light;
  --bg: #f4fbff;
  --surface: #ffffff;
  --surface-soft: #e8f3fb;
  --primary: #3b97dc;
  --primary-soft: #d4edfc;
  --accent: #1a6fb3;
  --text: #1f3343;
  --muted: #5c7280;
  --shadow: 0 18px 50px rgba(17, 80, 128, 0.12);
  --radius: 24px;
  --max-width: 1180px;
}

body.dark-mode {
  color-scheme: dark;
  --bg: #101a24;
  --surface: #182633;
  --surface-soft: #213747;
  --primary-soft: #244b68;
  --text: #e6f1f7;
  --muted: #adc0cb;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  background: radial-gradient(circle at top left, #1b3b52 0%, #101a24 45%, #0c141c 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #e7f6ff 0%, #f4fbff 40%, #ffffff 100%);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 500px;
  height: 500px;
}

.brand-logo {
  display: block;
  max-height: 100px;
  width: auto;
  border-radius: 12px;
  transition: background 0.25s ease, padding 0.25s ease;
}

body.dark-mode .brand-logo {
  padding: 8px 12px;
  background: #f4fbff;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3b97dc 0%, #1a6fb3 100%);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.2rem;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 5rem;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(59, 151, 220, 0.2);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17, 80, 128, 0.1);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(59, 151, 220, 0.18);
  outline-offset: 2px;
}

.theme-toggle {
  width: 52px;
  height: 30px;
  padding: 3px;
  border: 1px solid rgba(59, 151, 220, 0.28);
  border-radius: 999px;
  background: #d4edfc;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(59, 151, 220, 0.2);
  outline-offset: 2px;
}

.theme-toggle-track {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.theme-toggle-knob {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(17, 80, 128, 0.25);
  transform: translateX(0);
  transition: transform 0.25s ease, background 0.25s ease;
}

.theme-toggle.is-dark {
  background: #244b68;
  border-color: rgba(173, 192, 203, 0.35);
}

.theme-toggle.is-dark .theme-toggle-knob {
  background: #e6f1f7;
  transform: translateX(20px);
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.hero-section,
.page-hero {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 0 24px 48px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(59, 151, 220, 0.12);
  color: #1a6fb3;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-copy h2,
.page-hero h2 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.05;
}

.hero-copy p,
.page-hero p {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 605px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(59, 151, 220, 0.16);
}

.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border: 1px solid rgba(59, 151, 220, 0.18);
}

.hero-visual {
  display: grid;
  gap: 20px;
}

.visual-card {
  min-height: 120px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.98));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
}

.card-1 { background: linear-gradient(135deg, #ebf7ff 0%, #d8eefe 100%); }
.card-2 { background: linear-gradient(135deg, #eff8ff 0%, #b9def6 100%); }
.card-3 { background: linear-gradient(135deg, #dbeefd 0%, #c4e2f8 100%); }

.highlights-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: var(--max-width);
  margin-top: 40px;
  padding: 0 8px;
  margin-left: auto;
  margin-right: auto;
}

.highlights-section article {
  background: var(--surface);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease;
}

.highlights-section article:hover {
  transform: translateY(-6px);
}

.review-section {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 0 24px 40px;
}

.review-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(229,244,255,0.92));
  box-shadow: var(--shadow);
}

.review-badge {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3b97dc, #1a6fb3);
  color: white;
  border-radius: 28px;
  padding: 24px;
  text-align: center;
}


.review-badge span {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.review-badge small {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.92;
}

.review-copy h3 {
  margin: 0 0 14px;
}

.review-copy p {
  margin: 0 0 22px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .review-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.highlights-section h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.highlights-section p {
  color: var(--muted);
  margin: 12px 0 0;
}

.page-hero {
  padding: 40px 0 20px;
  text-align: center;
}

.page-hero p {
  margin: 0 auto 0;
}

.about-grid,
.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  gap: 24px;
}

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

.about-card,
.service-card,
.contact-info,
.contact-form {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

body.dark-mode .about-card,
body.dark-mode .service-card,
body.dark-mode .contact-info,
body.dark-mode .contact-form,
body.dark-mode .review-panel,
body.dark-mode .secondary,
body.dark-mode .visual-card {
  background: var(--surface);
  border-color: rgba(173, 192, 203, 0.18);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #101a24;
  border-color: rgba(173, 192, 203, 0.25);
}

.about-card h3,
.service-card h3,
.contact-info h3 {
  margin-top: 0;
}

.about-card p,
.service-card p,
.contact-info p,
.contact-form label {
  color: var(--muted);
}

.feature-panel {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.feature-panel img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-panel ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-panel li {
  margin-bottom: 10px;
}

.founder-section,
.clients-section {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 0 24px;
}

.founder-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}

.founder-image-wrap {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.founder-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.founder-copy h2,
.section-heading h2 {
  margin: 0 0 16px;
}

.founder-copy p,
.section-heading p,
.client-card p {
  color: var(--muted);
  line-height: 1.75;
}

.founder-role {
  margin: -6px 0 18px;
  color: var(--primary) !important;
  font-weight: 700;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.client-card {
  padding: 24px;
  border: 1px solid rgba(59, 151, 220, 0.14);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.client-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.client-card h3 {
  margin: 0;
}

.client-card p {
  margin: 12px 0 0;
}

body.dark-mode .client-card {
  border-color: rgba(173, 192, 203, 0.18);
}

.feature-visual {
  min-height: 320px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(59,151,220,0.12) 0%, rgba(255,255,255,0.95) 100%);
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59,151,220,0.18), transparent 24%),
              radial-gradient(circle at 80% 40%, rgba(26,111,179,0.18), transparent 22%);
}

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

.service-card {
  border: 1px solid rgba(59,151,220,0.14);
}

.product-card {
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(59, 151, 220, 0.2);
  transform: translateY(-6px);
  outline: none;
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 30, 0.72);
  backdrop-filter: blur(5px);
}

.product-modal-content {
  position: relative;
  width: min(560px, 100%);
  padding: 36px;
  border: 1px solid rgba(59, 151, 220, 0.25);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  color: var(--text);
  animation: modalIn 0.22s ease both;
}

.product-modal-content .eyebrow {
  margin-bottom: 14px;
}

.product-modal-content h2 {
  margin: 0 0 14px;
}

.product-modal-description {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.75;
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.product-modal-close:hover,
.product-modal-close:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.contact-panel {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 14px;
}

.map-section {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  gap: 18px;
}

.map-section h3 {
  margin: 0;
}

.map-frame {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(59,151,220,0.18);
  background: #f7fbff;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  padding: 24px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer h4 {
  margin: 0 0 12px;
}

.footer-note {
  margin: 0;
}

.footer-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}


.footer-social a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social a img {
  width: 24px;
  height: 24px;
}

.footer-social a:hover {
  color: var(--accent);
}

.whatsapp-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 999px;
  background: #25d366;
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(37, 211, 102, 0.3);
  background: #20b357;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.9s forwards ease;
}

.delay-1 {
  animation-delay: 0.18s;
}

.delay-2 {
  animation-delay: 0.35s;
}

.delay-3 {
  animation-delay: 0.52s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 940px) {
  .hero-section,
  .feature-panel,
  .about-grid,
  .services-grid,
  .contact-panel,
  .founder-section {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    max-width: min(68vw, 260px);
    max-height: 72px;
  }

  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    flex: 0 0 auto;
  }

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

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

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

  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    z-index: 30;
    display: none;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(59, 151, 220, 0.18);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(17, 80, 128, 0.2);
  }

  .site-header.menu-open .main-nav {
    display: flex;
    animation: mobileMenuIn 0.2s ease both;
  }

  .main-nav a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--surface-soft);
  }

  .main-nav a.active::after,
  .main-nav a:hover::after {
    display: none;
  }

  .theme-toggle {
    margin: 8px 8px 4px;
  }
  .hero-section,
  .page-hero {
    padding-top: 24px;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .founder-section,
  .clients-section {
    margin-bottom: 44px;
  }

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

}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
