:root {
  --blue-900: #0a2a4a;
  --blue-700: #135aa3;
  --blue-500: #1a7bd6;
  --blue-200: #cfe7ff;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.75);
  --shadow: rgba(10, 42, 74, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  color: var(--blue-900);
  background: radial-gradient(circle at top left, #e9f4ff 0%, #ffffff 40%, #f3f8ff 100%);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  position: relative;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

body.dark {
  color: #e8f1ff;
  background: radial-gradient(circle at top left, #0d1b2b 0%, #0a1320 45%, #050a12 100%);
}

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

.bg-orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.35;
  z-index: -1;
}

.orbit-1 {
  width: 26.25rem;
  height: 26.25rem;
  background: radial-gradient(circle, var(--blue-200), transparent 65%);
  top: -7.5rem;
  left: -8.75rem;
}

.orbit-2 {
  width: 31.25rem;
  height: 31.25rem;
  background: radial-gradient(circle, #9cc9ff, transparent 70%);
  bottom: -12.5rem;
  right: -10rem;
}

.hero {
  padding: 2rem 8vw 5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  color: var(--blue-700);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-actions a {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 90, 163, 0.2);
  background: var(--white);
  color: var(--blue-700);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.whatsapp-icon {
  width: 1.125rem;
  height: 1.125rem;
}

body.dark .whatsapp-link {
  background: rgba(8, 18, 32, 0.7);
  color: #e8f1ff;
  border-color: rgba(255, 255, 255, 0.2);
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 90, 163, 0.2);
  background: var(--white);
  color: var(--blue-700);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.github-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.github-link .github-icon.dark {
  display: none;
}

body.dark .github-link {
  background: rgba(8, 18, 32, 0.7);
  color: #e8f1ff;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark .github-link .github-icon.light {
  display: none;
}

body.dark .github-link .github-icon.dark {
  display: inline-flex;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 90, 163, 0.2);
  background: var(--white);
  color: var(--blue-700);
  font-weight: 700;
  cursor: pointer;
  min-height: 2rem;
  transition: background 0.2s ease;
}

.whatsapp-link:hover,
.github-link:hover,
.theme-toggle:hover {
  background: rgba(19, 90, 163, 0.08);
}

body.dark .whatsapp-link:hover,
body.dark .github-link:hover,
body.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.theme-icon {
  font-size: 0.95rem;
}

body.dark .theme-toggle {
  background: rgba(8, 18, 32, 0.7);
  color: #e8f1ff;
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--white);
  box-shadow: 0 10px 30px var(--shadow);
  border-radius: 1rem;
  padding: 0.625rem 0.75rem;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  background: var(--blue-700);
  margin: 0.25rem 0;
  transition: transform 0.3s ease;
}

.hero-content {
  max-width: 60rem;
}

.eyebrow {
  color: var(--blue-700);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0.75rem 0 1rem;
}

.lead {
  font-size: 1.1rem;
  max-width: 40rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, color 0.2s ease;
  border: 0;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(120deg, #1a7bd6, #2a9df4, #0f62b3);
  background-size: 200% 200%;
  color: var(--white);
  box-shadow: 0 18px 30px rgba(26, 123, 214, 0.25);
  animation: gradient-flow 6s ease infinite;
}

.form .btn.primary {
  background: linear-gradient(120deg, #0f8f4f, #20c172, #0b6b3f);
  background-size: 200% 200%;
  box-shadow: 0 18px 30px rgba(15, 143, 79, 0.25);
  animation: gradient-flow 6s ease infinite;
}

.btn.ghost {
  border: 0.125rem solid var(--blue-500);
  color: var(--blue-700);
}

.btn.primary:hover {
  background: linear-gradient(120deg, #0f62b3, #2a9df4, #1a7bd6);
}

.btn.ghost:hover {
  background: rgba(19, 90, 163, 0.22);
  color: var(--blue-700);
}

body.dark .btn.ghost:hover {
  background: rgba(232, 241, 255, 0.2);
  color: #e8f1ff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.125rem;
  margin-top: 1.75rem;
}

.hero-metrics div {
  background: var(--glass);
  backdrop-filter: blur(6px);
  padding: 1rem;
  border-radius: 1.125rem;
  box-shadow: 0 18px 40px var(--shadow);
}

body.dark .hero-metrics div {
  background: rgba(8, 18, 32, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-metrics strong {
  font-size: 1.5rem;
  display: block;
  color: var(--blue-700);
}

.section {
  padding: 4.5rem 8vw;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-title p {
  margin-top: 0.75rem;
  max-width: 38.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1.375rem;
  box-shadow: 0 20px 40px var(--shadow);
  border: 1px solid rgba(19, 90, 163, 0.1);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.875rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

.services .card .card-icon {
  filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
  animation: soft-bounce 2.6s ease-in-out infinite;
}

body.dark .services .card .card-icon {
  filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.services .card:nth-child(2) .card-icon {
  animation-delay: 0.2s;
}

.services .card:nth-child(3) .card-icon {
  animation-delay: 0.4s;
}

.services .card {
  background: linear-gradient(120deg, #1a7bd6, #2a9df4, #0f62b3);
  background-size: 200% 200%;
  animation: gradient-flow 10s ease infinite;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.services .card h3 {
  color: var(--white);
}

.services .card ul {
  color: var(--white);
}

.card h3 {
  margin-bottom: 0.625rem;
  color: var(--blue-700);
}

.card ul {
  margin-top: 0.875rem;
  padding-left: 1.125rem;
}

.card li {
  margin: 0.375rem 0;
}

.process {
  background: linear-gradient(120deg, #f3f9ff 0%, #ffffff 100%);
}

body.dark .process {
  background: linear-gradient(120deg, #0c1a2a 0%, #0a1320 100%);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.125rem;
  margin-top: 2rem;
}

.step {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--glass);
  position: relative;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--glass), var(--glass)),
    linear-gradient(135deg, #1a7bd6, #2a9df4, #0f62b3);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

body.dark .step {
  background-image: linear-gradient(rgba(8, 18, 32, 0.75), rgba(8, 18, 32, 0.75)),
    linear-gradient(135deg, #1a7bd6, #2a9df4, #0f62b3);
}

.step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -1.875rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(120deg, #1a7bd6, #2a9df4, #0f62b3);
  border-radius: 50%;
  box-shadow: 0 12px 24px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
  animation: soft-bounce 2.6s ease-in-out infinite;
  font-size: 1.1rem;
}

body.dark .step:not(:last-child)::after {
  color: #e8f1ff;
  background: linear-gradient(120deg, #1a7bd6, #2a9df4, #0f62b3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(19, 90, 163, 0.6);
}

body.dark .nav-links {
  background: rgba(8, 18, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-panel {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
  align-items: start;
}

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

.form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.form input,
.form textarea {
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(19, 90, 163, 0.2);
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
}

.form-note {
  font-size: 0.9rem;
  color: var(--blue-700);
  min-height: 1.25rem;
}

.contact-info {
  background: linear-gradient(120deg, #1a7bd6, #2a9df4, #0f62b3);
  background-size: 200% 200%;
  animation: gradient-flow 10s ease infinite;
  padding: 1.5rem;
  border-radius: 1.375rem;
  box-shadow: 0 20px 40px var(--shadow);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.mini-card {
  margin-top: 1.125rem;
  padding: 1.125rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

body.dark .card {
  background: rgba(8, 18, 32, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8f1ff;
}

body.dark .card h3,
body.dark .section-title h2,
body.dark .section-title p,
body.dark .lead,
body.dark .hero h1,
body.dark .eyebrow,
body.dark .logo,
body.dark .nav-links a,
body.dark .footer {
  color: #e8f1ff;
}

body.dark .form input,
body.dark .form textarea {
  background: rgba(8, 18, 32, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e8f1ff;
}

body.dark .form input::placeholder,
body.dark .form textarea::placeholder {
  color: rgba(232, 241, 255, 0.65);
}

.mini-card h4 {
  animation: soft-bounce 2.6s ease-in-out infinite;
}

.mini-card li {
  animation: soft-bounce 2.6s ease-in-out infinite;
}

.mini-card li:nth-child(2) {
  animation-delay: 0.2s;
}

.mini-card li:nth-child(3) {
  animation-delay: 0.4s;
}

.footer {
  padding: 2rem 8vw 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

@media (max-width: 51.25rem) {
  .nav-links {
    display: none;
    position: absolute;
    right: 4vw;
    top: 4.25rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 1.125rem;
    box-shadow: 0 20px 40px var(--shadow);
    flex-direction: column;
    gap: 0.75rem;
    min-width: 9rem;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
    flex-direction: column;
  }

  .theme-text {
    display: none;
  }

  .github-link span {
    display: none;
  }

  .whatsapp-link span {
    display: none;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .hero {
    padding-top: 1.5rem;
  }
}

@media (max-width: 37.5rem) {
  .hero {
    padding-bottom: 3.75rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes soft-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
