/* MeowTunes for Discord — landing page
   Shares the SciDev design language: abyss-navy ground, glass panels with a
   cyan rim-light, Vazirmatn + JetBrains Mono. MeowTunes' purple appears only
   as a secondary accent so the page reads as a SciDev product page. */

:root {
  --bg-abyss: #060d1a;
  --bg-navy: #0a1a2f;
  --surface: rgba(13, 27, 42, 0.55);
  --surface-strong: rgba(11, 22, 37, 0.82);
  --glass-border: rgba(120, 180, 220, 0.18);

  --accent-cyan: #22d3ee;
  --accent-bright: #00e5ff;
  --accent-deep: #0e7490;
  --accent-violet: #7c5cff;

  --text: #e8eef5;
  --text-muted: #a0b4c9;
  --text-dim: #8398b1;

  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-sans: "Vazirmatn", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-deep: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 760px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.9;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(14, 116, 144, 0.2), transparent 60%),
    radial-gradient(900px 600px at 85% 110%, rgba(124, 92, 255, 0.1), transparent 55%),
    var(--bg-abyss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}
a:hover {
  color: var(--accent-bright);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.12em 0.5em;
  direction: ltr;
  display: inline-block;
}

.muted {
  color: var(--text-dim);
}

/* ---------------- shared glass panel ---------------- */

.panel {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Cyan rim-light, same trick the main site uses on its boot panel */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(34, 211, 238, 0.5),
    transparent 40%,
    transparent 70%,
    rgba(34, 211, 238, 0.24)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------------- header ---------------- */

.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand__logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.brand__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  font-size: 14px;
}
.brand:hover .brand__mark {
  color: var(--accent-cyan);
}

.ghost-link {
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------------- hero ---------------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 90px;
}

.hero {
  padding: 54px 0 20px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
  padding: 5px 13px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 99px;
  background: rgba(34, 211, 238, 0.06);
}

.hero__title {
  font-size: clamp(29px, 5.6vw, 44px);
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 18px;
}

.accent {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 32px;
  font-size: 15.5px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.16s var(--ease-out), box-shadow 0.24s var(--ease-out),
    border-color 0.24s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(100deg, var(--accent-deep), var(--accent-violet));
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(124, 92, 255, 0.95), var(--glow-cyan);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 16px 36px -14px rgba(124, 92, 255, 1), 0 0 30px rgba(34, 211, 238, 0.45);
}

.btn--ghost {
  border-color: var(--glass-border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--text);
}

.btn--download {
  width: 100%;
  max-width: 330px;
  padding: 15px 26px;
}

.btn__sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  opacity: 0.78;
  margin-top: 3px;
}

/* ---------------- discord card preview ---------------- */

.preview {
  margin: 0 auto;
  max-width: 340px;
  background: #232538;
  border: 1px solid #2f3350;
  border-radius: var(--radius-sm);
  padding: 15px;
  box-shadow: var(--shadow-deep);
  /* Discord renders this card left-to-right whatever the page language is,
     so the mock opts out of RTL or it comes out mirrored. */
  direction: ltr;
  text-align: left;
}

.preview__label {
  font-size: 11px;
  font-weight: 700;
  color: #b9c0d4;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.preview__body {
  display: flex;
  gap: 13px;
  align-items: center;
}

.preview__art {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  flex: none;
  background: linear-gradient(140deg, var(--accent-violet), #c458d6);
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
}

.preview__meta {
  min-width: 0;
  flex: 1;
}

.preview__track,
.preview__artist {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview__track {
  font-size: 14px;
  line-height: 1.4;
}
.preview__artist {
  font-size: 12.5px;
  color: #b9c0d4;
  line-height: 1.4;
}

.preview__bar {
  height: 4px;
  border-radius: 99px;
  background: #43485f;
  margin: 9px 0 4px;
  overflow: hidden;
}
/* Kept in the stylesheet rather than a style attribute so the page can ship
   under a CSP without 'unsafe-inline'. */
.preview__fill {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 99px;
  background: #fff;
}

.preview__times {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #9aa2ba;
  font-family: var(--font-mono);
}

.preview__buttons {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
.preview__btn {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  padding: 8px 6px;
  border-radius: 7px;
  background: #4a4d68;
  color: #e5e8f2;
}

/* ---------------- sections ---------------- */

.section-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 26px;
  text-align: center;
}

.install,
.how,
.faq {
  padding-top: 72px;
}

/* ---------------- steps ---------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.step {
  padding: 26px;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.step__head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.step__num {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--bg-abyss);
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.step__text {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 14.5px;
}

.step__note {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 15px 0 0;
  padding-inline-start: 13px;
  border-inline-start: 2px solid rgba(34, 211, 238, 0.3);
}

/* ---------------- browser detection block ---------------- */

.browser__detected {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 15px;
}
#browserName {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
}

.manual {
  background: rgba(6, 13, 26, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 15px;
}
.manual ol {
  margin: 0;
  padding-inline-start: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.manual li {
  margin-bottom: 8px;
}
.manual li:last-child {
  margin-bottom: 0;
}
.manual strong {
  color: var(--text);
}

.browser__other {
  margin-top: 20px;
  border-top: 1px solid var(--glass-border);
  padding-top: 15px;
}
.browser__other summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dim);
}
.browser__other summary:hover {
  color: var(--text-muted);
}

.browser__all {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.mini-card {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: border-color 0.2s var(--ease-out);
}
.mini-card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--text);
}
.mini-card strong {
  display: block;
  font-size: 14px;
}
.mini-card span {
  font-size: 12px;
  color: var(--text-dim);
}
.mini-card[hidden] {
  display: none;
}

.install__done {
  text-align: center;
  margin: 34px 0 0;
  font-size: 15px;
}

/* ---------------- how it works ---------------- */

.chain {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.chain__node {
  flex: 1 1 140px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.chain__node strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.chain__node span {
  font-size: 12px;
  color: var(--text-dim);
}

.chain__arrow {
  align-self: center;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-deep), transparent);
  flex: none;
}

.how__note {
  color: var(--text-muted);
  font-size: 14px;
  margin: 24px 0 0;
  text-align: center;
}
.how__note strong {
  color: var(--text);
}

/* ---------------- faq ---------------- */

.faq__item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.015);
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
}
.faq__item summary::marker {
  color: var(--accent-cyan);
}
.faq__item p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 12px 0 0;
}

/* ---------------- legal pages ---------------- */

.legal {
  padding-top: 46px;
}

.legal__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}

.legal__updated {
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font-mono);
  margin: 0 0 28px;
}

.legal__tldr {
  border-radius: var(--radius-sm);
  padding: 17px 19px;
  font-size: 14.5px;
  margin-bottom: 36px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.legal__tldr strong {
  color: var(--accent-cyan);
}

.legal h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 14.5px;
}
.legal strong {
  color: var(--text);
}

.legal ul {
  padding-inline-start: 22px;
}
.legal li {
  margin-bottom: 7px;
}

.legal__rule {
  border: 0;
  border-top: 1px solid var(--glass-border);
  margin: 48px 0 34px;
}

.legal__en {
  text-align: left;
}
.legal__en ul {
  padding-left: 22px;
  padding-right: 0;
}

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 28px 22px 44px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer p {
  margin: 0 0 6px;
}

/* ---------------- small screens ---------------- */

@media (max-width: 560px) {
  .hero {
    padding-top: 36px;
  }
  .step {
    padding: 21px 17px;
  }
  .chain__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
}
