/* ==========================================================================
   Rex Media LLC - Design System & Styles
   ========================================================================== */

:root {
  --bg-primary: #08090d;
  --bg-surface: rgba(18, 21, 30, 0.7);
  --bg-surface-hover: rgba(26, 31, 44, 0.85);
  --bg-card: rgba(15, 18, 25, 0.65);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-accent: #a5b4fc;

  --accent-indigo: #6366f1;
  --accent-cyan: #38bdf8;
  --accent-violet: #818cf8;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.4);
  --border-glow: rgba(129, 140, 248, 0.2);

  --glow-1: rgba(99, 102, 241, 0.15);
  --glow-2: rgba(56, 189, 248, 0.12);
  --glow-3: rgba(139, 92, 246, 0.1);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  padding: 2.5rem 1.5rem;
}

/* Ambient Background Light Orbs */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.8;
  animation: floatAmbient 20s ease-in-out infinite alternate;
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow-1) 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-orb-2 {
  width: 450px;
  height: 450px;
  bottom: 5%;
  left: 20%;
  background: radial-gradient(circle, var(--glow-2) 0%, rgba(56, 189, 248, 0) 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  bottom: 20%;
  right: 15%;
  background: radial-gradient(circle, var(--glow-3) 0%, rgba(139, 92, 246, 0) 70%);
  animation-duration: 22s;
  animation-delay: -10s;
}

/* Background Grid Overlay */
.grid-pattern {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
  z-index: 1;
}

/* Page Layout Container */
.page-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Top Header / Brand Nav */
.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.brand-badge:hover .logo-wrapper {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: 0 6px 20px -4px rgba(99, 102, 241, 0.3);
}

.logo-svg {
  width: 26px;
  height: 26px;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Hero Card */
.main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.25rem 2.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), rgba(99, 102, 241, 0.4), transparent);
}

.card-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.headline {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #ffffff;
}

.headline-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-violet) 75%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* Footer Section */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.footer-rights {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Focus Accessibility */
a:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 3px;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatAmbient {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.05);
  }
  100% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  body {
    padding: 2rem 1rem;
  }

  .page-container {
    gap: 2rem;
  }

  .main-card {
    padding: 2.25rem 1.5rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-orb {
    animation: none;
  }
  .page-container {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
