:root {
  --rv-navy: #07111f;
  --rv-carbon: #13251f;
  --rv-orange: #f97316;
  --rv-orange-dark: #c2410c;
  --rv-sand: #fdfbf7;
  --rv-panel: #ffffff;
  --rv-text: #1f2933;
  --rv-muted: #6b7280;
  --rv-cyan: #38bdf8;
  --rv-line: rgba(255, 255, 255, .14);
}

html {
  scroll-behavior: smooth;
}

.rv-cinematic-body {
  margin: 0;
  background: var(--rv-navy);
}

.rv-cinematic,
.rv-cinematic * {
  box-sizing: border-box;
}

.rv-cinematic {
  min-height: 100dvh;
  color: var(--rv-text);
  background: var(--rv-sand);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: clip;
}

.rv-cinematic a {
  color: inherit;
  text-decoration: none;
}

.rv-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.rv-nav {
  position: fixed;
  z-index: 40;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(7, 17, 31, .68);
  backdrop-filter: blur(18px) saturate(150%);
  transform: translateX(-50%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.rv-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.rv-nav__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #111827;
  background: linear-gradient(135deg, #fff, #d8fff1);
  font-size: 13px;
}

.rv-nav__links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.rv-nav__links a,
.rv-nav__cta {
  transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
}

.rv-nav__links a:hover {
  color: #fff;
}

.rv-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: #fff;
  border: 1px solid rgba(249, 115, 22, .7);
  background: rgba(249, 115, 22, .18);
  white-space: nowrap;
}

.rv-nav__cta:hover {
  background: rgba(249, 115, 22, .28);
  transform: translateY(-1px);
}

.rv-hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 112px 0 64px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, .98), rgba(19, 37, 31, .94) 56%, rgba(45, 28, 12, .94)),
    radial-gradient(circle at 72% 42%, rgba(249, 115, 22, .28), transparent 34%),
    radial-gradient(circle at 26% 78%, rgba(56, 189, 248, .16), transparent 31%);
  isolation: isolate;
}

.rv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 74%, transparent);
}

.rv-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -24% 28%;
  height: 42%;
  z-index: -1;
  background: radial-gradient(circle, rgba(249, 115, 22, .28), transparent 62%);
  filter: blur(30px);
}

.rv-hero__energy {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rv-hero__energy span {
  position: absolute;
  left: -18%;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, .86), transparent);
  box-shadow: 0 0 28px rgba(249, 115, 22, .6);
  transform: rotate(-18deg);
  animation: rv-energy-flow 8s linear infinite;
}

.rv-hero__energy span:nth-child(1) { top: 28%; }
.rv-hero__energy span:nth-child(2) { top: 52%; animation-delay: -2.5s; }
.rv-hero__energy span:nth-child(3) { top: 70%; animation-delay: -5s; }

@keyframes rv-energy-flow {
  0% { translate: -30vw 0; opacity: 0; }
  14% { opacity: .8; }
  70% { opacity: .8; }
  100% { translate: 150vw 0; opacity: 0; }
}

.rv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.rv-kicker {
  margin: 0 0 18px;
  color: #ffb077;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rv-hero h1,
.rv-section-heading h2,
.rv-runtime h2,
.rv-final-cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: .98;
}

.rv-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(42px, 7vw, 84px);
}

.rv-hero__lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.rv-hero__actions,
.rv-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.rv-button {
  position: relative;
  isolation: isolate;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.rv-button::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -36%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
  transform: rotate(18deg);
  transition: left .52s ease;
  z-index: -1;
}

.rv-button:hover::after {
  left: 115%;
}

.rv-button:active {
  transform: translateY(1px);
}

.rv-button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rv-orange), #ea580c);
  box-shadow: 0 18px 42px rgba(249, 115, 22, .28);
}

.rv-button--ghost {
  color: inherit;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
}

.rv-final-cta .rv-button--ghost {
  color: #fff;
}

.rv-hero__visual {
  perspective: 1200px;
}

.rv-battery-card {
  position: relative;
  min-height: 520px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)),
    rgba(255, 255, 255, .06);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
  transform-style: preserve-3d;
}

.rv-battery-card__status,
.rv-battery-card__readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
}

.rv-battery-card__status strong,
.rv-battery-card__readout strong {
  color: #fff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.rv-battery-card__readout {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.rv-battery-model {
  position: absolute;
  inset: 78px 18px 78px;
  transform: rotateX(58deg) rotateZ(-18deg);
  transform-style: preserve-3d;
}

.rv-battery-model__face,
.rv-battery-model__side {
  position: absolute;
  border-radius: 22px;
}

