/* Safe Ride Landing Page */

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--sr-font);
  color: var(--sr-text);
  background: var(--sr-white);
  overflow-x: hidden;
}

.content-page {
  flex: 1 0 auto;
}

/* ── Nav ── */

.sr-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--sr-nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(152, 90, 164, 0.12);
  transition: box-shadow 0.3s ease;
}

.sr-nav.scrolled {
  box-shadow: var(--sr-shadow-soft);
}

.sr-nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--sr-primary-dark);
  font-weight: 800;
  font-size: 1.25rem;
}

.sr-nav-brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.sr-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-nav-links a {
  color: var(--sr-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.sr-nav-links a:hover {
  color: var(--sr-primary);
}

.sr-lang-toggle {
  display: flex;
  gap: 0.35rem;
}

.sr-lang-btn {
  border: 1px solid rgba(152, 90, 164, 0.25);
  background: var(--sr-lavender);
  color: var(--sr-primary-dark);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sr-font);
  transition: all 0.2s;
}

.sr-lang-btn.active,
.sr-lang-btn:hover {
  background: var(--sr-primary);
  color: var(--sr-white);
  border-color: var(--sr-primary);
}

/* ── Blobs & sections ── */

.blob-bg {
  position: relative;
  overflow: hidden;
}

.blob-bg::before,
.blob-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.blob-bg::before {
  width: 420px;
  height: 420px;
  background: var(--sr-lavender);
  top: -120px;
  right: -80px;
}

.blob-bg::after {
  width: 360px;
  height: 360px;
  background: rgba(238, 12, 215, 0.15);
  bottom: -100px;
  left: -60px;
}

.sr-section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.sr-section-alt {
  background: linear-gradient(180deg, var(--sr-lavender) 0%, rgba(245, 240, 255, 0.4) 100%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--sr-primary-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--sr-text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.section-header .accent {
  color: var(--sr-accent);
}

/* ── Hero ── */

.hero-section {
  padding-top: calc(var(--sr-nav-height) + 3rem);
  padding-bottom: 4rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fdfbff 0%, var(--sr-lavender) 45%, rgba(152, 90, 164, 0.08) 100%);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--sr-primary-dark);
  margin-bottom: 1rem;
}

.hero-copy h1 .accent {
  color: var(--sr-accent);
  display: block;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--sr-accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-desc {
  color: var(--sr-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.trust-chip {
  background: var(--sr-white);
  border: 1px solid rgba(152, 90, 164, 0.2);
  color: var(--sr-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(152, 90, 164, 0.08);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badges img {
  height: 52px;
  width: auto;
  transition: transform 0.2s;
}

.store-badges a:hover img {
  transform: translateY(-2px);
}

/* ── Phone mockups ── */

.phone-stack {
  position: relative;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-stack .phone-mockup {
  position: absolute;
  transform: rotate(var(--rotate, 0deg));
  animation: phoneFloat 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.phone-mockup {
  transform: rotate(var(--rotate, 0deg));
}

.phone-stack .phone-mockup:nth-child(1) { z-index: 2; left: 8%; }
.phone-stack .phone-mockup:nth-child(2) { z-index: 3; right: 5%; }

@keyframes phoneFloat {
  0%, 100% { transform: rotate(var(--rotate, 0deg)) translateY(0); }
  50% { transform: rotate(var(--rotate, 0deg)) translateY(-12px); }
}

.phone-bezel {
  width: 240px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--sr-shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
}

.phone-bezel::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: #0d0d0d;
  border-radius: 12px;
  z-index: 2;
}

.phone-bezel img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.phone-mockup--lg .phone-bezel {
  width: 280px;
}

/* ── App tour ── */

.app-tour {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.app-tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.app-tour-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 2rem;
}

.app-tour-step {
  padding: 1.5rem 1.75rem;
  border-radius: var(--sr-radius);
  border: 2px solid transparent;
  background: var(--sr-white);
  transition: all 0.35s ease;
  cursor: default;
}

.app-tour-step.active {
  border-color: rgba(152, 90, 164, 0.35);
  background: var(--sr-lavender);
  box-shadow: var(--sr-shadow-soft);
}

.app-tour-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sr-primary);
  color: var(--sr-white);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.app-tour-step h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sr-primary-dark);
  margin-bottom: 0.5rem;
}

.app-tour-step p {
  color: var(--sr-text-muted);
  margin: 0;
  line-height: 1.6;
}

.app-tour-phone-col {
  position: sticky;
  top: calc(var(--sr-nav-height) + 2rem);
  display: flex;
  justify-content: center;
}

.app-tour-phone-frame {
  position: relative;
  width: 280px;
}

.app-tour-phone-frame .phone-bezel img {
  transition: opacity 0.4s ease;
}

.app-tour-phone-frame .phone-bezel img.fading {
  opacity: 0;
}

.app-tour-step-mobile-img {
  display: none;
  margin-top: 1rem;
}

.app-tour-step-mobile-img .phone-bezel {
  width: 200px;
  margin: 0 auto;
}

/* ── Bento grid ── */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bento-grid--features {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
}

.bento-feature-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--sr-radius-lg);
  overflow: hidden;
  background: var(--sr-white);
  border: 1px solid rgba(152, 90, 164, 0.12);
  box-shadow: var(--sr-shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sr-shadow);
}

.bento-feature-card__media {
  background: linear-gradient(160deg, var(--sr-lavender) 0%, rgba(152, 90, 164, 0.2) 100%);
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

.bento-feature-card__media img {
  width: auto;
  max-width: 100%;
  max-height: 200px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 16px 40px rgba(93, 17, 92, 0.2);
  object-fit: contain;
  object-position: bottom center;
}

.bento-feature-card__body {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  justify-content: flex-start !important;
}

.bento-feature-card__body:hover {
  transform: none;
  box-shadow: none;
}

.bento-tile {
  border-radius: var(--sr-radius-lg);
  overflow: hidden;
  position: relative;
}

.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(152, 90, 164, 0.15);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sr-shadow-soft);
}

.glass-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sr-primary-dark);
  margin-bottom: 0.5rem;
}

