* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(20, 20, 60, 0.95);
  padding: 0.5rem 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nav-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

#nav-logo-link {
  display: flex;
  align-items: center;
}

#mobile-logo-link {
  display: none;
  align-items: center;
  height: 36px;
  flex-shrink: 0;
}

#mobile-logo {
  display: block;
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: min(42vw, 180px);
  object-fit: contain;
}

#nav-logo {
  height: 40px;
  width: auto;
  margin-top: 5px;
}

.nav-link {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #aafb45;
  text-decoration: none;
  letter-spacing: 0px;
  text-shadow:
    1px 1px 0px #7b4ecf,
    2px 2px 4px rgba(90, 50, 175, 0.4);
}

.nav-join {
  color: #ff4d8a;
  text-shadow: none;
  font-weight: 700;
}

.nav-link:hover {
  color: #9b6dff;
}

#hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

#hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #aafb45;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(23, 23, 75, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
}

#mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #aafb45;
  text-decoration: none;
}

.mobile-link:hover {
  color: #9b6dff;
}

body {
  position: relative;
  isolation: isolate;
  background-color: #17174b;
  background-image: url('/img/bg-small-0.3.png');
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#hero {
  display: flex;
  align-items: center;
  width: 80vw;
  margin: 0 auto;
  padding: 70px 0 3rem 0;
  margin-top: 60px;
  min-height: 25vh;
  gap: calc(4% + 25px);
}

#hero-text {
  width: 70%;
}

#hero-pilot {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(253, 0, 105, 0.85);
  padding: 22px calc(2.5% - 23px) 24px;
  border-radius: 4px;
}

#hero-pilot h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 24px);
  color: #fff;
  text-shadow:
    2px 2px 0px #17174b,
    3px 3px 4px rgba(23, 23, 75, 0.5);
  margin-bottom: 8px;
  text-align: center;
}

.pilot-form.hero-form {
  gap: 6px;
}

.pilot-form.hero-form input,
.pilot-form.hero-form textarea {
  font-size: 11px;
  padding: 5px 6px;
  line-height: 1.2;
}

.pilot-form.hero-form button {
  font-size: 12px;
  padding: 5px 8px;
  line-height: 1.2;
}

h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 54px);
  white-space: nowrap;
  color: #aafb45;
  text-shadow:
    3px 3px 0px #7b4ecf,
    5px 5px 6px rgba(90, 50, 175, 0.55);
  letter-spacing: 0px;
  margin-bottom: 1rem;
}

.hero-mobile-break {
  display: none;
}

.hero-desktop-break {
  display: inline;
}

p {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.3vw, 22px);
  white-space: nowrap;
  color: #aafb45;
  text-shadow:
    2px 2px 0px #9b6dff,
    3px 3px 4px rgba(120, 80, 220, 0.5);
  letter-spacing: 0px;
}

/* Smooth gradient transition from hero to builds */
#hero-to-builds {
  display: none;
}

#what, #how, #certifications, #how-pilot {
  scroll-margin-top: 60px;
}

/* What section */
#what {
  display: flex;
  align-items: stretch;
  width: 80vw;
  margin: 30px auto 40px auto;
  padding: 0;
}

#what-left {
  width: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  padding: 0 30px;
  overflow: hidden;
}

#what-img {
  width: 100%;
  height: auto;
}

#what-right {
  width: 70%;
  background-color: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
}

#what-right > ul {
  background-color: rgba(23, 23, 75, 0.85);
  padding: 2.22rem 4%;
  flex: 1;
  justify-content: center;
}

#what-right h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 36px);
  color: #aafb45;
  margin-bottom: 1.5rem;
}

/* More link and modal */
.more-wrap {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

.more-link {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 1.1vw, 15px);
  color: rgb(253, 0, 105);
  position: relative;
  top: -2px;
  cursor: pointer;
  white-space: nowrap;
}

.more-link:hover {
  color: rgb(253, 0, 105);
}

.more-modal {
  display: none;
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  background-color: rgba(20, 20, 60, 0.97);
  border: 1px solid #9b6dff;
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.more-modal::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #9b6dff;
}

.more-modal h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #9b6dff;
  margin-bottom: 0.75rem;
}

.modal-text {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #aafb45;
  margin-bottom: 0.75rem;
  white-space: normal;
  text-shadow: none;
}

.modal-text:last-child {
  margin-bottom: 0;
}

.more-modal ul {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #aafb45;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: disc;
}

