:root {
  color-scheme: light;
  --focus-ring: #145fcc;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --focus-ring: #66c9ff;
}

html {
  scroll-padding-top: 5.5rem;
}

:root {
  --site-nav-height: 78px;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header {
  top: 0;
  width: 100%;
  isolation: isolate;
  background: var(--header-bg, rgba(255, 255, 255, 0.94));
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(8, 37, 65, 0.12);
}

[data-theme="light"] .site-header,
[data-theme="light"] .site-header.scrolled {
  background: #ffffff;
  border-bottom-color: #e4ebf3;
}

[data-theme="dark"] .site-header {
  background: rgba(5, 17, 30, 0.96);
}

.nav-container {
  min-height: var(--site-nav-height);
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.brand {
  text-decoration: none;
}

.desktop-nav {
  align-self: stretch;
  gap: clamp(0.8rem, 1.7vw, 2rem);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-link::after {
  bottom: 17px;
}

.nav-link[aria-current="page"] {
  color: var(--nav-hover);
}

.nav-actions {
  flex-shrink: 0;
  gap: clamp(0.5rem, 1vw, 1rem);
}

.theme-toggle,
.menu-toggle {
  flex-shrink: 0;
  border-radius: 12px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--blue);
  box-shadow: 0 5px 16px rgba(8, 124, 255, 0.14);
}

.whatsapp-btn {
  border-radius: 9px;
  text-decoration: none;
}

.mobile-menu {
  top: var(--mobile-menu-top, var(--site-nav-height));
  right: 0;
  left: 0;
  width: 100%;
  min-height: calc(100vh - var(--mobile-menu-top, var(--site-nav-height)));
  min-height: calc(100dvh - var(--mobile-menu-top, var(--site-nav-height)));
  max-height: calc(100vh - var(--mobile-menu-top, var(--site-nav-height)));
  max-height: calc(100dvh - var(--mobile-menu-top, var(--site-nav-height)));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1rem, 4vw, 1.5rem);
  background: var(--surface, #ffffff);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 9998;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
}

[data-theme="dark"] .mobile-menu {
  background: var(--surface, #071727);
}

.mobile-menu nav {
  width: min(100%, 34rem);
  margin-inline: auto;
  gap: 0.35rem;
}

.mobile-link {
  border-radius: 10px;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    padding-left 180ms ease;
}

.mobile-link:hover {
  padding-left: 1.25rem;
}

.mobile-link[aria-current="page"] {
  font-weight: 700;
}

.mobile-whatsapp {
  border-radius: 10px;
  text-decoration: none;
}

.menu-toggle i {
  transition: transform 180ms ease;
}

.menu-toggle.active i {
  transform: rotate(90deg);
}

.menu-open {
  overflow: hidden;
}

.site-footer a:focus-visible,
.site-footer a:hover {
  color: #8edbff;
}

.skip-link {
  position: fixed;
  z-index: 10001;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #10243a;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.project-form input,
.project-form select,
.project-form textarea {
  max-width: 100%;
}

body.legal-document {
  min-height: 100vh;
  background: var(--surface, #fff);
  color: var(--text, #1d2d44);
}

.legal-page {
  max-width: 56rem;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.75;
}

.legal-page nav {
  margin-bottom: 1.5rem;
  color: var(--text-light, #64748b);
  font-size: 0.9rem;
}

.legal-page h1,
.legal-page h2 {
  margin-block: 1.75rem 0.75rem;
  color: var(--text, #1d2d44);
}

.legal-page h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-page h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.legal-page p {
  margin-block: 0.75rem 1rem;
}

.legal-page a {
  color: var(--nav-hover, #087cff);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

[data-theme="dark"] .legal-page h1,
[data-theme="dark"] .legal-page h2 {
  color: #f3f7ff;
}

.project-form input,
.project-form select,
.project-form textarea,
.theme-toggle,
.menu-toggle {
  color: var(--text, #1d2d44);
}

[data-theme="dark"] .project-form input,
[data-theme="dark"] .project-form select,
[data-theme="dark"] .project-form textarea {
  color: #f3f7ff;
  color-scheme: dark;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity 600ms cubic-bezier(0.2, 0.7, 0.25, 1),
    transform 600ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-enabled .site-reveal {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity 650ms cubic-bezier(0.2, 0.7, 0.25, 1) var(--reveal-delay, 0ms),
    transform 650ms cubic-bezier(0.2, 0.7, 0.25, 1) var(--reveal-delay, 0ms);
}

.js-enabled .site-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .nav-container {
    gap: 0.75rem;
  }

  .desktop-nav {
    gap: 0.9rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .whatsapp-btn {
    padding-inline: 0.8rem;
  }
}

@media (max-width: 900px) {
  :root {
    --site-nav-height: 78px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
    pointer-events: none;
  }

  .mobile-menu.open {
    pointer-events: auto;
  }
}

@media (max-width: 800px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content,
  .hero-visual {
    min-width: 0;
  }

  .hero-visual {
    overflow: hidden;
  }

  .visual-glow {
    width: min(100%, 450px);
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 600px) {
  :root {
    --site-nav-height: 65px;
  }

  .nav-container {
    min-height: var(--site-nav-height);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-content strong {
    font-size: 1rem;
  }

  .brand-content small {
    font-size: 0.5rem;
  }

  .theme-toggle {
    width: 50px;
  }

  [data-theme="dark"] .theme-ball {
    transform: translateX(18px);
  }

  .whatsapp-btn span {
    display: none;
  }

  .whatsapp-btn {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .mobile-menu {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }

  .js-enabled .site-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html[data-theme="light"] .hero-section {
  background:
    radial-gradient(circle at 78% 45%, rgba(26, 87, 180, 0.1), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(112, 72, 255, 0.08), transparent 35%),
    #f3f7fc;
}

html[data-theme="light"] .hero-grid {
  opacity: 0.35;
}

html[data-theme="light"] .hero-content h1,
html[data-theme="light"] .hero-description,
html[data-theme="light"] .hero-features,
html[data-theme="light"] .hero-badge {
  color: #172b43;
}

html[data-theme="light"] .hero-description {
  color: #52647b;
}

html[data-theme="light"] .hero-badge {
  border-color: rgba(8, 124, 255, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(22, 53, 88, 0.07);
}

html[data-theme="light"] .feature-item {
  color: #40546c;
}

html[data-theme="light"] .stats-section {
  color: #172b43;
  background: #eaf1f8;
}

html[data-theme="light"] .stats-section :is(h2, h3, p, span, strong) {
  color: #172b43;
}

html[data-theme="light"] .wa-services-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 120, 255, 0.06), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(100, 50, 220, 0.06), transparent 30%),
    #f5f8fc;
}

html[data-theme="light"] .wa-services-section::before {
  opacity: 0.35;
}

html[data-theme="light"] .wa-services-heading h2,
html[data-theme="light"] .wa-service-content h3 {
  color: #172b43;
}

html[data-theme="light"] .wa-services-heading p,
html[data-theme="light"] .wa-service-content p {
  color: #52647b;
}

html[data-theme="light"] .wa-services-view-btn {
  color: #174776;
  background: #ffffff;
}

html[data-theme="light"] .wa-service-card {
  border-color: #dce6f0;
  background: linear-gradient(145deg, #ffffff, #f7faff);
  box-shadow: 0 9px 24px rgba(22, 53, 88, 0.07);
}

html[data-theme="light"] .wa-work-section {
  color: #172b43;
  background:
    radial-gradient(circle at 88% 20%, rgba(112, 72, 255, 0.07), transparent 34%),
    #edf3f9;
}

html[data-theme="light"] .wa-work-section :is(h2, h3, p) {
  color: #172b43;
}

html[data-theme="light"] .wa-work-label {
  color: #35516f;
}

html[data-theme="light"] .wa-work-point {
  color: #40546c;
}

html[data-theme="light"] .wa-project-card {
  border-color: #dce6f0;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(22, 53, 88, 0.08);
}

html[data-theme="light"] .wa-project-info h3 {
  color: #172b43;
}

html[data-theme="light"] .wa-project-info p {
  color: #52647b;
}

html[data-theme="light"] .wa-projects-btn {
  border-color: #c8d8e8;
  color: #174776;
  background: #ffffff;
}

html[data-theme="light"] .wa-projects-btn i {
  color: #087cff;
}

html[data-theme="light"] .pp-section {
  color: #172b43;
  background:
    radial-gradient(circle at 12% 14%, rgba(8, 124, 255, 0.06), transparent 30%),
    #f5f8fc;
}

html[data-theme="light"] .pp-section :is(h2, h3, p) {
  color: #172b43;
}

html[data-theme="light"] .pp-section .pp-label {
  color: #35516f;
}

html[data-theme="light"] .pp-review-card,
html[data-theme="light"] .pp-support-item {
  border-color: #dce6f0;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(22, 53, 88, 0.08);
}

html[data-theme="light"] .pp-review-card :is(h3, p, span),
html[data-theme="light"] .pp-support-item :is(h3, p, span) {
  color: #40546c;
}

html[data-theme="light"] .iw-about-hero {
  background:
    radial-gradient(ellipse at 16% 16%, rgba(8, 124, 255, 0.09), transparent 35%),
    radial-gradient(ellipse at 73% 48%, rgba(112, 72, 255, 0.09), transparent 38%),
    linear-gradient(115deg, #f4f8fc, #eaf1f8);
}

html[data-theme="light"] .iw-about-hero__content :is(.iw-about-hero__title, .iw-about-hero__description, .iw-about-hero__service) {
  color: #172b43;
}

html[data-theme="light"] .iw-about-hero__description {
  color: #52647b;
}

html[data-theme="light"] .iw-about-hero__eyebrow {
  color: #35516f;
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .iw-stats-container {
  border-color: #dce6f0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(8, 124, 255, 0.08), transparent 65%),
    linear-gradient(110deg, #ffffff, #f1f6fb);
  box-shadow: 0 16px 40px rgba(22, 53, 88, 0.09);
}

html[data-theme="light"] .iw-stats-card :is(h2, h3, p, strong, small, span) {
  color: #172b43;
}

html[data-theme="light"] .iw-stats-card + .iw-stats-card::before {
  background: #dce6f0;
}

html[data-theme="light"] .iw-founders-section,
html[data-theme="light"] .iw-core-section,
html[data-theme="light"] .iw-choose-section,
html[data-theme="light"] .iw-tech-section,
html[data-theme="light"] .process-section,
html[data-theme="light"] .client-reviews {
  color: #172b43;
  background:
    radial-gradient(ellipse at 78% 40%, rgba(8, 124, 255, 0.055), transparent 38%),
    linear-gradient(115deg, #f4f8fc, #eaf1f8);
}

html[data-theme="light"] .iw-founders-section :is(.iw-founders-heading, .iw-founders-description),
html[data-theme="light"] .iw-core-section :is(.iw-core-title, .iw-core-intro),
html[data-theme="light"] .iw-choose-section :is(.iw-choose-heading, .iw-choose-description),
html[data-theme="light"] .iw-tech-section :is(.iw-tech-title, .iw-tech-description),
html[data-theme="light"] .process-section :is(.process-section__label, .process-section__title, .process-section__description),
html[data-theme="light"] .client-reviews :is(.client-reviews__label, .client-reviews__intro h2, .client-reviews__intro > p) {
  color: #172b43;
}

html[data-theme="light"] .iw-founders-section .iw-founders-description,
html[data-theme="light"] .iw-core-section .iw-core-intro,
html[data-theme="light"] .iw-choose-section .iw-choose-description,
html[data-theme="light"] .iw-tech-section .iw-tech-description,
html[data-theme="light"] .process-section .process-section__description,
html[data-theme="light"] .client-reviews .client-reviews__intro > p {
  color: #52647b;
}

html[data-theme="light"] .iw-founders-card,
html[data-theme="light"] .iw-core-card,
html[data-theme="light"] .iw-choose-card,
html[data-theme="light"] .client-review-card {
  border-color: #dce6f0;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(22, 53, 88, 0.09);
}

html[data-theme="light"] .iw-founders-card :is(.iw-founders-name, .iw-founders-role, .iw-founders-bio, .iw-founders-tags span),
html[data-theme="light"] .iw-core-card :is(.iw-core-card-title, .iw-core-card-text),
html[data-theme="light"] .iw-choose-card :is(.iw-choose-card-title, .iw-choose-card-text),
html[data-theme="light"] .client-review-card :is(h3, p, .client-review-card__quote) {
  color: #172b43;
}

html[data-theme="light"] .iw-founders-eyebrow,
html[data-theme="light"] .iw-core-eyebrow,
html[data-theme="light"] .iw-choose-eyebrow,
html[data-theme="light"] .iw-tech-eyebrow {
  color: #35516f;
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .iw-founders-tags span {
  border-color: #dce6f0;
  background: #f4f8fc;
}

html[data-theme="light"] .process-section__step h3,
html[data-theme="light"] .process-section__step p {
  color: #172b43;
}

html[data-theme="light"] .process-section__label,
html[data-theme="light"] .client-reviews__label {
  border-color: #d7e4f1;
  background: #ffffff;
}

html[data-theme="light"] .client-review-card__person p {
  color: #52647b;
}

html[data-theme="light"] .client-review-card__quote {
  color: #40546c;
}

.js-enabled .site-text-reveal {
  opacity: 0;
  transform: translate3d(0, 0.65rem, 0);
  transition:
    opacity 520ms cubic-bezier(0.2, 0.7, 0.25, 1) var(--text-reveal-delay, 0ms),
    transform 520ms cubic-bezier(0.2, 0.7, 0.25, 1) var(--text-reveal-delay, 0ms);
}

.js-enabled .site-text-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .site-text-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
