/* Firefly DJ landing — matches the desktop app palette. No frameworks. */

@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("../fonts/exo2-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06081a;
  --bg-2: #0a0e1a;
  --surface: #111827;
  --elevated: #1a2235;
  --line: rgba(232, 234, 240, 0.1);
  --cyan: #00e5ff;
  --magenta: #ff2d78;
  --text: #e8eaf0;
  --dim: #9aa3b8;
  --muted: #6b7280;
  --accent: #7c3aed;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 18px;
  --header-h: 68px;
  --banner-h: 40px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(0, 229, 255, 0.16), transparent 55%),
    radial-gradient(900px 520px at 96% 8%, rgba(255, 45, 120, 0.16), transparent 55%),
    radial-gradient(700px 500px at 50% 120%, rgba(124, 58, 237, 0.12), transparent 55%),
    var(--bg);
  min-height: 100%;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7af3ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cyan);
  color: #041016;
  padding: 8px 12px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 8px; }

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}
/* Header */
.site-header {
  position: relative;
  backdrop-filter: blur(16px);
  background: rgba(6, 8, 26, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner, .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.7);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--elevated);
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  background: var(--cyan);
  color: #041016 !important;
}
.btn-sm:hover { filter: brightness(1.08); color: #041016 !important; }
.btn-primary, .btn-secondary {
  min-width: 240px;
  padding: 0.95rem 1.3rem;
  text-align: left;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.btn-primary {
  background: linear-gradient(180deg, #22eefe, #00c4db);
  color: #041016 !important;
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.28);
}
.btn-primary:hover { filter: brightness(1.06); color: #041016 !important; }
.btn-secondary {
  background: var(--elevated);
  color: var(--text) !important;
  border-color: rgba(255, 45, 120, 0.45);
  box-shadow: 0 8px 30px rgba(255, 45, 120, 0.16);
}
.btn-secondary:hover { border-color: var(--magenta); color: var(--text) !important; }
.btn-amazon {
  background: #ff2d78;
  color: #fff !important;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(255, 45, 120, 0.32);
}
.btn-amazon:hover { filter: brightness(1.08); color: #fff !important; }
.btn .btn-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn .btn-label strong { font-size: 1.02rem; font-weight: 700; }
.btn .btn-label em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}
.btn[aria-disabled="true"] { cursor: default; }
.btn.is-coming-soon {
  position: relative;
}
.btn.is-coming-soon .btn-label em {
  opacity: 0.9;
  color: inherit;
}
.btn-primary.is-coming-soon {
  background: linear-gradient(180deg, #1ad8e8, #00b3c8);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.18);
}
.btn-secondary.is-coming-soon {
  border-color: rgba(255, 45, 120, 0.35);
}
.coming-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(8, 10, 24, 0.22);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2.4rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 14ch;
}
.lede {
  font-size: 1.12rem;
  color: var(--dim);
  max-width: 42ch;
  margin: 1.1rem 0 1.5rem;
}
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}
.dl-note, .linux-note, .android-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}
.linux-note a, .android-note a { color: var(--dim); }
.hero-frame {
  position: relative;
  border-radius: 20px;
  padding: 10px 10px 8px;
  background: linear-gradient(180deg, rgba(26, 34, 53, 0.9), rgba(10, 14, 26, 0.9));
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.06),
    -24px 10px 80px rgba(0, 229, 255, 0.12),
    24px 20px 80px rgba(255, 45, 120, 0.14),
    var(--shadow);
}
.hero-frame::before {
  content: "";
  display: flex;
  height: 14px;
  margin-bottom: 8px;
  background:
    radial-gradient(circle at 10px 7px, #ff5f57 4px, transparent 5px),
    radial-gradient(circle at 26px 7px, #febc2e 4px, transparent 5px),
    radial-gradient(circle at 42px 7px, #28c840 4px, transparent 5px);
  opacity: 0.7;
}
.hero-frame img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

/* Sections */
section { padding: 4.2rem 0; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
}
.section-head p {
  color: var(--dim);
  max-width: 52ch;
  margin: 0.8rem auto 0;
  font-size: 1.05rem;
}

/* Cable */
.cable {
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.55), transparent);
}
.cable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.channel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
}
.channel.a { border-top: 3px solid var(--cyan); }
.channel.b { border-top: 3px solid var(--magenta); }
.channel.mic { border-top: 3px solid #c4b5fd; }
.channel .tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}
.channel.a .tag { color: var(--cyan); }
.channel.b .tag { color: var(--magenta); }
.channel.mic .tag { color: #c4b5fd; }
.channel h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.channel p { margin: 0; color: var(--dim); font-size: 0.98rem; }
.cable-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 140px;
}
.cable-visual img {
  width: 132px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}
.cable-visual span {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  max-width: 16ch;
}
.amazon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* Features */
.features { }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feat {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.2rem;
}
.feat svg { width: 28px; height: 28px; margin-bottom: 0.7rem; display: block; }
.feat h3 { font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.feat p { margin: 0; color: var(--dim); font-size: 0.92rem; }

/* Screenshots */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.shot {
  margin: 0;
  cursor: zoom-in;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  font: inherit;
}
.shot img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}
.shot figcaption {
  color: var(--dim);
  font-size: 0.88rem;
  padding: 0.55rem 0.2rem 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer a { color: var(--dim); }
.legal { max-width: 62ch; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--elevated);
  color: var(--text);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  max-width: min(420px, calc(100% - 2rem));
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
  font-size: 0.92rem;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 960px) {
  .hero-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
  .cable-grid { grid-template-columns: 1fr; }
  .cable-visual { flex-direction: row; min-height: auto; padding: 0.4rem 0; }
  .hero-grid { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .hero-frame { order: -1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 14, 26, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.2rem;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .feat-grid, .shots-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { width: 100%; min-width: 0; }
  section { padding: 3rem 0; }
  .hero { padding-top: 1.8rem; }
}