.more-modal ul li {
  min-height: 1.2em;
}

.more-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: #aafb45;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.more-close:hover {
  color: #fff;
}

.more-modal.show {
  display: block;
}

.more-wrap:not(.click-only):hover .more-modal:not(.pinned):not(.suppressed) {
  display: block;
}

.more-modal.pinned {
  display: block;
}

#what-right-header {
  background-color: rgba(155, 109, 255, 0.75);
  padding: 0.7rem 4%;
  width: 100%;
}

#what-right ul {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 22px);
  color: #aafb45;
  padding-left: 4%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#what-right ul li {
  position: relative;
  padding-left: 1.2em;
}

#what-right ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: inherit;
}

.what-headline {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 54px);
  white-space: nowrap;
  color: #aafb45;
  text-shadow:
    3px 3px 0px #17174b,
    5px 5px 6px rgba(23, 23, 75, 0.5);
  letter-spacing: 0px;
}

/* Builds section */
#builds {
  display: flex;
  align-items: stretch;
  width: 80vw;
  margin: 30px auto 40px auto;
  padding: 0;
  min-height: auto;
}

#builds-list {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.8rem;
  background-color: rgba(170, 251, 69, 0.8);
  padding: 2.22rem 4%;
}

.builds-item {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 22px);
  color: #17174b;
  text-shadow:
    1px 1px 0px #9b6dff,
    1.5px 1.5px 2px rgba(120, 80, 220, 0.4);
  letter-spacing: 0px;
}

.builds-item.strikethrough {
  text-decoration: line-through;
  opacity: 0.5;
}

#builds-cta {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 1.5rem;
  background-color: rgba(155, 109, 255, 0.75);
  padding: 1.8rem 4%;
}

.builds-logo {
  max-width: 280px;
  width: 80%;
  height: auto;
}

/* How section */
#how {
  display: flex;
  align-items: stretch;
  width: 80vw;
  margin: 30px auto 40px auto;
  padding: 0;
}

#how-content {
  width: 67%;
  background-color: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
}

#how-content-header {
  background-color: rgba(155, 109, 255, 0.75);
  padding: 0.7rem 4%;
  width: 100%;
}

#how-content > ol {
  background-color: rgba(23, 23, 75, 0.85);
  padding: 2.22rem 4%;
  flex: 1;
  justify-content: center;
}

#how-content h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 36px);
  color: #aafb45;
  margin-bottom: 1.5rem;
}

#how-content ol {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 22px);
  color: #aafb45;
  padding-left: 4%;
  list-style: none;
  counter-reset: how-steps;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#how-content ol li {
  position: relative;
  padding-left: 1.5em;
  counter-increment: how-steps;
}

#how-content ol li::before {
  content: counter(how-steps) '.';
  position: absolute;
  left: 0;
  color: inherit;
}

#how-label {
  width: 33%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background-color: transparent;
  padding: 0 30px;
  overflow: hidden;
}

#how-img {
  width: 100%;
  height: auto;
}

/* Certifications section */
#certifications {
  width: 80vw;
  margin: 30px auto 40px auto;
  padding: 0;
}

#certifications-header {
  background-color: rgba(155, 109, 255, 0.75);
  padding: 0.7rem 4%;
  width: 100%;
}

.certifications-headline {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 54px);
  white-space: nowrap;
  color: #aafb45;
  text-shadow:
    3px 3px 0px #17174b,
    5px 5px 6px rgba(23, 23, 75, 0.5);
  letter-spacing: 0px;
  display: block;
  text-align: center;
}

#certifications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 0;
  background-color: rgba(23, 23, 75, 0.85);
  padding: 2.22rem 4%;
  align-items: stretch;
}

.certification-card.cert-span {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.75rem);
  justify-self: center;
  width: 100%;
}

.cert-arrow-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12rem;
}

.cert-arrow {
  width: clamp(48px, 6.4vw, 80px);
  height: clamp(24px, 3vw, 40px);
  color: #aafb45;
  display: block;
  flex-shrink: 0;
}

.certification-card {
  background: rgba(155, 109, 255, 0.14);
  border: 1px solid rgba(170, 251, 69, 0.28);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem;
  container-type: inline-size;
}

.certification-card h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  color: #aafb45;
  text-shadow:
    3px 3px 0px #7b4ecf,
    5px 5px 6px rgba(90, 50, 175, 0.55);
  letter-spacing: 0px;
  text-align: center;
}

