/* Shared design tokens + space backdrop (used by landing.css and inner pages + style.css) */

:root {
  --color-primary: #ffd700;
  --color-secondary: #ffa500;
  --color-accent: #ffeb3b;
  --color-background: #0f172a;
  --color-card-bg: #1f2937;
  --color-border: #374151;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-deep-blue: #1e3a8a;
  --color-portal-purple: #4338ca;
  --color-white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', var(--font-sans);
  --space-gutter: 16px;
  --space-gutter-lg: 24px;
  --space-gutter-xl: 32px;
  --container-max: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Hero CTAs: shared “lit” gold (Power Up hover/focus + View Pricing hover/focus) */
  --landing-hero-focus-gold: linear-gradient(180deg, #fff6c2 0%, var(--color-primary) 55%, #e6bc00 100%);

  /* Legacy aliases for style.css */
  --color-steel-gray: var(--color-text-muted);
  --color-charcoal: var(--color-text);
  --color-light-gray: rgba(15, 23, 42, 0.55);
}

@media (min-width: 768px) {
  :root {
    --space-gutter: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --space-gutter: 32px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.landing-page {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
  background-color: transparent;
  min-height: 100vh;
  overflow-x: hidden;
}

body.site-page {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
  background-color: transparent;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Space backdrop — image path relative to this file (static/css/) */
.space-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: var(--color-background);
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.35) 50%, rgba(15, 23, 42, 0.7) 100%),
    url('../pexels-brett-sayles-3114462.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Shared layout + CTA (index + sub-pages like pricing) */
.landing-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
}

.landing-btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.landing-btn-primary {
  background: var(--color-primary);
  color: #1f2937;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.landing-btn-primary:hover {
  background: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.landing-btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.landing-btn-secondary:hover {
  background: var(--color-primary);
  color: #1f2937;
}

.landing-btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* -------------------------------------------------------------------------- */
/* Hero CTAs — space-themed (index hero only; pure CSS)                       */
/* -------------------------------------------------------------------------- */

.landing-btn__label {
  position: relative;
  z-index: 3;
  display: inline-block;
}

/* Power Up: arcade “boost” — deeper gold, high-contrast label, sheen, chevrons rush → */
.landing-btn.landing-btn-primary.landing-btn--space-powerup {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: #0f172a;
  padding: 14px 2.75rem 14px 1.5rem;
  border: 2px solid rgba(120, 90, 20, 0.45);
  background: linear-gradient(168deg, #d9bc5c 0%, #b8941f 42%, #8a6d12 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 3px 10px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.landing-btn.landing-btn-primary.landing-btn--space-powerup .landing-btn__label {
  color: inherit;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.landing-btn.landing-btn-primary.landing-btn--space-powerup:hover,
.landing-btn.landing-btn-primary.landing-btn--space-powerup:focus-visible {
  transform: scale(1.08);
  color: #0b1220;
  /* Same yellow hue family as View Pricing hover/focus */
  background: var(--landing-hero-focus-gold);
  border-color: rgba(255, 235, 150, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 22px rgba(255, 215, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.landing-btn--space-powerup::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -35%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.08) 58%,
    transparent 100%
  );
  transform: skewX(-22deg) translateX(-160%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}

.landing-btn--space-powerup:hover::before,
.landing-btn--space-powerup:focus-visible::before {
  transform: skewX(-22deg) translateX(320%);
}

.landing-btn--space-powerup::after {
  content: '› › ›';
  position: absolute;
  right: 10%;
  top: 50%;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.12em;
  color: rgba(15, 23, 42, 0.38);
  text-shadow: none;
  transform: translateY(-50%) translateX(0);
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

.landing-btn--space-powerup:hover::after,
.landing-btn--space-powerup:focus-visible::after {
  animation: landing-powerup-chevron-rush 0.45s ease-in-out infinite;
}

/* Chevrons travel right (boost / tailwind direction) */
@keyframes landing-powerup-chevron-rush {
  0% {
    transform: translateY(-50%) translateX(-16px);
    opacity: 0.2;
  }
  40% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(-50%) translateX(18px);
    opacity: 0.15;
  }
}

/* View Pricing: HUD panel — glass base, soft halo, scan line */
.landing-btn.landing-btn-secondary.landing-btn--space-pricing {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 2px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.26s cubic-bezier(0.34, 1.35, 0.64, 1),
    background 0.28s var(--ease),
    color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.landing-btn.landing-btn-secondary.landing-btn--space-pricing:hover,
.landing-btn.landing-btn-secondary.landing-btn--space-pricing:focus-visible {
  transform: scale(1.045);
  color: #0b1220;
  border-color: rgba(255, 235, 150, 0.85);
  background: var(--landing-hero-focus-gold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 22px rgba(255, 215, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.landing-btn--space-pricing::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 3px);
  border: 1px solid rgba(147, 197, 253, 0.22);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.landing-btn--space-pricing:hover::before,
.landing-btn--space-pricing:focus-visible::before {
  opacity: 1;
  animation: landing-pricing-halo 1.75s ease-in-out infinite;
}

@keyframes landing-pricing-halo {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 215, 0, 0.12),
      0 0 12px rgba(96, 165, 250, 0.08);
  }
  50% {
    box-shadow:
      0 0 16px 2px rgba(255, 215, 0, 0.22),
      0 0 24px rgba(96, 165, 250, 0.12);
  }
}

.landing-btn--space-pricing::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
  transition: width 0.38s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.landing-btn--space-pricing:hover::after,
.landing-btn--space-pricing:focus-visible::after {
  width: 70%;
}

.landing-btn--space-powerup:focus-visible,
.landing-btn--space-pricing:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .landing-btn.landing-btn-primary.landing-btn--space-powerup,
  .landing-btn.landing-btn-secondary.landing-btn--space-pricing {
    transition-duration: 0.15s;
  }

  .landing-btn.landing-btn-primary.landing-btn--space-powerup:hover,
  .landing-btn.landing-btn-primary.landing-btn--space-powerup:focus-visible,
  .landing-btn.landing-btn-secondary.landing-btn--space-pricing:hover,
  .landing-btn.landing-btn-secondary.landing-btn--space-pricing:focus-visible {
    transform: none;
  }

  .landing-btn--space-powerup::before {
    transition: none;
    transform: skewX(-22deg) translateX(-160%);
  }

  .landing-btn--space-powerup:hover::before,
  .landing-btn--space-powerup:focus-visible::before {
    transform: skewX(-22deg) translateX(-160%);
  }

  .landing-btn--space-powerup::after {
    animation: none !important;
    transform: translateY(-50%);
    opacity: 0.45;
  }

  .landing-btn--space-pricing::before {
    animation: none !important;
  }

  .landing-btn--space-pricing:hover::before,
  .landing-btn--space-pricing:focus-visible::before {
    opacity: 0.55;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.18);
  }

  .landing-btn--space-pricing::after {
    transition-duration: 0.18s;
  }
}

.landing-cta {
  padding: 96px var(--space-gutter);
  text-align: center;
  background: transparent;
}

.landing-cta-content {
  max-width: 560px;
  margin: 0 auto;
}

.landing-cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.landing-cta-sub {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
