:root {
  --bg: #f8f9fc;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-strong: rgba(248, 249, 252, 0.98);
  --text: #1a1f3a;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --accent: #10b981;
  --danger: #ef4444;
  --border: rgba(37, 99, 235, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fc 50%, #f0fdf4 100%);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #2563eb, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav a {
  color: var(--text);
  margin-left: 28px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 64px 0 96px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 24px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 16px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: white;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-visual {
  position: relative;
}

.device-panel {
  position: relative;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(240, 244, 255, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
}

.pulse {
  animation: pulseShadow 6s ease-in-out infinite;
}

@keyframes pulseShadow {
  0%, 100% { box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15); }
  50% { box-shadow: 0 25px 70px rgba(37, 99, 235, 0.25); }
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.green {
  background: #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
}

.screen {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(240, 244, 255, 0.96), rgba(248, 250, 255, 0.98));
  border: 1px solid rgba(37, 99, 235, 0.12);
  overflow: hidden;
  padding: 24px;
}

.server-animation {
  position: absolute;
  inset: 24px 20px auto auto;
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.12));
  border: 2px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.2);
  animation: serverPulse 4s ease-in-out infinite;
}

@keyframes serverPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.96; }
  50% { transform: translateY(-10px) scale(1.02); opacity: 1; }
}

.message-card {
  position: absolute;
  left: 28px;
  width: calc(100% - 56px);
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--text);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.message-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.message-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.whatsapp {
  top: 88px;
  animation: slideIn 1.2s ease-out forwards;
}

.social {
  bottom: 28px;
  animation: floatUp 2.5s ease-in-out infinite alternate;
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

.section-grid,
.section-featured,
.pricing-section {
  padding: 96px 0;
}

.section-header {
  max-width: 600px;
  margin-bottom: 42px;
}

.section-header h2 {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.1;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
}

.card,
.feature-card,
.pricing-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.card h3,
.feature-card h3 {
  margin: 18px 0 12px;
  color: var(--text);
}

.card p,
.feature-card p,
.pricing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.icon-box {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -30% -50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 40%);
  transform: translateX(-20%);
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}

.animate-card {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.pricing-section {
  display: flex;
  justify-content: center;
}

.pricing-card {
  max-width: 640px;
  text-align: center;
}

.pricing-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.pricing-row div {
  min-width: 180px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(240, 244, 255, 0.8);
}

.pricing-row strong {
  display: block;
  font-size: 2.2rem;
  color: var(--text);
}

.pricing-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 28px 0 48px;
  color: rgba(0, 0, 0, 0.56);
  font-size: 0.95rem;
}

/* Why Section */
.why-section {
  padding: 96px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}

.why-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.why-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.15rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Timeline (Process) */
.section-timeline {
  padding: 96px 0;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

/* Sticky image panel that swaps as you scroll the steps */
.process-visual {
  position: sticky;
  top: 120px;
}

.process-images {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.process-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.process-image.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Dim steps that aren't the active one */
.timeline-item {
  transition: opacity 0.4s ease;
}

.timeline-item.is-active .timeline-content {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  z-index: 0;
}

.timeline-item {
  position: relative;
  padding: 40px 0 40px 88px;
  z-index: 1;
  opacity: 0;
  animation: timelineSlideIn 0.7s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes timelineSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-item:last-of-type {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 0 0 8px var(--bg), 0 0 30px rgba(37, 99, 235, 0.3);
  animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 8px var(--bg), 0 0 30px rgba(37, 99, 235, 0.3); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px var(--bg), 0 0 40px rgba(37, 99, 235, 0.5); }
}

.timeline-content {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  animation: contentFadeIn 0.7s ease forwards;
}

@keyframes contentFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-content h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.15rem;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.timeline-connector {
  height: 0;
}

/* Pricing Cards */
.pricing-cards-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 255, 0.94));
  border: 2px solid rgba(37, 99, 235, 0.15);
  border-radius: 32px;
  padding: 40px 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
  border-color: var(--primary);
}

.pricing-main {
  border-color: var(--accent);
  position: relative;
}

.pricing-main::before {
  content: 'POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pricing-card h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 1.25rem;
}

.price-highlight {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
}

.period {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-includes {
  flex: 1;
  margin-bottom: 28px;
}

.pricing-includes p {
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 600;
}

.pricing-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-includes li {
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  font-size: 0.95rem;
}

.pricing-includes li:last-child {
  border-bottom: none;
}

.addon-desc {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-addon {
  border-color: rgba(37, 99, 235, 0.12);
}

/* Contact Form */
.contact-section {
  padding: 96px 0;
}

.contact-section .section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 100%;
}

.contact-section .section-header p {
  margin-bottom: 12px;
}

.contact-section .section-header h2 {
  color: var(--primary);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 28px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.checkbox-label:hover {
  color: var(--text);
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-checkbox {
  display: flex;
  align-items: center;
  margin: 24px 0 32px;
  gap: 12px;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  margin: 0;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
}

.btn-large {
  min-width: 200px;
  padding: 18px 32px;
  font-size: 1rem;
  width: 100%;
  max-width: none;
}

/* Footer */
.footer {
  background: rgba(248, 249, 252, 0.98);
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  padding: 64px 32px 32px;
  margin-top: 96px;
}

.footer-content {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-section h4 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1rem;
}

.footer-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero-visual {
    order: -1;
  }

  .why-grid,
  .feature-grid,
  .pricing-cards-container {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 20px 18px;
    flex-direction: column;
    gap: 16px;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  nav a {
    margin-left: 0;
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .hero {
    gap: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-cards,
  .feature-grid,
  .why-grid,
  .pricing-cards-container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: 100%;
    padding: 32px 20px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .process-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Show the image first, then the steps, on small screens */
  .process-visual {
    position: static;
    top: auto;
    order: -1;
  }

  .timeline::before {
    left: 19px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .timeline-item {
    padding-left: 72px;
  }
}
