/* ==========================================================================
   RIFT Waitlist B&W Design System & Layout (Comet Style)
   ========================================================================== */

/* 1. Theme Configuration & Custom Properties */
:root {
  /* Colors - Light Mode / Black & White Mostly */
  --bg-obsidian: #FFFFFF;        /* Pure White Background */
  --bg-section: #F8F9FA;         /* Light Grey Section Background */
  --bg-card: #FAFAFB;            /* Off-White Card Background */
  --bg-card-hover: #F1F3F5;
  --color-primary: #000000;      /* Solid Black */
  --color-secondary: #5F6368;    /* Muted Gray */
  
  --text-primary: #111111;       /* Deep Charcoal */
  --text-muted: #5F6368;         /* Muted Slate Gray */
  --text-dark: #8E959F;          /* Muted Gray */
  
  /* Borders */
  --border-subtle: #EBEBEB;      /* Super Muted Thin Border */
  --border-dark: #DCDCDC;
  
  /* Fonts */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Layout & Animation */
  --header-height: 80px;
  --max-width: 1100px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* 2. Global Reset & Body Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial; /* Managed by Lenis smooth scroll */
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-obsidian);
  min-height: 100vh;
}

/* Hide default system OS cursor on desktops where custom cursor is active */
@media (pointer: fine) {
  html, body, *, *::before, *::after {
    cursor: none !important;
  }
}

/* Also hide cursor via JS class trigger as a robust fallback across all desktop environments */
html.custom-cursor-active,
html.custom-cursor-active body,
html.custom-cursor-active *,
html.custom-cursor-active *::before,
html.custom-cursor-active *::after {
  cursor: none !important;
}

/* Standard Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #E5E5E5;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* 3. Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

p {
  color: var(--text-muted);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* 4. Background Art Elements: 3D spheres */
.bg-sphere {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  mix-blend-mode: multiply;
}
.sphere-left {
  left: -120px;
  top: 180px;
  width: 320px;
  height: 320px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}
.sphere-right {
  right: -140px;
  top: 520px;
  width: 380px;
  height: 380px;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.08));
}
.sphere-top {
  top: -150px;
  left: 55%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(230,230,235,0.4) 0%, rgba(255,255,255,0) 70%);
  filter: blur(40px);
}

/* 5. Custom Cursor Followers */
.cursor-follower {
  position: fixed;
  width: 7px;
  height: 7px;
  background-color: #FFFFFF;
  mix-blend-mode: difference;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-follower-glow {
  position: fixed;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  filter: blur(10px);
}
/* Active Hover State for Cursor */
.cursor-hovering .cursor-follower {
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 1.5px solid #FFFFFF;
}
.cursor-hovering .cursor-follower-glow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(0,0,0,0) 70%);
}

/* 6. Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px; /* Rounded pill style buttons */
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: none;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}
.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: #222222;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.btn-secondary {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.06);
  border-color: var(--border-dark);
}
.btn-block {
  width: 100%;
}
.btn-dl-icon {
  width: 18px;
  height: 18px;
}

/* 7. Floating Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}
.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-image {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-family: 'Smooch Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.6rem;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: var(--text-primary);
}

/* 8. Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}
.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
}
.hero-intro-text {
  margin-bottom: 60px;
}
.hero-meta-lead {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}
.meta-link {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1.5px solid var(--text-primary);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
}
.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
}
.hero-cta-wrapper {
  opacity: 0;
  transform: translateY(20px);
}

/* 9. Premium Mockup Window (Super Clean reskin) */
.mockup-wrapper {
  width: 100%;
  max-width: 800px;
  background-color: #FFFFFF;
  padding: 1px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0,0,0,0.1);
  opacity: 0;
  transform: scale(0.96) translateY(30px);
}
.mockup-frame {
  background-color: #FFFFFF;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 440px;
}
.mockup-header {
  height: 42px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: #FAFBFB;
}
.window-controls {
  display: flex;
  gap: 6px;
}
.control-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #E2E8F0;
}
.mockup-search {
  font-size: 0.7rem;
  color: var(--text-dark);
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 4px 14px;
  border-radius: 20px;
  width: 240px;
  text-align: left;
}
.mockup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-icon {
  font-size: 0.8rem;
  opacity: 0.5;
}
.mockup-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #E5E5E5;
}

