@font-face {
  font-family: "BN Dime";
  src: url("assets/fonts/BNDimeDisplay.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --scene-background: url("assets/image/digidronebackground.jpg");
  --font-title: "BN Dime", Impact, sans-serif;
  --font-body: "Space Grotesk", Arial, Helvetica, sans-serif;
  --white: #ffffff;
  --orange: #f05a28;
  --ink: #080a08;
  --shadow: 0 0.16em 0.28em rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--ink);
}

.coming-soon {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--ink);
}

.coming-soon::before,
.coming-soon::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.coming-soon::before {
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 100svh;
  height: 100svw;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  background-image: var(--scene-background);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

.coming-soon::after {
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.26) 0%,
    rgba(0, 0, 0, 0.03) 31%,
    rgba(0, 0, 0, 0.02) 60%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: clamp(0.9rem, 1.8vw, 1.25rem) 1.5rem 0;
}

.brand-logo {
  display: block;
  width: clamp(10rem, 14vw, 18rem);
  height: auto;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 88rem);
  margin: 0 auto;
  padding: clamp(5rem, 11vh, 9rem) 1.35rem clamp(4.5rem, 10vh, 7rem);
}

.eyebrow {
  margin: 0 0 clamp(0.45rem, 1vw, 0.75rem);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: var(--shadow);
}

.title-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  max-width: 100%;
}

h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(4.3rem, 12.7vw, 13.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  color: var(--white);
  text-shadow: 0 0.03em 0.13em rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.drone {
  position: absolute;
  top: 45%;
  left: 47%;
  z-index: 2;
  width: clamp(5.5rem, 11vw, 12rem);
  height: auto;
  transform: translate(-50%, -50%) rotate(-2deg);
  filter: drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.intro {
  width: min(100%, 50rem);
  margin: clamp(1rem, 1.6vw, 1.35rem) auto 0;
  font-size: clamp(1rem, 1vw, 1.5rem);
  font-weight: 300;
  line-height: 1.45;
  text-shadow: var(--shadow);
}

.digi-link {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: clamp(4.1rem, 8.7vh, 7.25rem);
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(1rem, 1.55vw, 1.7rem);
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-title);
  filter: drop-shadow(0 0.25rem 0.35rem rgba(0, 0, 0, 0.2));
}

.digi-link span:first-child {
  display: grid;
  place-items: center;
  min-height: clamp(3rem, 4vw, 4.4rem);
  padding: 0.2rem clamp(1.2rem, 2.1vw, 2.1rem);
  border-radius: 999px;
  background: var(--white);
}

.arrow {
  display: grid;
  place-items: center;
  width: clamp(3rem, 4vw, 4.45rem);
  aspect-ratio: 1;
  margin-left: -0.42rem;
  border: 0.16rem solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  font-size: 1.4em;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.digi-link:hover .arrow,
.digi-link:focus-visible .arrow {
  transform: translateX(0.18rem);
  background: #ff6633;
}

.digi-link:focus-visible {
  outline: 0.2rem solid var(--white);
  outline-offset: 0.45rem;
  border-radius: 999px;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 1rem clamp(0.55rem, 1.4vw, 0.95rem);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.73);
  text-shadow: 0 0.12rem 0.24rem rgba(0, 0, 0, 0.6);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: "BN Dime";
  font-size: 25px;
}

.hero-cta {
  margin-top: 30px;
  line-height: 1;
}

.hero-cta > span:first-child {
  padding: 15px 30px;
  background: var(--white);
  color: var(--ink);
  margin-bottom: -4px;
  border-radius: 999px;
}

.hero-cta-icon {
  display: inline-grid;
  width: 3.125rem;
  height: 2.5rem;
  margin-left: -0.45rem;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--orange);
  border-radius: var(--ink);
  box-shadow: var(--shadow-soft);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 100%;
  color: var(--ink);
}

.hero-cta:hover .hero-cta-icon,
.hero-cta:focus-visible .hero-cta-icon {
  transform: translateX(20px) scale(1.2);
}

