/* Double Digit — shared styles (v2)
   Layout idea: calm, airy single column; one warm glow behind a large tight headline,
   services as two contrasting cards, everything else quiet. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --ink: #0c0e13;
  --muted: #5d6470;
  --line: #e2e3de;
  --accent: #ff4d1c;
  --accent-2: #ffb23e;
  --accent-ink: #ffffff;
  --inv-bg: #0c0e13;
  --inv-ink: #f4f4f1;
  --inv-muted: #a3a9b4;
  --inv-line: #262a33;
  --hero-bg: #0c0e13; --hero-ink: #f4f4f1; --hero-muted: #a9afba; --hero-line: rgba(255,255,255,.1);
  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --r: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c10; --surface: #14161c; --ink: #f2f3f0; --muted: #9aa1ac; --line: #262a33;
    --accent: #ff6a3d; --accent-2: #ffb23e; --accent-ink: #0c0e13;
    --inv-bg: #f2f3f0; --inv-ink: #0c0e13; --inv-muted: #5d6470; --inv-line: #d9dad5;
    --hero-bg: #15171d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c10; --surface: #14161c; --ink: #f2f3f0; --muted: #9aa1ac; --line: #262a33;
  --accent: #ff6a3d; --accent-2: #ffb23e; --accent-ink: #0c0e13;
  --inv-bg: #f2f3f0; --inv-ink: #0c0e13; --inv-muted: #5d6470; --inv-line: #d9dad5;
    --hero-bg: #15171d;
  color-scheme: dark;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -.03em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono { font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: inherit; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lang button { font: 600 12px/1 var(--font); letter-spacing: .04em; padding: 7px 10px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* hero */
