/* TASSEL dot3 Lab */
:root {
	--bg: #05060a;
	--bg2: #0a0d16;
	--panel: rgba(12, 16, 28, .72);
	--line: rgba(120, 160, 255, .16);
	--line2: rgba(120, 160, 255, .32);
	--text: #e6e9f2;
	--dim: #8a93a8;
	--cyan: #22d3ee;
	--blue: #67a6f5;
	--violet: #a78bfa;
	--ok: #34d399;
	--warn: #fbbf24;
	--fail: #f87171;
	--info: #67a6f5;
	--mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
	--sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--r: 14px;
	--grad: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--violet));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.tdl {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.tdl a { color: inherit; }
.tdl ::selection { background: rgba(34, 211, 238, .35); color: #fff; }
.tdl :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* Tło */
#tdl-field {
	position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0;
	display: block; pointer-events: none;
	background: radial-gradient(1200px 700px at 70% 20%, rgba(103, 166, 245, .12), transparent 60%),
		radial-gradient(900px 600px at 15% 80%, rgba(167, 139, 250, .10), transparent 60%), var(--bg);
}
.tdl-vignette {
	position: fixed; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .65) 100%);
}
.tdl-scan {
	position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
	background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
	mix-blend-mode: overlay;
}
main, .tdl-nav, .tdl-footer { position: relative; z-index: 2; }

/* Nawigacja */
.tdl-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px clamp(16px, 4vw, 48px);
	transition: background .3s, backdrop-filter .3s, border-color .3s;
	border-bottom: 1px solid transparent;
}
.tdl-nav.is-scrolled { background: rgba(5, 6, 10, .7); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.tdl-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--mono); letter-spacing: -.02em; text-decoration: none; }
.tdl-dim { color: var(--dim); }
.tdl-dots { display: inline-flex; gap: 3px; }
.tdl-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px currentColor; color: var(--cyan); }
.tdl-dots i:nth-child(2) { background: var(--blue); color: var(--blue); }
.tdl-dots i:nth-child(3) { background: var(--violet); color: var(--violet); }
.tdl-nav nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.tdl-nav nav a { text-decoration: none; color: var(--dim); transition: color .2s; }
.tdl-nav nav a:hover { color: var(--text); }
.tdl-nav .tdl-nav-cta { color: var(--text); border: 1px solid var(--line2); padding: 9px 14px; border-radius: 999px; }
.tdl-nav .tdl-nav-cta:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(34, 211, 238, .25); }
@media (max-width: 640px) {
	.tdl-nav nav a:not(.tdl-nav-cta) { display: none; }
}