.glass-card p {
  color: var(--sr-text-muted);
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
}

.bento-tile--wide { grid-column: span 7; }
.bento-tile--narrow { grid-column: span 5; }
.bento-tile--half { grid-column: span 6; }
.bento-tile--third { grid-column: span 4; }
.bento-tile--full { grid-column: span 12; }

.bento-screenshot {
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, var(--sr-primary-dark), var(--sr-primary));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.bento-screenshot img {
  max-height: 90%;
  width: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.bento-screenshot--lavender {
  background: linear-gradient(135deg, var(--sr-lavender), rgba(152, 90, 164, 0.25));
}

/* ── Mission ── */

.mission-band {
  background: linear-gradient(120deg, var(--sr-lavender) 0%, rgba(238, 12, 215, 0.08) 50%, var(--sr-lavender) 100%);
  border-radius: var(--sr-radius-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.mission-band img {
  width: 100%;
  border-radius: var(--sr-radius);
  box-shadow: var(--sr-shadow-soft);
}

.mission-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--sr-primary-dark);
  margin-bottom: 1.25rem;
}

.mission-band p {
  color: var(--sr-text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ── Testimonials ── */

.testimonials-section {
  background: linear-gradient(180deg, var(--sr-white) 0%, var(--sr-lavender) 100%);
}

.testimonial-carousel {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.testimonial-card {
  background: var(--sr-white);
  border-radius: var(--sr-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--sr-shadow-soft);
  border: 1px solid rgba(152, 90, 164, 0.1);
  text-align: center;
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--sr-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sr-primary-dark);
  margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
  color: var(--sr-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-card .author {
  font-weight: 800;
  color: var(--sr-primary);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--sr-primary);
}

/* ── Download CTA ── */

.download-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.download-copy h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--sr-primary-dark);
  margin-bottom: 1rem;
}

.download-copy p {
  color: var(--sr-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ── Footer ── */

.sr-footer {
  background: var(--sr-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  padding: 0;
}

.sr-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.75rem;
}

.sr-footer-heading {
  color: var(--sr-white);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.sr-footer-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

@media (min-width: 992px) {
  .sr-footer-grid > [class*="col-lg"] {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.sr-footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.sr-footer-link:hover {
  color: var(--sr-white);
}

.sr-footer-links li + li,
.sr-footer-contact li + li {
  margin-top: 0.65rem;
}

.sr-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sr-white);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sr-footer-social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--sr-white);
  transform: translateY(-2px);
}

.sr-footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.sr-footer-contact-item i {
  width: 18px;
  text-align: center;
  color: var(--sr-accent);
}

.sr-footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 2.5rem 0 1.75rem;
  opacity: 1;
}

.sr-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sr-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sr-white);
  font-weight: 800;
  font-size: 1.05rem;
}

.sr-footer-brand img {
  border-radius: 12px;
  object-fit: cover;
}

.sr-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.sr-footer-legal .sr-footer-link {
  font-weight: 600;
  font-size: 0.88rem;
}

.sr-footer-copy {
  margin: 1.5rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

[dir="rtl"] .sr-footer-text,
[dir="rtl"] .sr-footer-heading {
  text-align: right;
}

[dir="rtl"] .sr-footer-contact-item {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .sr-footer-inner {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .sr-footer-text {
    max-width: none;
  }

  .sr-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sr-footer-copy {
    text-align: left;
  }

  [dir="rtl"] .sr-footer-copy {
    text-align: right;
  }
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 992px) {
  .sr-nav-links {
    display: none;
  }

  .bento-grid--features {
    grid-template-columns: 1fr;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-chips,
  .store-badges {
    justify-content: center;
  }

  .phone-stack {
    height: 400px;
    margin-top: 2rem;
  }

  .phone-stack .phone-mockup:nth-child(1) { left: 5%; }
  .phone-stack .phone-mockup:nth-child(2) { right: 5%; }

  .phone-bezel {
    width: 200px;
  }

  .app-tour-grid {
    grid-template-columns: 1fr;
  }

  .app-tour-phone-col {
    display: none;
  }

  .app-tour-step-mobile-img {
    display: block;
  }

  .bento-tile--wide,
  .bento-tile--narrow,
  .bento-tile--half,
  .bento-tile--third {
    grid-column: span 12;
  }

  .bento-feature-card__media {
    min-height: 180px;
  }

  .mission-band {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .download-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-section .store-badges {
    justify-content: center;
  }

  .download-section .phone-mockup {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .phone-stack {
    height: 340px;
  }

  .phone-bezel {
    width: 160px;
    border-radius: 28px;
    padding: 8px;
  }

  .phone-bezel::before {
    width: 56px;
    height: 16px;
  }

  .sr-section {
    padding: 3.5rem 0;
  }
}

/* Legacy class overrides (privacy/terms pages) */
.main-nav {
  background-color: var(--sr-primary-dark) !important;
}

.text-gradient-border {
  font-weight: 800;
  color: var(--sr-primary-dark);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.web-icon-img {
  height: 52px;
  width: auto;
}
