/* ═══════════════════════════════════════════════════════════════════════
   Rasta Intro — One Love v3.2.0 design system
   Loaded after main.css + stargate-theme.css.
   Stargate visuals stay intact; the rest of the page is moved to the
   same Red / Gold / Green / Black glass-card look as website-v2.9.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --rasta-red: #e41e2b;
  --rasta-gold: #fcd116;
  --rasta-green: #078930;
  --rasta-black: #0d0d0d;
  --rasta-dark: #1a1a1a;
  --rasta-glow: 0 0 42px rgba(252, 209, 22, 0.28);
  --zion-radius-sm: 0.85rem;
  --zion-radius-md: 1.2rem;
  --zion-radius-lg: 1.65rem;
  --zion-border-subtle: rgba(255, 255, 255, 0.1);
  --zion-border-strong: rgba(255, 255, 255, 0.18);
  --zion-surface: rgba(13, 13, 13, 0.68);
}

/* ── Base typography: Inter, no system font fallbacks as default ─────────── */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

*,
*:before,
*:after {
  font-family: var(--font-inter), 'Inter', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

code,
pre,
kbd,
samp,
tt,
var {
  font-family: var(--font-mono), 'JetBrains Mono', 'Courier New', monospace;
}

/* ── Web2.9 background: rasta radial glows directly on body ──────────────── */
html,
body {
  min-height: 100vh;
  height: auto;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 22% -5%, rgba(228, 30, 43, 0.16), transparent 38rem),
    radial-gradient(circle at 82% 5%, rgba(7, 137, 48, 0.12), transparent 34rem),
    radial-gradient(circle at 50% 40%, rgba(252, 209, 22, 0.06), transparent 50rem),
    radial-gradient(ellipse at bottom, #0f0f0f 0%, #000 100%);
}

/* Subtle diagonal rasta stripes over the background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(228, 30, 43, 0.025) 0px,
      rgba(228, 30, 43, 0.025) 3px,
      rgba(252, 209, 22, 0.020) 3px,
      rgba(252, 209, 22, 0.020) 6px,
      rgba(7, 137, 48, 0.025) 6px,
      rgba(7, 137, 48, 0.025) 9px,
      transparent 9px,
      transparent 160px
    );
  background-size: 160px 160px;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

/* #bg is kept transparent so the body background stays visible through it */
#bg:after,
#bg:before {
  background-image: none;
}

/* Background modes (website-v2.9 Observatory modes, selected via JS) */
body.bg-maintenance,
body.bg-planet-orbit,
body.bg-galaxy-core,
body.bg-desktop-agent,
body.bg-warp-speed {
  background: #000;
}

body.bg-maintenance {
  background:
    radial-gradient(circle at 30% 20%, rgba(228, 30, 43, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(7, 137, 48, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at bottom, #0a0a0a 0%, #000 100%);
}

body.bg-maintenance::before,
body.bg-planet-orbit::before,
body.bg-galaxy-core::before,
body.bg-desktop-agent::before,
body.bg-warp-speed::before {
  background-image: none;
  mask-image: none;
  -webkit-mask-image: none;
}

/* ── Headings: web2.9 style, rasta gradient on major headings ────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: none;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
}

/* Rasta tri-color gradient for major section titles */
h1.major,
h2.major,
h3.major {
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, var(--rasta-red), var(--rasta-gold), var(--rasta-green));
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 1.25rem 0;
  width: auto;
}

/* ── Hero text in the Stargate header ────────────────────────────────────── */
#header .content .inner {
  padding: 2.5rem 1.5rem;
}

#header .content .inner h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.25rem;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, var(--rasta-red), var(--rasta-gold), var(--rasta-green));
}

#header .content .inner h3 {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rasta-gold);
  margin-bottom: 0.25rem;
}

#header .content .inner h4 {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

#header .content p {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Main article: glass rasta card with top & bottom rasta lines ────────── */
html body #main article {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(90deg, rgba(228, 30, 43, 0.06), rgba(252, 209, 22, 0.05), rgba(7, 137, 48, 0.06));
  border: 1px solid rgba(252, 209, 22, 0.16);
  border-radius: var(--zion-radius-lg);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(252, 209, 22, 0.12),
    0 0 60px rgba(228, 30, 43, 0.08);
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 6rem);
  width: 46rem;
  max-width: calc(100% - 1.25rem);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

