/* ============================================================
   RASTRO GPS — LANDING PAGE (Light Mode, Yellow + Black + White)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #111827;
  --text-sec: #4b5563;
  --text-muted: #9ca3af;
  --primary: #FFEA00;
  --primary-dark: #e6d300;
  --black: #000000;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; }

/* ========== SOCIAL SIDEBAR ========== */
.social-sidebar {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 90;
}
.social-sidebar a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 14px;
  text-decoration: none; transition: var(--transition);
}
.social-sidebar a:hover { background: var(--primary); color: var(--black); transform: scale(1.15); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: var(--transition); background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 34px; object-fit: contain; filter: brightness(0); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--black); text-decoration: none; font-size: 14px;
  font-weight: 600; transition: var(--transition); position: relative;
}
.nav-links a:not(.btn-nav-login)::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 2px; background: var(--primary); transition: var(--transition);
}
.nav-links a:not(.btn-nav-login):hover::after { width: 100%; }
.nav-links a:hover { color: var(--text-sec); }
.btn-nav-login {
  background: var(--black) !important; color: #fff !important;
  padding: 10px 28px; border-radius: 100px;
  font-weight: 700 !important; font-size: 13px !important;
  transition: var(--transition) !important;
}
.btn-nav-login:hover {
  background: #333 !important; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}
.btn-nav-login::after { display: none !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--black); font-size: 24px; cursor: pointer; }

/* ========== HERO ========== */
.hero {
  background: var(--primary); position: relative;
  overflow: hidden; padding-top: 100px;
}
.hero-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-top: 60px; padding-bottom: 40px;
}
.hero-text { flex: 0 0 50%; max-width: 520px; z-index: 2; }
.hero-tagline {
  font-size: clamp(18px, 2.5vw, 24px); font-weight: 700;
  font-style: italic; color: var(--black); margin-bottom: 4px;
  opacity: 0.7;
}
.hero-text h1 {
  font-size: clamp(48px, 7vw, 86px); font-weight: 900;
  line-height: 0.95; letter-spacing: -0.04em; color: var(--black);
  font-style: italic; text-transform: uppercase; margin-bottom: 20px;
}
.hero-desc {
  font-size: 16px; line-height: 1.6; color: rgba(0,0,0,0.7);
  font-weight: 500; margin-bottom: 32px; max-width: 440px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--black); color: #fff; padding: 14px 32px;
  border-radius: 100px; font-weight: 700; font-size: 15px;
  text-decoration: none; display: inline-flex; align-items: center;
  gap: 10px; transition: var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.btn-hero-secondary {
  background: transparent; color: var(--black); padding: 14px 28px;
  border-radius: 100px; font-weight: 700; font-size: 15px;
  text-decoration: none; display: inline-flex; align-items: center;
  gap: 10px; border: 2px solid rgba(0,0,0,0.3); transition: var(--transition);
}
.btn-hero-secondary:hover { border-color: var(--black); background: rgba(0,0,0,0.05); }

.hero-visual {
  flex: 0 0 45%; display: flex; align-items: center;
  justify-content: center; z-index: 1; position: relative;
}
.hero-fleet {
  width: 100%; max-width: 500px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.15));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Bottom bar */
.hero-bottom-bar {
  background: var(--black); padding: 18px 0;
  width: 100%; position: relative; z-index: 3;
}
.hero-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.hero-bar-item {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 14px; font-weight: 600;
}
.hero-bar-item i { color: var(--primary); font-size: 18px; }

/* ========== SECTION HEADERS ========== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; background: var(--primary); color: var(--black);
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; padding: 8px 20px; border-radius: 100px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 600;
  margin-bottom: 12px; letter-spacing: -0.01em; color: var(--text);
}
.section-header h2 strong { font-weight: 900; }
.section-header p { color: var(--text-sec); font-size: 16px; max-width: 520px; margin: 0 auto; }

/* ========== FEATURES ========== */
.features { padding: 100px 0; background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg); border: 1px solid #e5e7eb;
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--primary); }
.feature-icon {
  width: 56px; height: 56px; background: var(--black);
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; color: var(--primary);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-sec); line-height: 1.65; }

/* ========== HOW IT WORKS ========== */
.how-it-works { padding: 100px 0; background: var(--bg-alt); }
.steps-grid { display: flex; align-items: stretch; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step-card {
  background: var(--bg); border: 1px solid #e5e7eb; border-radius: var(--radius);
  padding: 40px 28px; text-align: center; flex: 1; max-width: 320px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.step-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.step-number {
  position: absolute; top: 14px; right: 18px;
  font-size: 56px; font-weight: 900; color: rgba(0,0,0,0.04); line-height: 1;
}
.step-img { width: 80px; margin-bottom: 16px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2)); }
.step-icon {
  width: 64px; height: 64px; background: var(--black);
  border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; color: var(--primary);
  margin: 0 auto 18px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-sec); line-height: 1.6; }
