/* ═══════════════════════════════════════════════════════
   BUROBOT LANDING PAGE - CSS
   Paleta Oficial Buró Ecuador
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --color-primary: #9F1B32;
  --color-primary-dark: #7a1526;
  --color-primary-light: #c42240;
  --color-secondary: #35404E;
  --color-secondary-light: #4a5568;
  --color-accent: #F58020;
  --color-accent-light: #ff9a40;
  --color-green-light: #98CA3C;
  --color-green-dark: #159B48;
  --color-bg: #0a0e17;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-bg-glass: rgba(255, 255, 255, 0.06);
  --color-text: #e8ecf0;
  --color-text-muted: #8b95a5;
  --color-border: rgba(255, 255, 255, 0.08);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 60px rgba(159, 27, 50, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
}

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

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

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

img {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ── Background Decorations ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-orb--primary {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  opacity: 0.06;
  top: -200px;
  right: -200px;
}

.bg-orb--accent {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  opacity: 0.04;
  bottom: 20%;
  left: -200px;
}

.bg-orb--green {
  width: 400px;
  height: 400px;
  background: var(--color-green-dark);
  opacity: 0.04;
  bottom: -100px;
  right: 10%;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo img {
  height: 36px;
  width: auto;
}

.navbar__logo-text {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.navbar__logo-text span {
  color: var(--color-accent);
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  letter-spacing: 0.2px;
}

.navbar__cta:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(159, 27, 50, 0.35);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(159, 27, 50, 0.12);
  border: 1px solid rgba(159, 27, 50, 0.25);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #e8a0ad;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-primary-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 40px rgba(159, 27, 50, 0.3));
}

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

.hero__title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: #fff;
}

.hero__title-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width: 480px) {
  .hero__cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-full);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .btn-primary { width: auto; }
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(159, 27, 50, 0.45);
}

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

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .btn-secondary { width: auto; }
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Hero floating particles / glow */
.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.08;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glow-pulse 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glow-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.06; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
}

/* ═══════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════ */
.stats {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.01);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  text-align: center;
}

@media (min-width: 480px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.stats__item {
  padding: 10px;
}

.stats__number {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, var(--color-text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stats__label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADINGS (shared)
   ═══════════════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section { padding: 100px 0; }
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary-light);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 14px;
}

.section__subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   FEATURES / HOW IT WORKS
   ═══════════════════════════════════════════════════════ */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(159, 27, 50, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(159, 27, 50, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.feature-card__icon--red {
  background: rgba(159, 27, 50, 0.12);
  color: var(--color-primary-light);
}

.feature-card__icon--orange {
  background: rgba(245, 128, 32, 0.12);
  color: var(--color-accent);
}

.feature-card__icon--green {
  background: rgba(21, 155, 72, 0.12);
  color: var(--color-green-dark);
}

.feature-card__title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card__text {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   STEPS / "How to access Burobot"
   ═══════════════════════════════════════════════════════ */
.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(245, 128, 32, 0.3);
  background: rgba(245, 128, 32, 0.03);
}

.step-card__number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent), #e06a10);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.step-card__text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   SCORE BAR DEMO
   ═══════════════════════════════════════════════════════ */
.score-demo {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  max-width: 700px;
  margin: 0 auto 0;
  text-align: center;
}

.score-demo__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.score-bar {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 14px;
  margin-bottom: 12px;
}

.score-bar__segment {
  transition: all 0.3s ease;
}

.score-bar__segment:hover {
  filter: brightness(1.2);
}

.score-bar__labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.score-bar__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════
   FAQ / ACCORDION (SEO Content)
   ═══════════════════════════════════════════════════════ */
.faq__grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item.active {
  border-color: rgba(159, 27, 50, 0.3);
  background: rgba(159, 27, 50, 0.03);
}

.faq-item__question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  transition: color 0.3s ease;
  cursor: pointer;
}

.faq-item__question:hover {
  color: var(--color-primary-light);
}

.faq-item__chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}

.faq-item.active .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--color-primary-light);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 24px 20px;
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════ */
.cta-final {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
  text-align: center;
}

.cta-final__card {
  background: linear-gradient(135deg, rgba(159, 27, 50, 0.08), rgba(245, 128, 32, 0.05));
  border: 1px solid rgba(159, 27, 50, 0.2);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-final__card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.06;
  filter: blur(80px);
}

.cta-final__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  animation: float 5s ease-in-out infinite;
}

.cta-final__title {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.cta-final__text {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__logo {
  height: 32px;
  width: auto;
  opacity: 0.7;
}

.footer__text {
  font-size: 12px;
  color: var(--color-text-muted);
  max-width: 500px;
  line-height: 1.6;
}

.footer__copy {
  font-size: 11px;
  color: rgba(139, 149, 165, 0.5);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════
   TYPING INDICATOR
   ═══════════════════════════════════════════════════════ */
.chat-demo {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 480px;
  margin: 40px auto 0;
}

.chat-demo__msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.chat-demo__msg:last-child {
  margin-bottom: 0;
}

.chat-demo__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
}

.chat-demo__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.chat-demo__bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--color-text);
  line-height: 1.5;
  max-width: 85%;
}

.chat-demo__bubble--user {
  background: rgba(21, 155, 72, 0.15);
  border-color: rgba(21, 155, 72, 0.2);
  border-radius: 14px 14px 4px 14px;
  margin-left: auto;
  color: #b8e6c9;
}

.chat-demo__typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.chat-demo__typing-dot {
  width: 6px;
  height: 6px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.chat-demo__typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-demo__typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   TRUST / POWERED BY BAR
   ═══════════════════════════════════════════════════════ */
.trust-bar {
  text-align: center;
  padding: 24px 0;
}

.trust-bar__text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(139, 149, 165, 0.4);
}

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

/* ═══════════════════════════════════════════════════════
   MOBILE SPECIFIC TWEAKS
   ═══════════════════════════════════════════════════════ */
@media (max-width: 479px) {
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero__icon { width: 80px; height: 80px; margin-bottom: 24px; }
  .hero__badge { font-size: 10px; padding: 5px 12px; }
  .hero__subtitle { font-size: 14px; }
  .section { padding: 60px 0; }
  .section__title { font-size: 1.4rem; }
  .feature-card { padding: 24px 20px; }
  .step-card { padding: 20px 18px; gap: 14px; }
  .score-demo { padding: 28px 20px; }
  .cta-final__card { padding: 40px 20px; }
  .faq-item__question { padding: 16px 18px; font-size: 13px; }
  .faq-item__answer-inner { padding: 0 18px 16px; font-size: 13px; }
  .chat-demo { padding: 14px; }
}
