/* DazzleMedAI — brand: navy + accent red (logo-aligned) */

:root {
  --blue-900: #051344;
  --blue-800: #0b1220;
  --blue-600: #111827;
  --blue-400: #2d4a7c;
  --blue-100: #e9ecf7;
  --accent: #ff3b3b;
  --accent-dark: #e02626;
  --accent-soft: #fecdd3;
  --purple-600: var(--accent);
  --purple-400: #ff6b6b;
  --white: #ffffff;
  --gray-100: #0b1220;
  --gray-300: rgba(255, 255, 255, 0.12);
  --gray-500: #7b8794;
  --gray-700: #b8c1cc;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Poppins", system-ui, sans-serif;
  --font-display: "Montserrat", var(--font);
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Footer / global logo helpers */
.logo__mark {
  color: var(--purple-600);
  font-size: 0.9em;
}

.logo__ai {
  background: linear-gradient(135deg, var(--blue-400), var(--purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn--sm { padding: 0.45rem 0.95rem; font-size: 0.875rem; }
.btn--lg { padding: 0.85rem 1.5rem; }
.btn--xl { padding: 1rem 1.75rem; font-size: 1.05rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(225, 29, 46, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(225, 29, 46, 0.45);
}

.btn--outline {
  background: transparent;
  border-color: rgba(30, 77, 140, 0.35);
  color: var(--blue-800);
}

.btn--outline:hover {
  border-color: var(--blue-600);
  background: var(--blue-100);
}

.btn--ghost {
  background: transparent;
  color: var(--blue-800);
}

.btn--ghost:hover {
  background: var(--gray-100);
}

.btn--light {
  background: var(--white);
  color: var(--blue-900);
}

.btn--light:hover {
  box-shadow: var(--shadow-lg);
}

.btn--ghost-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(165deg, var(--blue-100) 0%, var(--white) 50%, #fff5f5 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 77, 140, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 77, 140, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  animation: grid-shift 20s linear infinite;
}

@keyframes grid-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 70%);
  top: -10%;
  right: -5%;
}

.hero__orb--2 {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  background: radial-gradient(circle, rgba(225, 29, 46, 0.35), transparent 70%);
  bottom: 10%;
  left: -5%;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 77, 140, 0.25), transparent 70%);
  top: 40%;
  left: 35%;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: var(--purple-400);
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--purple-600));
}

.animate-in {
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.12s; }
.animate-in:nth-child(3) { animation-delay: 0.19s; }
.animate-in:nth-child(4) { animation-delay: 0.26s; }
.animate-in:nth-child(5) { animation-delay: 0.33s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.section--muted {
  background: var(--gray-100);
}

.section--dark {
  background: linear-gradient(165deg, var(--blue-900) 0%, #121f35 100%);
  color: var(--gray-300);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__head--light .section__lead {
  color: rgba(255, 255, 255, 0.75);
}

.section__lead {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 39, 68, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--problem h3 {
  margin-top: 0.5rem;
}

.card__icon {
  font-size: 1.5rem;
  color: var(--purple-600);
}

/* Solution */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.solution-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--white), var(--blue-100));
  border: 1px solid rgba(30, 77, 140, 0.1);
  overflow: hidden;
}

.solution-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.1), transparent 70%);
  pointer-events: none;
}

.solution-card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--purple-600);
}

.solution-card h3 {
  margin: 0.5rem 0 0.75rem;
}

.solution-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--gray-700);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.services-grid .service-block--wide {
  grid-column: 1 / -1;
}

.service-block {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.service-block__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: 0.35rem;
}

.service-block h3 {
  margin: 0 0 1rem;
}

.service-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}

.service-block li {
  margin-bottom: 0.45rem;
}

.service-block--highlight {
  border: 1px solid rgba(225, 29, 46, 0.35);
  box-shadow: 0 0 0 1px rgba(225, 29, 46, 0.08), var(--shadow);
}

.service-block--highlight .service-block__tag {
  color: #fecaca;
  background: rgba(225, 29, 46, 0.2);
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.benefit {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: var(--shadow);
}

.benefit strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-900);
  margin-bottom: 0.35rem;
}

.benefit span {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-inline: auto;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.step:last-child {
  border-bottom: none;
}

.step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  border-radius: 12px;
}

.step h3 {
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  color: var(--gray-500);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote {
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  border: 1px solid rgba(15, 39, 68, 0.06);
}

.quote p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
}

.quote footer {
  font-size: 0.9rem;
}

.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--blue-900);
  display: block;
}

.quote footer span {
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* Offer */
.section--offer {
  padding-bottom: 0;
}

.offer-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-800) 0%, #1a1f4a 50%, var(--accent-dark) 100%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

.offer-card h2 {
  color: var(--white);
  margin: 0.5rem 0 1rem;
}

.offer-card p {
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.offer-list {
  margin: 0;
  padding-left: 1.2rem;
}

.offer-list li {
  margin-bottom: 0.4rem;
}

.offer-card__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
}

/* CTA block */
.section--cta {
  padding-top: 2rem;
}

.cta-block {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--blue-100) 0%, var(--white) 100%);
  border: 1px solid rgba(30, 77, 140, 0.12);
}

.cta-block h2 {
  margin-bottom: 0.75rem;
}

.cta-block p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: var(--gray-500);
}

/* Form */
.section--form {
  padding-bottom: 5rem;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.lead-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 39, 68, 0.08);
}

.field--multiselect {
  margin-bottom: 1.25rem;
}

.field--multiselect .services-multiselect {
  min-height: 11.5rem;
  padding: 0.65rem 0.5rem;
  line-height: 1.45;
  cursor: pointer;
}

.field--multiselect .services-multiselect option {
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  margin: 2px 0;
}

.field--multiselect .field-hint {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0.55rem 0 0;
  line-height: 1.5;
}

.field--multiselect .field-hint kbd {
  display: inline-block;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: var(--gray-200);
  color: var(--blue-900);
  border: 1px solid rgba(15, 39, 68, 0.12);
}

.field--checkboxes {
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
  min-width: 0;
}

.field--checkboxes legend {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.85rem;
  line-height: 1.45;
  padding: 0;
}

.checkbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.5;
  background: var(--gray-100);
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkbox-row:hover {
  border-color: rgba(225, 29, 46, 0.25);
}

.checkbox-row:focus-within {
  box-shadow: 0 0 0 2px rgba(225, 29, 46, 0.15);
}

.checkbox-row input {
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-row label {
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--gray-100);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 1rem 0 0;
  line-height: 1.5;
}

.lead-form button[type="submit"] {
  width: 100%;
  border: none;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1001;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__grid {
    animation: none;
  }

  .hero__orb {
    animation: none;
  }

  .animate-in {
    animation: none;
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .grid-3,
  .solution-grid,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

}

