/* =====================================================
   Revtek — Industrial Precision Redesign
   Palette: Deep navy / Red brand / Amber plates / Teal access
   Fonts: Syne (display) · DM Sans (body) · JetBrains Mono (data)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;600&display=swap');

/* ---- Design tokens ---- */
:root {
  --rt-bg:        #2d3142;
  --rt-bg-2:      #252836;
  --rt-bg-3:      #363c52;
  --rt-surface:   #404660;
  --rt-border:    rgba(255, 255, 255, 0.07);
  --rt-border-2:  rgba(255, 255, 255, 0.13);

  --rt-red:       #dc2626;
  --rt-red-2:     #b91c1c;
  --rt-red-dim:   rgba(220, 38, 38, 0.14);
  --rt-red-glow:  rgba(220, 38, 38, 0.25);

  --rt-green:     #10b981;
  --rt-green-dim: rgba(16, 185, 129, 0.13);

  --rt-amber:     #f59e0b;
  --rt-amber-dim: rgba(245, 158, 11, 0.12);

  --rt-blue:      #3b82f6;
  --rt-blue-dim:  rgba(59, 130, 246, 0.12);

  --rt-text:      #eef2f7;
  --rt-text-2:    #8fa3be;
  --rt-text-3:    #536880;

  /* Bootstrap overrides */
  --bs-primary:          #dc2626;
  --bs-primary-rgb:      220, 38, 38;
  --bs-primary-bg-subtle: rgba(220, 38, 38, 0.12);
  --bs-link-color:       #dc2626;
  --bs-link-hover-color: #b91c1c;

  /* Font stacks */
  --font-display: 'Barlow Semi Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ---- Bootstrap dark theme overrides ---- */
[data-bs-theme="dark"] {
  --bs-body-bg:           var(--rt-bg);
  --bs-body-bg-rgb:       45, 49, 66;
  --bs-secondary-bg:      var(--rt-bg-2);
  --bs-tertiary-bg:       var(--rt-bg-3);
  --bs-body-color:        var(--rt-text);
  --bs-body-color-rgb:    238, 242, 247;
  --bs-secondary-color:   var(--rt-text-2);
  --bs-border-color:      var(--rt-border-2);
  --bs-card-bg:           var(--rt-bg-2);
  --bs-card-border-color: var(--rt-border);
}

/* ---- Base ---- */
body {
  font-family: var(--font-body);
  background-color: var(--rt-bg);
  color: var(--rt-text);
  -webkit-font-smoothing: antialiased;
}

/* ---- Bootstrap component overrides ---- */
.btn-primary {
  --bs-btn-bg:              var(--rt-red);
  --bs-btn-border-color:    var(--rt-red);
  --bs-btn-hover-bg:        var(--rt-red-2);
  --bs-btn-hover-border-color: var(--rt-red-2);
  --bs-btn-active-bg:       #991b1b;
  --bs-btn-focus-shadow-rgb: 220, 38, 38;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-outline-light {
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
  color: white;
}

/* ---- Spacing utility ---- */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ---- Typography ---- */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--rt-text);
}

.hero-headline .accent {
  color: var(--rt-red);
  display: block;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rt-red);
  margin-bottom: 0.85rem;
}

.font-mono {
  font-family: var(--font-mono);
}

/* License plate style */
.plate {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--rt-amber) !important;
}

/* ---- Navbar ---- */
.navbar {
  background-color: rgba(37, 40, 54, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rt-border);
}

.navbar-brand img {
  height: 44px;
  width: auto;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.navbar .nav-link:hover {
  color: rgba(255,255,255,0.9);
}
.navbar .nav-link.active {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--rt-red);
  padding-bottom: calc(0.5rem - 2px);
}

