:root {
  /* Palette */
  --bg-color: #07080F;
  --panel-bg: #0D0F1C;
  --text-primary: #C7CCE0;
  --text-muted: #B9BFD6;
  --light-bg: #F5F5F9;
  --light-text: #12131F;
  --accent-gradient: linear-gradient(90deg, #4338F5, #8B30D9, #D633A5);
  
  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Faint engineering grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Utilities */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hairline {
  height: 1px;
  background: var(--accent-gradient);
  border: none;
}

.label-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--text-muted);
}

.section-code {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(199, 204, 224, 0.3);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-badge.live::before {
  content: "●";
  color: #D633A5; /* One of the gradient colors */
}

.status-badge.upcoming::before {
  content: "◌";
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.panel {
  background-color: var(--panel-bg);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 4px;
}

.light-section {
  background-color: var(--light-bg);
  color: var(--light-text);
  padding: 6rem 0;
}

.light-section .label-mono,
.light-section .section-code {
  color: rgba(18, 19, 31, 0.6);
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn-primary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.05);
}

/* Navigation */
.nav-header {
  position: sticky;
  top: 0;
  background-color: rgba(7, 8, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Accessibility */
:focus-visible {
  outline: 2px solid #8B30D9;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Scroll Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Micro-interactions */
.panel {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 51, 165, 0.8), rgba(67, 56, 245, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.panel:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(214, 51, 165, 0.25);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(214, 51, 165, 0.08);
}

.panel:hover::before {
  opacity: 1;
}

/* Enhanced Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(67, 56, 245, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(67, 56, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 56, 245, 0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  align-items: center;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out 3s infinite;
}

.animate-pulse {
  animation: pulse-glow 2s infinite;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
}

.mockup-img {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.5s ease;
}

.mockup-img:hover {
  transform: scale(1.03) translateY(-5px);
}

/* Comparison Table Responsive Stacking */
@media (max-width: 900px) {
  .comparison-table {
    display: block !important;
    min-width: 100% !important;
  }
  .comparison-table thead {
    display: none !important;
  }
  .comparison-table tbody, .comparison-table tr, .comparison-table td {
    display: block !important;
    width: 100% !important;
  }
  .comparison-table tr {
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
  }
  .comparison-table td {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    position: relative;
    padding-left: 50% !important;
  }
  .comparison-table td:last-child {
    border-bottom: none !important;
  }
  .comparison-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 45%;
    font-family: var(--font-mono);
    color: #8B30D9;
    font-size: 0.8rem;
    text-transform: uppercase;
  }
  .comparison-table td:first-child {
    background: transparent !important;
    padding-left: 0 !important;
    font-size: 1.25rem !important;
    color: #fff !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
    margin-bottom: 0.5rem;
  }
  .comparison-table td:first-child::before {
    display: none;
  }
}

/* RiseList Specific Styles */
.speech-bubble {
  position: relative;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-right-radius: 20px;
  box-shadow: 10px 0 0 0 #1A1C29;
}

@media (max-width: 900px) {
  .before-after-container {
    grid-template-columns: 1fr !important;
  }
  .transformation-arrow svg {
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .transformation-arrow {
    display: none;
  }
}