.mockup-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.mockup-sidebar {
  width: 150px;
  border-right: 1px solid var(--border-subtle);
  background-color: #FAFBFB;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-item {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-item.active {
  background-color: rgba(0,0,0,0.04);
  color: var(--text-primary);
}
.sidebar-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 6px 0;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dark);
  font-weight: 700;
  text-align: left;
  padding-left: 12px;
  margin-bottom: 2px;
}

.mockup-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  background-color: #FFFFFF;
}
.mockup-hero {
  height: 160px;
  background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.9)), url('https://cdn.akamai.steamstatic.com/steam/apps/1721470/library_hero.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  text-align: left;
}
.mockup-hero-details h2 {
  font-size: 1.15rem;
  margin-bottom: 2px;
  color: #000000;
}
.mockup-hero-details p {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.category-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  background-color: #000000;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.mockup-hero-buttons {
  display: flex;
  gap: 8px;
}
.mockup-btn {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}
.mockup-btn.play {
  background-color: #000000;
  color: #FFFFFF;
  border: none;
}
.mockup-btn.info {
  background-color: #FFFFFF;
  color: #000000;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mockup-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
}
.card-img-placeholder {
  height: 70px;
  background-size: cover;
  background-position: center;
}
.card-img-placeholder.eld { background-image: url('https://cdn.akamai.steamstatic.com/steam/apps/1245620/header.jpg'); }
.card-img-placeholder.cyb { background-image: url('https://cdn.akamai.steamstatic.com/steam/apps/1091500/header.jpg'); }
.card-img-placeholder.gta { background-image: url('https://cdn.akamai.steamstatic.com/steam/apps/271590/header.jpg'); }
.card-desc {
  padding: 8px;
}
.card-desc h4 {
  font-size: 0.7rem;
  margin-bottom: 2px;
  color: #000000;
}
.card-desc p {
  font-size: 0.55rem;
}

/* 10. Pipeline Scrollytelling Section (Do anything style) */
.pipeline-section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
}
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.pipeline-title-wrapper {
  margin-bottom: 60px;
  text-align: left;
}
.pipeline-section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
}

.scrolly-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Sticky Prompt column */
.scrolly-visual-sticky {
  position: sticky;
  top: calc(var(--header-height) + 60px);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scrolly-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 330px;
}

/* Scrolly terminal cards */
.scrolly-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  overflow: hidden;
}
.scrolly-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.scrolly-card-header {
  height: 38px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: #FAFBFB;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}
.scrolly-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.scrolly-dot.red { background-color: #FF5F56; }
.scrolly-dot.yellow { background-color: #FFBD2E; }
.scrolly-dot.green { background-color: #27C93F; }
.scrolly-card-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dark);
  margin-left: 6px;
}

.scrolly-card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.chat-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #FAFBFB;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-avatar.brand {
  background-color: #000000;
  color: #FFFFFF;
}
.chat-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  background-color: #F8F9FA;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 12px;
  margin-top: 2px;
}
.chat-row.rift .chat-text {
  background-color: #FFFFFF;
}
.chat-text-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.chat-text-area pre {
  background-color: #FAFBFB;
  border: 1px solid var(--border-subtle);
  padding: 10px;
  border-radius: 6px;
}

/* Inside visual elements */
.scrolly-progress-wrapper {
  background-color: #FAFBFB;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 8px;
  align-items: center;
}
.progress-label {
  font-size: 0.7rem;
  font-weight: 700;
  grid-column: span 2;
}
.progress-bar-bg {
  height: 4px;
  background-color: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background-color: #000000;
}
.progress-bar-fill.fill-90 { width: 90%; }
.progress-percent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: right;
  font-weight: 700;
}