/* Hero */
.tdl-hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: grid; align-items: end; justify-items: center; text-align: center;
	padding: 110px clamp(16px, 5vw, 64px) clamp(110px, 14vh, 160px);
}
.tdl-hero-inner { max-width: 980px; }
@media (max-height: 640px) { .tdl-hero { align-items: center; } }
.tdl-eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
	font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .22em; color: var(--dim);
	padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 6, 10, .45); backdrop-filter: blur(6px);
}
.tdl-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: tdl-pulse 2s infinite; }
@keyframes tdl-pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.tdl-h1 {
	margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: .98;
	font-size: clamp(40px, 7.2vw, 96px);
	background: linear-gradient(180deg, #fff 30%, rgba(230, 233, 242, .55));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	text-shadow: 0 0 60px rgba(103, 166, 245, .15);
}
.tdl-h1 .tdl-glitch { color: var(--cyan); -webkit-text-fill-color: var(--cyan); font-family: var(--mono); font-weight: 500; }
.tdl-sub { max-width: 640px; margin: 26px auto 0; color: #b7bfd2; font-size: clamp(16px, 1.6vw, 19px); }
.tdl-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 38px; }

.tdl-btn {
	display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
	font: 600 15px/1 var(--sans); padding: 16px 24px; border-radius: 999px; cursor: pointer;
	transition: transform .2s, box-shadow .25s, border-color .25s, background .25s;
	border: 1px solid transparent;
}
.tdl-btn-primary { color: #04121a; background: var(--grad); box-shadow: 0 10px 40px -10px rgba(34, 211, 238, .6); }
.tdl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(103, 166, 245, .8); }
.tdl-btn-ghost { color: var(--text); border-color: var(--line2); background: rgba(5, 6, 10, .4); backdrop-filter: blur(6px); }
.tdl-btn-ghost:hover { border-color: var(--violet); transform: translateY(-2px); }

.tdl-hud { position: absolute; font: 500 11px/1.6 var(--mono); letter-spacing: .12em; color: rgba(138, 147, 168, .85); text-transform: uppercase; pointer-events: none; }
.tdl-hud b { color: var(--cyan); font-weight: 600; }
.tdl-hud::before { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--line2); }
.tdl-hud-tl { top: 92px; left: clamp(16px, 4vw, 48px); padding: 10px 0 0 22px; text-align: left; }
.tdl-hud-tl::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tdl-hud-tr { top: 92px; right: clamp(16px, 4vw, 48px); padding: 10px 22px 0 0; text-align: right; }
.tdl-hud-tr::before { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.tdl-hud-bl { bottom: 28px; left: clamp(16px, 4vw, 48px); padding: 0 0 10px 22px; text-align: left; }
.tdl-hud-bl::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.tdl-hud-br { bottom: 28px; right: clamp(16px, 4vw, 48px); padding: 0 22px 10px 0; text-align: right; max-width: 46vw; }
.tdl-hud-br::before { bottom: 0; right: 0; border-left: 0; border-top: 0; }
[data-tdl-gpu] { display: inline-block; max-width: min(42ch, 40vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 720px) { .tdl-hud-tr, .tdl-hud-bl { display: none; } .tdl-hud-br { max-width: 60vw; } }

.tdl-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 1px solid var(--line2); border-radius: 14px; }
.tdl-scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: tdl-wheel 1.8s infinite; }
@keyframes tdl-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sekcje */
.tdl-section { padding: clamp(80px, 12vw, 150px) clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.tdl-head { max-width: 760px; margin-bottom: 48px; }
.tdl-kicker { margin: 0 0 16px; font: 500 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }
.tdl-head h2 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.tdl-head p { margin: 0; color: #b0b8cb; font-size: 18px; }
.tdl-center { text-align: center; margin-top: 44px; }

/* Konsola */
.tdl-console {
	position: relative; border-radius: var(--r); overflow: hidden;
	background: var(--panel); border: 1px solid var(--line);
	backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
	box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tdl-console::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
	background: linear-gradient(130deg, rgba(34, 211, 238, .55), transparent 30%, transparent 70%, rgba(167, 139, 250, .55));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tdl-console-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px/1 var(--mono); color: var(--dim); }
.tdl-lights { display: inline-flex; gap: 6px; }
.tdl-lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3d; }
.tdl-lights i:nth-child(1) { background: #f87171; } .tdl-lights i:nth-child(2) { background: #fbbf24; } .tdl-lights i:nth-child(3) { background: #34d399; }
.tdl-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdl-state { text-transform: uppercase; letter-spacing: .14em; color: var(--ok); }
.tdl-state.is-busy { color: var(--warn); animation: tdl-blink 1s steps(2) infinite; }
@keyframes tdl-blink { 50% { opacity: .35; } }

.tdl-form { display: flex; align-items: center; gap: 12px; padding: 18px 18px; border-bottom: 1px solid var(--line); }
.tdl-prompt { font: 600 16px/1 var(--mono); color: var(--cyan); white-space: nowrap; }
.tdl-form input[type="text"] {
	flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text);
	font: 500 clamp(16px, 2vw, 20px)/1.4 var(--mono); padding: 6px 0; caret-color: var(--cyan);
}
.tdl-form input::placeholder { color: rgba(138, 147, 168, .55); }
.tdl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tdl-run {
	display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: rgba(34, 211, 238, .08);
	color: var(--text); font: 600 14px/1 var(--mono); padding: 12px 16px; border-radius: 10px; cursor: pointer; transition: all .2s;
}
.tdl-run:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .16); box-shadow: 0 0 28px rgba(34, 211, 238, .25); }
.tdl-run:disabled { opacity: .5; cursor: wait; }
.tdl-run kbd { font: inherit; color: var(--dim); }

.tdl-term { padding: 18px; min-height: 140px; max-height: 340px; overflow-y: auto; font: 13.5px/1.75 var(--mono); scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.tdl-l { margin: 0; white-space: pre-wrap; word-break: break-word; }
.tdl-l-dim { color: var(--dim); }
.tdl-l-cmd { color: var(--cyan); }
.tdl-l-err { color: var(--fail); }
.tdl-l .s-pass { color: var(--ok); } .tdl-l .s-warn { color: var(--warn); } .tdl-l .s-fail { color: var(--fail); } .tdl-l .s-info { color: var(--info); }
.tdl-l .v { color: var(--dim); }
.tdl-caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 4px; vertical-align: -2px; background: var(--cyan); animation: tdl-blink 1s steps(2) infinite; }
.tdl-bar { display: block; height: 3px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.tdl-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s; }