.hero { padding: 12px 12px 0; }
.hero-panel { position: relative; overflow: hidden; max-width: 1400px; margin: 0 auto; border-radius: 32px; background: var(--hero-bg); color: var(--hero-ink); padding: clamp(26px, 5vw, 72px); }
.hero-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 75% 20%, #000 5%, transparent 68%); mask-image: radial-gradient(ellipse at 75% 20%, #000 5%, transparent 68%); }
.glow { position: absolute; right: -14%; top: -40%; width: min(900px, 90vw); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle at 35% 40%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 58%),
              radial-gradient(circle at 68% 62%, color-mix(in srgb, var(--accent-2) 60%, transparent), transparent 58%);
  filter: blur(70px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--hero-line); font-size: 13px; font-weight: 500; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 5.7vw, 82px); line-height: 1; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.thesis { margin-top: 24px; max-width: 50ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--hero-muted); }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn.light { background: #fff; color: #0c0e13; }
.btn.light:hover { background: var(--accent); color: #fff; }
.btn.outline { border-color: rgba(255,255,255,.28); color: var(--hero-ink); }
.btn.outline:hover { border-color: #fff; color: #fff; }
.stats { position: relative; margin: clamp(36px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--hero-line); }
.stats div { padding: 22px 0 0; }
.stats dt { font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { margin: 10px 0 0; color: var(--hero-muted); font-size: 15px; line-height: 1.4; }

.viz { display: grid; }
.glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; padding: 20px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.viz-chart { margin-left: 8%; }
.viz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--hero-muted); }
.pill-accent { background: var(--accent); color: #fff; padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.viz-chart svg { display: block; width: 100%; height: auto; margin-top: 14px; }
.viz-chart .ln { stroke-dasharray: 420; animation: draw 1.6s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.mk { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mk span { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,.09); }
.viz-chat { margin: -18px 12% 0 0; background: #1c1f27; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: 13px; }
.viz-chat p { font-size: 15px; line-height: 1.45; }
.viz-chat small, .eg { display: block; margin-top: 6px; font-size: 12px; color: var(--hero-muted); }

.band { overflow: hidden; padding: 22px 0; }
.track { display: flex; gap: 10px; width: max-content; animation: marquee 45s linear infinite; }
.track .it { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; white-space: nowrap; }
.track .it::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
section.block { padding: clamp(48px, 7vw, 96px) 0; }
.eyebrow { color: var(--accent); }
.sec-title { margin-top: 12px; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.04em; max-width: 18ch; }
.sec-lede { margin-top: 16px; max-width: 58ch; color: var(--muted); font-size: 18px; }

.cards { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); }
.card.inv { background: var(--inv-bg); color: var(--inv-ink); border-color: var(--inv-bg); }
.card h3 { margin-top: 14px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; }
.card .lede { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.card.inv .lede, .card.inv li p { color: var(--inv-muted); }
.card ul { list-style: none; margin: 28px 0 0; padding: 0; }
.card li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.card.inv li { border-color: var(--inv-line); }
.card li .n { color: var(--accent); font-size: 13px; font-weight: 600; padding-top: 3px; font-variant-numeric: tabular-nums; }
.card li strong { display: block; font-weight: 600; letter-spacing: -.01em; }
.card li p { margin-top: 4px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.tag { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid currentColor; opacity: .75; }

.product { margin-top: 20px; position: relative; overflow: hidden; border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), color-mix(in srgb, var(--accent-2) 16%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.product h3 { margin-top: 14px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; }
.product .status { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.product .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.product p.txt { max-width: 56ch; }
.product .more { display: inline-block; margin-top: 14px; font-weight: 500; }

.steps { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.step .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { margin: 20px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 16px; }

.about { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about .bio p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; letter-spacing: -.01em; }
.about .bio p + p { margin-top: 18px; color: var(--muted); }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 26px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 500; font-size: 16px; }

.cta { position: relative; overflow: hidden; border-radius: calc(var(--r) + 8px); background: var(--hero-bg); color: var(--hero-ink); padding: clamp(28px, 6vw, 80px); }
.cta .glow { right: -20%; top: -60%; opacity: .55; }
.cta > :not(.glow) { position: relative; }
.cta h2 { font-size: clamp(36px, 5.6vw, 76px); line-height: 1; letter-spacing: -.045em; max-width: 14ch; }
.cta p { margin-top: 18px; color: var(--hero-muted); max-width: 46ch; font-size: 18px; }
.cta .mail { display: inline-block; margin-top: 30px; font-size: clamp(20px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.03em; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; overflow-wrap: anywhere; }
.cta .mail:hover { color: var(--accent); }
.cta .row { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; color: var(--hero-muted); font-size: 15px; }
.cta .row a:not(.btn) { color: var(--hero-ink); }

/* footer */
.foot { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; gap: 28px; justify-content: space-between; flex-wrap: wrap; }
.foot address { font-style: normal; line-height: 1.7; }
.foot strong { color: var(--ink); font-weight: 600; }

/* document page (privacy policy) */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.doc h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.045em; }
.doc .meta { margin-top: 16px; color: var(--muted); }
.doc-body { max-width: 68ch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 48px); }
.doc-body h2 { font-size: 21px; letter-spacing: -.02em; margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.doc-body h2 .mono { color: var(--accent); }
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body p, .doc-body ul { margin: 0 0 12px; }
.doc-body ul { padding-left: 20px; }
.doc-body li { margin-bottom: 6px; }
.toc { position: sticky; top: 96px; align-self: start; margin-top: 24px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 0; text-decoration: none; font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--ink); }

/* v3 additions */
.card-top { display: flex; justify-content: space-between; align-items: center; }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.ico svg { width: 26px; height: 26px; }
.card h3 { margin-top: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.card.inv .pills { border-color: var(--inv-line); }
.pills span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, currentColor 8%, transparent); }
.mailmock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: 0 24px 48px -28px rgba(0,0,0,.35); }
.mailmock .mh { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mailmock .mh b { display: block; font-weight: 600; font-size: 15px; }
.mailmock .mh span { font-size: 13px; color: var(--muted); }
.mailmock .mh time { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mailmock p { margin-top: 14px; font-size: 15.5px; line-height: 1.55; }
.mailmock .eg { color: var(--muted); margin-top: 12px; }
.product p.txt { margin-top: 16px; }
section.tint { background: var(--surface); border-block: 1px solid var(--line); }
.tint .step { background: var(--bg); }
.step .n { width: auto; height: auto; display: block; background: linear-gradient(95deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 60px; line-height: 1; letter-spacing: -.05em; border-radius: 0; }
.who { display: flex; align-items: center; gap: 16px; padding: 22px 26px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.who .ava { width: 60px; height: 60px; border-radius: 50%; font-size: 19px; flex: none; }
.who b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.who span { color: var(--muted); font-size: 15px; }
.cta .btn { margin-top: 26px; }
.cta .mail { display: block; width: fit-content; max-width: 100%; }

@media (max-width: 900px) {
  .cards, .steps, .about, .product, .doc .wrap, .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 8px 8px 0; }
  .hero-panel { border-radius: 26px; }
  .viz-chart { margin-left: 0; }
  .viz-chat { margin-right: 0; margin-left: 10%; }
  .stats dd { font-size: 14.5px; }
  .card li p, .step p { font-size: 16px; }
  .btn { padding: 15px 22px; }
  .btn.small { padding: 10px 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { padding-bottom: 8px; }
  .toc { position: static; }
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 420px) {
  .top .btn { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .glow, .track, .viz-chart .ln { animation: none; }
  .track { flex-wrap: wrap; width: auto; justify-content: center; }
  html { scroll-behavior: auto; }
  .btn, .btn .arr { transition: none; }
}