html body #main article::before,
html body #main article::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}

html body #main article::before {
  top: 0;
  background: linear-gradient(90deg, rgba(228, 30, 43, 0.85), rgba(252, 209, 22, 0.95), rgba(7, 137, 48, 0.85));
}

html body #main article::after {
  bottom: 0;
  background: linear-gradient(90deg, rgba(228, 30, 43, 0.35), rgba(252, 209, 22, 0.45), rgba(7, 137, 48, 0.35));
}

html body #main article p,
html body #main article li,
html body #main article a:not(.button) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.75;
}

html body #main article a:not(.button) {
  color: var(--rasta-gold);
  border-bottom-color: rgba(252, 209, 22, 0.5);
}

html body #main article a:not(.button):hover {
  color: var(--rasta-green);
  border-bottom-color: transparent;
}

html body #main article strong {
  color: var(--rasta-gold);
  font-weight: 700;
}

html body #main article section {
  margin-bottom: 2rem;
}

html body #main article section h3.major {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Article internal headings should stay readable, not hero-sized */
html body #main article h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

html body #main article h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

html body #main article h3 {
  font-size: 1.15rem;
}

html body #main article h4 {
  font-size: 0.95rem;
}

/* Close button */
html body #main article .close {
  top: 0.75rem;
  right: 0.75rem;
  width: 3.25rem;
  height: 3.25rem;
}

html body #main article .close:before {
  top: 0.5rem;
  left: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 1%3B %7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18' /%3E%3Cline x1='18' y1='2' x2='2' y2='18' /%3E%3C/svg%3E");
}

html body #main article .close:hover:before {
  background-color: rgba(228, 30, 43, 0.25);
}

/* ── Buttons: rasta tri-color primary + rounded corners ──────────────────── */
html body input[type='submit'],
html body input[type='reset'],
html body input[type='button'],
html body button,
html body .button {
  border-radius: var(--zion-radius-md);
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background-position 180ms ease;
}

html body .button.primary,
html body input[type='submit'].primary,
html body input[type='button'].primary,
html body button.primary,
html body .button.primary.rasta-gold,
html body .button.primary.rasta-red,
html body .button.primary.rasta-green,
html body input[type='submit'].primary.rasta-gold,
html body input[type='submit'].primary.rasta-red,
html body input[type='submit'].primary.rasta-green,
html body input[type='button'].primary.rasta-gold,
html body input[type='button'].primary.rasta-red,
html body input[type='button'].primary.rasta-green,
html body button.primary.rasta-gold,
html body button.primary.rasta-red,
html body button.primary.rasta-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-image: linear-gradient(110deg, var(--rasta-red), var(--rasta-gold) 48%, var(--rasta-green));
  background-size: 200% auto;
  border: none;
  box-shadow: 0 0 20px rgba(252, 209, 22, 0.25), 0 8px 30px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
  padding: 0.85rem 1.6rem;
  height: auto;
  line-height: 1.25;
}

html body .button.primary:hover,
html body input[type='submit'].primary:hover,
html body input[type='button'].primary:hover,
html body button.primary:hover,
html body .button.primary.rasta-gold:hover,
html body .button.primary.rasta-red:hover,
html body .button.primary.rasta-green:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(252, 209, 22, 0.35), 0 12px 40px rgba(0, 0, 0, 0.35);
  filter: saturate(1.08);
}

html body .button.small,
html body input[type='submit'].small,
html body input[type='button'].small,
html body button.small,
html body .button.primary.small,
html body input[type='submit'].primary.small,
html body input[type='button'].primary.small,
html body button.primary.small {
  font-size: 0.8rem;
  padding: 0.65rem 1.15rem;
}

/* Secondary / reset buttons */
html body input[type='reset'] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--zion-border-subtle);
  color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: none;
}

html body input[type='reset']:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--zion-border-strong);
  transform: translateY(-1px);
}

/* ── Inputs / selects / textareas ────────────────────────────────────────── */
html body input[type='text'],
html body input[type='password'],
html body input[type='email'],
html body input[type='tel'],
html body select,
html body textarea {
  border-radius: var(--zion-radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

html body input[type='text']:focus,
html body input[type='password']:focus,
html body input[type='email']:focus,
html body input[type='tel']:focus,
html body select:focus,
html body textarea:focus {
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--rasta-gold);
  box-shadow: 0 0 0 1px rgba(252, 209, 22, 0.35), 0 0 18px rgba(252, 209, 22, 0.15);
}

/* ── Top nav: glass pill bar with rasta hover ────────────────────────────── */
#header nav ul {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--zion-radius-lg);
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.35rem;
  gap: 0.25rem;
}