/* ---- Hero ---- */
.hero-section {
  background-color: var(--rt-bg);
  background-image:
    linear-gradient(to bottom, rgba(45,49,66,0.72) 0%, rgba(45,49,66,0.88) 60%, rgba(45,49,66,1) 100%),
    url('../assets/parking-lot.png');
  background-size: cover;
  background-position: center 40%;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

/* Dot-grid texture */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Red glow overlay */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 72% 55%, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ---- Hero load animations ---- */
.hero-in {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 0.6s ease forwards;
}

.hero-in-1 { animation-delay: 0.05s; }
.hero-in-2 { animation-delay: 0.18s; }
.hero-in-3 { animation-delay: 0.30s; }
.hero-in-4 { animation-delay: 0.42s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.mockup-in {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  animation: mockupReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.25s;
}

@keyframes mockupReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Trust bar ---- */
.trust-bar {
  background-color: var(--rt-bg-2) !important;
  border-top: 1px solid var(--rt-border) !important;
  border-bottom: 1px solid var(--rt-border) !important;
}

.trust-badge {
  color: var(--rt-text-2);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}

/* ---- Segment cards ---- */
.segment-card {
  background: var(--rt-bg-2);
  border: 1px solid var(--rt-border);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.segment-card:hover {
  border-color: rgba(220, 38, 38, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.08);
}

.segment-card .text-primary {
  color: var(--rt-red) !important;
}

.segment-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
}

/* ---- How it works ---- */
.step-number {
  width: 54px;
  height: 54px;
  background: transparent;
  border: 2px solid var(--rt-red);
  color: var(--rt-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin: 0 auto;
  position: relative;
}

/* Connecting line between steps on desktop */
.steps-row {
  position: relative;
}

.steps-row::before {
  display: none;
}

/* ---- Features ---- */
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--rt-red-dim);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--rt-red) !important;
  flex-shrink: 0;
}

.feature-card {
  background: var(--rt-bg-2);
  border: 1px solid var(--rt-border);
  border-radius: 14px;
  padding: 1.4rem;
  height: 100%;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--rt-border-2);
}

/* ---- Hero dashboard screenshot ---- */
.hero-dashboard {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rt-border-2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.hero-dashboard img {
  width: 100%;
  display: block;
}

/* ---- Hero mockup (kept for sub-pages) ---- */
.mockup-screen {
  max-width: 440px;
  margin: 0 auto;
  background-color: var(--rt-bg-3) !important;
  border-color: var(--rt-border-2) !important;
  position: relative;
  overflow: hidden;
}

/* Scanner sweep */
.mockup-screen::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--rt-green) 40%, var(--rt-green) 60%, transparent 100%);
  opacity: 0;
  animation: scanSweep 4s ease-in-out infinite;
}

@keyframes scanSweep {
  0%   { top: 8%;  opacity: 0; }
  8%   { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { top: 94%; opacity: 0; }
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* ---- Badge / pill overrides ---- */
.bg-primary-subtle {
  background-color: var(--rt-red-dim) !important;
}

.text-primary {
  color: var(--rt-red) !important;
}

/* ---- Info card (sub-pages) ---- */
.info-card {
  background: var(--rt-bg-3);
  border-color: var(--rt-border-2) !important;
}

/* ---- Problem icons (sub-pages) ---- */
.problem-icon {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- WhatsApp feature highlight ---- */
.feature-icon-whatsapp {
  background: rgba(37, 211, 102, 0.12) !important;
  border-color: rgba(37, 211, 102, 0.25) !important;
  color: #25d366 !important;
}

/* ---- Image feature section ---- */
.img-feature {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rt-border);
}

.img-feature img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--rt-bg-2);
  border: 1px solid var(--rt-border);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.2s ease;
}

.testimonial-card:hover {
  border-color: var(--rt-border-2);
}

/* ---- CTA section ---- */
.cta-section {
  background: linear-gradient(135deg, #3d1a1a 0%, #2a1430 60%, #1e1a40 100%);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

/* ---- Footer ---- */
footer {
  background-color: var(--rt-bg) !important;
  border-top: 1px solid var(--rt-border);
}

/* ---- Scroll animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .steps-row::before { display: none; }
}

@media (max-width: 768px) {
  .py-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Floating contact button ---- */
.contact-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1050;
  background: var(--rt-red);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
