.home-page { background: #fff; }
.home-hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; background: #384b53; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--home-hero-image) center / cover no-repeat, linear-gradient(130deg, #96abb0, #364950 60%, #11191c); transform: scale(1.03); }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.06) 42%, rgba(0,0,0,.62)); }
.home-hero-content { width: min(100% - 48px, 800px); padding-top: 100px; text-align: center; }
.home-hero-content h1 { margin-bottom: 15px; }
.home-hero-content > p:not(.eyebrow) { max-width: 640px; margin: 0 auto; color: rgba(255,255,255,.9); font-size: clamp(17px, 2vw, 22px); line-height: 1.35; }
.home-scroll { position: absolute; right: 32px; bottom: 30px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-section { padding: clamp(76px, 10vw, 150px) clamp(24px, 8vw, 150px); }
.home-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(40px, 8vw, 140px); }
.home-intro-copy { max-width: 520px; margin-left: auto; }
.home-intro-copy > p:not(.eyebrow), .home-feature-copy > p:not(.eyebrow), .home-monitor-copy > p:not(.eyebrow), .home-controls-heading > p:not(.eyebrow), .home-cta-content > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.home-image { min-height: 620px; border-radius: 16px; background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: 0 24px 60px rgba(0,0,0,.12); }
.home-image-automatic { background-image: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Tesla-Home-Automatic-Desktop.jpg'), linear-gradient(130deg, #dfe8ea, #7f9aa0); }
.home-bullets { margin-top: 42px; border-top: 1px solid var(--line); }
.home-bullets div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.home-bullets strong { color: var(--red); font-size: 13px; letter-spacing: .08em; }
.home-bullets span { font-weight: 600; }
.home-dark { color: #fff; background: #111315; }
.home-feature-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(40px, 9vw, 150px); }
.home-image-optimized { background-image: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Tesla-Home-Optimized-Desktop.jpg'), linear-gradient(140deg, #263943, #090c0f); }
.home-feature-copy { max-width: 470px; }
.home-feature-copy > p:not(.eyebrow), .home-controls-heading > p:not(.eyebrow) { color: rgba(255,255,255,.68); }
.home-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 42px; }
.home-metrics div { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.24); }
.home-metrics strong { display: block; margin-bottom: 8px; font-size: 34px; letter-spacing: -.05em; }
.home-metrics span { color: rgba(255,255,255,.6); font-size: 13px; }
.home-monitor { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(40px, 8vw, 140px); }
.home-monitor-copy { max-width: 460px; margin-left: auto; }
.home-image-monitor { min-height: 560px; background-image: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Tesla-Home-Monitor-Desktop.jpg'), linear-gradient(130deg, #e6eef0, #8aa2a7); }
.home-controls { padding: clamp(76px, 10vw, 140px) clamp(24px, 8vw, 150px); }
.home-controls-heading { max-width: 740px; margin: 0 auto 42px; text-align: center; }
.home-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.home-tab { padding: 11px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: rgba(255,255,255,.72); background: transparent; cursor: pointer; transition: .2s ease; }
.home-tab:hover, .home-tab.is-active { color: #111315; border-color: #fff; background: #fff; }
.home-panels { width: min(100%, 1140px); margin: 0 auto; }
.home-panel { display: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 42px; }
.home-panel.is-active { display: grid; }
.home-panel-image { min-height: 490px; border-radius: 16px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.home-panel-control { background-image: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Tesla-Home-Control-Desktop-Poster'), linear-gradient(135deg, #455c63, #172126); }
.home-panel-solar { background-image: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Control-Carousel-Slide-1-Desktop-Poster'), linear-gradient(135deg, #52696a, #162327); }
.home-panel-rates { background-image: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Control-Carousel-Slide-3-Desktop'), linear-gradient(135deg, #6d817c, #172326); }
.home-panel > div:last-child { padding-bottom: 26px; }
.home-panel h3 { font-size: 36px; }
.home-panel p { max-width: 380px; color: rgba(255,255,255,.68); font-size: 17px; }
.home-cta { position: relative; min-height: 80svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; text-align: center; background: #39474c; }
.home-cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--home-cta-image) center / cover no-repeat, linear-gradient(130deg, #60757c, #162226); }
.home-cta-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.66)); }
.home-cta-content { width: min(100% - 48px, 780px); padding-top: 50px; }
.home-cta-content > p:not(.eyebrow) { color: rgba(255,255,255,.84); }
.home-cta .button-row { margin-top: 24px; }

@media (max-width: 900px) {
  .home-intro, .home-feature-grid, .home-monitor { grid-template-columns: 1fr; }
  .home-intro-copy, .home-monitor-copy { margin: 0; }
  .home-feature-grid .home-image { order: 2; }
  .home-image { min-height: 500px; }
  .home-panel { grid-template-columns: 1fr; }
  .home-panel > div:last-child { padding-bottom: 0; }
}
@media (max-width: 700px) {
  .home-hero-content { width: min(100% - 32px, 800px); padding-top: 80px; }
  .home-scroll { right: 16px; bottom: 22px; font-size: 11px; }
  .home-section, .home-controls { padding: 74px 16px; }
  .home-intro-copy > p:not(.eyebrow), .home-feature-copy > p:not(.eyebrow), .home-monitor-copy > p:not(.eyebrow), .home-controls-heading > p:not(.eyebrow), .home-cta-content > p:not(.eyebrow) { font-size: 16px; }
  .home-image, .home-panel-image { min-height: 390px; }
  .home-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .home-tab { flex: 0 0 auto; font-size: 13px; }
  .home-cta { min-height: 640px; }
}
