/* ===================================
   Get Cortex landing page (/get-cortex)
   ===================================
   Single-viewport hero design. Sits on _LoginLayout (body.login-page), so the
   animated gradient and #neural-bg canvas are already painted underneath.
*/

.landing-page {
  --landing-red-glow:  rgba(175, 0, 0, 0.32);
  --landing-red-glow2: rgba(175, 0, 0, 0.16);
  --landing-line-1:    rgba(255, 255, 255, 0.06);
  --landing-line-2:    rgba(255, 255, 255, 0.12);

  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  color: var(--cortex-text);
  font-family: var(--cortex-font-body);
  background: radial-gradient(ellipse 70% 50% at 50% 35%,
                              rgba(13, 13, 17, 0.55) 0%,
                              rgba(7, 7, 10, 0.35) 55%,
                              transparent 100%);
}

/* --- Drifting grid --------------------------------------------------- */
.landing-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  animation: landingGridDrift 60s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes landingGridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px; }
}

/* --- Vignette + hero glow ------------------------------------------- */
.landing-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse 62% 56% at 50% 50%, transparent 28%, rgba(0, 0, 0, 0.72) 96%);
}

.landing-hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 820px;
  height: 380px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse, var(--landing-red-glow2) 0%, transparent 70%);
  filter: blur(24px);
  opacity: 0.6;
}

/* --- Nav ------------------------------------------------------------- */
.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 0.5px solid var(--landing-line-1);
}

.landing-brand-name {
  font-family: var(--cortex-font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--cortex-text);
}

.landing-brand-name em {
  font-style: normal;
  color: var(--cortex-cyan);
}

/* --- Hero ------------------------------------------------------------ */
.landing-hero {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(820px, calc(100vw - 80px));
}

.landing-hero-logo {
  margin-bottom: -3rem;
  width: auto;
  height: 360px;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 24px rgba(175, 0, 0, 0.45))
          drop-shadow(0 0 60px rgba(175, 0, 0, 0.25));
  animation: landingRise 0.8s 0.05s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 0.5px solid var(--landing-line-2);
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--cortex-font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  color: rgba(225, 225, 232, 0.72);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: landingRise 0.8s 0.18s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-eyebrow-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cortex-cyan);
  box-shadow: 0 0 10px var(--landing-red-glow);
}

.landing-eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 1px solid var(--cortex-cyan);
  opacity: 0;
  animation: landingPulse 2.4s ease-out infinite;
}

@keyframes landingPulse {
  0%   { transform: scale(0.7); opacity: 0.9; }
  80%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.landing-headline {
  font-family: var(--cortex-font-brand);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.8vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cortex-text);
  margin: 0 0 16px;
  text-wrap: balance;
  opacity: 0;
  animation: landingRise 0.9s 0.3s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-headline-accent {
  color: var(--cortex-cyan);
}

.landing-sub {
  font-family: var(--cortex-font-body);
  font-weight: 400;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.45;
  color: rgba(225, 225, 232, 0.78);
  max-width: 560px;
  margin: 0 auto 8px;
  text-wrap: balance;
  opacity: 0;
  animation: landingRise 0.9s 0.42s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-hint {
  font-family: var(--cortex-font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  color: rgba(180, 180, 190, 0.55);
  letter-spacing: 0.04em;
  margin: 0;
  opacity: 0;
  animation: landingRise 0.9s 0.54s cubic-bezier(.2, .7, .2, 1) forwards;
}

/* --- Form (the CTA row) --------------------------------------------- */
.landing-form {
  width: 100%;
  max-width: 540px;
  margin: 28px auto 0;
  opacity: 0;
  animation: landingRise 0.9s 0.66s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

/* Override auth.css's icon-padded .cortex-input — this input has no icon. */
.login-page .landing-email-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 0.5px solid var(--landing-line-2);
}

.login-page .landing-email-input:focus {
  border-color: var(--cortex-cyan);
  box-shadow: 0 0 0 3px rgba(175, 0, 0, 0.12), 0 0 24px rgba(175, 0, 0, 0.18);
}

.landing-cta {
  appearance: none;
  cursor: pointer;
  font-family: var(--cortex-font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--cortex-cyan);
  color: #fff;
  border: 0.5px solid color-mix(in srgb, var(--cortex-cyan) 75%, #000 25%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
              0 6px 24px var(--landing-red-glow),
              0 0 48px var(--landing-red-glow2);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.18s ease;
}

.landing-cta:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--cortex-cyan) 88%, #fff 12%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
              0 10px 32px var(--landing-red-glow),
              0 0 64px var(--landing-red-glow2);
}

.landing-cta:active {
  transform: translateY(0);
}

.landing-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.landing-cta:hover .landing-cta-arrow {
  transform: translateX(2px);
}

/* --- OAuth (Continue with Google) ----------------------------------- */
.landing-oauth {
  width: 100%;
  max-width: 540px;
  margin: 14px auto 0;
  opacity: 0;
  animation: landingRise 0.9s 0.7s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--cortex-font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 180, 190, 0.55);
}

.landing-oauth-divider::before,
.landing-oauth-divider::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: var(--landing-line-2);
}

