:root {
  --accent: #1ecbaf;
  --accent-2: #26aeea;
  --accent-3: #5bd7ae;
  --border-radius: 20px;
}

@font-face {
  font-family: 'title-font';
  src: url(/fonts/Blue\ Highway\ Bd.otf) format('opentype');
}

@font-face {
  font-family: 'body-font';
  src: url(/fonts/JetBrainsMono-Light.ttf) format('opentype');
}

/* Base background: always just solid, never gradient */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'body-font';
  font-size: 0.938em;
  min-height: 100vh;
  background: #111c2a;
  transition: background 0.3s;
  overflow-y: auto; 
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

button {
    -webkit-tap-highlight-color: transparent;
}

body.light, body.light-theme {
  background: #fff;
}

.landing-root {
  display: flex;
  min-height: 100vh;
}

/* -------------------- CARD -------------------- */
footer {
  width: 100%;
  text-align: center;
  padding: 1rem 0 1rem 0;
  color: #c6e2f5;
  font-size: 1rem;
  background: transparent;
  border-radius: 0;
  transition: background 0.3s, color 0.3s;
  /* Optional: add a subtle box-shadow for depth */
  box-shadow: 0 2px 16px 0 rgba(30,203,175,0.04);
}

body.light footer {
  background: #f5f6fa;
  color: #2b405a;
  box-shadow: 0 2px 16px 0 rgba(30,203,175,0.04);

}

a {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s;
}

a:hover {
  color: var(--accent);
}

