/* =========================================================
   Ready2Drive — Brand Stylesheet
   Colors: #1B4D2E (forest green), #E07B1A (amber), #F5F2EC (cream)
   ========================================================= */

:root {
  --green: #1B4D2E;
  --green-light: #2a6642;
  --green-dark: #122d1c;
  --amber: #E07B1A;
  --amber-light: #f09030;
  --cream: #F5F2EC;
  --cream-dark: #ede9e1;
  --dark: #111612;
  --text: #1e2820;
  --text-muted: #5a6b5e;
  --white: #ffffff;

  --font: 'Outfit', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(27, 77, 46, 0.12);
  --shadow-lg: 0 12px 48px rgba(27, 77, 46, 0.18);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--sm  { font-size: 0.85rem; padding: 8px 20px; }
.btn--md  { font-size: 0.95rem; padding: 12px 28px; }
.btn--lg  { font-size: 1rem;    padding: 15px 32px; }

.btn--primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
  box-shadow: 0 4px 20px rgba(224,123,26,0.35);
}
.btn--primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(224,123,26,0.45);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(27,77,46,0.08);
}
.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img {
  height: 44px;
  width: auto;
  border-radius: 6px;
}
.nav.scrolled .btn--outline {
  border-color: var(--green);
  color: var(--green);
}

/* ---- Hero ---- */
.hero {
  min-height: 100svh;
  background: var(--green);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__road {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 70vh;
  background: linear-gradient(to top,
    rgba(255,255,255,0.03) 0%,
    transparent 100%);
  border-left: 2px solid rgba(255,255,255,0.04);
  border-right: 2px solid rgba(255,255,255,0.04);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.hero__speedlines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__speedlines span {
  position: absolute;
  display: block;
  background: linear-gradient(90deg, transparent, rgba(224,123,26,0.15), transparent);
  border-radius: 100px;
  animation: speedline 3s infinite linear;
  opacity: 0;
}
.hero__speedlines span:nth-child(1)  { width: 120px; height: 2px; top: 15%; left: -10%; animation-delay: 0s;    animation-duration: 2.4s; }
.hero__speedlines span:nth-child(2)  { width: 200px; height: 1px; top: 28%; left: -15%; animation-delay: 0.6s;  animation-duration: 3s; }
.hero__speedlines span:nth-child(3)  { width: 80px;  height: 2px; top: 42%; left: -8%;  animation-delay: 1.2s;  animation-duration: 2.1s; }
.hero__speedlines span:nth-child(4)  { width: 160px; height: 1px; top: 55%; left: -12%; animation-delay: 0.3s;  animation-duration: 2.7s; }
.hero__speedlines span:nth-child(5)  { width: 100px; height: 2px; top: 68%; left: -6%;  animation-delay: 0.9s;  animation-duration: 2.3s; }
.hero__speedlines span:nth-child(6)  { width: 240px; height: 1px; top: 22%; right: -15%; left:auto; transform: scaleX(-1); animation-delay: 0.4s; animation-duration: 2.8s; }
.hero__speedlines span:nth-child(7)  { width: 130px; height: 2px; top: 38%; right: -10%; left:auto; transform: scaleX(-1); animation-delay: 1.1s; animation-duration: 2.2s; }
.hero__speedlines span:nth-child(8)  { width: 90px;  height: 1px; top: 62%; right: -8%;  left:auto; transform: scaleX(-1); animation-delay: 0.7s; animation-duration: 3.1s; }
.hero__speedlines span:nth-child(9)  { width: 180px; height: 2px; top: 75%; right: -14%; left:auto; transform: scaleX(-1); animation-delay: 1.5s; animation-duration: 2.5s; }
.hero__speedlines span:nth-child(10) { width: 110px; height: 1px; top: 8%;  left: -9%;  animation-delay: 1.8s;  animation-duration: 2.0s; }

@keyframes speedline {
  0%   { opacity: 0; transform: translateX(0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(110vw); }
}
.hero__speedlines span:nth-child(n+6) {
  animation-name: speedline-right;
}
@keyframes speedline-right {
  0%   { opacity: 0; transform: scaleX(-1) translateX(0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: scaleX(-1) translateX(110vw); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeDown 0.8s ease both;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(224,123,26,0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(224,123,26,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(224,123,26,0.1); }
}

.hero__headline {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero__headline em {
  font-style: normal;
  color: var(--amber);
  position: relative;
  display: inline-block;
}
.hero__headline em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 0.6s 0.8s ease both;
}
@keyframes underline-in {
  to { transform: scaleX(1); }
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero__br { display: none; }
@media (min-width: 640px) { .hero__br { display: block; } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
  animation: fadeUp 0.8s 0.45s ease both;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  backdrop-filter: blur(12px);
  width: fit-content;
  animation: fadeUp 0.8s 0.6s ease both;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
}
.hero__stat:first-child { padding-left: 0; }
.hero__stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  white-space: nowrap;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  animation: fadeIn 1s 1.2s ease both;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(1.3); opacity: 1; }
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
}
.section--dark {
  background: var(--green-dark);
  color: var(--white);
}
.section--dark .section__label { color: var(--amber); }
.section--dark .section__title { color: var(--white); }
.section--dark .section__sub   { color: rgba(255,255,255,0.6); }

.section--cta {
  background: var(--green);
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Benefits ---- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.benefit {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid rgba(27,77,46,0.08);
  cursor: default;
}
.benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27,77,46,0.12);
}
.benefit__icon {
  width: 52px;
  height: 52px;
  background: rgba(27,77,46,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
  color: var(--green);
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit:hover .benefit__icon {
  background: var(--green);
  color: var(--white);
  transform: rotate(-5deg) scale(1.05);
}
.benefit__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.benefit__text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Steps ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--amber) 0%,
    rgba(224,123,26,0.2) 100%);
}

.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 0 0 48px 0;
  position: relative;
}
.step:last-child { padding-bottom: 0; }

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(224,123,26,0.4);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.step:hover .step__number {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(224,123,26,0.5);
}

.step__content {
  padding-top: 12px;
  flex: 1;
}
.step__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.step__text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
}

/* ---- Testimonials ---- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(27,77,46,0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -12px;
  right: 24px;
  font-size: 8rem;
  color: rgba(27,77,46,0.04);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial__stars {
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial__text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial__author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.testimonial__author span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- CTA Section ---- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta__content { flex: 1; min-width: 280px; }
.cta__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.cta__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 32px;
}
.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta__actions .btn--outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.cta__actions .btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}
.cta__logo {
  flex-shrink: 0;
}
.cta__logo img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  opacity: 0.9;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer__links a:hover { color: rgba(255,255,255,0.7); }

/* ---- Scroll Reveal Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-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; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 64px;
    min-height: auto;
  }
  .hero__stats {
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
  }
  .hero__stat { padding: 0; }
  .hero__stat-divider { display: none; }
  .hero__stat-num { font-size: 1.3rem; }
  .section { padding: 64px 0; }
  .steps::before { left: 27px; }
  .cta { text-align: center; justify-content: center; }
  .cta__logo { display: none; }
  .cta__actions { justify-content: center; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn--lg { width: 100%; justify-content: center; }
}