.rv-battery-model__face {
  inset: 50px 30px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(135deg, #18251f 0%, #07111f 56%, #273c32 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    26px 42px 60px rgba(0, 0, 0, .36);
}

.rv-battery-model__side {
  inset: 68px 10px 32px auto;
  width: 62px;
  background: linear-gradient(90deg, #0b151f, #22382d);
  transform: translateZ(-42px) skewY(27deg);
  opacity: .85;
}

.rv-battery-model__terminal {
  position: absolute;
  top: 22px;
  width: 54px;
  height: 42px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #e7edf3, #7f8a95);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .28);
  transform: translateZ(42px);
}

.rv-battery-model__terminal--left { left: 32%; }
.rv-battery-model__terminal--right { right: 28%; }

.rv-battery-model__stripe {
  position: absolute;
  left: 0;
  right: 0;
  top: 28%;
  height: 16px;
  background: linear-gradient(90deg, transparent, var(--rv-orange), transparent);
  opacity: .9;
}

.rv-battery-model__label {
  position: relative;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
}

.rv-battery-model__spec {
  position: relative;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.rv-battery-model__flow {
  position: absolute;
  right: 24px;
  bottom: 26px;
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--rv-cyan), var(--rv-orange));
  box-shadow: 0 0 18px rgba(56, 189, 248, .45);
}

.rv-data-rail {
  position: relative;
  z-index: 2;
  padding: 34px 0;
  background: #fff;
  border-bottom: 1px solid rgba(31, 41, 51, .08);
}

.rv-data-rail__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(31, 41, 51, .1);
  box-shadow: 0 18px 50px rgba(31, 41, 51, .08);
}

.rv-stat {
  min-height: 132px;
  padding: 24px 18px;
  background: #fff;
}