.step-connector { color: var(--text-muted); font-size: 20px; display: flex; align-items: center; }

/* ========== PRICING ========== */
.pricing { padding: 100px 0; background: var(--bg); }
.pricing-card {
  max-width: 460px; margin: 0 auto; background: var(--bg);
  border: 2px solid #e5e7eb; border-radius: 24px; padding: 48px 40px;
  text-align: center; position: relative; overflow: hidden;
  transition: var(--transition);
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--primary);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.1); border-color: var(--primary); }
.pricing-badge {
  display: inline-block; background: var(--primary); color: var(--black);
  font-size: 13px; font-weight: 800; padding: 8px 20px;
  border-radius: 100px; margin-bottom: 24px;
}
.pricing-header h3 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.pricing-header p { color: var(--text-sec); font-size: 15px; margin-bottom: 28px; }
.pricing-price { margin-bottom: 32px; }
.price-currency { font-size: 24px; font-weight: 600; color: var(--text-sec); vertical-align: top; }
.price-amount { font-size: 80px; font-weight: 900; line-height: 1; color: var(--text); }
.price-decimal { font-size: 28px; font-weight: 700; vertical-align: top; color: var(--text-sec); }
.price-period { font-size: 16px; color: var(--text-muted); margin-left: 4px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  font-size: 15px; color: var(--text-sec); border-bottom: 1px solid #f3f4f6;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--green); font-size: 16px; flex-shrink: 0; }
.btn-pricing {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); color: #fff; text-decoration: none;
  padding: 16px 40px; border-radius: 100px; font-size: 16px;
  font-weight: 700; transition: var(--transition); width: 100%;
  justify-content: center;
}
.btn-pricing:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.pricing-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ========== FAQ ========== */
.faq { padding: 100px 0; background: var(--bg-alt); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border: 1px solid #e5e7eb; border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden; transition: var(--transition);
  background: var(--bg);
}
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 20px rgba(255,234,0,0.15); }
.faq-question {
  width: 100%; background: transparent; border: none; color: var(--text);
  padding: 20px 24px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; transition: var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question i { transition: var(--transition); color: var(--text-muted); font-size: 13px; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--primary-dark); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 20px; font-size: 14px; color: var(--text-sec); line-height: 1.7; }

/* ========== CTA ========== */
.cta { padding: 80px 0; background: var(--bg); }
.cta-content {
  background: var(--black); border-radius: 24px; padding: 80px 40px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-content::before {
  content: ''; position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,234,0,0.15), transparent 70%);
  top: -200px; right: -100px; border-radius: 50%;
}
.cta-content::after {
  content: ''; position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,234,0,0.1), transparent 70%);
  bottom: -150px; left: -50px; border-radius: 50%;
}
.cta-content h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 600;
  margin-bottom: 16px; color: #fff; position: relative; z-index: 1;
}
.cta-content h2 strong { color: var(--primary); font-weight: 900; }
.cta-content p { color: #9ca3af; margin-bottom: 32px; font-size: 18px; position: relative; z-index: 1; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: var(--black); text-decoration: none;
  padding: 16px 40px; border-radius: 100px; font-size: 16px;
  font-weight: 700; transition: var(--transition); position: relative; z-index: 1;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,234,0,0.3); }

/* ========== FOOTER ========== */
.footer { padding: 80px 0 30px; background: var(--black); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 36px; object-fit: contain; }
.footer-brand p { font-size: 14px; color: #9ca3af; line-height: 1.7; }
.footer-links h4 {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 20px; color: #fff;
}
.footer-links a {
  display: block; font-size: 14px; color: #9ca3af;
  text-decoration: none; margin-bottom: 12px; transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  text-align: center; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; color: #6b7280;
}

/* ========== SCROLL REVEAL ========== */
body.js-loaded [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-loaded [data-reveal].revealed {
  opacity: 1; transform: translateY(0);
}

/* Ensure content is visible even if JS hasn't loaded yet */
.features .feature-card, .steps-grid .step-card { opacity: 1 !important; transform: none !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 768px) {
  .social-sidebar { display: none; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 66px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    padding: 24px; gap: 16px; border-bottom: 1px solid #e5e7eb;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding-top: 90px; }
  .hero-container {
    flex-direction: column; text-align: center;
    padding-bottom: 40px;
  }
  .hero-text { max-width: 100%; }
  .hero-text h1 { font-size: clamp(40px, 10vw, 60px); }
  .hero-desc { margin: 0 auto 28px; }
  .hero-cta { justify-content: center; }
  .hero-visual { width: 100%; }
  .hero-fleet { max-width: 90%; }
  .hero-bar-inner { gap: 12px; justify-content: center; }
  .hero-bar-item { font-size: 12px; }
  .hero-bar-item i { font-size: 14px; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pricing-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-bar-inner { flex-direction: column; gap: 8px; }
}