.cert-fundamentals h2,
.cert-process h2,
.cert-technical h2,
.cert-architect h2 {
  white-space: normal;
  font-size: clamp(12px, 4.875cqi, 27px);
  line-height: 1.1;
}

.certification-card h2 .cert-subtitle {
  font-weight: 400;
}

.certification-card p {
  white-space: normal;
  font-size: clamp(14px, 1.15vw, 18px);
  color: #aafb45;
  text-shadow: none;
  text-align: center;
  margin-top: 10px;
}

.certifications-note {
  grid-column: 1 / -1;
  text-align: center;
  white-space: normal;
  font-size: clamp(12px, 1vw, 16px);
  color: #aafb45;
  text-shadow: none;
  margin-top: 2rem;
}

/* Footer */
#footer {
  display: flex;
  align-items: center;
  width: 80vw;
  margin: 30px auto 40px auto;
  padding: 2rem 4%;
}

#footer-logo {
  width: 60%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 4%;
}

#footer-logo-img {
  max-width: 430px;
  width: 100%;
  height: auto;
}

#footer-links {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #aafb45;
  text-decoration: none;
  text-shadow:
    1px 1px 0px #7b4ecf,
    2px 2px 4px rgba(90, 50, 175, 0.4);
}

.footer-link:hover {
  color: #9b6dff;
}

.footer-about-link {
  cursor: pointer;
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: #aafb45;
  top: 0;
  text-shadow:
    1px 1px 0px #7b4ecf,
    2px 2px 4px rgba(90, 50, 175, 0.4);
}

.footer-more-wrap {
  margin-left: 0;
  display: block;
}

.footer-modal {
  bottom: calc(100% + 12px);
  top: auto;
  transform: none;
  right: auto;
  left: 0;
}

.footer-modal::after {
  top: auto;
  bottom: -8px;
  right: auto;
  left: 30px;
  transform: none;
  border-width: 8px 8px 0 8px;
  border-color: #9b6dff transparent transparent transparent;
}

.how-headline {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 54px);
  white-space: nowrap;
  color: #aafb45;
  text-shadow:
    3px 3px 0px #17174b,
    5px 5px 6px rgba(23, 23, 75, 0.5);
  letter-spacing: 0px;
  text-align: center;
}

.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
}

.pilot-form input,
.pilot-form textarea {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #17174b;
  resize: none;
}

.pilot-form button {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  background-color: #17174b;
  color: #aafb45;
  cursor: pointer;
}

.pilot-form button:hover {
  background-color: #aafb45;
  color: #17174b;
}

.form-status {
  min-height: 1.2em;
  margin: 0.5rem 0 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: #ffffff;
}

.form-status.is-success {
  color: #aafb45;
}

.form-status.is-error {
  color: #ffb3b3;
}

.builds-headline {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 54px);
  color: #aafb45;
  text-shadow:
    3px 3px 0px #17174b,
    5px 5px 6px rgba(23, 23, 75, 0.5);
  letter-spacing: 0px;
  text-align: center;
}

