/* LumaFin — getlumafin.com
   Brand: the logo's violet → blue → cyan gradient on near-black. */

:root {
  --bg: #07070c;
  --bg-raised: #10101a;
  --bg-card: #141420;
  --line: #24243a;
  --text: #ecebf5;
  --text-dim: #a3a2b8;
  --violet: #9b5cff;
  --blue: #4f6bff;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--blue) 50%, var(--cyan) 100%);
  --radius: 16px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }

code, kbd, pre { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; background: var(--bg-raised); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 0.35em; }
pre { background: #0b0b13; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 12px 0; }
pre code { background: none; border: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 7, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.nav__brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 560px) {
  .nav__links { gap: 14px; }
  .nav__links li:nth-child(3) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px rgba(79, 107, 255, 0.35); }
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 32px rgba(79, 107, 255, 0.5); }
.btn--ghost { color: var(--text); border: 1px solid var(--line); background: var(--bg-raised); }
.btn--ghost:hover { color: var(--text); background: var(--bg-card); }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 24px; text-align: center;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(155, 92, 255, 0.22), transparent 70%),
    radial-gradient(50% 45% at 85% 20%, rgba(34, 211, 238, 0.16), transparent 70%);
}
.hero--full { min-height: 100vh; display: grid; place-items: center; }
.hero__wordmark { width: min(360px, 80%); margin: 0 auto 20px; mix-blend-mode: screen; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 800; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.lede { color: var(--text-dim); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 62ch; margin: 18px auto 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.tv { margin: 48px auto 0; max-width: 980px; }
.tv__screen {
  padding: 10px; border-radius: 18px;
  background: linear-gradient(#1b1b28, #0d0d15);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(79, 107, 255, 0.18);
}
.tv__screen img { border-radius: 10px; width: 100%; }
.tv__stand { width: 28%; height: 10px; margin: 0 auto; border-radius: 0 0 12px 12px; background: linear-gradient(#1b1b28, #0d0d15); border: 1px solid var(--line); border-top: 0; }

/* Sections */
.section { padding: 72px 0; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-align: center; }
.section__lede { color: var(--text-dim); text-align: center; max-width: 60ch; margin: 12px auto 36px; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.dl {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.dl__head { display: flex; align-items: center; gap: 14px; }
.dl__icon { width: 44px; height: 44px; flex: none; padding: 9px; border-radius: 12px; fill: #fff; background: var(--grad); }
.dl h3 { font-size: 1.25rem; }
.dl__devices { margin: 2px 0 0; color: var(--text-dim); font-size: 0.92rem; }
.dl__meta { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.dl__meta [data-field="version"] { color: var(--text); font-weight: 600; }
.dl__links { display: flex; gap: 18px; margin: 0; font-size: 0.93rem; }

/* Features */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature {
  position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 26px;
}
.feature::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--grad); }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.97rem; }

/* Screenshots */
.section--shots { padding-top: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); }
.shots figcaption { color: var(--text-dim); font-size: 0.92rem; margin-top: 10px; text-align: center; }

/* Install guides */
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.guide { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 80px; }
.guide h3 { font-size: 1.2rem; }
.guide__tag { color: var(--text-dim); font-size: 0.93rem; margin: 6px 0 14px; }
.guide ol { padding-left: 1.3em; margin: 0; }
.guide li { margin: 0 0 10px; }
.guide li::marker { color: var(--cyan); font-weight: 700; }
.guide__note { color: var(--text-dim); font-size: 0.92rem; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.guide details { margin-top: 12px; }
.guide summary { cursor: pointer; color: var(--cyan); font-weight: 600; }
.guide details[open] summary { margin-bottom: 10px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--cyan); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--text-dim); margin: 0 0 16px; }

/* Support */
.support {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px; border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(155, 92, 255, 0.18), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--bg-card);
}
.support h2 { font-size: 1.5rem; }
.support p { color: var(--text-dim); margin: 8px 0 0; max-width: 56ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__fine { color: var(--text-dim); font-size: 0.85rem; max-width: 52ch; margin: 12px 0 0; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.93rem; }
.footer__links a { color: var(--text-dim); }
.footer__links a:hover { color: var(--text); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .dl, .guide { padding: 20px; }
  .support { padding: 24px; }
}