#header nav ul li {
  border-left: 0;
}

#header nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
  padding: 0.65rem 1.15rem;
  border-radius: var(--zion-radius-md);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 0;
}

#header nav ul li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--rasta-gold);
  box-shadow: 0 0 14px rgba(252, 209, 22, 0.15);
}

/* ── Floating menu (bottom-right hamburger) ──────────────────────────────── */
.floating-menu {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-menu-toggle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 13, 0.85);
  border: 1px solid rgba(252, 209, 22, 0.45);
  color: var(--rasta-gold);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 0 22px rgba(252, 209, 22, 0.22);
  cursor: pointer;
  transition: all 0.25s ease;
}

.floating-menu-toggle:hover {
  transform: scale(1.08);
  border-color: rgba(252, 209, 22, 0.75);
  box-shadow: 0 0 28px rgba(252, 209, 22, 0.35);
}

.floating-menu-toggle .icon-menu,
.floating-menu-toggle .icon-close {
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-menu-toggle .icon-close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.8);
}

.floating-menu.open .floating-menu-toggle {
  background-image: linear-gradient(110deg, var(--rasta-red), var(--rasta-gold) 48%, var(--rasta-green));
  background-size: 200% auto;
  color: #ffffff;
  border-color: transparent;
}

.floating-menu.open .floating-menu-toggle .icon-menu {
  opacity: 0;
  transform: rotate(45deg) scale(0.8);
}

.floating-menu.open .floating-menu-toggle .icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.floating-menu-panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: 17.5rem;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  background: rgba(13, 13, 13, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--zion-radius-lg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 42px rgba(252, 209, 22, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.floating-menu.open .floating-menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.floating-menu-accent {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(228, 30, 43, 0.85), rgba(252, 209, 22, 0.95), rgba(7, 137, 48, 0.85));
  flex-shrink: 0;
}

.floating-menu-body {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-menu-group-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.3rem 0;
  padding: 0 0.25rem;
}

.floating-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.floating-menu-row {
  display: flex;
  gap: 0.4rem;
}

.floating-menu-item,
.floating-menu-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--zion-radius-md);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-menu-item:hover,
.floating-menu-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.floating-menu-item.active,
.floating-menu-option.active {
  background-image: linear-gradient(110deg, var(--rasta-red), var(--rasta-gold) 48%, var(--rasta-green));
  background-size: 200% auto;
  color: #ffffff;
  border-color: rgba(252, 209, 22, 0.35);
  box-shadow: 0 0 14px rgba(252, 209, 22, 0.25);
  font-weight: 700;
}

.floating-menu-row .floating-menu-option {
  flex: 1 1 0;
}

/* Center line in the top nav (use-middle from main.js) */
#header nav.use-middle:after {
  display: none;
}

/* ZION logo under the hero subtitle, above the CTA buttons */
.hero-logo {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 0.5rem auto 0.25rem;
  border-radius: 50%;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 14px rgba(252, 209, 22, 0.35));
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(252, 209, 22, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.12) rotate(5deg);
  filter: drop-shadow(0 0 28px rgba(252, 209, 22, 0.7));
}

.hero-logo:hover img {
  border-color: rgba(252, 209, 22, 0.95);
  box-shadow: 0 0 26px rgba(252, 209, 22, 0.55);
}

@media screen and (max-width: 736px) {
  .hero-logo {
    width: 4rem;
    height: 4rem;
  }
}

/* Mobile: keep the button small and panel compact */
@media screen and (max-width: 736px) {
  .floating-menu {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .floating-menu-toggle {
    width: 2.85rem;
    height: 2.85rem;
  }

  .floating-menu-panel {
    width: 15.5rem;
  }

  .floating-menu-body {
    padding: 0.5rem;
  }

  .floating-menu-item,
  .floating-menu-option {
    padding: 0.55rem 0.4rem;
    font-size: 0.7rem;
  }
}

/* ── Footer / logo chip ──────────────────────────────────────────────────── */
footer .footer-bottom img {
  border-radius: var(--zion-radius-md);
}