.landing-content {
  flex: 1 1 0;
  max-width: 550px;
  padding: 4vw 3vw 4vw 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  position: relative;
  --card-bg-gradient: 
    radial-gradient(ellipse 55% 38% at 25% 80%, rgba(30,203,175,0.20) 0%, rgba(30,203,175,0.07) 60%, rgba(34,41,70,0.0) 100%),
      radial-gradient(ellipse 80% 60% at 60% 10%, rgba(46,111,255,0.23) 0%, rgba(46,111,255,0.14) 60%, rgba(34,41,70,0.0) 100%),
      linear-gradient(110deg, #232946 0%, #1b233a 100%);
  background: var(--card-bg-gradient);
  color: #f5f6fa;
  transition: background 0.3s, color 0.3s;
  border-radius: 0;
}

body.light .landing-content, body.light-theme .landing-content {
  --card-bg-gradient: 
    radial-gradient(ellipse 75% 50% at 75% 20%, #e4e1ff 0%, transparent 80%),
    radial-gradient(ellipse 50% 35% at 15% 70%, #b8f2ff 0%, transparent 85%),
    linear-gradient(120deg, #fff 0%, #eaf7f9 100%),
    linear-gradient(60deg, #fceabb 0%, transparent 80%);
  background: var(--card-bg-gradient);
  color: #1b2536;
  box-shadow: 0 4px 32px 0 rgba(23,67,102,0.07);
  border-radius: 0;
}

.landing-logo {
  font-family: title-font;
  font-size: 3.05rem;
  font-weight: 800;
  margin-bottom: 0.1em;
  background: linear-gradient(90deg, var(--accent-2) 10%, var(--accent-3) 40%, var(--accent) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.landing-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: .6em;
  letter-spacing: 0.01em;
}
body.light .landing-subtitle {
  color: var(--accent);
}

.landing-desc {
  font-size: 1.07rem;
  margin-bottom: 1.5em;
  color: #c6e2f5;
}
body.light .landing-desc {
  color: #2b405a;
}

.landing-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1em;
}
.landing-form input[type="email"] {
  flex: 1 1 0px;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  border: none;
  font-family: 'body-font';
  font-size: 1rem; 
  background: #283a62;
  color: #fff;
  outline: none;
  transition: background 0.18s;
  box-shadow: 0 1px 7px 0 rgba(44, 86, 130, 0.08);
}
body.light .landing-form input[type="email"] {
  background: #e1f3fb;
  color: #223153;
}
.landing-form input[type="email"]:focus {
  background: #32466e;
}
body.light .landing-form input[type="email"]:focus {
  background: #cbe8ec;
}
.landing-form button {
  position: relative;
  background: transparent;
  color: var(--accent-2);
  font-weight: 700;
  border: none;
  font-family: 'body-font';
  border-radius: 8px;
  padding: 0.78rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
}

.landing-form button:hover {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #f5f6fa;
  transition: background 0.18s, color 0.18s;
}
/* Gradient border using a pseudo-element */
.landing-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 2.2px; /* half of 5px for visual border */
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.4px);
}

.landing-form button span,
.landing-form button .button-text {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.landing-reasons {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  align-items: flex-start;
}
.landing-reasons li {
  background: rgba(44, 86, 130, 0.13);
  color: #fff8e4;
  font-size: 1.01rem;
  padding: 0.65em 0.9em;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75em;
  transition: background 0.17s, color 0.17s;
}
body.light .landing-reasons li {
  background: rgba(30, 203, 175, 0.06);
  color: #2a566a;
}
.landing-reasons li:hover {
  background: rgba(30, 203, 175, 0.18);
  color: var(--accent-2);
}

body.light .landing-reasons li:hover {
  background: rgba(42, 200, 173, 0.18);
  color: var(--accent);
}

.landing-privacy {
  margin-bottom: 1.5em;
  color: #ffe7b4;
  font-size: 0.99rem;
  opacity: 0.93;
}

body.light .landing-privacy {
  color: #2b405a;
}

.landing-disclaimer {
  margin-top: 0.3em;
  color: #ffe7b4;
  font-size: 0.99rem;
  opacity: 0.93;
}
body.light .landing-disclaimer {
  color: #7c8da2;
}

/* -------------------- IMAGE COLUMN -------------------- */
.landing-image-col {
  flex: 1 1 0;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  background: #000;
}

.bg-photo-main,
.bg-photo-secondary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none;
}

body.light .bg-photo-main,
body.light .bg-photo-secondary {
  opacity: 1 !important;
  filter: none !important;
}

.landing-image-col::before,
body.light .landing-image-col::before {
  content: none !important;
  display: none !important;
  background: none !important;
  position: static !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* -------------------- THEME TOGGLE BUTTON -------------------- */
.theme-toggle-btn {
    align-self: flex-end;
    background: none;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    outline: none;
    padding: 0;
    margin-bottom: 1.5rem;
    position: absolute;
    top: 1.2rem;
    right: 1.6rem;
    z-index: 30;
}


.theme-toggle-btn:hover {
    box-shadow: 0 0 0 3px #1ecbaf40;
}

.theme-toggle-icon {
    width: 28px;
    height: 28px;
    display: block;
    transition: filter 0.18s;
    
}
body:not(.light):not(.light-theme) .theme-toggle-icon.sun {
    display: none;
}
body:not(.light):not(.light-theme) .theme-toggle-icon.moon {
    display: block;
    filter: drop-shadow(0 1px 2px #0004) brightness(1.2);
}
body.light .theme-toggle-icon.sun,
body.light-theme .theme-toggle-icon.sun {
    display: block;
    filter: drop-shadow(0 1px 2px #4e8a8555) brightness(0.95);
}
body.light .theme-toggle-icon.moon,
body.light-theme .theme-toggle-icon.moon {
    display: none;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
  .landing-root {
    flex-direction: column;
  }
  .landing-content {
    padding: 2rem 1rem 1.5rem 1rem;
    max-width: 100vw;
    min-width: 0;
    border-radius: 0;
    background: var(--card-bg-gradient);
  }
  .landing-image-col {
    height: 260px;
    min-height: 160px;
    max-height: 40vh;
  }
  .bg-photo-main,
  .bg-photo-secondary {
    height: 100%;
    width: 100vw;
    min-width: 0;
    min-height: 0;
    position: absolute;
    opacity: 1 !important;
    filter: none !important;
  }
  .landing-image-col,
  .bg-photo-main,
  .bg-photo-secondary,
  .landing-photo-banner {
    display: none !important;
  }
}

/* ------ MOBILE: hide image, straight card, boost dark bg ------ */
@media (max-width: 600px) {
  html, body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  .landing-root {
    min-height: 100vh;
    height: auto;
    display: block;
    background: #111c2a;
  }
  .landing-image-col,
  .bg-photo-main,
  .bg-photo-secondary,
  .landing-photo-banner {
    display: none !important;
  }
  .landing-content {
    padding-top: 8vh;
    min-height: 0;
    height: auto;
    display: block;
    overflow-y: visible;
    padding-bottom: 2.5rem;
    padding: 0 0 1.2rem 0;
    min-width: 0;
    max-width: 100vw;
    border-radius: 0 !important;
     /* Strong, visible dark gradient */
    box-shadow: none;
    margin: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .landing-logo {
    background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    font-size: 2.8rem;
    margin-bottom: 0.25em;
    text-align: center;
    margin-top: 8vh;
    z-index: 2;
    position: relative;
  }
  .theme-toggle-btn {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
  }
  .theme-toggle-btn img,
  .theme-toggle-icon {
    width: 32px;
    height: 32px;
    display: block;
  }
  .landing-subtitle,
  .landing-desc,
  .landing-form,
  .landing-reasons,
  .landing-disclaimer {
    text-align: center;
    z-index: 2;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 450px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    box-sizing: border-box;
  }
  .landing-form {
    flex-direction: column;
    gap: 0.66rem;
    margin-bottom: 1.3em;
    width: 100%;
  }
  .landing-form input[type="email"], .landing-form button {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    margin: 0;
  }
  .landing-reasons {
    gap: 0.5em;
    width: 100%;
    margin-bottom: 1.2em;
    margin-top: 0.5em;
  }
  .landing-reasons li {
    font-size: 0.97rem;
    padding: 0.6em 0.7em;
    gap: 0.6em;
  }
  .landing-disclaimer {
    text-align: center;
    font-size: 0.92rem;
    margin-top: 0.7em;
  }
  .landing-privacy {
    text-align: center;
    font-size: 0.92rem;
    margin-bottom: 1.2em;
  }
  .landing-privacy {
    text-align: center;
    z-index: 2;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 450px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    box-sizing: border-box;
  }

  .alerts-container {
    top: 8px;
    gap: 4px;
    padding: 0 2vw;
    width: 96vw;
    max-width: 96vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .popup-alert {
    min-width: 0;
    max-width: 96vw;
    width: 96vw;
    padding: 12px 36px 12px 12px;
    font-size: 1em;
    border-radius: 7px;
    word-break: break-word;    /* allow email/text to break to new line */
    white-space: normal;       /* allow wrapping */
    box-sizing: border-box;
  }

  .popup-alert .close-btn {
    right: 8px;
    font-size: 1.3em;
    width: 28px;
    height: 28px;
    top: 12px;
    transform: none;
  }
}

.alerts-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  pointer-events: none;
}

.popup-alert {
  display: none;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1em;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  animation: popupIn 1s forwards;
  background: rgba(56, 220, 86, 0.92);
  border: 2.5px solid #1e8d3a;
}
.popup-alert.error {
  background: rgba(128, 0, 0, 0.759);
  border: 2.5px solid #800000;
}
.popup-alert.active {
  display: block;
  pointer-events: auto;
  padding-right: 40px;
  animation: popupIn 1s forwards;
}
@keyframes popupIn {
  from { opacity: 0; top: 0px; }
  to   { opacity: 1; top: 30px; }
}
@keyframes popupOut {
  from { opacity: 1; top: 30px; }
  to   { opacity: 0; top: 0px; }
}
.popup-alert .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}


