/* ============================================
   Astromantika Relaunch 2026 UI
   Scoped to .rl-page
   ============================================ */

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

.rl-page a {
  color: inherit;
}

.rl-page button,
.rl-page input {
  font: inherit;
}

.rl-container {
  width: min(100%, var(--rl-container));
  margin: 0 auto;
  padding: 0 var(--rl-page-x);
}

.rl-label {
  font-family: var(--rl-font-sans);
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rl-primary-dark);
}

.rl-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--rl-border-soft);
  background: color-mix(in srgb, var(--rl-ivory) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rl-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--rl-charcoal);
  font-family: var(--rl-font-serif);
  font-weight: 800;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  letter-spacing: -0.035em;
}

.rl-brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--rl-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rl-primary-dark);
  font-family: var(--rl-font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.rl-nav {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  font-family: var(--rl-font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rl-muted);
}

.rl-nav a {
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}

.rl-nav a:hover,
.rl-nav a[aria-current='page'] {
  color: var(--rl-primary-dark);
  border-bottom-color: var(--rl-primary);
}

.rl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-icon-link,
.rl-menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--rl-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.rl-icon-link:hover,
.rl-menu-button:hover {
  border-color: var(--rl-border);
  background: var(--rl-surface-soft);
}

.rl-menu-button {
  display: inline-flex;
}

.rl-mobile-panel {
  display: none;
  border-top: 1px solid var(--rl-border-soft);
  background: var(--rl-ivory);
}

.rl-mobile-panel.open {
  display: block;
}

.rl-mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--rl-page-x);
  border-bottom: 1px solid var(--rl-border-soft);
  font-family: var(--rl-font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rl-charcoal);
}

.rl-section {
  padding: var(--rl-section-y) 0;
}

.rl-hero {
  padding: clamp(44px, 7vw, 92px) 0 clamp(60px, 8vw, 110px);
}

.rl-hero-grid,
.rl-engine-grid,
.rl-form-grid {
  display: grid;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.rl-eyebrow {
  margin-bottom: 18px;
}

.rl-h1,
.rl-h2,
.rl-h3 {
  margin: 0;
  color: var(--rl-charcoal);
  font-family: var(--rl-font-serif);
  letter-spacing: -0.035em;
}

.rl-h1 {
  font-size: clamp(2.5rem, 12vw, 5.7rem);
  line-height: 0.98;
  max-width: 920px;
}

.rl-h2 {
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.08;
}

.rl-h3 {
  font-size: clamp(1.35rem, 4.4vw, 2.15rem);
  line-height: 1.18;
}

.rl-lead,
.rl-copy {
  color: var(--rl-muted);
  line-height: 1.72;
  margin: 0;
}

.rl-lead {
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  max-width: 650px;
  margin-top: 22px;
}

.rl-copy {
  font-size: 1rem;
}

.rl-hero-actions,
.rl-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rl-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--rl-radius);
  text-decoration: none;
  font-family: var(--rl-font-sans);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.rl-btn:active {
  transform: translateY(1px);
}

.rl-btn-primary {
  background: var(--rl-charcoal);
  color: var(--rl-surface);
}

.rl-btn-primary:hover {
  background: var(--rl-primary-dark);
}

.rl-btn-gold {
  background: var(--rl-primary);
  color: #211707;
}

.rl-btn-gold:hover {
  background: var(--rl-primary-soft);
}

.rl-btn-outline {
  border-color: var(--rl-primary);
  color: var(--rl-primary-dark);
  background: transparent;
}

.rl-btn-outline:hover {
  background: color-mix(in srgb, var(--rl-primary) 14%, transparent);
}

.rl-trust-row {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--rl-muted-2);
  font-family: var(--rl-font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
}

.rl-trust-row span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.rl-trust-row i {
  color: var(--rl-primary-dark);
}

.rl-art-card {
  min-height: clamp(330px, 56vw, 560px);
  border: 1px solid var(--rl-border);
  background:
    radial-gradient(circle at 72% 24%, rgba(175,147,91,0.32), transparent 28%),
    linear-gradient(135deg, #f8f4ea 0%, #e9ddc8 46%, #cdae72 100%);
  box-shadow: var(--rl-shadow);
  overflow: hidden;
  position: relative;
}

.rl-art-card::before {
  content: '';
  position: absolute;
  inset: 11% 15% 9% 21%;
  border: 2px solid rgba(255,255,255,0.72);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
}

.rl-art-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(105deg, rgba(255,255,255,0.2), rgba(255,255,255,0.76) 43%, rgba(255,255,255,0.06) 44%);
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
}

.rl-art-steps {
  position: absolute;
  left: 18%;
  right: 12%;
  bottom: 13%;
  height: 28%;
  border-top: 10px solid rgba(126,95,45,0.18);
  border-bottom: 22px solid rgba(255,255,255,0.36);
  transform: perspective(500px) rotateX(56deg);
}

.rl-art-orbs {
  position: absolute;
  top: 19%;
  left: 57%;
  width: 10px;
  height: 70%;
  background: repeating-radial-gradient(circle at center, rgba(125,91,34,0.62) 0 7px, transparent 8px 31px);
  opacity: 0.82;
}

.rl-band {
  border-top: 1px solid var(--rl-border-soft);
  border-bottom: 1px solid var(--rl-border-soft);
  background: var(--rl-surface);
}

.rl-section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.rl-card-grid {
  display: grid;
  gap: var(--rl-gutter);
}