/* Wyniki */
.tdl-results { padding: 24px 18px 28px; border-top: 1px solid var(--line); }
.tdl-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 26px; font: 12px/1.4 var(--mono); color: var(--dim); }
.tdl-meta b { color: var(--text); font-weight: 600; }
.tdl-scores { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
@media (max-width: 860px) { .tdl-scores { grid-template-columns: repeat(2, 1fr); } .tdl-score-total { grid-column: 1 / -1; } }
.tdl-score { position: relative; display: grid; justify-items: center; gap: 10px; padding: 20px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 6, 10, .4); text-align: center; }
.tdl-ring { position: relative; width: 92px; height: 92px; }
.tdl-score-total .tdl-ring { width: 128px; height: 128px; }
.tdl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tdl-ring circle { fill: none; stroke-width: 7; }
.tdl-ring .bg { stroke: rgba(255, 255, 255, .07); }
.tdl-ring .fg { stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px currentColor); }
.tdl-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 26px/1 var(--mono); }
.tdl-score-total .tdl-ring b { font-size: 36px; }
.tdl-score span { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.c-ok { color: var(--ok); stroke: var(--ok); } .c-warn { color: var(--warn); stroke: var(--warn); } .c-fail { color: var(--fail); stroke: var(--fail); }

.tdl-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .tdl-groups { grid-template-columns: 1fr; } }
.tdl-group { border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 6, 10, .35); overflow: hidden; }
.tdl-group h3 { margin: 0; padding: 14px 16px; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.tdl-group ul { list-style: none; margin: 0; padding: 6px 0; }
.tdl-check { display: grid; grid-template-columns: 14px 1fr; gap: 0 12px; padding: 9px 16px; font-size: 14px; line-height: 1.45; }
.tdl-check::before { content: ""; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.tdl-check.pass { color: var(--ok); } .tdl-check.warn { color: var(--warn); } .tdl-check.fail { color: var(--fail); } .tdl-check.info { color: var(--info); }
.tdl-check > div { color: var(--text); min-width: 0; }
.tdl-check .lbl { font-weight: 600; }
.tdl-check .val { color: var(--dim); font: 12.5px/1.5 var(--mono); word-break: break-word; }
.tdl-check .tip { color: #9ea7bb; font-size: 13px; margin-top: 2px; }

.tdl-psi { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 6, 10, .35); padding: 18px 16px; }
.tdl-psi h3 { margin: 0 0 14px; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.tdl-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tdl-metric { padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.tdl-metric span { display: block; font: 500 11px/1.3 var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.tdl-metric b { display: block; margin-top: 6px; font: 700 22px/1.1 var(--mono); }
.tdl-psi h4 { margin: 18px 0 8px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.tdl-opps { margin: 0; padding: 0 0 0 18px; color: #b7bfd2; font-size: 14px; }
.tdl-opps li { margin: 4px 0; }
.tdl-opps em { color: var(--warn); font-style: normal; font-family: var(--mono); font-size: 12.5px; }

.tdl-cta-box { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: 12px; background: linear-gradient(120deg, rgba(34, 211, 238, .09), rgba(167, 139, 250, .09)); border: 1px solid var(--line2); }
.tdl-cta-box p { margin: 0; max-width: 620px; }

/* Kafle */
.tdl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1000px; }
@media (max-width: 1020px) { .tdl-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tdl-tiles { grid-template-columns: 1fr; } }
.tdl-tile {
	position: relative; overflow: hidden; padding: 26px 22px 28px; border-radius: var(--r);
	background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s;
	--mx: 50%; --my: 50%;
}
.tdl-tile:hover { border-color: var(--line2); }
.tdl-tile-code { font: 500 11px/1 var(--mono); letter-spacing: .18em; color: var(--cyan); }
.tdl-tile h3 { margin: 18px 0 10px; font-size: 22px; letter-spacing: -.02em; transform: translateZ(30px); }
.tdl-tile p { margin: 0; color: #a9b1c5; font-size: 15px; transform: translateZ(20px); }
.tdl-tile-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(103, 166, 245, .18), transparent 60%); }
.tdl-tile:hover .tdl-tile-glow { opacity: 1; }

/* Log */
.tdl-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1020px) { .tdl-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tdl-posts { grid-template-columns: 1fr; } }
.tdl-post a { display: flex; flex-direction: column; height: 100%; padding: 24px 22px; text-decoration: none; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .25s, border-color .25s; }
.tdl-post a:hover { transform: translateY(-4px); border-color: var(--line2); }
.tdl-post-meta { margin: 0 0 14px; font: 12px/1 var(--mono); color: var(--dim); display: flex; gap: 12px; }
.tdl-post-meta span { color: var(--violet); }
.tdl-post h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.tdl-post p { margin: 0 0 18px; color: #a9b1c5; font-size: 15px; }
.tdl-post-more { margin-top: auto; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.tdl-empty { padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px dashed var(--line2); font: 14px/1.8 var(--mono); }

/* Stopka */
.tdl-footer { padding: 40px clamp(16px, 5vw, 64px) 50px; text-align: center; font: 13px/1.8 var(--mono); color: var(--dim); border-top: 1px solid var(--line); }
.tdl-footer p { margin: 0; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.tdl-footer a { color: var(--text); }

/* Odsłanianie */
.js .tdl-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .tdl-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .tdl-reveal { opacity: 1; transform: none; }
}
