/* =========================================================================
   Molecular AI — stealth landing page styles
   ========================================================================= */

:root {
  /* Backgrounds */
  --bg-deep: #000000;
  --bg-surface: rgba(255, 255, 255, 0.03);

  /* Brand */
  --navy: #192A56;
  --teal: #2097A5;
  --teal-glow: rgba(32, 151, 165, 0.4);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #B8C4D6;
  --text-muted: #6B7A99;

  /* Borders */
  --border-subtle: rgba(32, 151, 165, 0.25);

  /* Type */
  --font-stack: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont,
                'Segoe UI', system-ui, sans-serif;
}

/* ---- Reset / base ------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image: radial-gradient(
    ellipse at 50% 100%,
    rgba(32, 151, 165, 0.10) 0%,
    transparent 60%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: page-fade-in 400ms ease-out;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Footer (used on all pages) ---------------------------------------- */

.site-footer {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Landing page (index.html) ----------------------------------------- */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.landing__tagline {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.4;
}

.landing__cta-group {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing__cta {
  display: inline-block;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease,
              box-shadow 200ms ease;
}

.landing__cta:hover,
.landing__cta:focus-visible {
  background-color: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 24px var(--teal-glow);
  outline: none;
}

/* ---- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

/* ---- Mobile (≤640px) --------------------------------------------------- */

@media (max-width: 640px) {
  .landing__tagline {
    font-size: 18px;
  }
  .landing__cta-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .landing__cta {
    width: 100%;
    max-width: 280px;
  }
}

/* =========================================================================
   Header logo (used on contact.html)
   ========================================================================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.site-header__icon {
  height: 32px;
  width: auto;
}

.site-header__wordmark {
  height: 24px;
  width: auto;
}

.site-header__logo-full {
  height: 176px;
  width: auto;
  display: block;
  /* Crop the small ✦ watermark in the bottom-right corner of the source PNG. */
  clip-path: inset(0 6% 12% 0);
}

.site-login {
  position: absolute;
  top: 64px;
  right: 28px;
  z-index: 10;
  display: inline-block;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease,
              box-shadow 200ms ease;
}

.site-login:hover,
.site-login:focus-visible {
  background-color: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 24px var(--teal-glow);
  outline: none;
}

/* =========================================================================
   Contact page (contact.html)
   ========================================================================= */

.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 220px 24px 96px;
}

.contact__card {
  width: 100%;
  max-width: 520px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.contact__heading {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact__subline {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact__email {
  display: inline-block;
  margin-top: 16px;
  font-size: 28px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  word-break: break-all;
  transition: text-shadow 200ms ease, color 200ms ease;
}

.contact__email:hover,
.contact__email:focus-visible {
  text-shadow: 0 0 24px var(--teal-glow);
  outline: none;
}

/* =========================================================================
   Waitlist page (waitlist.html)
   ========================================================================= */

.waitlist {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 220px 24px 96px;
}

.waitlist__form {
  margin-top: 8px;
  text-align: left;
}

.waitlist__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.waitlist__label {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.waitlist__input {
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 10px 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.waitlist__input::placeholder {
  color: var(--text-muted);
}

.waitlist__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
  outline: none;
}

.waitlist__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  background-color: var(--teal);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 200ms ease;
}

.waitlist__submit:hover,
.waitlist__submit:focus-visible {
  box-shadow: 0 0 24px var(--teal-glow);
  outline: none;
}

/* =========================================================================
   Login page (login.html)
   ========================================================================= */

.login__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #ff8a8a;
  background-color: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.35);
  border-radius: 4px;
}

.login__footer-links {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.login__footer-links a {
  color: var(--teal);
  text-decoration: none;
  transition: text-shadow 200ms ease;
}

.login__footer-links a:hover,
.login__footer-links a:focus-visible {
  text-shadow: 0 0 12px var(--teal-glow);
  outline: none;
}

/* =========================================================================
   Mobile overrides for contact + waitlist
   ========================================================================= */

@media (max-width: 640px) {
  .site-header {
    top: 0;
    left: 0;
  }
  .site-header__logo-full {
    height: 64px;
  }
  .site-login {
    top: 14px;
    right: 16px;
    padding: 8px 18px;
    font-size: 14px;
  }
  .contact {
    padding: 110px 16px 80px;
  }
  .contact__card {
    padding: 24px;
  }
  .contact__heading {
    font-size: 26px;
  }
  .contact__email {
    font-size: 22px;
  }
  .waitlist {
    padding: 110px 16px 80px;
  }
}
