:root {
  color-scheme: dark;
  --bg: #07110f;
  --surface: #0d1b18;
  --surface-2: #122521;
  --text: #f3f8f6;
  --muted: #a9bbb6;
  --accent: #28d7ff;
  --accent-strong: #5ce6ff;
  --accent-dark: #159ed1;
  --border: rgba(92, 230, 255, 0.16);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 8%, rgba(40, 215, 255, 0.10), transparent 25rem),
    radial-gradient(circle at 10% 45%, rgba(40, 215, 255, 0.05), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; border-radius: 5px; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--accent); color: #03110e; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(7, 17, 15, .82); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font-weight: 850; letter-spacing: -.03em; font-size: 1.16rem; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; background: url("/assets/drumtrainer-icon.png") center / contain no-repeat; box-shadow: 0 0 22px rgba(40,215,255,.18); }
body[data-page="home"] .brand-mark {
  background-image: url("/assets/drumtrainer-icon-108.png");
  background-image: image-set(url("/assets/drumtrainer-icon-108.webp") type("image/webp"), url("/assets/drumtrainer-icon-108.png") type("image/png"));
}
.site-header .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; }
.nav-panel { display: flex; align-items: center; gap: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a, .nav-dropdown summary { padding: .55rem .68rem; color: var(--muted); text-decoration: none; border-radius: 10px; font-size: .91rem; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-dropdown summary:hover, .nav-dropdown[open] summary { color: var(--text); background: rgba(21,158,209,.14); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { display: flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "▾"; color: var(--accent); font-size: .72rem; }
.nav-dropdown-menu { position: absolute; top: calc(100% + .55rem); left: 0; z-index: 60; display: grid; min-width: 270px; padding: .45rem; border: 1px solid var(--border); border-radius: 14px; background: #0b1916; box-shadow: var(--shadow); }
.nav-dropdown-menu a { white-space: nowrap; }
.language-switch { display: inline-flex; align-items: center; gap: .15rem; padding: .25rem; border: 1px solid var(--border); border-radius: 999px; }
.language-switch button { border: 0; background: transparent; color: var(--muted); padding: .38rem .55rem; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--accent); color: #03110e; }
.menu-toggle { display: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }

main { min-height: 60vh; }
.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.eyebrow { margin: 0 0 1rem; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 850; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.4rem); }
.hero h1 span { display: block; margin-top: .35rem; color: var(--accent); font-size: clamp(1.55rem, 3.4vw, 2.8rem); font-weight: 650; letter-spacing: -.025em; }
.lead { max-width: 690px; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .74rem 1.15rem; border: 1px solid var(--border); border-radius: 13px; color: var(--text); background: var(--surface-2); text-decoration: none; font-weight: 780; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(92,230,255,.45); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #03110e; }
.button.primary:hover { color: #03110e; background: var(--accent-strong); }
.button.disabled { cursor: default; opacity: .86; }
.fine-print { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

.visual { position: relative; min-width: 0; display: grid; place-items: center; isolation: isolate; }
.visual::before { content: ""; position: absolute; z-index: -1; width: 88%; height: 78%; border-radius: 50%; background: rgba(40,215,255,.09); filter: blur(56px); }
.hero-picture { display: block; width: 100%; max-width: 620px; }
.hero-promo { display: block; width: 100%; height: auto; object-fit: contain; border: 1px solid rgba(92,230,255,.22); border-radius: 22px; box-shadow: 0 22px 65px rgba(0,0,0,.34), 0 0 38px rgba(40,215,255,.08); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-header { max-width: 740px; margin-bottom: 2.2rem; }
.section-header h2, .page-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.65rem); }
.section-header p { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(155deg, rgba(18,37,33,.82), rgba(10,24,21,.78)); box-shadow: 0 10px 38px rgba(0,0,0,.14); }
.feature-card.wide { grid-column: span 2; }
.feature-card h3 { margin: .9rem 0 .6rem; font-size: 1.35rem; }
.feature-card p { margin: 0; color: var(--muted); }
.icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(40,215,255,.12); color: var(--accent); font-weight: 900; }
.sequence { display: flex; align-items: flex-end; gap: .45rem; height: 45px; margin-top: 1.4rem; }
.sequence i { width: 10px; border-radius: 6px; background: var(--accent); opacity: .75; height: var(--h, 50%); }
.cta { overflow: hidden; position: relative; padding: clamp(2rem, 6vw, 4.5rem); border: 1px solid rgba(40,215,255,.22); border-radius: 30px; background: linear-gradient(120deg, rgba(40,215,255,.13), rgba(18,37,33,.8)); }
.cta::after { content: ""; position: absolute; right: -8rem; top: -10rem; width: 25rem; height: 25rem; border: 2.5rem solid rgba(40,215,255,.07); border-radius: 50%; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 2.2rem; }
.page-hero .lead { max-width: 780px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 4rem; align-items: start; padding-bottom: 6rem; }
.prose { min-width: 0; }
.prose section { padding: 1.4rem 0; border-top: 1px solid var(--border); }
.prose h2 { margin: .25rem 0 .65rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.prose h3 { margin: 1.15rem 0 .35rem; font-size: 1.1rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.side-nav { position: sticky; top: 100px; padding: 1.1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.side-nav strong { display: block; margin-bottom: .6rem; }
.side-nav a { display: block; padding: .35rem 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.side-nav a:hover { color: var(--accent-strong); }
.notice { padding: 1rem 1.15rem; border-left: 3px solid var(--accent); border-radius: 8px; background: rgba(40,215,255,.08); color: var(--text); }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.list-card { padding: 1.2rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.list-card h2, .list-card h3 { margin-top: 0; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-bottom: 5rem; }

.product-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.product-split.reverse { grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); }
.product-copy h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.product-copy h3 { margin: 1.5rem 0 .55rem; font-size: 1.25rem; }
.product-copy > p:not(.eyebrow), .product-copy li { color: var(--muted); }
.product-copy ul { padding-left: 1.25rem; }
.product-copy li + li { margin-top: .42rem; }
.screenshot-frame { width: min(100%, 390px); justify-self: center; padding: .55rem; border: 1px solid rgba(92,230,255,.22); border-radius: 28px; background: linear-gradient(160deg, rgba(18,37,33,.96), rgba(7,17,15,.96)); box-shadow: 0 24px 70px rgba(0,0,0,.36), 0 0 35px rgba(40,215,255,.06); }
.screenshot-frame img { display: block; width: 100%; height: auto; border-radius: 21px; }
.screenshot-frame figcaption { padding: .7rem .55rem .25rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.screenshot-gallery .screenshot-frame { width: 100%; }
.chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: chapters; }
.chapter-card { position: relative; min-height: 155px; padding: 1.35rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.chapter-card::before { counter-increment: chapters; content: counter(chapters, decimal-leading-zero); display: block; margin-bottom: .85rem; color: var(--accent); font-weight: 900; letter-spacing: .08em; }
.chapter-card h3 { margin: 0; font-size: 1.08rem; }
.steps { display: grid; gap: .8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .85rem; align-items: start; color: var(--muted); }
.steps li::before { counter-increment: steps; content: counter(steps); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(40,215,255,.12); color: var(--accent); font-weight: 900; }
.tag-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.tag { padding: .42rem .72rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: rgba(40,215,255,.07); font-size: .88rem; font-weight: 720; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.5rem; }
.stat { padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: rgba(7,17,15,.45); }
.stat strong { display: block; color: var(--accent); font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--border); background: rgba(5,13,11,.7); }
.footer-wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-block: 2.3rem; }
.footer-brand p { margin: .45rem 0 0; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem 1.1rem; align-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-links .footer-social { display: inline-flex; align-items: center; gap: .35rem; }
.footer-social svg { width: 17px; height: 17px; flex: 0 0 auto; }

body [lang="en"] { display: none !important; }
html[data-lang="en"] body [lang="pl"] { display: none !important; }
html[data-lang="en"] body [lang="en"] { display: revert !important; }
html[data-lang="pl"] body [lang="en"] { display: none !important; }
html[data-lang="pl"] body [lang="pl"] { display: revert !important; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-panel { display: none; position: absolute; left: 1rem; right: 1rem; top: 68px; padding: 1rem; flex-direction: column; align-items: stretch; border: 1px solid var(--border); border-radius: 16px; background: #0b1916; box-shadow: var(--shadow); }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: .7rem; }
  .nav-dropdown summary { padding: .7rem; }
  .nav-dropdown-menu { position: static; min-width: 0; margin: .25rem 0 0 .75rem; box-shadow: none; }
  .language-switch { align-self: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .visual { margin-top: .5rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.wide { grid-column: span 1; }
  .content-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .side-nav { display: none; }
  .product-split, .product-split.reverse { grid-template-columns: 1fr; }
  .product-split.reverse .screenshot-frame { order: 2; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .hero { padding-top: 3.8rem; }
  .feature-grid, .support-grid, .split-cards { grid-template-columns: 1fr; }
  .visual { margin-top: 0; }
  .hero-promo { width: 100%; border-radius: 16px; }
  .footer-wrap { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .button { width: 100%; }
  .chapter-grid, .screenshot-gallery, .stat-row { grid-template-columns: 1fr; }
  .screenshot-frame { width: min(100%, 340px); padding: .42rem; border-radius: 22px; }
  .screenshot-frame img { border-radius: 17px; }
}

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