.sync-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.sync-item {
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.check-icon {
  color: #27C93F;
}

/* Descriptions Scroll column */
.scrolly-descriptions {
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding-bottom: 120px;
}
.scrolly-desc-block {
  text-align: left;
}
.step-title-lead {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.step-description-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 440px;
}

/* 11. Endless Game Showcase Section */
.games-section {
  padding: 100px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  background-color: transparent;
}
.games-section .section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 40px;
  text-align: left;
}
.games-carousel-wrapper {
  width: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
}
.games-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
#games-track-forward {
  animation: scrollTrackForward 32s linear infinite;
}
.games-carousel-wrapper:hover .games-track {
  animation-play-state: paused;
}

/* Game Card reskin */
.game-card {
  width: 250px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.03);
}
.game-card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.game-card-info {
  padding: 14px;
  text-align: left;
}
.game-card-info h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #000000;
}
.game-card-info p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* 12. Bento Features Grid Section */
.features-section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
}
.features-section .section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.features-section .section-desc {
  font-size: 0.95rem;
  max-width: 480px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.bento-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 36px;
  transition: var(--transition-smooth);
}
.bento-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.02);
}
.bento-w-2 {
  grid-column: span 2;
}
.bento-w-3 {
  grid-column: span 3;
}
.bento-card-content {
  text-align: left;
}
.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #000000;
}
.bento-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* 13. Waitlist Sign Up Section */
.waitlist-section {
  padding: 120px 0 160px;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
}
.waitlist-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}
.waitlist-content {
  max-width: 500px;
  margin: 0 auto;
}
.serif-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.waitlist-subtitle {
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-message {
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 20px;
}
.form-message.error {
  color: #FF5F56;
}
.form-message.success {
  color: #27C93F;
}

/* Success View for waitlist sign up */
.waitlist-success-view {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.5s ease forwards;
}
.success-portal {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.success-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px dashed #000000;
  border-radius: 50%;
  animation: rotateRing 12s linear infinite;
}
.success-ring-inner {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px solid #000000;
  border-radius: 50%;
  background-color: #FAFBFB;
}
.success-checkmark {
  font-size: 2rem;
  font-weight: 800;
  color: #000000;
  z-index: 2;
}
.waitlist-success-view h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #000000;
}
.waitlist-success-view p {
  font-size: 0.9rem;
  max-width: 400px;
}
.highlight-email {
  color: #000000;
  font-weight: 700;
  border-bottom: 1.5px solid #000000;
}

/* Easter egg secret link (visible only in success screen) */
.ee-secret-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.4s ease, color 0.3s ease;
  letter-spacing: 0.02em;
}
.ee-secret-link:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* 14. Footer */
.footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-brand {
  max-width: 280px;
  text-align: left;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-name {
  font-family: 'Smooch Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.7rem;
  color: var(--text-primary);
  text-transform: uppercase;
}
.brand-desc {
  font-size: 0.8rem;
  margin-top: 16px;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 80px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.footer-nav-col h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.footer-nav-col a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-nav-col a:hover {
  color: var(--text-primary);
}
.social-icon-raw {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}
.social-icon-raw:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.copyright {
  font-size: 0.75rem;
  color: var(--text-dark);
}
.cosmic-curiosity {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
}

/* ==========================================================================
   15. Keyframes & Animation Library
   ========================================================================== */
@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scrollTrackForward {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero CTA Subtext */
.hero-cta-subtext {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-align: center;
}

/* Comparison Section */
.comparison-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background-color: transparent;
  position: relative;
  z-index: 2;
}
.comparison-table-wrapper {
  max-width: 800px;
  margin: 60px auto 0;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background-color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.comparison-table th, 
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.comparison-table th {
  font-weight: 600;
  color: #000000;
  background-color: #FAFAFA;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table td {
  color: var(--text-dark);
  font-weight: 500;
}
.comparison-table td.feature-name {
  color: #000000;
  font-weight: 600;
}
.comparison-table th:not(:first-child), 
.comparison-table td:not(:first-child) {
  text-align: center;
}
.comp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 20px;
  padding: 4px 12px;
}
.comp-badge.yes {
  color: #000000;
  background: none;
  padding: 0;
  font-size: 1.1rem;
}
.comp-badge.no {
  color: var(--text-muted);
  background: none;
  padding: 0;
  font-size: 1.1rem;
}
.comp-badge.partial {
  background-color: #F0F0F0;
  color: var(--text-dark);
  font-size: 0.75rem;
  border: 1px solid var(--border-subtle);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}
.faq-grid {
  max-width: 900px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.faq-item {
  text-align: left;
}
.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.faq-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Single Input Form & Opt Out */
.form-row.single-input {
  grid-template-columns: 1fr;
}
.waitlist-opt-out {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
}

/* Premium Form Inputs styling */
.input-wrapper {
  position: relative;
  width: 100%;
}
.form-input {
  width: 100%;
  padding: 16px 24px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #000000;
  background-color: #FAFBFB;
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  outline: none;
  transition: var(--transition-smooth);
}
.form-input::placeholder {
  color: var(--text-muted);
}
.form-input:focus {
  border-color: #000000;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.02);
}

/* Subtle glow under inputs */
.input-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  pointer-events: none;
  z-index: -1;
  transition: var(--transition-smooth);
}
.form-input:focus ~ .input-glow {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.04);
}

/* Background Orbits / Ovals styling (Concentric Contour Art) */
.bg-orbits-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-orbit {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.05); /* Technical contour lines */
  border-radius: 50%;
  pointer-events: none;
  transform-origin: center;
}

