/* ============================================
   Rise Media Player — Design System
   ============================================ */

:root {
  /* Color */
  --bg-deep: #0B0E17;
  --bg-surface: #141824;
  --accent: #6C5CE7;
  --accent-glow: #A29BFE;
  --text: #E8E6F0;
  --text-muted: #7B7D8E;
  --border: rgba(255, 255, 255, 0.06);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   Container
   ============================================ */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   Section primitives
   ============================================ */

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

/* ============================================
   Nav
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav--scrolled {
  background: rgba(11, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav__links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  border-radius: 999px;
  color: #fff !important;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.hero__scrollline {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   Button
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
}

.btn--primary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--large {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.btn__icon {
  font-size: 0.75rem;
}

/* ============================================
   Features
   ============================================ */

.features {
  padding: var(--space-2xl) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-lg);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   Specs
   ============================================ */

.specs {
  padding: var(--space-2xl) 0;
}

.specs__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  align-items: start;
}

.specs__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
}

.specs__tables {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.specs__table {
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.specs__table-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: var(--space-sm);
}

.specs__list {
  display: flex;
  flex-direction: column;
}

.specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-sm);
}

.specs__row:last-child {
  border-bottom: none;
}

.specs__row dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.specs__row dd {
  font-size: 0.85rem;
  text-align: right;
  color: var(--text);
}

/* ============================================
   Download
   ============================================ */

.download {
  padding: var(--space-2xl) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.download__inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.download__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-xs);
}

.download__text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.download__version {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
}

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

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   Focus (keyboard)
   ============================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================
   Reduced motion
   ============================================ */

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

  html {
    scroll-behavior: auto;
  }

  .hero__scrollline {
    animation: none;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .specs__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .specs__desc {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 14, 23, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    font-size: 1.25rem;
    z-index: 99;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
    z-index: 101;
  }

  .nav__toggle--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 6rem;
    min-height: auto;
    padding-bottom: var(--space-xl);
  }

  .hero__scroll {
    display: none;
  }

  .feature-card {
    padding: var(--space-md);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .specs__row {
    flex-direction: column;
    gap: 0.2rem;
  }

  .specs__row dd {
    text-align: left;
  }
}
