:root {
  --ink: #020405;
  --panel: #091117;
  --text: #f0f3f5;
  --muted: #a6b0b8;
  --teal: #58bbb6;
  --teal-bright: #84e3dc;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 1px;
  min-height: 1px;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

#ad {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(88, 187, 182, 0.72);
  background:
    radial-gradient(circle at 18% 15%, rgba(44, 121, 122, 0.25), transparent 32%),
    radial-gradient(circle at 83% 79%, rgba(36, 77, 87, 0.32), transparent 41%),
    linear-gradient(145deg, #030607 0%, #071015 54%, #020304 100%);
  isolation: isolate;
}

#ad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 26px 26px;
}

.atmosphere {
  position: absolute;
  width: 74vmax;
  height: 26vmax;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0;
  background: rgba(91, 200, 193, 0.13);
  pointer-events: none;
}

.atmosphere-one {
  top: -15%;
  left: -38%;
  animation: mist-one 6s ease-in-out 0.2s 3 both;
}

.atmosphere-two {
  right: -35%;
  bottom: -18%;
  animation: mist-two 6s ease-in-out 0.8s 3 both;
}

.scan-line {
  position: absolute;
  z-index: 6;
  top: -8%;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(132, 227, 220, 0.58), transparent);
  box-shadow: 0 0 14px rgba(132, 227, 220, 0.35);
  animation: scan 5.5s ease-in-out 1.4s 3 both;
  pointer-events: none;
}

.copy-panel {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: clamp(15px, 5vw, 46px);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(9px, 2.5vw, 18px);
  opacity: 0;
  transform: translateY(-10px);
  animation: reveal-down 0.8s cubic-bezier(.2, .8, .2, 1) 0.15s 1 forwards;
}

.brand-icon {
  width: clamp(44px, 12vw, 86px);
  height: clamp(44px, 12vw, 86px);
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(96, 216, 210, 0.38));
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: clamp(2px, 0.9vw, 5px);
  line-height: 0.96;
}

.brand-name span {
  font-size: clamp(13px, 3.5vw, 28px);
  font-weight: 800;
}

.brand-name strong {
  margin-top: 6px;
  color: var(--teal);
  font-size: clamp(11px, 2.9vw, 22px);
  letter-spacing: clamp(3px, 1.4vw, 8px);
}

.message {
  max-width: 680px;
  padding-bottom: clamp(84px, 22vh, 160px);
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.9s cubic-bezier(.2, .8, .2, 1) 0.55s 1 forwards;
}

.eyebrow {
  margin: 0 0 clamp(7px, 1.8vh, 14px);
  color: var(--teal-bright);
  font-size: clamp(10px, 2.7vw, 19px);
  font-weight: 800;
  letter-spacing: clamp(1.5px, 0.7vw, 4px);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(33px, 10vw, 76px);
  line-height: 0.94;
  letter-spacing: -1.4px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

h1 em {
  color: var(--teal-bright);
  font-style: normal;
}

.description {
  max-width: 600px;
  margin: clamp(11px, 2.5vh, 22px) 0 0;
  color: var(--muted);
  font-size: clamp(13px, 3.7vw, 24px);
  line-height: 1.4;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.8vw, 14px);
  margin-top: clamp(13px, 3vh, 24px);
  color: #d7dedf;
  font-size: clamp(9px, 2.45vw, 16px);
  font-weight: 800;
  letter-spacing: 1.1px;
}

.tool-row i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 7px var(--teal);
}

.action-block {
  position: relative;
  z-index: 5;
  width: min(100%, 570px);
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up 0.8s cubic-bezier(.2, .8, .2, 1) 1.05s 1 forwards;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(44px, 10vh, 68px);
  border-radius: 999px;
  color: #020606;
  background: linear-gradient(100deg, #5fc8c1, #8ee8e1);
  box-shadow: 0 8px 28px rgba(73, 189, 183, 0.2);
  font-size: clamp(13px, 3.4vw, 21px);
  font-weight: 900;
  letter-spacing: 0.6px;
}

.cta span {
  margin-left: 9px;
  font-size: 1.55em;
  line-height: 0;
  animation: arrow-pulse 1.6s ease-in-out 1.4s 5 both;
}

.purchase-note {
  margin: clamp(7px, 1.7vh, 13px) 0 0;
  color: #8d989f;
  font-size: clamp(9px, 2.5vw, 15px);
  text-align: center;
}

.device-stage {
  position: absolute;
  z-index: 2;
  right: -10%;
  bottom: -13%;
  width: clamp(170px, 55vw, 430px);
  height: 72%;
  opacity: 0;
  transform: translate(22px, 32px) rotate(2.5deg);
  animation: device-enter 1.15s cubic-bezier(.18, .84, .25, 1) 0.7s 1 forwards;
}

.device-glow {
  position: absolute;
  inset: 9% -7% -7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 190, 184, 0.27), transparent 66%);
  filter: blur(18px);
}

.device-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: clamp(5px, 1.7vw, 12px) solid #17232b;
  border-radius: clamp(25px, 7vw, 52px);
  background: #000;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(129, 225, 220, 0.25);
}

.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device-speaker {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  width: 27%;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #28343b;
}

@media (orientation: landscape) {
  .copy-panel {
    width: 64%;
    padding: clamp(14px, 4vw, 38px);
  }

  .brand-icon {
    width: clamp(38px, 8vw, 70px);
    height: clamp(38px, 8vw, 70px);
  }

  .brand-name span {
    font-size: clamp(12px, 2.6vw, 23px);
  }

  .brand-name strong {
    font-size: clamp(10px, 2.15vw, 18px);
  }

  .message {
    padding: 0;
  }

  h1 {
    font-size: clamp(29px, 6.7vw, 66px);
  }

  .description {
    margin-top: clamp(8px, 2.2vh, 18px);
    font-size: clamp(12px, 2.35vw, 21px);
  }

  .tool-row {
    margin-top: clamp(8px, 2.2vh, 18px);
    font-size: clamp(8px, 1.75vw, 14px);
  }

  .action-block {
    width: min(100%, 500px);
  }

  .cta {
    min-height: clamp(38px, 11vh, 58px);
    font-size: clamp(12px, 2.2vw, 18px);
  }

  .purchase-note {
    font-size: clamp(8px, 1.65vw, 13px);
  }

  .device-stage {
    right: 3.5%;
    bottom: -12%;
    width: 29%;
    height: 113%;
    transform: translate(26px, 28px) rotate(3deg);
  }
}

@media (max-height: 360px) and (orientation: landscape) {
  .eyebrow,
  .tool-row {
    display: none;
  }

  .description {
    max-width: 92%;
    line-height: 1.25;
  }

  .purchase-note {
    margin-top: 4px;
  }
}

@media (max-width: 360px) and (orientation: portrait) {
  .description {
    max-width: 88%;
  }

  .device-stage {
    right: -18%;
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .brand,
  .message,
  .action-block,
  .device-stage {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal-down {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes device-enter {
  to { opacity: 0.92; transform: translate(0, 0) rotate(2.5deg); }
}

@keyframes mist-one {
  0% { opacity: 0; transform: translateX(-8%); }
  35%, 70% { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(55%); }
}

@keyframes mist-two {
  0% { opacity: 0; transform: translateX(7%); }
  38%, 72% { opacity: 0.68; }
  100% { opacity: 0; transform: translateX(-46%); }
}

@keyframes scan {
  0% { top: -8%; opacity: 0; }
  12% { opacity: 0.7; }
  80% { opacity: 0.38; }
  100% { top: 108%; opacity: 0; }
}

@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
