:root {
  --d4-ink: #080a0d;
  --d4-panel: #0d1116;
  --d4-line: rgba(255, 255, 255, 0.14);
  --d4-text: #f5f7f9;
  --d4-muted: #aab2bd;
  --d4-accent: #00a9e8;
  --d4-shell: min(1320px, calc(100vw - 64px));
}

html {
  scroll-behavior: smooth;
}

body.home {
  background: var(--d4-ink);
  color: var(--d4-text);
}

body.home .wp-site-blocks {
  overflow: clip;
}

body.home .site-header {
  background: linear-gradient(180deg, rgba(4, 7, 10, 0.82), rgba(4, 7, 10, 0));
  border: 0;
  color: #fff;
  left: 0;
  padding-top: 8px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 40;
}

body.home .header-inner {
  max-width: var(--d4-shell) !important;
}

body.home .brand-copy .wp-block-site-title a,
body.home .brand-copy p,
body.home .primary-navigation a {
  color: #fff !important;
}

body.home .primary-navigation a {
  opacity: 0.78;
  transition: opacity 180ms ease;
}

body.home .primary-navigation a:hover,
body.home .primary-navigation a:focus-visible {
  opacity: 1;
}

body.home .header-quote .wp-block-button__link {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  color: #fff !important;
  backdrop-filter: blur(14px);
}

.dock4-home {
  background: var(--d4-ink);
  color: var(--d4-text);
  font-family: var(--wp--preset--font-family--sora), Sora, sans-serif;
}

.d4-shell {
  margin-inline: auto;
  width: var(--d4-shell);
}

.d4-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.d4-hero {
  align-items: flex-end;
  background: #111820 url('/wp-content/themes/aeronest-dji/assets/images/dock3-hero-20261019-poster.jpg') center / cover no-repeat;
  display: flex;
  min-height: max(760px, 100svh);
  overflow: hidden;
  position: relative;
}

.d4-hero__video,
.d4-hero__shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.d4-hero__video {
  object-fit: cover;
  object-position: center;
}

.d4-hero__shade {
  background:
    linear-gradient(90deg, rgba(3, 7, 10, 0.8) 0%, rgba(3, 7, 10, 0.34) 42%, rgba(3, 7, 10, 0.06) 72%),
    linear-gradient(0deg, rgba(3, 7, 10, 0.82) 0%, rgba(3, 7, 10, 0.04) 58%);
}

.d4-hero__content {
  padding-bottom: clamp(72px, 10vh, 128px);
  position: relative;
  z-index: 2;
}

.d4-hero h1 {
  color: #fff;
  font-size: clamp(3.5rem, 7.4vw, 7.75rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.92;
  margin: 18px 0 24px -0.06em;
  max-width: 15ch;
}

.d4-hero h1 span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 430;
}

.d4-hero__line {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0;
}

.d4-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.d4-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.d4-button:hover,
.d4-button:focus-visible {
  transform: translateY(-2px);
}

.d4-button--primary {
  background: #fff;
  color: #080a0d;
}

.d4-button--primary:hover,
.d4-button--primary:focus-visible {
  background: var(--d4-accent);
  color: #00131b;
}

.d4-button--ghost {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
}

.d4-button--ghost:hover,
.d4-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.d4-scroll {
  bottom: 36px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  font-size: 0.75rem;
  gap: 10px;
  letter-spacing: 0.12em;
  position: absolute;
  right: max(32px, calc((100vw - 1320px) / 2));
  text-decoration: none;
  text-transform: uppercase;
  z-index: 3;
}

.d4-facts {
  background: #090c10;
  border-bottom: 1px solid var(--d4-line);
  border-top: 1px solid var(--d4-line);
}

.d4-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.d4-facts__grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 174px;
  padding: 42px 34px;
}

.d4-facts__grid > div + div {
  border-left: 1px solid var(--d4-line);
}

