/* ============================================================
   DeckDVR — Clean, Modern, Authentic Design (Vanilla CSS)
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-gradient: radial-gradient(circle at 80% 10%, #171f2e 0%, #0b0e14 100%);
  --fg: #e8ecf0;
  --fg-dim: #8a95a3;
  --fg-muted: #5e6875;
  --accent: #4fc3f7;
  --accent-hover: #7ad7ff;
  --accent-subtle: rgba(79, 195, 247, 0.1);
  --line: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.045);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-color: var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   FLOATING PARTICLES
   ============================================================ */
.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: floatParticle linear infinite;
}

.d1 { width: 3px; height: 3px; left: 12%; animation-duration: 14s; animation-delay: 0s; }
.d2 { width: 4px; height: 4px; left: 35%; animation-duration: 16s; animation-delay: 3s; }
.d3 { width: 3px; height: 3px; left: 60%; animation-duration: 13s; animation-delay: 1.5s; }
.d4 { width: 3px; height: 3px; left: 80%; animation-duration: 15s; animation-delay: 6s; }
.d5 { width: 4px; height: 4px; left: 92%; animation-duration: 18s; animation-delay: 2s; }

@keyframes floatParticle {
  0%   { bottom: -10px; opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.35; }
  100% { bottom: 105%; opacity: 0; }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

/* Header actions (Lang switcher + GitHub) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--fg-dim);
  padding: 0.2rem 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.lang-btn:hover {
  color: var(--fg);
}

.lang-btn.active {
  color: var(--accent);
}

.lang-sep {
  color: var(--fg-muted);
  user-select: none;
}

.github-icon-link {
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 6px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.github-icon-link:hover {
  color: var(--fg);
}

.github-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.main-wrapper {
  flex: 1;
  position: relative;
  z-index: 1;
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HERO — SIDE BY SIDE
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 5rem 0 4rem;
}

.hero-text {
  flex: 1.1;
  min-width: 0;
}

.hero-image {
  flex: 0.9;
  min-width: 0;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-title .title-mark {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
  border: 1px solid transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-primary {
  color: #0b0e14;
  background: var(--fg);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-dim);
  cursor: not-allowed;
  border-color: var(--line);
}

.btn-disabled:hover {
  opacity: 1;
  transform: none;
}

/* Hero Mockup */
.mockup-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(18, 22, 32, 0.6);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mockup-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 195, 247, 0.3);
}

.mockup-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* ============================================================
   JOURNEY / TIMELINE
   ============================================================ */
.journey-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

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

.step {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  flex-shrink: 0;
  margin-top: 5px;
}

.step-dot.filled {
  background: var(--accent);
}

.step-line {
  flex: 1;
  width: 2px;
  background: var(--line);
  min-height: 100%;
}

.step-body {
  padding-bottom: 2rem;
}

.step:last-child .step-body {
  padding-bottom: 0;
}

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.step-body p {
  font-size: 0.92rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.features-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-subtle);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* ============================================================
   STORES / PLATFORMS
   ============================================================ */
.platforms-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.platforms-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 10px;
  transition: all 0.2s ease;
  min-width: 240px;
  text-decoration: none;
}

.platform-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.platform-card svg {
  width: 24px;
  height: 24px;
  fill: var(--fg);
  flex-shrink: 0;
}

.platform-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
}

.platform-card span {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.bottom-section {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--line);
}

.bottom-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.bottom-section p {
  font-size: 1rem;
  color: var(--fg-dim);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-page {
  padding: 4rem 0 5rem;
}

.privacy-header {
  margin-bottom: 2.5rem;
}

.privacy-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.privacy-updated {
  font-size: 0.85rem;
  color: var(--accent);
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.privacy-content section {
  padding: 1.5rem;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.privacy-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.privacy-content p {
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.privacy-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: rgba(11, 14, 20, 0.95);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--fg-dim);
}

.footer-copy a {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1.25rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .page-container {
    padding: 0 1.25rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .platforms-row {
    flex-direction: column;
  }

  .platform-card {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}
