/* Pre-login landing — responsive app shell */

.landing-page {
  display: block;
  overflow-x: clip;
}

.rt-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.rt-container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.rt-container--narrow {
  width: min(40rem, 100%);
}

.rt-skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--amber);
  color: #1a1208;
  font-weight: 700;
  text-decoration: none;
}

.rt-skip:focus {
  top: 1rem;
}

/* ── Sticky header ── */
.rt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(14, 10, 6, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.rt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.55rem;
}

.rt-header__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-decoration: none;
  text-shadow: 0 0 16px rgba(240, 160, 48, 0.3);
}

.rt-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.rt-header__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.rt-header__nav a:hover {
  color: var(--cream);
}

.rt-header__cta {
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.rt-header__cta:disabled,
.rt-hero__actions .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ── Main ── */
.rt-main {
  flex: 1;
}

/* ── Hero ── */
.rt-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  min-height: calc(100dvh - 3.5rem);
  display: grid;
  align-items: center;
}

.rt-hero::before {
  content: "";
  position: absolute;
  inset: -10% -8% auto;
  height: min(70%, 520px);
  background:
    radial-gradient(ellipse at 18% 30%, rgba(240, 160, 48, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 20%, rgba(90, 48, 16, 0.55) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: landing-glow 8s ease-in-out infinite alternate;
}

.rt-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
}

.rt-hero__copy {
  min-width: 0;
  animation: landing-rise 0.75s ease-out both;
}

.rt-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  letter-spacing: 0.08em;
  color: var(--amber);
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 0 28px rgba(240, 160, 48, 0.35);
}

.rt-hero__headline {
  margin: 1rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 24ch;
}

.rt-hero__support {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.05rem);
  line-height: 1.55;
  max-width: 38ch;
}

.rt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.rt-hero__actions .btn {
  font-size: 1.05rem;
  padding: 0.75rem 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rt-hero__actions .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(240, 160, 48, 0.25);
}

.rt-hero__alerts {
  margin-top: 1rem;
  max-width: 28rem;
  display: grid;
  gap: 0.5rem;
}

.rt-hero__alerts .alert {
  margin: 0;
}

.rt-hero__visual {
  margin: 0;
  justify-self: end;
  width: min(100%, 480px);
  animation: landing-rise 0.9s ease-out 0.12s both;
}

.rt-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.rt-hero__caption {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ── Sections ── */
.rt-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.rt-section__head {
  margin-bottom: 1.5rem;
  max-width: 48ch;
}

.rt-section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  color: var(--amber);
  letter-spacing: 0.04em;
}

.rt-section__lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.05rem);
  line-height: 1.55;
}

.rt-section__lede code {
  color: var(--amber);
  font-family: var(--font-display);
}

.rt-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.rt-feature {
  min-width: 0;
}

.rt-feature__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.rt-feature__title::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(240, 160, 48, 0.45);
  vertical-align: 0.1em;
}

.rt-feature__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Footer ── */
.rt-footer {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}

.rt-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.35rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.rt-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.rt-footer__link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--amber);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.rt-footer__link:hover {
  text-decoration: underline;
}

@keyframes landing-glow {
  from { opacity: 0.75; transform: translateY(0); }
  to { opacity: 1; transform: translateY(12px); }
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet / stacked hero */
@media (max-width: 840px) {
  .rt-hero {
    min-height: auto;
  }

  .rt-hero__grid {
    grid-template-columns: 1fr;
  }

  .rt-hero__visual {
    justify-self: stretch;
    width: min(100%, 400px);
    margin-inline: auto;
    order: -1;
  }

  .rt-hero__headline,
  .rt-hero__support {
    max-width: none;
  }
}

/* Compact header on small phones */
@media (max-width: 520px) {
  .rt-header__nav a:not(.rt-header__cta) {
    display: none;
  }

  .rt-header__inner {
    min-height: 3.15rem;
  }

  .rt-hero {
    padding-top: 1.25rem;
  }

  .rt-hero__actions .btn,
  .rt-header__cta {
    width: 100%;
    text-align: center;
  }

  .rt-hero__actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-hero::before,
  .rt-hero__copy,
  .rt-hero__visual {
    animation: none;
  }
}
