/* ============================================
   FINTERRA — Landing Page
   Refined editorial · Premium · Mobile-first
   ============================================ */

:root {
  /* Brand */
  --purple: #5d3c75;
  --purple-deep: #1b0d30;
  --purple-light: #8a6fa3;
  --gold: #c9a961;

  /* Neutrals */
  --cream: #faf7f2;
  --paper: #f4ede1;
  --ink: #1b0d30;
  --ink-soft: #4a3960;
  --line: rgba(27, 13, 48, 0.12);

  /* Type */
  --font-display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body: 'Assistant', system-ui, sans-serif;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 32px);
  --max-w: 480px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* Subtle paper texture */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(93, 60, 117, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(201, 169, 97, 0.03) 0%, transparent 50%);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 32px var(--pad-x) 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero__logo-wrap {
  margin-bottom: 40px;
}

.hero__logo {
  height: 44px;
  width: auto;
  opacity: 0.95;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(93, 60, 117, 0.2);
  border-radius: 100px;
  background: rgba(93, 60, 117, 0.04);
  animation: fadeUp 0.8s 0.1s var(--ease) both;
}

.hero__dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 7.5vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}

.hero__headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--purple);
  position: relative;
}

.hero__sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 auto;
  animation: fadeUp 0.8s 0.3s var(--ease) both;
}

/* ============================================
   VIDEO
   ============================================ */
.video {
  padding: 32px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  animation: fadeUp 0.8s 0.4s var(--ease) both;
}

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16; /* YouTube Short ratio */
  max-height: 70vh;
  border-radius: 18px;
  overflow: hidden;
  background: var(--purple-deep);
  box-shadow:
    0 20px 60px -20px rgba(27, 13, 48, 0.35),
    0 8px 20px -10px rgba(27, 13, 48, 0.25);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  color: rgba(255, 255, 255, 0.85);
}

.video__placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================
   FORM
   ============================================ */
.form-section {
  padding: 32px var(--pad-x) 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  animation: fadeUp 0.8s 0.5s var(--ease) both;
}

.form-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-section__sub {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  position: relative;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.field input {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s var(--ease);
  text-align: right;
}

.field input::placeholder {
  color: rgba(27, 13, 48, 0.35);
  font-weight: 400;
}

.field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(93, 60, 117, 0.1);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: #c44;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--purple-deep);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary__arrow {
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .btn-primary__arrow {
  transform: translateX(-4px);
}

.form-section__legal {
  font-size: 12px;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 16px;
  line-height: 1.5;
}

.form-section__legal a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success state */
.success {
  text-align: center;
  padding: 32px 20px;
  color: var(--purple);
  animation: fadeUp 0.55s var(--ease) both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.success svg {
  margin-bottom: 16px;
}

.success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.success p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ============================================
   TRUST
   ============================================ */
.trust {
  padding: 32px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.8s 0.6s var(--ease) both;
}

.trust__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.trust__num {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 26px);
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.trust__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.trust__divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 24px var(--pad-x) 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.footer__brand {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}

.footer__sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px -4px rgba(37, 211, 102, 0.5),
    0 4px 8px -2px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.25s var(--ease);
  text-decoration: none;
  animation: fadeUp 0.6s 0.8s var(--ease) both, float 3s ease-in-out 1.4s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
}

.whatsapp-fab:active {
  transform: scale(0.95);
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Larger screens — keep mobile feel but center content */
@media (min-width: 768px) {
  body {
    background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  }

  .hero, .video, .form-section, .trust, .footer {
    box-shadow: 0 0 80px rgba(27, 13, 48, 0.04);
  }
}
