/* ==========================================================================
   VRC Downbeat — website stylesheet
   Dark navy stage, warm gold spotlight (matching the app logo).
   ========================================================================== */

:root {
  --bg:          #0b0d14;
  --bg-alt:      #10131d;
  --panel:       #161a26;
  --panel-edge:  #232939;
  --field:       #0d1018;

  --gold:        #f5a623;
  --gold-bright: #ffc14d;
  --gold-deep:   #c77d0a;

  --text:        #eef1f7;
  --text-dim:    #9aa4b5;
  --text-faint:  #6b74a4;

  --radius:      14px;
  --container:   1120px;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }

code {
  background: var(--field);
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  padding: 0.1em 0.45em;
  font-size: 0.9em;
  color: var(--gold-bright);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.lead { color: var(--text-dim); font-size: 1.08rem; }
.lead strong, .lead em { color: var(--text); }

.grad {
  background: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #17120a;
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 10px 36px rgba(245, 166, 35, 0.45);
  background: linear-gradient(135deg, #ffd06e, var(--gold));
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--panel-edge);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-small { padding: 9px 20px; font-size: 0.92rem; }

.btn-large { padding: 17px 32px; font-size: 1.08rem; }
.btn-large .btn-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 12px; left: 12px; right: 12px;
  z-index: 100;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(13, 16, 25, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.nav-brand em { color: var(--gold); font-style: normal; }

.nav-logo { width: 34px; height: 34px; border-radius: 9px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 150px 24px 90px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -280px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center,
              rgba(245, 166, 35, 0.16) 0%,
              rgba(245, 166, 35, 0.05) 40%,
              transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-bright);
  background: rgba(245, 166, 35, 0.09);
  border: 1px solid rgba(245, 166, 35, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-eyebrow svg { width: 16px; height: 16px; }

.hero-sub {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 1.12rem;
  max-width: 34em;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin-top: 30px;
}
.hero-badges li {
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-badges li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.8);
}

.hero-art { position: relative; }
.hero-art img {
  border-radius: var(--radius);
  border: 1px solid var(--panel-edge);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55),
              0 0 90px rgba(245, 166, 35, 0.12);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.section-head .lead { margin-top: 16px; }

.section-problem { padding-top: 40px; }
.section-problem h2 { margin-bottom: 24px; }
.section-problem .lead + .lead { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Steps (how it works)
   -------------------------------------------------------------------------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.step:hover {
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.step-num {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: #17120a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.3);
}

.step-body h3 { margin-bottom: 10px; font-size: 1.22rem; }
.step-body p { color: var(--text-dim); }
.step-body p + p { margin-top: 12px; }
.step-body strong { color: var(--text); }
.step-body em { color: var(--gold-bright); font-style: normal; }

/* --------------------------------------------------------------------------
   Timeline diagram
   -------------------------------------------------------------------------- */

.timeline {
  max-width: 860px;
  margin: 56px auto 0;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 30px;
}

.timeline-track { display: flex; flex-direction: column; gap: 14px; }

.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.timeline-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: right;
}

.timeline-bar { display: flex; gap: 6px; }

.tl-seg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-play {
  flex: 1;
  background: rgba(95, 208, 104, 0.13);
  border: 1px solid rgba(95, 208, 104, 0.4);
  color: #8fe096;
}
.tl-net {
  flex: 1;
  background: rgba(79, 163, 255, 0.1);
  border: 1px solid rgba(79, 163, 255, 0.35);
  color: #8ec2ff;
}
.tl-gate {
  flex: 0 0 auto;
  background: rgba(245, 166, 35, 0.16);
  border: 1px dashed rgba(245, 166, 35, 0.55);
  color: var(--gold-bright);
}
.tl-mix {
  flex: 1;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--gold-bright);
}

.timeline-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--gold);
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Privacy & security
   -------------------------------------------------------------------------- */

.privacy-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.privacy-point {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.25s ease;
}
.privacy-point:hover { border-color: rgba(245, 166, 35, 0.45); border-left-color: var(--gold); }

.privacy-point h3 { margin-bottom: 8px; font-size: 1.15rem; }
.privacy-point p { color: var(--text-dim); font-size: 0.97rem; }
.privacy-point strong { color: var(--text); }
.privacy-point em { color: var(--gold-bright); font-style: normal; }

/* --------------------------------------------------------------------------
   Guided tour (tutorial with screenshots)
   -------------------------------------------------------------------------- */

.tour {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.tour-step {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: 44px;
  align-items: center;
}
.tour-step:nth-child(even) .tour-text  { order: 2; }
.tour-step:nth-child(even) > .tour-media,
.tour-step:nth-child(even) > .tour-media-stack { order: 1; }

.tour-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  background: rgba(245, 166, 35, 0.09);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.tour-text h3 { font-size: 1.45rem; margin-bottom: 12px; }
.tour-text p { color: var(--text-dim); }
.tour-text strong { color: var(--text); }
.tour-text em { color: var(--gold-bright); font-style: normal; }

.tour-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tour-media:hover {
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(245, 166, 35, 0.08);
}
.tour-media img { width: 100%; display: block; }

.tour-media-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tour-note {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 10px;
  font-size: 0.92rem;
}
.tour-note a { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   Lightbox (click to enlarge images)
   -------------------------------------------------------------------------- */

.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 3vw;
  background: rgba(5, 6, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--panel-edge);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox.open img { transform: scale(1); }

.lightbox-caption {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--panel-edge);
  background: rgba(22, 26, 38, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold-bright); }
.lightbox-close svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Tech grid (under the hood)
   -------------------------------------------------------------------------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: border-color 0.25s ease;
}
.tech:hover { border-color: rgba(245, 166, 35, 0.45); }

.tech h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.12rem;
}
.tech h3 svg {
  width: 22px; height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.tech p { color: var(--text-dim); font-size: 0.96rem; }
.tech strong { color: var(--text); }
.tech em { color: var(--gold-bright); font-style: normal; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}
.faq-item[open], .faq-item:hover { border-color: rgba(245, 166, 35, 0.45); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */

.section-download {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 120px 0;
}

.download-glow {
  position: absolute;
  bottom: -320px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 620px;
  background: radial-gradient(ellipse at center,
              rgba(245, 166, 35, 0.18) 0%,
              rgba(245, 166, 35, 0.05) 45%,
              transparent 70%);
  pointer-events: none;
}

.section-download .container { position: relative; }

.download-icon {
  width: 92px; height: 92px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(245, 166, 35, 0.2);
}

.section-download .lead { margin: 18px auto 0; max-width: 32em; }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

.download-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-dim);
  opacity: 0.85;
}
.download-note.flash { color: var(--gold-bright); opacity: 1; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--panel-edge);
  padding: 56px 0 40px;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-tag { color: var(--text-dim); font-size: 0.95rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold-bright); }

.footer-fine {
  color: var(--text-dim);
  opacity: 0.6;
  font-size: 0.8rem;
  max-width: 46em;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 620px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 16, 25, 0.97);
    border: 1px solid var(--panel-edge);
    border-radius: 18px;
    padding: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-inner { position: relative; }
  .nav-inner > .btn { display: none; }
  .nav-burger { display: flex; }

  .section { padding: 72px 0; }

  .tech-grid, .feature-grid { grid-template-columns: 1fr; }

  .step { flex-direction: column; gap: 16px; padding: 24px; }

  .tour { gap: 48px; }
  .tour-step { grid-template-columns: 1fr; gap: 20px; }
  .tour-step:nth-child(even) .tour-text  { order: 1; }
  .tour-step:nth-child(even) > .tour-media,
  .tour-step:nth-child(even) > .tour-media-stack { order: 2; }

  .timeline { padding: 20px; }
  .timeline-row { grid-template-columns: 1fr; gap: 6px; }
  .timeline-label { text-align: left; }
  .tl-seg { white-space: normal; }
}