/* Group 1: Top-Right Concentric Orbits with Depth of Field */
.bg-orbit-tr-1 {
  width: 300px;
  height: 300px;
  top: 2%;
  right: -50px;
  transform: scaleY(0.65) rotate(-20deg);
  border-width: 1px;
  opacity: 0.5;
  filter: blur(1.2px); /* Farthest/Blurred */
}
.bg-orbit-tr-2 {
  width: 550px;
  height: 550px;
  top: -2%;
  right: -100px;
  transform: scaleY(0.65) rotate(-20deg);
  border-color: rgba(13, 148, 136, 0.25); /* Teal Accent - Closer/Sharp */
  border-width: 1.5px;
  filter: drop-shadow(0 4px 10px rgba(13, 148, 136, 0.05));
}
.bg-orbit-tr-3 {
  width: 800px;
  height: 800px;
  top: -5%;
  right: -150px;
  transform: scaleY(0.65) rotate(-20deg);
  border-width: 1px;
  opacity: 0.75;
}
.bg-orbit-tr-4 {
  width: 1050px;
  height: 1050px;
  top: -8%;
  right: -200px;
  transform: scaleY(0.65) rotate(-20deg);
  border-width: 2px; /* Foreground/Thick */
  opacity: 0.9;
}
.bg-orbit-tr-5 {
  width: 1300px;
  height: 1300px;
  top: -12%;
  right: -250px;
  transform: scaleY(0.65) rotate(-20deg);
  border-width: 1.2px;
  opacity: 0.6;
}

/* Group 2: Bottom-Left Concentric Orbits with Depth of Field */
.bg-orbit-bl-1 {
  width: 400px;
  height: 400px;
  bottom: 12%;
  left: -80px;
  transform: scaleX(0.7) rotate(15deg);
  border-width: 1px;
  opacity: 0.5;
  filter: blur(1.2px); /* Farthest/Blurred */
}
.bg-orbit-bl-2 {
  width: 700px;
  height: 700px;
  bottom: 8%;
  left: -150px;
  transform: scaleX(0.7) rotate(15deg);
  border-color: rgba(244, 63, 94, 0.25); /* Coral Accent - Closer/Sharp */
  border-width: 1.5px;
  filter: drop-shadow(0 4px 10px rgba(244, 63, 94, 0.05));
}
.bg-orbit-bl-3 {
  width: 1000px;
  height: 1000px;
  bottom: 4%;
  left: -200px;
  transform: scaleX(0.7) rotate(15deg);
  border-width: 1.2px;
  opacity: 0.75;
}
.bg-orbit-bl-4 {
  width: 1300px;
  height: 1300px;
  bottom: 0%;
  left: -250px;
  transform: scaleX(0.7) rotate(15deg);
  border-width: 2px; /* Foreground/Thick */
  opacity: 0.9;
}

/* Hero Center Technical Orbit */
.bg-orbit-center {
  width: 1600px;
  height: 1600px;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%) scaleY(0.68) rotate(-35deg);
  border: 1.5px dashed rgba(0, 0, 0, 0.06); /* dashed line for technical contrast */
}