@media (max-width: 768px) {
  #navbar {
    position: relative;
    z-index: 1;
  }

  #navbar {
    position: fixed;
    left: 0;
    right: 0;
    justify-content: space-between;
    padding: 0.65rem 1rem;
  }

  #nav-inner {
    display: none;
  }

  #mobile-logo-link {
    display: flex;
    justify-content: flex-start;
    margin-right: auto;
  }

  #hamburger {
    display: flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
  }

  #hero {
    flex-direction: column;
    text-align: center;
    margin-top: 40px;
    padding-top: 46px;
    padding-bottom: 0;
    gap: 0;
  }

  #hero-text,
  #hero-pilot {
    width: 100%;
  }

  #hero-text {
    margin-bottom: 30px;
  }

  h1,
  p {
    white-space: normal;
  }

  h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.05;
    text-wrap: balance;
  }

  #hero-pilot h2 {
    font-size: clamp(22px, 3.5vw, 54px);
  }

  .hero-mobile-break {
    display: block;
  }

  .hero-desktop-break {
    display: none;
  }

  .more-modal,
  .footer-modal {
    position: fixed;
    top: auto;
    left: 1rem;
    right: 1rem;
    bottom: auto;
    transform: none;
    width: auto;
    max-width: calc(100vw - 2rem);
    padding: 1rem 1rem 1.1rem;
    max-height: none;
    overflow: visible;
    z-index: 1100;
  }

  .more-modal::after,
  .footer-modal::after {
    display: block;
    top: auto;
    bottom: -8px;
    left: var(--modal-arrow-left, 50%);
    right: auto;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-color: #9b6dff transparent transparent transparent;
  }

  .more-modal.modal-below::after,
  .footer-modal.modal-below::after {
    top: -8px;
    bottom: auto;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #9b6dff transparent;
  }

  #what {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  #what-left,
  #what-right {
    width: 100%;
  }

  #what-left {
    background-color: transparent;
    padding: 0;
  }

  #what-right {
    background-color: transparent;
  }

  #how-content {
    background-color: transparent;
  }

  #what-right-header,
  #how-content-header,
  #certifications-header {
    text-align: center;
  }

  .what-headline,
  .how-headline,
  .certifications-headline {
    display: block;
    text-align: center;
  }

  #what-right > ul {
    background-color: #040523;
    padding-top: 1.11rem;
    padding-bottom: 1.11rem;
  }

  #how-content > ol {
    background-color: #040523;
    padding-top: 1.11rem;
    padding-bottom: 1.11rem;
  }

  #certifications {
    margin-top: 0;
  }

  #certifications-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    background-color: #040523;
    padding-top: 1.11rem;
    padding-bottom: 1.11rem;
  }

  .certification-card {
    padding: 1rem;
  }

  .certification-card {
    min-height: 0;
  }

  .certification-card.cert-span {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  .cert-arrow-row {
    justify-content: space-around;
    gap: 0;
  }

  .cert-arrow {
    width: clamp(28px, 9vw, 56px);
    height: clamp(16px, 4.5vw, 28px);
  }

  #builds {
    flex-direction: column;
    text-align: center;
    padding: 0;
    margin-top: 0;
  }

  #builds-list,
  #builds-cta {
    width: 100%;
  }

  #builds-list {
    align-items: center;
    margin-bottom: 0;
    padding: 1.5rem 2%;
  }

  .builds-item {
    white-space: nowrap;
    font-size: clamp(14px, 1.5vw, 22px);
  }

  #builds-cta {
    padding: 1.11rem 2%;
  }

  #how {
    flex-direction: column;
    width: 80vw;
    gap: 30px;
    margin-top: 0;
    margin-bottom: 30px;
  }

  #how-content,
  #how-label {
    width: 100%;
  }

  #how-label {
    order: -1;
    background-color: transparent;
    padding: 0;
  }

  #footer {
    flex-direction: column;
    text-align: center;
  }

  #footer-logo,
  #footer-links {
    width: 100%;
  }

  #footer-logo {
    margin-bottom: 1.5rem;
  }

  #footer-links {
    align-items: center;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52vh;
    pointer-events: none;
    z-index: 0;
    background-image:
      repeating-linear-gradient(
        to bottom,
        rgba(170, 251, 69, 0.22) 0 1px,
        transparent 1px 22px
      ),
      repeating-linear-gradient(
        to right,
        rgba(170, 251, 69, 0.22) 0 1px,
        transparent 1px 22px
      );
    background-position: top left;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  body::before {
    content: none;
  }
}

/* Themed-element transitions (smooth Rad <-> Pro swap) */
body,
#navbar, .nav-link, #mobile-menu, .mobile-link,
#hamburger span,
h1, h2, h3, p,
#hero-pilot,
.pilot-form input, .pilot-form textarea, .pilot-form button,
.form-status,
#what-left, #what-right-header, #what-right > ul, #what-right ul,
#how-label, #how-content-header, #how-content > ol, #how-content ol,
.what-headline, .how-headline,
.bullet-text, .more-link, .more-modal, .more-modal h3, .modal-text, .more-close,
#builds, #builds-list, #builds-cta, .builds-item, .builds-headline,
#footer, .footer-link, .footer-about-link,
#nav-logo, #mobile-logo, #footer-logo-img {
  transition: background-color 0.4s ease, color 0.4s ease,
              text-shadow 0.4s ease, border-color 0.4s ease,
              box-shadow 0.4s ease, filter 0.4s ease;
}

/* Theme toggle button (bottom-left) */
#theme-toggle {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 3;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background-color: rgba(23, 23, 75, 0.85);
  color: #aafb45;
  box-shadow: 0 2px 8px rgba(23, 23, 75, 0.25);
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.15s ease, box-shadow 0.4s ease;
}

#theme-toggle:hover {
  transform: translateY(-1px);
}

