/* ============================================
   RIDEX — Demo UI/UX — Sistema de diseño compartido
   ============================================ */

:root {
  --navy: #0F1B2D;
  --navy-light: #1A2B45;
  --navy-lighter: #24395A;
  --orange: #FF6B35;
  --orange-dark: #E5541F;
  --bg-light: #F7F8FA;
  --white: #FFFFFF;
  --text-dark: #101623;
  --text-muted: #64748B;
  --border-light: #E7EAF0;
  --shadow-soft: 0 20px 60px -15px rgba(15, 27, 45, 0.25);
  --shadow-card: 0 8px 30px rgba(15, 27, 45, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(255, 107, 53, 0.55);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -8px rgba(255, 107, 53, 0.65);
  background: var(--orange-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline-navy:hover {
  transform: translateY(-3px);
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 14px;
}

/* ============ Top nav (shared) ============ */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

.topnav.is-scrolled {
  background: rgba(15, 27, 45, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 12px 28px;
}

.topnav .logo-mark {
  height: 30px;
  width: auto;
}

.topnav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.topnav-back:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-3px);
}

.topnav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--orange);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.topnav-cta:hover {
  transform: translateX(3px);
  box-shadow: 0 10px 24px -6px rgba(255, 107, 53, 0.6);
}

/* ============ Phone frame ============ */

.phone-frame {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  background: var(--navy);
  border-radius: 46px;
  padding: 14px;
  box-shadow: var(--shadow-soft), 0 0 0 2px rgba(255,255,255,0.04) inset;
  flex-shrink: 0;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--navy);
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 0 0 3px rgba(15,27,45,0.9);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.phone-screen img,
.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,27,45,0.65) 0%, rgba(15,27,45,0.55) 40%, rgba(15,27,45,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
  color: var(--white);
}

.hero-logo {
  height: 46px;
  width: auto;
  margin: 0 auto 36px;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) forwards 0.1s;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) forwards 0.25s;
}

.hero-content h1 span {
  color: var(--orange);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 42px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) forwards 0.4s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) forwards 0.55s;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2.2s ease-in-out infinite;
}

.hero-scroll-hint .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ Value props section ============ */

.value-section {
  background: var(--bg-light);
  padding: 100px 0 110px;
}

.value-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.value-header .eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.value-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15,27,45,0.12);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,107,53,0.14), rgba(255,107,53,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============ App choice section (index) ============ */

.choice-section {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.choice-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.16), transparent 70%);
  pointer-events: none;
}

.choice-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  position: relative;
  z-index: 1;
}

.choice-header h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.choice-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1.02rem;
  line-height: 1.6;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.choice-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.choice-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,53,0.4);
}

.choice-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,107,53,0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.choice-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.choice-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ============ Footer ============ */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
  text-align: center;
}

.site-footer p {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.site-footer strong {
  color: rgba(255,255,255,0.7);
}

/* ============ Showcase pages (cliente / conductor) ============ */

.showcase-hero {
  background: var(--navy);
  padding: 160px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.showcase-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.15), transparent 65%);
  pointer-events: none;
}

.showcase-hero .eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.showcase-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  position: relative;
}

.showcase-hero p {
  color: rgba(255,255,255,0.62);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.6;
  position: relative;
}

.showcase-flow {
  background: var(--bg-light);
  padding: 40px 0 60px;
}

.flow-section {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 90px 0;
  border-bottom: 1px solid var(--border-light);
}

.flow-section:last-child {
  border-bottom: none;
}

.flow-section.reverse {
  flex-direction: row-reverse;
}

.flow-media {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  flex: 1;
}

.flow-text {
  flex: 1;
}

.flow-text .step-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.flow-text .step-num::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--orange);
}

.flow-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.25;
}

.flow-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 440px;
}

.flow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-dark);
  font-size: 0.94rem;
  font-weight: 500;
}

.flow-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.flow-media.reveal {
  transform: translateY(36px) scale(0.96);
}

.flow-media.reveal.is-visible {
  transform: translateY(0) scale(1);
}

/* ============ Bottom CTA (showcase pages) ============ */

.bottom-cta {
  background: var(--navy);
  padding: 90px 0;
  text-align: center;
}

.bottom-cta h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.bottom-cta p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 34px;
  font-size: 1rem;
}

.bottom-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Floating back button (showcase pages) ============ */

.float-back {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  background: rgba(15,27,45,0.75);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.float-back:hover {
  background: rgba(15,27,45,0.95);
  transform: translateX(-3px);
}

/* ============ Responsive ============ */

@media (max-width: 980px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .choice-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .flow-section,
  .flow-section.reverse {
    flex-direction: column;
    gap: 44px;
    padding: 64px 0;
    text-align: center;
  }
  .flow-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .flow-text p {
    max-width: 480px;
  }
  .flow-list {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topnav {
    padding: 14px 18px;
  }
  .topnav .logo-mark {
    height: 24px;
  }
  .topnav-back span,
  .topnav-cta span.label {
    display: none;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .value-section {
    padding: 70px 0;
  }
  .choice-section {
    padding: 70px 0;
  }
  .choice-card {
    padding: 32px 24px;
  }
  .showcase-hero {
    padding: 130px 0 60px;
  }
  .phone-frame {
    width: 250px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .bottom-cta-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 24px;
  }
  .bottom-cta-buttons .btn {
    width: 100%;
  }
  .float-back {
    top: 16px;
    left: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }
}