/* 15. RIFT Launcher Mockup in Scrollytelling Section */
.launcher-mockup {
  background-color: #0A0A0F;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  text-align: left;
}

.launcher-header {
  height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: #0E0E14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}

.window-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.window-controls .control-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.window-controls .control-dot.close { background-color: #FF5F56; }
.window-controls .control-dot.minimize { background-color: #FFBD2E; }
.window-controls .control-dot.maximize { background-color: #27C93F; }

.launcher-search {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 12px;
  width: 140px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.launcher-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
}

.launcher-actions .action-icon {
  opacity: 0.55;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s ease;
}
.launcher-actions .action-icon:hover {
  opacity: 0.9;
}
.launcher-actions .action-icon.notification .badge-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 4px;
  height: 4px;
  background-color: #FF4A4A;
  border-radius: 50%;
}

.launcher-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.launcher-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.launcher-sidebar {
  width: 115px;
  background-color: #0E0E14;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  margin-bottom: 12px;
  padding-left: 6px;
  color: #FFFFFF;
}

.sidebar-logo .logo-icon {
  color: #FF3B30;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  font-size: 0.65rem;
  padding: 5px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: #FFFFFF;
}
.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  font-weight: 600;
  border-left: 2px solid #FF3B30;
  border-radius: 0 4px 4px 0;
  padding-left: 6px;
}

.sidebar-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.sidebar-section-title {
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  margin-top: 4px;
  margin-bottom: 2px;
  padding-left: 6px;
}

.sidebar-quick-launch-empty {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.2);
  padding-left: 6px;
  font-style: italic;
}

.sidebar-quick-launch {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-launch-item {
  font-size: 0.58rem;
  padding: 4px 6px;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-launch-item.active {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.launcher-main {
  flex: 1;
  padding: 12px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #0A0A0F;
}

.launcher-tab-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  letter-spacing: 0.02em;
}

.sync-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.sync-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px;
}

.sync-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.sync-platform {
  font-size: 0.58rem;
  font-weight: 700;
}
.sync-platform.steam { color: #66C0F4; }
.sync-platform.epic { color: #00DF6C; }

.sync-badge.connected {
  font-size: 0.45rem;
  font-weight: 700;
  color: #00DF6C;
  background-color: rgba(0, 223, 108, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.sync-status-text {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.sync-console-output {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.console-line {
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
}
.console-line.text-dim { color: rgba(255, 255, 255, 0.35); }
.console-line.text-green { color: #00DF6C; }
.console-line.text-highlight { color: #FFFFFF; font-weight: 600; }

/* Discover Grid Styles */
.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.discover-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.discover-card-img {
  height: 52px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.discover-card-info {
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.discover-card-info h5 {
  font-size: 0.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  width: fit-content;
}
.badge.compat-platinum {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.badge.compat-gold {
  background-color: rgba(245, 158, 11, 0.08);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

/* Library Play Styles */
.launcher-main.library {
  gap: 12px;
}

.library-detail-header {
  display: flex;
  gap: 10px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 8px;
}

.library-game-img {
  width: 64px;
  height: 42px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.library-game-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.library-game-meta h5 {
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.library-game-meta .text-dim {
  font-size: 0.52rem;
  margin: 0;
}

.library-play-btn {
  font-size: 0.58rem;
  font-weight: 700;
  background-color: #FFFFFF;
  color: #000000;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  user-select: none;
}
.library-play-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.library-console-output {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* 16. Responsiveness Constraints (RWD) */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.8rem; }
  .scrolly-container { grid-template-columns: 1fr; gap: 40px; }
  .scrolly-visual-sticky { display: none; }
  .scrolly-descriptions { gap: 60px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-w-2 { grid-column: span 1; }
  .bento-w-3 { grid-column: span 2; }
  .bg-sphere { display: none; } /* Hide spheres on small viewports to avoid overflow */
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-w-2, .bento-w-3 { grid-column: span 1; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-nav { flex-wrap: wrap; gap: 40px; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; gap: 16px; }
}
