:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --panel: #151518;
  --panel-2: #1c1c20;
  --text: #f5f4f2;
  --muted: #aaa8a3;
  --line: rgba(255,255,255,.1);
  --red: #ff3b35;
  --red-dark: #d92620;
  --blue: #3ea6ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 20; background: white; color: black; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover, footer a:hover { color: var(--text); }
.nav-github { color: var(--text); }

.hero { width: min(var(--max), calc(100% - 40px)); min-height: 720px; margin: 0 auto; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 72px; padding: 88px 0 110px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 750; }
.eyebrow span { width: 22px; height: 2px; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(52px, 6vw, 82px); line-height: .98; letter-spacing: -.065em; margin: 22px 0 30px; }
h1 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 600px; color: #c5c3be; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; border: 1px solid transparent; border-radius: 9px; padding: 0 20px; font-weight: 750; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: white; box-shadow: 0 10px 35px rgba(255,59,53,.18); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.03); }
.button-secondary:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.trust-list { display: flex; flex-wrap: wrap; gap: 24px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 13px; }
.trust-list li::before { content: "✓"; color: #68d391; margin-right: 7px; }

.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,59,53,.14); filter: blur(90px); top: 5%; left: 10%; }
.browser-card { position: relative; z-index: 1; background: #18181b; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.48); overflow: hidden; padding-bottom: 22px; transform: perspective(1300px) rotateY(-4deg) rotateX(2deg); }
.browser-bar { height: 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 15px; color: #777; font-size: 11px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #48484d; }
.browser-bar span { margin-left: 10px; }
.playlist-title { display: flex; flex-direction: column; padding: 22px 24px 14px; }
.playlist-title strong { font-size: 19px; }
.playlist-title small { color: var(--muted); }
.video-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 11px 24px; border-top: 1px solid rgba(255,255,255,.055); }
.video-row .thumb { height: 52px; display: flex; align-items: flex-end; padding: 5px; border-radius: 5px; background: linear-gradient(135deg,#393941,#242429); box-shadow: inset 0 -4px var(--red); }
.video-row.partial .thumb { box-shadow: inset 0 -4px var(--blue); }
.video-row .thumb b { font-size: 10px; }
.video-row div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.video-row span { color: var(--muted); font-size: 12px; }
.video-row mark { background: transparent; color: #77da92; font-size: 12px; }
.video-row.partial mark { color: var(--blue); }
.video-row.fading { opacity: .4; }
.progress-card { width: calc(100% - 48px); margin: 16px auto 0; border: 1px solid var(--line); border-radius: 10px; background: #222226; padding: 13px 15px; }
.progress-card div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.progress-card span { color: var(--muted); }
.progress-track { height: 5px; background: #37373d; border-radius: 3px; margin-top: 11px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 48%; background: var(--blue); border-radius: 3px; }

.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); width: 100%; }
.proof-strip div { padding: 27px 20px; display: flex; align-items: baseline; justify-content: center; gap: 9px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border: 0; }
.proof-strip strong { font-size: 22px; }
.proof-strip span { color: var(--muted); font-size: 13px; }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 130px 0; }
.section-heading { max-width: 690px; }
.section-heading.centered { margin: 0 auto 50px; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 22px; }
.section-heading > p:last-child, .feature p, .support p { color: var(--muted); font-size: 17px; }
.demo-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.demo-frame { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.demo-frame video { width: 100%; display: block; border-radius: 10px; }
.steps { border-top: 1px solid var(--line); }
.step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step-grid article, .feature { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 30px; }
.step-grid b { color: var(--red); font-size: 13px; }
.step-grid h3, .feature h3 { font-size: 21px; margin: 24px 0 10px; }
.step-grid p, .feature p { color: var(--muted); margin: 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 0; }
.feature-wide { grid-column: 1/-1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 60px; padding: 48px; }
.feature-wide h2 { font-size: clamp(34px,4vw,52px); }
.mini-progress { padding: 20px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.mini-progress span, .mini-progress small { color: var(--muted); }
.mini-progress i { height: 6px; border-radius: 3px; background: linear-gradient(90deg,var(--blue) 60%,#38383e 60%); margin: 14px 0 8px; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--red); border: 1px solid rgba(255,59,53,.3); border-radius: 10px; font-size: 21px; }
.privacy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-list p { display: flex; flex-direction: column; padding: 20px 0; margin: 0; border-bottom: 1px solid var(--line); }
.privacy-list p:last-child { border: 0; }
.privacy-list span { color: var(--muted); }
.faq-list { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--red); font-size: 22px; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); max-width: 680px; margin: 14px 0 0; }
.support { padding: 60px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg,#18181b,#111114); display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.support > div:first-child { max-width: 680px; }
.support h2 { font-size: clamp(34px,4vw,50px); }
.support-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.coffee { background: #ffdd00; color: #111; }
.final-cta { text-align: center; padding: 150px 20px; background: radial-gradient(circle at center,rgba(255,59,53,.13),transparent 44%); }
.final-cta img { border-radius: 16px; }
.final-cta h2 { margin: 25px auto 10px; }
.final-cta p { color: var(--muted); margin-bottom: 28px; }
.other-project { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 70px; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.other-project > div { display: flex; align-items: center; gap: 14px; }
.other-project img { border-radius: 10px; }
.other-project span { display: flex; flex-direction: column; }
.other-project small { color: var(--muted); }
.other-project strong { color: var(--text); }
.other-project .button { min-height: 42px; }
footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 0 0 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 13px; }
footer div:last-child { display: flex; gap: 20px; }

.language-link { min-width: 34px; text-align: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: white; font-size: 20px; font-weight: 850; }
.brand-mark.small { width: 32px; height: 32px; font-size: 17px; }
.collection-hero { width: min(var(--max), calc(100% - 40px)); min-height: 690px; margin: 0 auto; position: relative; display: grid; grid-template-columns: 1fr 380px; align-items: center; gap: 60px; border-bottom: 1px solid var(--line); overflow: hidden; }
.collection-hero h1 { max-width: 820px; font-size: clamp(64px, 9vw, 112px); margin-bottom: 28px; }
.collection-hero > div:first-child > p:not(.eyebrow) { max-width: 660px; color: var(--muted); font-size: 20px; }
.collection-hero .button { margin-top: 18px; }
.collection-orbit { position: relative; width: 330px; height: 330px; border: 1px solid var(--line); border-radius: 50%; opacity: .75; }
.collection-orbit::before, .collection-orbit::after { content: ""; position: absolute; inset: 15%; border: 1px solid var(--line); border-radius: 50%; }
.collection-orbit::after { inset: 34%; background: rgba(255,59,53,.08); }
.collection-orbit b { position: absolute; inset: 34%; display: grid; place-items: center; z-index: 2; font-size: 64px; color: var(--red); }
.collection-orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 25px currentColor; }
.collection-orbit i:nth-child(1) { top: 10%; left: 28%; }.collection-orbit i:nth-child(2) { right: 5%; top: 48%; color: var(--blue); background: var(--blue); }.collection-orbit i:nth-child(3) { bottom: 12%; left: 20%; color: #ffdd00; background: #ffdd00; }
.tools-section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 130px 0; }
.tools-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 55px; }.tools-heading h2 { margin-bottom: 0; }.tools-heading > p { color: var(--muted); font-size: 17px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; min-height: 620px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }.product-card-top img { border-radius: 13px; }
.product-preview { height: 240px; margin: 30px -32px 32px; padding: 24px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #111114; }.product-preview > div { display: flex; flex-direction: column; margin-bottom: 20px; }.product-preview small { color: var(--muted); }
.youtube-preview p { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }.youtube-preview i { padding-bottom: 3px; border-bottom: 3px solid var(--red); font-style: normal; font-size: 11px; }.youtube-preview i.blue { border-color: var(--blue); }.youtube-preview mark { color: #77da92; background: none; font-size: 12px; }.youtube-preview mark.keep { color: var(--blue); }
.finance-preview { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }.finance-preview code { width: 70%; padding: 10px; border-radius: 6px; background: #202026; color: #c7e8ff; }.finance-preview > i { position: absolute; width: 240px; height: 120px; right: -20px; bottom: 10px; border-bottom: 3px solid var(--blue); border-radius: 50%; transform: rotate(-12deg); }
.product-copy { display: flex; flex-direction: column; flex: 1; }.product-copy h3 { font-size: 30px; line-height: 1.15; letter-spacing: -.035em; margin: 0 0 14px; }.product-copy p { color: var(--muted); }.product-copy ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 28px; }.product-copy li { border: 1px solid var(--line); border-radius: 20px; padding: 5px 10px; color: var(--muted); font-size: 12px; }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }.card-link span { color: var(--red); font-size: 22px; }
.future-product { grid-column: 1/-1; min-height: 310px; display: grid; grid-template-columns: 180px 1fr; gap: 50px; align-items: center; }.future-symbol { width: 150px; height: 150px; display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; color: var(--muted); font-size: 60px; }.coming-soon { color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.principles { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 130px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; border-top: 1px solid var(--line); }.principle-grid article { padding: 24px 0; border-bottom: 1px solid var(--line); }.principle-grid b { color: var(--red); font-size: 12px; }.principle-grid h3 { margin: 7px 0; font-size: 21px; }.principle-grid p { margin: 0; color: var(--muted); }.collection-support { margin-bottom: 130px; }

.onvista-page { --red: #3ea6ff; --red-dark: #2088dc; }
.onvista-visual::before { background: rgba(62,166,255,.13); }
.data-card { position: relative; z-index: 1; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #17171a; box-shadow: 0 30px 80px rgba(0,0,0,.48); transform: perspective(1300px) rotateY(-4deg) rotateX(2deg); }
.data-card-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.data-card-head i { color: #77da92; font-style: normal; }
.chart { height: 190px; margin: 22px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; position: relative; overflow: hidden; background: repeating-linear-gradient(to bottom,transparent 0,transparent 37px,rgba(255,255,255,.05) 38px); }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart polyline { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(62,166,255,.35)); }
.url-dialog { display: flex; flex-direction: column; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #222226; }
.url-dialog small { color: var(--blue); text-transform: uppercase; letter-spacing: .12em; }
.url-dialog label { display: grid; grid-template-columns: 95px 1fr; align-items: center; color: var(--muted); font-size: 12px; }
.url-dialog code, .code-sample code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c7e8ff; background: #151519; padding: 7px 9px; border-radius: 5px; }
.url-dialog button { justify-self: end; align-self: end; background: var(--blue); color: #07131d; border: 0; border-radius: 7px; padding: 8px 12px; font-weight: 700; }
.code-sample { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.code-sample small { color: var(--muted); }

@media (max-width: 900px) {
  nav a:not(.nav-github):not(.nav-home):not(.language-link) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .trust-list { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 680px; margin: 0 auto; width: 100%; }
  .demo-section, .privacy { grid-template-columns: 1fr; gap: 45px; }
  .feature-wide { grid-template-columns: 1fr; gap: 25px; }
  .support { align-items: flex-start; flex-direction: column; }
  .support-actions { flex-direction: row; flex-wrap: wrap; }
  .collection-hero { grid-template-columns: 1fr; padding: 80px 0; }.collection-orbit { position: absolute; opacity: .18; right: -100px; }
  .tools-heading, .principles { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 640px) {
  .site-header { height: 70px; }
  .brand span { font-size: 14px; }
  h1 { font-size: 48px; }
  .hero { gap: 48px; padding: 64px 0 80px; }
  .browser-card { transform: none; }
  .data-card { transform: none; }
  .video-row { grid-template-columns: 68px 1fr auto; padding: 10px 14px; }
  .video-row .thumb { height: 42px; }
  .progress-card { width: calc(100% - 28px); }
  .progress-card div:first-child { flex-direction: column; gap: 2px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div { flex-direction: column; align-items: center; gap: 0; }
  .section { padding: 90px 0; }
  .step-grid, .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; padding: 30px; }
  .support { width: calc(100% - 40px); padding: 30px; }
  .support-actions { width: 100%; }
  .support-actions .button { width: 100%; }
  .other-project, footer { flex-direction: column; text-align: center; align-items: center; }
  .collection-hero h1 { font-size: 60px; }.product-grid { grid-template-columns: 1fr; }.future-product { grid-column: auto; grid-template-columns: 1fr; }.future-symbol { width: 100px; height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