.rv-stat__value,
.rv-stat__chem {
  color: var(--rv-text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rv-stat__unit {
  margin-left: 4px;
  color: var(--rv-orange-dark);
  font-size: 18px;
  font-weight: 900;
}

.rv-stat p {
  margin: 12px 0 0;
  color: var(--rv-muted);
  font-size: 13px;
}

.rv-breakdown {
  padding: clamp(74px, 10vw, 132px) 0;
  background:
    linear-gradient(180deg, #fff 0%, var(--rv-sand) 100%);
}

.rv-section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.rv-section-heading h2,
.rv-runtime h2,
.rv-final-cta h2 {
  color: var(--rv-text);
  font-size: clamp(34px, 5vw, 62px);
}

.rv-section-heading p:not(.rv-kicker),
.rv-runtime__copy p {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--rv-muted);
  font-size: 17px;
  line-height: 1.7;
}

.rv-breakdown__stage {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  min-height: 720px;
}

.rv-breakdown__copy {
  display: grid;
  gap: 14px;
}

.rv-step {
  padding: 22px;
  border: 1px solid rgba(31, 41, 51, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  opacity: .55;
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease, background .25s ease;
}

.rv-step.is-active {
  opacity: 1;
  border-color: rgba(249, 115, 22, .38);
  background: #fff;
  transform: translateX(8px);
  box-shadow: 0 18px 44px rgba(31, 41, 51, .08);
}

.rv-step span {
  color: var(--rv-orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.rv-step h3 {
  margin: 8px 0 8px;
  color: var(--rv-text);
  font-size: 22px;
}

.rv-step p {
  margin: 0;
  color: var(--rv-muted);
  line-height: 1.6;
}

.rv-exploded {
  position: relative;
  min-height: 520px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 40%, rgba(249, 115, 22, .12), transparent 38%),
    linear-gradient(135deg, #0b1724, #13251f);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 28px 90px rgba(7, 17, 31, .22);
  overflow: hidden;
}

.rv-exploded::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 52px 52px;
}

.rv-exploded__layer,
.rv-exploded__flow {
  position: absolute;
  left: 50%;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

.rv-exploded__layer {
  width: min(72%, 420px);
  height: 76px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  backdrop-filter: blur(10px);
}

.rv-exploded__layer--shell { top: 88px; }
.rv-exploded__layer--bms { top: 180px; width: min(60%, 340px); color: #0b1724; background: linear-gradient(135deg, #fdfbf7, #bcefff); }
.rv-exploded__layer--cells { top: 272px; height: 104px; background: linear-gradient(135deg, #173226, #0d1824); }
.rv-exploded__layer--terminals { top: 392px; width: min(46%, 260px); background: linear-gradient(135deg, #f5f5f4, #818cf8); }
.rv-exploded__flow {
  right: 28px;
  bottom: 24px;
  left: auto;
  width: 180px;
  height: 42px;
  color: #0b1724;
  background: linear-gradient(135deg, var(--rv-orange), #fef3c7);
  transform: none;
}

.rv-applications {
  padding: clamp(72px, 10vw, 124px) 0;
  background: var(--rv-sand);
}

.rv-application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rv-app-card {
  min-height: 276px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(31, 41, 51, .1);
  background: rgba(255, 255, 255, .86);
  transform-style: preserve-3d;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rv-app-card:hover {
  border-color: rgba(249, 115, 22, .3);
  box-shadow: 0 20px 54px rgba(31, 41, 51, .1);
}

.rv-app-card__visual {
  display: block;
  height: 94px;
  margin-bottom: 26px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, .92), rgba(56, 189, 248, .38)),
    linear-gradient(90deg, transparent 0 30%, rgba(255, 255, 255, .35) 30% 34%, transparent 34% 100%);
  background-size: auto, 42px 42px;
}

.rv-app-card__visual--marine { background-color: #0f766e; }
.rv-app-card__visual--solar { background-color: #f59e0b; }
.rv-app-card__visual--cabin { background-color: #365314; }
.rv-app-card__visual--home { background-color: #334155; }
.rv-app-card__visual--camp { background-color: #7c2d12; }

.rv-app-card h3 {
  margin: 0 0 10px;
  color: var(--rv-text);
  font-size: 22px;
}

.rv-app-card p {
  margin: 0;
  color: var(--rv-muted);
  line-height: 1.62;
}

.rv-runtime {
  padding: clamp(74px, 10vw, 124px) 0;
  color: #fff;
  background:
    linear-gradient(135deg, #07111f, #13251f 62%, #2b1809);
}

.rv-runtime__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, .7fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
}

.rv-runtime h2,
.rv-runtime__copy p {
  color: #fff;
}

.rv-runtime__copy p {
  color: rgba(255, 255, 255, .74);
}

.rv-runtime-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
}

.rv-runtime-card__formula {
  padding: 18px;
  border-radius: 16px;
  color: #111827;
  background: #fff;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rv-runtime-card label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 800;
}

.rv-runtime-card input {
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  padding: 0 16px;
  color: #fff;
  background: rgba(7, 17, 31, .74);
  font: inherit;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.rv-runtime-card input:focus {
  border-color: var(--rv-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .18);
}

.rv-runtime-card__result {
  min-height: 74px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.rv-trust {
  padding: 26px 0;
  background: #fff;
}

.rv-trust__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rv-trust__grid span {
  padding: 12px 16px;
  border: 1px solid rgba(31, 41, 51, .09);
  border-radius: 999px;
  color: var(--rv-text);
  background: var(--rv-sand);
  font-size: 14px;
  font-weight: 800;
}

.rv-final-cta {
  padding: clamp(74px, 10vw, 126px) 0;
  color: #fff;
  background: #07111f;
}

.rv-final-cta__inner {
  min-height: 380px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 50% 20%, rgba(249, 115, 22, .22), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
}

.rv-final-cta h2 {
  color: #fff;
}

.rv-final-cta p {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 1040px) {
  .rv-nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .rv-nav__links {
    display: none;
  }

  .rv-hero__grid,
  .rv-breakdown__stage,
  .rv-runtime__grid {
    grid-template-columns: 1fr;
  }

  .rv-hero__visual {
    max-width: 560px;
    width: 100%;
  }

  .rv-data-rail__grid,
  .rv-application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .rv-shell {
    width: min(100% - 28px, 1180px);
  }

  .rv-nav {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    border-radius: 16px;
  }

  .rv-nav__cta {
    display: none;
  }

  .rv-hero {
    padding-top: 94px;
  }

  .rv-hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .rv-hero__actions,
  .rv-final-cta__actions {
    display: grid;
  }

  .rv-button {
    width: 100%;
    padding-inline: 16px;
  }

  .rv-battery-card {
    min-height: 390px;
    padding: 20px;
  }

  .rv-battery-model {
    inset: 70px 4px 60px;
    transform: rotateX(56deg) rotateZ(-16deg) scale(.86);
  }

  .rv-data-rail__grid,
  .rv-application-grid {
    grid-template-columns: 1fr;
  }

  .rv-stat {
    min-height: 104px;
  }

  .rv-breakdown__stage {
    min-height: auto;
  }

  .rv-step.is-active {
    transform: none;
  }

  .rv-exploded {
    min-height: 430px;
  }

  .rv-exploded__layer {
    width: 82%;
  }

  .rv-runtime-card {
    padding: 20px;
  }

  .rv-final-cta__inner {
    min-height: 340px;
    padding: 32px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv-cinematic *,
  .rv-cinematic *::before,
  .rv-cinematic *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