.landing-oauth-form {
  display: flex;
}

.landing-oauth-btn {
  appearance: none;
  cursor: pointer;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 6px;
  font-family: var(--cortex-font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cortex-text);
  background: rgba(255, 255, 255, 0.025);
  border: 0.5px solid var(--landing-line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.18s ease, border-color 0.18s ease;
}

.landing-oauth-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.landing-oauth-btn:active {
  transform: translateY(0);
}

.landing-oauth-icon {
  flex: 0 0 auto;
  display: block;
}

/* Error banner (kept; .error-message is asserted by tests) */
.login-page .landing-error {
  max-width: 540px;
  margin: 0 auto 14px;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* --- Terms disclaimer ------------------------------------------------ */
.landing-disclaimer {
  font-family: var(--cortex-font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(180, 180, 190, 0.55);
  margin: 14px 0 0;
  opacity: 0;
  animation: landingRise 0.9s 0.72s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-disclaimer a {
  color: rgba(210, 210, 220, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-disclaimer a:hover {
  color: #fff;
}

/* --- Microcopy ------------------------------------------------------- */
.landing-microcopy {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-family: var(--cortex-font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(225, 225, 232, 0.78);
  opacity: 0;
  animation: landingRise 0.9s 0.78s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-microcopy li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.landing-sep {
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(180, 180, 190, 0.55);
  flex-shrink: 0;
}

.landing-check-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cortex-cyan);
  box-shadow: 0 0 6px var(--landing-red-glow);
}

/* --- Sign-in line below microcopy ------------------------------------ */
.landing-signin-line {
  margin: 18px 0 0;
  font-family: var(--cortex-font-body);
  font-weight: 500;
  font-size: 12px;
  color: rgba(180, 180, 190, 0.65);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: landingRise 0.9s 0.9s cubic-bezier(.2, .7, .2, 1) forwards;
}

.landing-signin-link {
  color: var(--cortex-cyan);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
  transition: color 0.15s ease;
}

.landing-signin-link:hover,
.landing-signin-link:focus {
  color: color-mix(in srgb, var(--cortex-cyan) 80%, #fff 20%);
  text-decoration: underline;
}

/* --- Footer ---------------------------------------------------------- */
.landing-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  font-family: var(--cortex-font-body);
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1;
  color: rgba(180, 180, 190, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-foot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 8px;
  border-radius: 999px;
  border: 0.5px solid var(--landing-line-1);
}

.landing-foot-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(175, 0, 0, 0.45));
}

/* --- Animations ------------------------------------------------------ */
@keyframes landingRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Responsive ------------------------------------------------------ */
@media (min-width: 1600px) {
  .landing-hero-logo { height: 440px; }
  .landing-hero-glow { width: 1000px; height: 460px; }
}

@media (max-height: 820px) {
  .landing-hero-logo  { height: 280px; margin-bottom: 12px; }
  .landing-headline   { margin-bottom: 12px; }
  .landing-form       { margin-top: 22px; }
  .landing-microcopy  { margin-top: 18px; }
  .landing-signin-line { margin-top: 12px; }
}

@media (max-height: 680px) {
  .landing-hero-logo  { height: 192px; margin-bottom: 16px; }
  .landing-eyebrow    { margin-bottom: 14px; }
  .landing-headline   { font-size: clamp(2rem, 5.5vw, 3.25rem); }
  .landing-form       { margin-top: 18px; }
  .landing-microcopy  { margin-top: 14px; }
}

@media (max-width: 640px) {
  .landing-nav  { padding: 18px 20px; }
  .landing-foot { padding: 18px 20px; }
  .landing-hero { width: calc(100vw - 32px); transform: translate(-50%, -52%); }
  .landing-hero-logo { height: 240px; margin-bottom: 22px; }
  .landing-headline  { font-size: clamp(2rem, 9vw, 3rem); }
  .landing-form-row  { flex-direction: column; }
  .landing-cta       { justify-content: center; }
  .landing-microcopy { gap: 8px 14px; }
}

.cortex-tier-tooltip {
  border-bottom: 1px dotted currentColor;
  cursor: help;
}
