/* ============================================
   Pragma AI Agency — Landing Page
   Brand: Navy + Pink + Purple
   Style: RealtyAssistant-inspired dark SaaS
   ============================================ */

/* --- Animated glow angle property --- */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* --- Design Tokens --- */
:root {
  /* Brand colors */
  --bg:          #0D1627;
  --bg-card:     #131D30;
  --bg-card-t:   rgba(19, 29, 48, 0.6);
  --border:      #1E2D47;
  --pink:        #F472B6;
  --purple:      #8B5CF6;
  --blue:        #6366F1;
  --fg:          #F0EDF5;
  --fg-muted:    #7A8299;
  --fg-dim:      #4A5568;

  /* Typography */
  --font-display: 'Urbanist', system-ui, sans-serif;
  --font-body:    'Epilogue', system-ui, sans-serif;

  /* Layout */
  --container: 1000px;
  --container-narrow: 760px;
  --section-py: 5rem;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}


/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}


/* --- Utilities --- */
.text-pink {
  color: var(--pink);
}

.text-muted {
  color: var(--fg-muted);
}

.gradient-text {
  background: linear-gradient(120deg, #f3f3f7, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow {
  text-shadow: 0 0 28px rgba(244, 114, 182, 0.45);
}

.text-center {
  text-align: center;
}


/* --- Background Effects --- */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(30, 45, 69, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 45, 69, 0.3) 1px, transparent 1px);
  background-size: 56px 56px;
  min-height: 100vh;
}

.bg-radial-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 500px;
  background: radial-gradient(
    60% 55% at 50% 0%,
    rgba(244, 114, 182, 0.14) 0%,
    rgba(139, 92, 246, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}


/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.875rem 1.5rem;
  background: rgba(13, 22, 39, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 45, 71, 0.5);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  max-height: 32px;
  width: auto;
  display: block;
}

.header-cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border: 1px solid rgba(244, 114, 182, 0.4);
  color: var(--pink);
  border-radius: 9999px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-cta:hover {
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.7);
}


/* ============================================
   CTA Buttons
   ============================================ */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.25rem;
  animation: fade-up 0.7s var(--ease-out) 0.2s both;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: button-pulse 2.5s ease-in-out infinite;
}

.cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cta-secondary:hover {
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.06);
}

.cta-secondary .play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent var(--pink);
}


/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: 8.5rem;
  padding-bottom: var(--section-py);
  text-align: center;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 750px;
  margin: 0 auto;
  animation: fade-up 0.7s var(--ease-out) both;
}

.hero-subtitle {
  margin: 1.25rem auto 0;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
  animation: fade-up 0.7s var(--ease-out) 0.1s both;
}


/* ============================================
   Section Eyebrow
   ============================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--pink);
  opacity: 0.6;
}


/* ============================================
   Cards (shared)
   ============================================ */
.card {
  padding: 1.75rem;
  background: var(--bg-card-t);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(244, 114, 182, 0.25);
  transform: translateY(-2px);
}


/* --- Glow border effect --- */
.glow-border {
  position: relative;
  isolation: isolate;
}

.glow-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--glow-angle),
    transparent 0deg,
    transparent 280deg,
    rgba(244, 114, 182, 0.8) 330deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: glow-rotate 5s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.glow-border:hover::after {
  opacity: 1;
}

@keyframes glow-rotate {
  to { --glow-angle: 360deg; }
}


/* --- Shimmer border (static) --- */
.shimmer-border {
  position: relative;
}

.shimmer-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.5),
    transparent 40%,
    transparent 60%,
    rgba(139, 92, 246, 0.35)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


/* ============================================
   Benefits
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: rgba(244, 114, 182, 0.12);
  color: var(--pink);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.benefit-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.benefit-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg-muted);
}


/* ============================================
   Video
   ============================================ */
.video-section .container {
  max-width: 920px;
  text-align: center;
}

.video-wrapper {
  margin-top: 1.25rem;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px 10px rgba(244, 114, 182, 0.06);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ============================================
   Steps (Cómo funciona)
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(244, 114, 182, 0.08);
  line-height: 1;
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  pointer-events: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.step-card:hover .step-number {
  transform: scale(1.15);
  color: rgba(244, 114, 182, 0.15);
}

.step-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  padding: 0.3rem 0.75rem;
  background: rgba(244, 114, 182, 0.1);
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--fg-muted);
  position: relative;
  z-index: 1;
}


/* ============================================
   Guarantee
   ============================================ */
.guarantee-section {
  text-align: center;
}

.guarantee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card-t);
  border: 1px solid var(--border);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.guarantee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--pink), var(--purple));
  border-radius: 1rem 0 0 1rem;
}

.guarantee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.1);
  color: var(--pink);
  margin-bottom: 1.25rem;
}

.guarantee-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  padding: 0.3rem 0.75rem;
  background: rgba(244, 114, 182, 0.1);
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.guarantee-headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.guarantee-detail {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--container-narrow);
  margin: 0.5rem auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card-t);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(244, 114, 182, 0.2);
}

.faq-question {
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--pink);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-item[open] .faq-question {
  color: var(--pink);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg-muted);
}


/* ============================================
   Footer Social
   ============================================ */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 0.75rem 0;
}

.footer-social a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.25s ease;
}

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


/* ============================================
   Calendar
   ============================================ */
.calendar-section {
  text-align: center;
}

.calendar-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.calendar-container {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 80px 10px rgba(244, 114, 182, 0.05);
}

.calendar-container iframe {
  width: 100%;
  height: 700px;
  border: 0;
}


/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.footer-cities {
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin-bottom: 0.25rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--fg-dim);
}


/* ============================================
   Animations
   ============================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-pulse {
  0%, 100% {
    box-shadow: 0 8px 30px -8px rgba(244, 114, 182, 0.5);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 8px 30px -8px rgba(244, 114, 182, 0.8),
      0 0 40px 8px rgba(244, 114, 182, 0.2);
    filter: brightness(1.12);
  }
}


/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================
   Responsive — Tablet (640px+)
   ============================================ */
@media (min-width: 640px) {
  :root {
    --section-py: 6rem;
  }

  .hero {
    padding-top: 10rem;
  }

  .benefits-grid,
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .card {
    padding: 1.75rem 1.5rem;
  }

  .faq-question {
    font-size: 1rem;
  }
}


/* ============================================
   Responsive — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  :root {
    --section-py: 7rem;
  }

  .container {
    padding: 0 2rem;
  }

  .hero {
    padding-top: 11rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .benefits-grid,
  .steps-grid {
    gap: 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .step-number {
    font-size: 4.5rem;
  }

}
