/* ikonia Studio — interfața */
:root {
  --bg: #08090d; --panel: rgb(255 255 255 / .045); --panel-2: rgb(255 255 255 / .07); --line: rgb(255 255 255 / .09);
  --text: #eef0f6; --muted: #8d92a3; --a1: #8b5cff; --a2: #ff6b3d; --a3: #2fd3c6; --ok: #34d399; --err: #ff6b6b; --run: #fbbf24;
  --grad: linear-gradient(100deg, var(--a1), var(--a2));
  --head: 'Bricolage Grotesque', system-ui, sans-serif; --sans: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100svh; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.muted { color: var(--muted); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
[hidden] { display: none !important; }

/* fundal: lumini care plutesc + grilă fină */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 22s ease-in-out infinite alternate; }
.o1 { width: 620px; height: 620px; background: var(--a1); top: -220px; left: -160px; }
.o2 { width: 520px; height: 520px; background: var(--a2); top: 10%; right: -200px; opacity: .3; animation-delay: -6s; }
.o3 { width: 460px; height: 460px; background: var(--a3); bottom: -260px; left: 30%; opacity: .18; animation-delay: -12s; }
@keyframes float { to { transform: translate(60px, 80px) scale(1.12); } }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); mask: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }

.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--grad); color: #fff; font: 650 15.5px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 10px 30px -12px rgb(139 92 255 / .7); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 40px -14px rgb(255 107 61 / .7); }
.btn svg { width: 20px; height: 20px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 16.5px; }
.btn-ghost { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* antet */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: rgb(8 9 13 / .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px var(--head); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; align-items: center; gap: 18px; font-weight: 550; }
.top nav a:not(.btn) { text-decoration: none; }
.mark { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; align-items: end; height: 22px; }
.mark i { display: block; border-radius: 2px; background: var(--grad); animation: bars 1.6s ease-in-out infinite; }
.mark i:nth-child(1) { height: 10px; } .mark i:nth-child(2) { height: 22px; animation-delay: .15s; } .mark i:nth-child(3) { height: 15px; animation-delay: .3s; }
@keyframes bars { 50% { transform: scaleY(.6); } }
.mark.big { grid-template-columns: repeat(3, 12px); gap: 6px; height: 44px; } .mark.big i:nth-child(1) { height: 20px; } .mark.big i:nth-child(2) { height: 44px; } .mark.big i:nth-child(3) { height: 30px; }

/* login */
.login-wrap { min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(400px, 100%); padding: 40px 32px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(20px); text-align: center; display: grid; gap: 14px; justify-items: center; }
.login-card h1 { font-size: 34px; } .login-card h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack { display: grid; gap: 12px; width: 100%; margin-top: 10px; }
input, textarea, select { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .05); color: var(--text); font: 500 16px var(--sans); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { border-color: rgb(139 92 255 / .7); box-shadow: 0 0 0 4px rgb(139 92 255 / .18); }
textarea { resize: vertical; min-height: 96px; }
.err { color: var(--err); margin: 0; }

/* prima pagină */
.hero { padding: clamp(50px, 9vw, 110px) 0 50px; text-align: center; display: grid; justify-items: center; gap: 20px; }
.eyebrow { margin: 0; font: 700 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--a3); }
.h-hero { font-size: clamp(42px, 7.4vw, 92px); font-weight: 750; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 68ch; color: #b9bdca; font-size: clamp(16.5px, 1.5vw, 19px); margin: 0; }
.new { width: min(860px, 100%); margin-top: 16px; display: grid; gap: 14px; }
.url-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 22px; background: rgb(255 255 255 / .06); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgb(139 92 255 / .8); transition: border-color .2s, box-shadow .2s; }
.url-row:focus-within { border-color: rgb(139 92 255 / .7); box-shadow: 0 30px 80px -30px rgb(139 92 255 / 1); }
.url-ic svg { width: 22px; height: 22px; color: var(--muted); display: block; }
.url-row input { border: 0; background: none; box-shadow: none; font-size: 18px; min-height: 56px; padding: 0 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: flex-start; text-align: left; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips legend { float: left; margin-right: 8px; font-size: 13px; color: var(--muted); font-weight: 600; padding-top: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; width: auto; min-height: 0; }
.chips span { display: inline-block; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line); font-size: 14px; font-weight: 550; color: #c9ccd6; transition: background .2s, border-color .2s, color .2s; }
.chips input:checked + span { background: rgb(139 92 255 / .2); border-color: rgb(139 92 255 / .6); color: #fff; }
.chips input:disabled + span { opacity: .8; }
.chips input:focus-visible + span { outline: 2px solid var(--a3); }
.notes { width: 100%; max-width: 860px; } .notes summary { cursor: pointer; color: var(--muted); font-size: 14px; text-align: center; } .notes textarea { margin-top: 10px; }
.form-err { color: var(--err); margin: 0; }

.list { padding: 30px 0 60px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.list-head h2 { font-size: 28px; } .count { font: 600 14px var(--sans); color: var(--muted); margin-left: 6px; }
.empty { padding: 40px; border-radius: 22px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { display: grid; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.card:hover { transform: translateY(-5px); border-color: rgb(139 92 255 / .5); }
.thumb { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgb(139 92 255 / .25), rgb(255 107 61 / .15)); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s; }
.card:hover .thumb img { transform: scale(1.04); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; font: 800 54px var(--head); color: rgb(255 255 255 / .25); }
.card-b { padding: 16px; display: grid; gap: 4px; }
.card-b b { font: 650 17px var(--head); }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgb(8 9 13 / .75); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 650; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.s-running .pill i, .pill.s-running i { background: var(--run); animation: pulse 1.4s infinite; }
.s-done .pill i, .pill.s-done i { background: var(--ok); }
.s-error .pill i, .pill.s-error i { background: var(--err); }
.s-queued .pill i, .pill.s-queued i { background: var(--a1); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; opacity: .5; } }

/* pagina proiectului */
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 34px 0 20px; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.p-head h1 { font-size: clamp(32px, 5vw, 54px); margin: 6px 0 8px; }
.p-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill.big { position: static; padding: 10px 14px; font-size: 14px; background: var(--panel-2); }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14.5px; overflow: hidden; }
.steps li i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.steps li.done { color: var(--text); } .steps li.done i { background: var(--ok); border-color: var(--ok); }
.steps li.now { color: #fff; border-color: rgb(139 92 255 / .6); } .steps li.now i { border-color: var(--run); background: var(--run); animation: pulse 1.4s infinite; }
.steps li.now::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: var(--grad); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.stats div { padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.stats small { color: var(--muted); font-size: 12.5px; font-weight: 600; } .stats b { font: 700 20px var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.err-box { padding: 14px 16px; border-radius: 14px; background: rgb(255 107 107 / .12); color: #ffb3b3; border: 1px solid rgb(255 107 107 / .3); font-size: 14.5px; white-space: pre-wrap; }
.p-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 14px; align-items: start; }
.panel { padding: 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; min-width: 0; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; } .panel-h h2 { margin: 0; }
.live { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .1em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; }
.live.off i { background: var(--muted); animation: none; }
.feed { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; max-height: 66vh; overflow-y: auto; scrollbar-width: thin; }
.feed li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 14.5px; animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.feed time { color: var(--muted); font: 12px ui-monospace, monospace; padding-top: 2px; }
.feed .k-step { background: rgb(139 92 255 / .12); font-weight: 650; }
.feed .k-say { background: var(--panel-2); white-space: pre-wrap; }
.feed .k-tool { color: #c3c7d3; } .feed .k-tool span::before { content: '› '; color: var(--a3); }
.feed .k-scan { color: var(--muted); font-size: 13px; padding: 3px 10px; }
.feed .k-error { background: rgb(255 107 107 / .14); color: #ffb3b3; }
.feed .k-image span::before { content: '🖼 '; } .feed .k-feedback { background: rgb(47 211 198 / .12); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.sw { display: grid; gap: 4px; font-size: 12px; } .sw i { height: 46px; border-radius: 12px; background: var(--c); border: 1px solid var(--line); } .sw small { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; } .facts .soc a { color: #c9b8ff; word-break: break-all; }
.fb { display: grid; gap: 10px; }
.fb-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.fb-list li { padding: 10px 12px; border-radius: 12px; background: var(--panel-2); } .fb-list small { color: var(--muted); display: block; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.shot { display: grid; gap: 6px; text-decoration: none; font-size: 13px; color: var(--muted); }
.shot img { width: 100%; height: 280px; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); background: #111; }
.shot.m img { object-fit: contain; background: #0d0e13; }
.md { color: #cdd0da; font-size: 15px; } .md h3 { font-size: 18px; margin: 14px 0 6px; } .md ul { margin: 6px 0; padding-left: 20px; } .md code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }

.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 30px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

@media (max-width: 900px) {
  .p-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .url-row { flex-wrap: wrap; padding: 8px; } .url-row .btn { width: 100%; } .url-ic { display: none; }
  .top nav a.muted { display: none; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* demo */
.tag-demo { position: absolute; top: 12px; right: 12px; padding: 5px 9px; border-radius: 8px; background: var(--grad); color: #fff; font: 800 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.tag-demo.inline { position: static; display: inline-block; vertical-align: 1px; }
.chips.mode span b { color: #fff; }
.opts .mode { width: 100%; justify-content: center; }