/* ===== Pro Mode (white / dark navy / blue) ===== */
body.pro-mode {
  background-color: #ffffff;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(9, 30, 66, 0.045) 0,
      rgba(9, 30, 66, 0.045) 1px,
      transparent 1px,
      transparent 7px
    ),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%234C9AFF' fill-opacity='0.22' d='M0,240 C360,300 1000,200 1440,260 L1440,320 L0,320 Z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%230052CC' fill-opacity='0.15' d='M0,200 C300,280 900,120 1440,220 L1440,320 L0,320 Z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%230747A6' fill-opacity='0.10' d='M0,140 C400,220 820,60 1440,180 L1440,320 L0,320 Z'/></svg>");
  background-position: 0 0, bottom center, bottom center, bottom center;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, 100% 28vh, 100% 88vh, 100% 154vh;
  background-attachment: fixed, fixed, fixed, fixed;
  color: #172B4D;
}

/* Navbar */
body.pro-mode #navbar {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(9, 30, 66, 0.12);
}

body.pro-mode .nav-link {
  color: #172B4D;
  text-shadow: none;
  font-weight: 600;
}

body.pro-mode .nav-link:hover {
  color: #1E5BD3;
}

body.pro-mode .nav-join {
  color: #1E5BD3;
  text-shadow: none;
  font-weight: 700;
}

body.pro-mode .nav-join:hover {
  color: #1A4DAA;
}

body.pro-mode #hamburger span {
  background-color: #1E5BD3;
}

body.pro-mode #mobile-menu {
  background-color: rgba(255, 255, 255, 0.97);
}

body.pro-mode .mobile-link {
  color: #172B4D;
  text-shadow: none;
}

body.pro-mode .mobile-link:hover {
  color: #1E5BD3;
}

body.pro-mode #nav-logo,
body.pro-mode #mobile-logo {
  filter:
    drop-shadow(0 0 1px rgba(6, 30, 80, 0.5))
    drop-shadow(0 0 2px rgba(26, 77, 170, 0.48))
    drop-shadow(0 0 3px rgba(30, 91, 211, 0.5))
    drop-shadow(0 1px 4px rgba(30, 91, 211, 0.45))
    drop-shadow(0 2px 6px rgba(30, 91, 211, 0.33));
}

body.pro-mode #footer-logo-img {
  filter:
    drop-shadow(0 0 3px rgba(6, 30, 80, 0.83))
    drop-shadow(0 0 10px rgba(26, 77, 170, 0.78))
    drop-shadow(0 0 16px rgba(30, 91, 211, 0.83))
    drop-shadow(0 4px 24px rgba(30, 91, 211, 0.75))
    drop-shadow(0 9px 34px rgba(30, 91, 211, 0.54));
}

/* Hero */
body.pro-mode h1,
body.pro-mode p {
  color: #172B4D;
  text-shadow: none;
  font-weight: 600;
}

body.pro-mode #hero-text h1 {
  color: #1A4DAA;
  font-weight: 700;
  text-shadow:
    1px 1px 0px #ffffff,
    2px 2px 4px rgba(255, 255, 255, 0.55);
}

body.pro-mode #hero-pilot {
  background-color: rgba(30, 91, 211, 0.75);
  box-shadow: 0 6px 24px rgba(26, 77, 170, 0.18);
}

body.pro-mode #hero-pilot h2 {
  color: #ffffff;
  text-shadow: 2px 2px 4px #000;
  font-weight: 600;
}

/* Pilot form */
body.pro-mode .pilot-form input,
body.pro-mode .pilot-form textarea {
  background-color: #ffffff;
  color: #172B4D;
  border: 1px solid #DFE1E6;
}

body.pro-mode .pilot-form input::placeholder,
body.pro-mode .pilot-form textarea::placeholder {
  color: #6B778C;
}

body.pro-mode .pilot-form input:focus,
body.pro-mode .pilot-form textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

body.pro-mode .pilot-form button {
  background-color: #000000;
  color: #ffffff;
  font-weight: 700;
}

body.pro-mode .pilot-form button:hover {
  background-color: #172B4D;
  color: #ffffff;
}

body.pro-mode .form-status {
  color: #ffffff;
}

body.pro-mode .form-status.is-success {
  color: #ffffff;
}

body.pro-mode .form-status.is-error {
  color: #FFD5D2;
}

