/* QDirStat S02 Modern Dashboard theme — readable, editable, dependency-free */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --ink: #142038;
  --muted: #5b6982;
  --line: #dee5f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #06b6d4;
  --accent: #10b981;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow-sm: 0 8px 24px rgba(20, 32, 56, .07);
  --shadow-md: 0 20px 55px rgba(20, 32, 56, .11);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1140px;
  --header-h: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body { margin: 0; font-family: Poppins, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; position: relative; }
.section-soft { background: var(--surface-soft); border-block: 1px solid var(--line); }
.section-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
h1, h2, h3 { line-height: 1.2; margin-top: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.65rem); margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.1rem; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header-shell { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(222,229,240,.75); backdrop-filter: blur(14px); transition: box-shadow .2s ease; }
.site-header-shell.is-scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand img { width: 186px; }
.primary-nav { display: flex; align-items: center; gap: 25px; }
.nav-list { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav-link { color: #33415c; font-size: .93rem; font-weight: 650; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -11px; width: 0; height: 2px; background: var(--primary); transition: width .2s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 21px; border-radius: 13px; border: 1px solid transparent; font-weight: 750; line-height: 1.1; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #3b82f6); box-shadow: 0 12px 25px rgba(37,99,235,.2); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); box-shadow: 0 16px 30px rgba(37,99,235,.27); }
.btn-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-secondary:hover { color: var(--primary); border-color: #b9c9e6; box-shadow: var(--shadow-sm); }

/* Hero */
.hero { position: relative; min-height: 660px; display: flex; align-items: center; padding: 84px 0; overflow: hidden; isolation: isolate; background: #eef4ff; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: -30px; background: url("../images/hero-dashboard.webp") center / cover no-repeat; filter: blur(8px); transform: scale(1.08); opacity: .42; pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(249,252,255,.94), rgba(246,250,255,.82) 48%, rgba(237,246,255,.88)), radial-gradient(circle at 50% 20%, rgba(255,255,255,.58), transparent 46%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 900px); justify-content: center; align-items: center; }
.hero-copy { width: 100%; text-align: center; }
.hero-copy .eyebrow { justify-content: center; margin-bottom: 14px; }
.hero-copy h1 { max-width: 920px; margin-inline: auto; }
.hero-copy p { max-width: 760px; margin-inline: auto; font-size: 1.08rem; color: #40506b; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin: 28px 0; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 780px; margin: 30px auto 0; }
.trust-chip { padding: 14px; border: 1px solid rgba(190,205,228,.92); border-radius: 15px; background: rgba(255,255,255,.84); box-shadow: 0 10px 28px rgba(20,32,56,.06); backdrop-filter: blur(8px); }
.trust-chip strong { display: block; font-size: .93rem; }
.trust-chip span { color: var(--muted); font-size: .78rem; }

/* Dashboard modules */
.dashboard-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: stretch; }
.dashboard-panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.dashboard-panel { padding: 30px; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-kicker { color: var(--primary); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcff; }
.metric-card strong { display: block; font-size: 1.2rem; }
.metric-card span { color: var(--muted); font-size: .78rem; }
.about-visual { height: 100%; overflow: hidden; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.feature-bento { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.feature-card { grid-column: span 4; min-height: 190px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.feature-card.wide { grid-column: span 6; }
.feature-card .icon-box, .icon-box { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--primary),var(--secondary)); font-weight: 850; margin-bottom: 19px; }
.feature-card p { font-size: .94rem; }

.process-panel { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.process-step { position: relative; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: #fafcff; }
.process-step:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 50%; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; transform: translateY(-50%); background: var(--primary); color: #fff; border-radius: 50%; font-weight: 800; }
.step-number { color: var(--primary); font-size: .78rem; font-weight: 850; letter-spacing: .08em; }

.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.info-card ul, .check-list, .cross-list { padding-left: 20px; margin: 10px 0 0; color: var(--muted); }
.info-card li, .check-list li, .cross-list li { margin-bottom: 8px; }
.compatibility-board { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.platform-list { display: grid; gap: 12px; }
.platform-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.status { display: inline-flex; align-items: center; justify-content: center; min-width: 90px; padding: 6px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.status.good { color: #047857; background: #d1fae5; }.status.note { color: #92400e; background: #fef3c7; }
.side-note { padding: 28px; border-radius: var(--radius); background: linear-gradient(145deg,#1e3a8a,#2563eb); color: #fff; }
.side-note p { color: #dbeafe; }

.use-case-board { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.use-case { display: flex; gap: 17px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.use-case .icon-box { flex: 0 0 46px; margin: 0; }

.install-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.install-nav { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.install-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; }
.install-nav a:hover { color: var(--primary); background: #eff6ff; }
.code-stack { display: grid; gap: 17px; }
.code-card { overflow: hidden; border: 1px solid #28344e; border-radius: 18px; background: #111827; box-shadow: var(--shadow-sm); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #1f2937; color: #e5e7eb; }
.copy-button { border: 1px solid #475569; border-radius: 9px; padding: 6px 10px; color: #e5e7eb; background: #111827; font-size: .78rem; }
.copy-button.copied { color: #a7f3d0; border-color: #10b981; }
pre { overflow-x: auto; margin: 0; padding: 20px; color: #dbeafe; font: 500 .9rem/1.7 Consolas, Monaco, monospace; white-space: pre; }

.download-shell { overflow: hidden; display: grid; grid-template-columns: 1fr .92fr; gap: 38px; align-items: center; padding: 46px; border-radius: 32px; background: linear-gradient(135deg,#172554,#1d4ed8 66%,#0891b2); box-shadow: var(--shadow-md); }
.download-shell h2, .download-shell h3 { color: #fff; }.download-shell p { color: #dbeafe; }
.download-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px 0; }
.download-meta div { padding: 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: rgba(255,255,255,.08); }
.download-meta strong { display: block; color: #fff; font-size: .85rem; }.download-meta span { color: #bfdbfe; font-size: .76rem; }
.download-shell .btn-primary { background: #fff; color: #1d4ed8; box-shadow: none; }.download-shell .btn-primary:hover { color: #1e40af; background: #eff6ff; }
.download-image { padding: 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: rgba(255,255,255,.09); }
.download-image img { border-radius: 17px; }

.alert-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 26px; border: 1px solid #f4d18b; border-radius: 20px; background: #fffbeb; }
.alert-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #f59e0b; color: #fff; font-weight: 900; font-size: 1.3rem; }
.pros-cons { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.pros-box, .cons-box { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.pros-box { border-top: 4px solid var(--accent); }.cons-box { border-top: 4px solid var(--warning); }
.release-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.release-table th, .release-table td { padding: 17px 19px; text-align: left; border-bottom: 1px solid var(--line); }
.release-table th { width: 28%; color: var(--ink); background: #f4f7fb; }.release-table td { color: var(--muted); }
.trouble-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.trouble-card { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }

/* Blog */
.page-hero { padding: 64px 0 55px; background: radial-gradient(circle at 15% 0,rgba(37,99,235,.1),transparent 35%); }
.page-hero .container { max-width: 900px; text-align: center; }
.breadcrumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card .tag { color: var(--primary); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.blog-card h2, .blog-card h3 { font-size: 1.18rem; margin: 8px 0 10px; }
.blog-card p { font-size: .91rem; }
.text-link { font-weight: 800; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 30px; align-items: start; }
.article-card { padding: clamp(24px,4vw,48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.article-card .feature-image { margin: 0 0 34px; border-radius: 20px; }
.article-card h2 { margin-top: 42px; font-size: 1.8rem; }
.article-card h3 { margin-top: 28px; }
.article-card ul, .article-card ol { color: var(--muted); padding-left: 24px; }
.article-card li { margin-bottom: 9px; }
.article-card .note { padding: 18px 20px; border-left: 4px solid var(--primary); border-radius: 8px 14px 14px 8px; background: #eff6ff; color: #33415c; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: -8px 0 28px; color: var(--muted); font-size: .83rem; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.sidebar-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.sidebar-card h2, .sidebar-card h3 { font-size: 1.05rem; }
.sidebar-card a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: #42506a; font-size: .9rem; }
.sidebar-card a:last-child { border-bottom: 0; }
.related-guides { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.related-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.related-links a { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafcff; font-weight: 700; }

/* Legal/supporting pages */
.content-page { max-width: 900px; }
.content-panel { padding: clamp(26px,5vw,52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.content-panel h2 { font-size: 1.65rem; margin-top: 34px; }.content-panel h2:first-child { margin-top: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 24px; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fafcff; }
.email-plain { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #eef4ff; color: var(--ink); font-weight: 750; }

/* FAQ — dashboard tabs + compact accordion */
.faq-shell { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-tabs { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 22px; }
.faq-tab { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; color: var(--muted); font-weight: 800; }
.faq-tab.active { color: #fff; background: linear-gradient(135deg,var(--primary),var(--secondary)); border-color: transparent; }
.faq-category { display: none; grid-template-columns: repeat(2,1fr); gap: 12px; }
.faq-category.active { display: grid; }
.faq-item { border: 1px solid var(--line); border-radius: 15px; background: #fbfcff; overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px 18px; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 750; }
.faq-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #e8efff; color: var(--primary); transition: transform .2s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-answer { display: none; padding: 0 18px 18px; }
.faq-answer p { margin: 0; font-size: .92rem; }
.faq-question[aria-expanded="true"] + .faq-answer { display: block; }

/* Footer */
.site-footer-shell { margin-top: 0; padding: 60px 0 0; color: #cbd5e1; background: #111827; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr .8fr; gap: 46px; padding-bottom: 42px; }
.footer-brand > a { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 14px; background: #ffffff; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.footer-brand img { display: block; width: 190px; height: auto; filter: none; }
.footer-brand p { max-width: 430px; color: #94a3b8; margin-top: 18px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }.footer-links a { color: #cbd5e1; }.footer-links a:hover { color: #fff; }
.footer-email { margin-top: 16px; color: #fff; font-weight: 700; }
.footer-bottom { padding: 19px 0; border-top: 1px solid #263247; color: #94a3b8; font-size: .88rem; text-align: center; }
.footer-bottom a { color: #dbeafe; }
.footer-disclaimer { margin: 8px auto 0; color: #8290a7; font-size: .8rem; text-align: center; }
.scroll-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--primary); color: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .2s; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.reveal { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: flex; }
  .primary-nav { position: fixed; inset: var(--header-h) 18px auto; display: none; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); }
  .primary-nav.open { display: block; }
  .nav-list { align-items: stretch; flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 11px 12px; border-radius: 9px; }
  .nav-link::after { display: none; }
  .primary-nav .btn { width: 100%; margin-top: 10px; }
  .hero-grid, .dashboard-grid, .compatibility-board, .install-layout, .download-shell, .article-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .feature-card { grid-column: span 6; }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(2)::after { display: none; }
  .info-grid, .blog-grid { grid-template-columns: repeat(2,1fr); }
  .install-nav, .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 66px 0; }
  .hero { min-height: 620px; padding: 62px 0; }
  .trust-row, .metric-row, .info-grid, .use-case-board, .pros-cons, .trouble-grid, .blog-grid, .contact-cards, .footer-grid, .faq-category.active, .related-links { grid-template-columns: 1fr; }
  .feature-card, .feature-card.wide { grid-column: span 12; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -23px; transform: translateX(50%); }
  .process-step:nth-child(2)::after { display: grid; }
  .platform-row { grid-template-columns: 1fr; gap: 7px; }
  .download-shell { padding: 28px 22px; }
  .download-meta { grid-template-columns: 1fr; }
  .faq-shell { padding: 16px; }.faq-tabs { grid-template-columns: 1fr; }
  .article-card { padding: 22px 18px; }
  .footer-brand { grid-column: auto; }
  .hero-actions .btn { width: 100%; }
  .release-table, .release-table tbody, .release-table tr, .release-table th, .release-table td { display: block; width: 100%; }
  .release-table th { border-bottom: 0; padding-bottom: 5px; }.release-table td { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
