* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  background-color: #17174b;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/img/bg-small-0.3.png');
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.pro-mode::after {
  opacity: 0;
}

#split {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  gap: 100px;
  padding: 2rem 4%;
  position: relative;
  z-index: 1;
}

#left,
#right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#center {
  text-align: center;
}

#logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1rem auto;
}

#logos .logo {
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
}

h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 96px;
  color: #aafb45;
  text-shadow:
    3px 3px 0px #7b4ecf,
    5px 5px 6px rgba(90, 50, 175, 0.55);
  letter-spacing: 0px;
}

p {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 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;
}

#hero-pilot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(253, 0, 105, 0.85);
  padding: 18px 24px 20px;
  border-radius: 6px;
  width: 460px;
  max-width: 100%;
}

#hero-pilot h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 28px);
  color: #fff;
  text-shadow:
    2px 2px 0px #17174b,
    3px 3px 4px rgba(23, 23, 75, 0.5);
  margin-bottom: 10px;
  text-align: center;
}

.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.pilot-form input,
.pilot-form textarea {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  padding: 7px 9px;
  line-height: 1.3;
  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: 14px;
  padding: 8px 14px;
  line-height: 1.3;
  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;
  text-align: center;
}

.form-status.is-success {
  color: #aafb45;
}

.form-status.is-error {
  color: #ffb3b3;
}

#bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 15px;
  background-color: rgba(23, 23, 75, 0.85);
  border-radius: 12px;
  z-index: 2;
}

#bottom-logo {
  height: 32px;
  width: auto;
}

#bottom-msg {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 1.4vw, 18px);
  color: #aafb45;
  text-shadow:
    1px 1px 0px #7b4ecf,
    2px 2px 4px rgba(90, 50, 175, 0.4);
  margin-right: 10px;
}

#bottom-msg a {
  color: #ff4d8a;
  text-decoration: none;
}

#bottom-msg a:hover {
  color: #9b6dff;
}

#bottom-msg {
  text-align: center;
}

.mobile-break {
  display: none;
}

.footer-line {
  white-space: nowrap;
}

@media (max-width: 768px) {
  h1 {
    text-shadow:
      1.5px 1.5px 0px #7b4ecf,
      2.5px 2.5px 3px rgba(90, 50, 175, 0.55);
  }

  #bottom-bar {
    width: min(88vw, 380px);
    gap: 6px;
    padding-inline: 18px;
  }

  .mobile-break {
    display: block;
  }
}

@media (orientation: portrait) {
  body {
    display: flex;
    flex-direction: column;
  }

  #split {
    flex-direction: column;
    flex: 1 0 auto;
    gap: 2rem;
    min-height: auto;
  }

  #left,
  #right {
    flex: 0 0 auto;
    width: 100%;
  }

  p {
    font-size: clamp(16px, 7.5vw, 54px);
  }

  #bottom-bar {
    position: static;
    transform: none;
    margin: 0 auto 15px;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    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 (orientation: landscape) {
  body::before {
    content: none;
  }
}

/* Themed-element transitions (smooth Rad <-> Pro swap) */
p,
h1,
h2,
#hero-pilot,
.pilot-form input,
.pilot-form textarea,
.pilot-form button,
#bottom-bar,
#bottom-msg,
#bottom-msg a,
.form-status {
  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;
}

/* Theme toggle button (bottom-right) */
#theme-toggle {
  position: fixed;
  right: 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 (Atlassian-style: 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;
}

body.pro-mode p,
body.pro-mode h1 {
  color: #172B4D;
  text-shadow: none;
  font-weight: 600;
}

body.pro-mode #logos .logo {
  filter:
    drop-shadow(0 0 3px rgba(6, 30, 80, 0.83))
    drop-shadow(0 0 10px rgba(7, 71, 166, 0.78))
    drop-shadow(0 0 16px rgba(0, 82, 204, 0.83))
    drop-shadow(0 4px 24px rgba(0, 82, 204, 0.75))
    drop-shadow(0 9px 34px rgba(0, 82, 204, 0.54));
}

body.pro-mode #left p {
  color: #0747A6;
  position: relative;
  z-index: 1;
  text-shadow:
    1px 1px 0px #ffffff,
    2px 2px 4px rgba(255, 255, 255, 0.55);
}

body.pro-mode #hero-pilot {
  background-color: rgba(0, 82, 204, 0.75);
  box-shadow: 0 6px 24px rgba(7, 71, 166, 0.18);
}

body.pro-mode #hero-pilot h2 {
  color: #ffffff;
  text-shadow: none;
  font-weight: 600;
}

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;
}

body.pro-mode #bottom-bar {
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 12px rgba(9, 30, 66, 0.12);
}

body.pro-mode #bottom-logo {
  filter:
    drop-shadow(0 0 1px rgba(6, 30, 80, 0.5))
    drop-shadow(0 0 2px rgba(7, 71, 166, 0.48))
    drop-shadow(0 0 3px rgba(0, 82, 204, 0.5))
    drop-shadow(0 1px 4px rgba(0, 82, 204, 0.45))
    drop-shadow(0 2px 6px rgba(0, 82, 204, 0.33));
}

body.pro-mode #bottom-msg {
  color: #172B4D;
  text-shadow: none;
  font-weight: 600;
}

body.pro-mode #bottom-msg a {
  color: #0052CC;
}

body.pro-mode #bottom-msg a:hover {
  color: #0747A6;
}

body.pro-mode #theme-toggle {
  background-color: #0052CC;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(7, 71, 166, 0.25);
}

body.pro-mode #theme-toggle:hover {
  background-color: #0747A6;
}

/* Hide the Rad-mode portrait grid overlay in Pro Mode */
body.pro-mode::before {
  content: none !important;
}