/* What / How sections */
body.pro-mode #what-right-header,
body.pro-mode #how-content-header,
body.pro-mode #certifications-header {
  background-color: rgba(30, 91, 211, 0.85);
}

body.pro-mode .what-headline,
body.pro-mode .how-headline,
body.pro-mode .certifications-headline {
  color: #ffffff;
  text-shadow: 2px 2px 4px #000;
  font-weight: 700;
}

body.pro-mode #what-right > ul,
body.pro-mode #how-content > ol,
body.pro-mode #certifications-grid {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(9, 30, 66, 0.08);
}

body.pro-mode #what-right ul,
body.pro-mode #how-content ol {
  color: #172B4D;
}

body.pro-mode #what-right h2,
body.pro-mode #how-content h2,
body.pro-mode .certification-card h2 {
  color: #172B4D;
}

body.pro-mode .certification-card h2 {
  text-shadow:
    1px 1px 0px #ffffff,
    2px 2px 4px rgba(255, 255, 255, 0.55);
}

body.pro-mode .certification-card {
  background: linear-gradient(180deg, rgba(222, 235, 255, 0.9), rgba(244, 245, 247, 0.95));
  border: 1px solid #B3D4FF;
}

body.pro-mode .certification-card p {
  color: #1E5BD3;
  text-shadow: none;
}

body.pro-mode .certifications-note {
  color: #172B4D;
}

body.pro-mode .cert-arrow {
  color: #1A4DAA;
}

/* Inline purple brand emphasis flips to pro-mode blue */
body.pro-mode strong[style*="#9b6dff"],
body.pro-mode span[style*="#9b6dff"] {
  color: #1E5BD3 !important;
}

/* More-link + modal */
body.pro-mode .more-link {
  color: #000;
  font-weight: 700;
}

body.pro-mode .more-link:hover {
  color: #000;
}

body.pro-mode .more-modal {
  background-color: #ffffff;
  color: #172B4D;
  border: 1px solid #DFE1E6;
  box-shadow: 0 6px 24px rgba(9, 30, 66, 0.18);
}

body.pro-mode .more-modal::after {
  border-color: transparent transparent transparent #DFE1E6;
}

body.pro-mode .more-modal h3 {
  color: #1E5BD3;
}

body.pro-mode .modal-text,
body.pro-mode .more-modal ul {
  color: #172B4D;
  text-shadow: none;
}

body.pro-mode .more-close {
  color: #172B4D;
}

body.pro-mode .more-close:hover {
  color: #1E5BD3;
}

body.pro-mode .footer-modal::after {
  border-color: #DFE1E6 transparent transparent transparent;
}

/* Builds section */
body.pro-mode #builds-list {
  background-color: rgba(222, 235, 255, 0.9);
}

body.pro-mode .builds-item {
  color: #172B4D;
  text-shadow: none;
  font-weight: 600;
}

body.pro-mode #builds-cta {
  background-color: rgba(30, 91, 211, 0.85);
}

body.pro-mode .builds-headline {
  color: #ffffff;
  text-shadow: 2px 2px 4px #000;
}

/* Footer */
body.pro-mode .footer-link,
body.pro-mode .footer-about-link {
  color: #172B4D;
  text-shadow: none;
  font-weight: 600;
}

body.pro-mode .footer-link:hover,
body.pro-mode .footer-about-link:hover {
  color: #1E5BD3;
}

/* Theme toggle pill */
body.pro-mode #theme-toggle {
  background-color: #1E5BD3;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 77, 170, 0.25);
}

body.pro-mode #theme-toggle:hover {
  background-color: #1A4DAA;
}

/* Mobile-specific Pro Mode overrides */
@media (max-width: 768px) {
  body.pro-mode {
    background-position: 0 0, center calc(100% + 150px), center calc(100% + 150px), center calc(100% + 150px);
  }

  body.pro-mode #what-right > ul,
  body.pro-mode #how-content > ol {
    background-color: rgba(255, 255, 255, 0.92);
  }

  body.pro-mode .more-modal::after,
  body.pro-mode .footer-modal::after {
    border-color: #DFE1E6 transparent transparent transparent;
  }

  body.pro-mode .more-modal.modal-below::after,
  body.pro-mode .footer-modal.modal-below::after {
    border-color: transparent transparent #DFE1E6 transparent;
  }
}

/* Hide Rad-mode portrait grid overlay in Pro Mode */
@media (max-width: 768px) and (orientation: portrait) {
  body.pro-mode::before {
    content: none !important;
  }
}