.hero-cta-icon svg {
  width: 46%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.menu-pill,
.icon-button,
.hero-cta,
.hero-cta > span:first-child,
.hero-logo {
  display: inline-flex;
  align-items: center;
}

.menu-pill {
  justify-self: start;
  gap: 10px;
  min-height: 2.5rem;
  border: 1px solid var(--color-dark);
  padding: 5px 20px;
  background: var(--color-light);
  color: var(--color-dark);
  cursor: pointer;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1;
  pointer-events: auto;
}

.menu-pill.is-sticky {
  position: fixed;
  z-index: 40;
  animation: menu-drop-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.menu-is-open .hero-nav {
  z-index: 30;
  transform: none;
}

body.menu-is-open .menu-pill.is-sticky {
  position: fixed;
}

.menu-pill-txt {
  margin-bottom: -4px;
}

.menu-pill.is-sticky {
  position: static;
  animation: none;
}

.hero-cta-icon {
  display: inline-grid;
  width: 3.125rem;
  height: 2.5rem;
  margin-left: -0.45rem;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--orange);
  border-radius: 100%;
  box-shadow: var(--shadow-soft);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta:hover .hero-cta-icon,
.hero-cta:focus-visible .hero-cta-icon {
  transform: translateX(20px) scale(1.2);
}

.hero-cta-icon svg {
  width: 46%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

@media (max-width: 760px) {
  .brand-logo {
    width: clamp(8.4rem, 41vw, 11.5rem);
  }

  .hero {
    justify-content: center;
    padding: 3.5rem 1rem 3.2rem;
  }

  .eyebrow {
    font-size: clamp(1.45rem, 7.2vw, 2.4rem);
  }

  h1 {
    font-size: clamp(3.15rem, 16.5vw, 6.8rem);
  }

  .drone {
    top: 43%;
    left: 51%;
    width: clamp(4.8rem, 25vw, 8.2rem);
  }

  .intro {
    max-width: 33rem;
    font-size: clamp(1rem, 4.2vw, 1.28rem);
  }

  .digi-link {
    margin-top: clamp(3.2rem, 11vh, 5rem);
    font-size: clamp(0.95rem, 4.4vw, 1.2rem);
  }

  .site-footer {
    max-width: 23rem;
    margin: 0 auto;
  }

  .hero-cta {
    margin-top: 3rem;
  }

  .hero-cta > span:first-child {
    min-height: 5.35rem;
    padding-block: 0.85rem;
    padding-inline: clamp(2.5rem, 8vw, 3.7rem);
  }

  .menu-pill {
    justify-self: start;
    min-height: 2.5rem;
    padding: 5px 20px;
    font-size: clamp(17px, 4.8vw, 22px);
  }

  .coming-soon {
    min-height: 110vh;
    min-height: 110svh;
  }

  .coming-soon::before {
    inset: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    transform: none;
    background-position: center top;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-inline: 0.75rem;
  }

  h1 {
    font-size: clamp(2.7rem, 15.6vw, 4rem);
  }

  .intro {
    line-height: 1.38;
  }

  .hero-intro,
  .hero-cta {
    font-size: 1.375rem;
  }

  .hero-cta > span:first-child {
    min-height: 4.65rem;
    padding-block: 0.65rem;
    padding-inline: 2rem;
  }
}

.drone-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 32px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0.35rem 0.45rem rgba(0, 0, 0, 0.35));
  will-change: transform, opacity;
  transition: opacity 140ms ease;
}

.drone-cursor.is-visible {
  opacity: 1;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .drone-cursor {
    display: none;
  }
}

/* Keep the brand colors; only the scene and toggle change with the theme. */
:root[data-theme="dark"] {
  --scene-background: url("assets/image/digidronebackground-darkmode.jpg");
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  width: 80px;
  height: 44px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 2px 5px #0003, 0 3px 9px #0003;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 220ms ease;
}

.theme-toggle[hidden] { display: none; }

.theme-toggle-thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 5px #0004;
  transition: transform 220ms ease;
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

:root[data-theme="dark"] .theme-toggle { background: var(--ink); }
:root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(36px); }
:root[data-theme="dark"] .theme-icon-sun { filter: brightness(0) invert(1); }

.theme-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle, .theme-toggle-thumb { transition: none; }
}