.d4-facts strong {
  color: #fff;
  font-size: clamp(1.9rem, 2.8vw, 3.2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 580;
  letter-spacing: -0.05em;
  line-height: 1;
}

.d4-facts span {
  color: var(--d4-muted);
  font-size: 0.85rem;
}

.d4-feature {
  align-items: center;
  display: flex;
  min-height: min(880px, 92svh);
  overflow: hidden;
  position: relative;
}

.d4-feature > img,
.d4-feature__veil {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.d4-feature > img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.d4-feature__veil {
  background: linear-gradient(90deg, rgba(5, 7, 9, 0.94) 0%, rgba(5, 7, 9, 0.5) 39%, rgba(5, 7, 9, 0.02) 72%);
}

.d4-feature__copy {
  position: relative;
  z-index: 2;
}

.d4-feature h2,
.d4-sensor h2,
.d4-price h2 {
  color: #fff;
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.96;
  margin: 18px 0 24px -0.04em;
}

.d4-feature__copy > p:last-child,
.d4-sensor__copy > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 34ch;
}

.d4-sensor {
  background: #07090c;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  min-height: 790px;
}

.d4-sensor__media {
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.d4-sensor__media::after {
  background: linear-gradient(90deg, transparent 68%, #07090c 100%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.d4-sensor__media img {
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  width: 100%;
}

.d4-sensor__copy {
  align-self: center;
  padding: clamp(56px, 8vw, 128px) max(32px, calc((100vw - 1320px) / 2));
  padding-left: clamp(48px, 6vw, 96px);
}

.d4-sensor h2 {
  font-size: clamp(3rem, 5.4vw, 5.7rem);
}

.d4-sensor__specs {
  border-top: 1px solid var(--d4-line);
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 56px;
  padding-top: 28px;
}

.d4-sensor__specs div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.d4-sensor__specs strong {
  color: #fff;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.d4-sensor__specs span {
  color: var(--d4-muted);
  font-size: 0.78rem;
}

.d4-price {
  background:
    radial-gradient(circle at 76% 35%, rgba(0, 169, 232, 0.18), transparent 30%),
    #0c1117;
  border-bottom: 1px solid var(--d4-line);
  border-top: 1px solid var(--d4-line);
  padding: clamp(88px, 11vw, 156px) 0;
}

.d4-price__inner {
  align-items: end;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.d4-price h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  max-width: 9ch;
}

.d4-price__note {
  color: var(--d4-muted);
  font-size: 0.78rem;
  line-height: 1.65;
  margin: 0;
  max-width: 64ch;
}

.d4-price__buy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.d4-price__amount {
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 580;
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0;
}

.d4-price__amount span {
  color: var(--d4-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-right: 10px;
  text-transform: uppercase;
  vertical-align: top;
}

.d4-price .d4-button--primary {
  background: var(--d4-accent);
  color: #00131b;
}

.d4-price .d4-button--primary:hover,
.d4-price .d4-button--primary:focus-visible {
  background: #fff;
}

body.home .aeronest-quote-wrap {
  background: #f4f6f8;
  color: #101318;
}

body.home .site-footer {
  background: #07090c;
}

@media (max-width: 960px) {
  :root {
    --d4-shell: min(100% - 40px, 860px);
  }

  .d4-facts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .d4-facts__grid > div:nth-child(3) {
    border-left: 0;
  }

  .d4-facts__grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--d4-line);
  }

  .d4-sensor {
    grid-template-columns: 1fr;
  }

  .d4-sensor__media {
    min-height: 58vw;
  }

  .d4-sensor__media::after {
    background: linear-gradient(0deg, #07090c 0%, transparent 28%);
  }

  .d4-sensor__copy {
    margin-inline: auto;
    padding: 0 0 88px;
    width: var(--d4-shell);
  }

  .d4-price__inner {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --d4-shell: calc(100% - 32px);
  }

  html {
    scroll-behavior: auto;
  }

  body.home .site-header {
    padding-top: 0;
  }

  body.home .brand-copy p:not(.wp-block-site-title),
  body.home .header-actions {
    display: none;
  }

  body.home .wp-block-navigation__responsive-container-open svg {
    fill: #fff;
  }

  body.home .wp-block-navigation__responsive-container-open {
    background: rgba(5, 9, 13, 0.42) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 4px;
    color: #fff !important;
    min-height: 44px;
    min-width: 44px;
  }

  .d4-hero {
    min-height: 760px;
  }

  .d4-hero__video {
    display: none;
  }

  .d4-hero__shade {
    background:
      linear-gradient(0deg, rgba(3, 7, 10, 0.94) 0%, rgba(3, 7, 10, 0.2) 68%),
      linear-gradient(90deg, rgba(3, 7, 10, 0.32), transparent 80%);
  }

  .d4-hero__content {
    padding-bottom: 72px;
  }

  .d4-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.5rem);
    line-height: 0.95;
    margin-top: 14px;
  }

  .d4-hero__line {
    font-size: 1rem;
  }

  .d4-scroll {
    display: none;
  }

  .d4-facts__grid > div {
    min-height: 132px;
    padding: 28px 20px;
  }

  .d4-facts strong {
    font-size: 2rem;
  }

  .d4-feature {
    align-items: flex-end;
    min-height: 680px;
  }

  .d4-feature > img {
    object-position: 62% center;
  }

  .d4-feature__veil {
    background: linear-gradient(0deg, rgba(5, 7, 9, 0.98) 0%, rgba(5, 7, 9, 0.22) 68%, rgba(5, 7, 9, 0.05) 100%);
  }

  .d4-feature__copy {
    padding-bottom: 64px;
  }

  .d4-feature h2,
  .d4-sensor h2,
  .d4-price h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .d4-sensor__media {
    min-height: 430px;
  }

  .d4-sensor__media img {
    object-position: 62% center;
  }

  .d4-sensor__copy {
    padding-bottom: 72px;
  }

  .d4-sensor__specs {
    gap: 20px;
    margin-top: 40px;
  }

  .d4-price {
    padding-block: 80px;
  }

  .d4-price__inner {
    gap: 48px;
  }

  .d4-price__amount {
    font-size: 3.25rem;
  }

  .d4-price__buy,
  .d4-price .d4-button {
    width: 100%;
  }
}

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

  .d4-hero__video {
    display: none;
  }

  .d4-button {
    transition: none;
  }
}