.rl-card {
  border: 1px solid var(--rl-border-soft);
  background: var(--rl-surface);
  padding: clamp(24px, 4vw, 36px);
  min-height: 100%;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rl-card:hover {
  border-color: var(--rl-primary);
  transform: translateY(-2px);
  box-shadow: var(--rl-shadow-soft);
}

.rl-card-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rl-primary);
  color: var(--rl-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.rl-card h3 {
  margin: 0 0 12px;
  color: var(--rl-charcoal);
  font-family: var(--rl-font-serif);
  font-size: 1.35rem;
  line-height: 1.25;
}

.rl-card p {
  margin: 0;
  color: var(--rl-muted);
  line-height: 1.68;
}

.rl-engine-visual {
  min-height: clamp(340px, 54vw, 580px);
  border: 1px solid var(--rl-border);
  background:
    linear-gradient(90deg, rgba(45,45,45,0.5), transparent 13%, transparent 87%, rgba(45,45,45,0.35)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 3px, transparent 3px 34px),
    linear-gradient(135deg, #4f4739, #d5b878 55%, #f2e7d3);
  position: relative;
  overflow: hidden;
}

.rl-engine-visual::before {
  content: '';
  position: absolute;
  inset: 15% 12% 18%;
  border-left: 2px solid rgba(255,255,255,0.48);
  border-right: 2px solid rgba(70,47,13,0.3);
  box-shadow: inset 0 -24px 50px rgba(255,255,255,0.25);
}

.rl-engine-visual::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 12%;
  bottom: 16%;
  height: 16%;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0 6px, rgba(175,147,91,0.35) 6px 14px);
  transform: perspective(500px) rotateX(58deg);
}

.rl-engine-content {
  border-left: 2px solid var(--rl-primary);
  padding-left: clamp(24px, 4vw, 64px);
}

.rl-form-card {
  border: 1px solid var(--rl-border-soft);
  background: var(--rl-surface);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--rl-shadow-soft);
}

.rl-mini-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.rl-field {
  display: grid;
  gap: 8px;
}

.rl-field label {
  font-family: var(--rl-font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rl-charcoal);
}

.rl-field input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid var(--rl-border);
  background: transparent;
  color: var(--rl-ink);
  outline: none;
  padding: 0 2px;
}

.rl-field input::placeholder {
  color: var(--rl-muted-2);
  font-style: italic;
}

.rl-field input:focus {
  border-bottom-color: var(--rl-primary-dark);
}

.rl-faq-list {
  display: grid;
  gap: 14px;
}

.rl-faq-item {
  border: 1px solid var(--rl-border-soft);
  background: var(--rl-surface);
  padding: 22px;
}

.rl-faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--rl-charcoal);
}

.rl-faq-item p {
  margin: 0;
  color: var(--rl-muted);
  line-height: 1.65;
}

.rl-footer {
  border-top: 1px solid var(--rl-border-soft);
  background: var(--rl-surface-muted);
  color: var(--rl-muted);
}

.rl-footer-inner {
  min-height: 92px;
  display: grid;
  gap: 20px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
}

.rl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--rl-font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rl-footer-links a {
  text-decoration: none;
}

.rl-footer-links a:hover {
  color: var(--rl-primary-dark);
}

.rl-image-frame {
  position: relative;
  min-height: clamp(320px, 58vw, 580px);
  border: 1px solid var(--rl-border);
  background: var(--rl-surface-soft);
  box-shadow: var(--rl-shadow);
  overflow: hidden;
}

.rl-image-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.96);
}

.rl-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(45,45,45,0.34));
  pointer-events: none;
}

.rl-image-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--rl-surface) 88%, transparent);
  border: 1px solid var(--rl-border-soft);
  color: var(--rl-charcoal);
  font-family: var(--rl-font-sans);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.rl-method-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.rl-method-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--rl-border-soft);
}

.rl-method-number {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rl-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rl-primary-dark);
  font-family: var(--rl-font-sans);
  font-weight: 800;
  font-size: 0.78rem;
}

.rl-method-item h3 {
  margin: 0 0 6px;
  color: var(--rl-charcoal);
  font-size: 1.08rem;
}

.rl-method-item p {
  margin: 0;
  color: var(--rl-muted);
  line-height: 1.66;
}

.rl-kpi-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.rl-kpi {
  border: 1px solid var(--rl-border-soft);
  background: var(--rl-surface);
  padding: 18px;
}

.rl-kpi strong {
  display: block;
  color: var(--rl-charcoal);
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 8px;
}

.rl-kpi span {
  color: var(--rl-muted);
  font-family: var(--rl-font-sans);
  font-size: 0.78rem;
  line-height: 1.4;
}

.rl-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 2px solid var(--rl-primary);
  background: var(--rl-surface-soft);
  color: var(--rl-muted);
  line-height: 1.68;
}

@media (min-width: 720px) {
  .rl-trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rl-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rl-form-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .rl-footer-inner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (min-width: 980px) {
  .rl-nav {
    display: flex;
  }

  .rl-menu-button {
    display: none;
  }

  .rl-hero-grid {
    grid-template-columns: 1fr 0.92fr;
  }

  .rl-engine-grid {
    grid-template-columns: 0.9fr 1fr;
  }

  .rl-section-head {
    grid-template-columns: 1fr minmax(280px, 420px);
    align-items: end;
  }
}

@media (max-width: 560px) {
  .rl-header-inner {
    min-height: 64px;
  }

  .rl-icon-link[href='/dashboard'] {
    display: none;
  }

  .rl-hero-actions,
  .rl-inline-actions {
    flex-direction: column;
  }

  .rl-btn {
    width: 100%;
  }

  .rl-engine-content {
    border-left: 0;
    border-top: 2px solid var(--rl-primary);
    padding-left: 0;
    padding-top: 28px;
  }
}
