/* SILACOD — Sila Studio page (sila-studio.html). Builds on v2.css + agent.css. */

/* hero stage: neon prompt bar above a live store preview */
.st-stage { display: flex; flex-direction: column; gap: 18px; }
.st-comp { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 10px 10px 20px; padding-inline: 20px 10px; border-radius: 22px; background: rgba(12,13,36,.92); color: #fff; font-weight: 700; font-size: 16px; }
.st-comp .bl-ring { border-radius: 24px; }   /* the ring itself: v2.css. Its colours turn, the ring stays where it is */
.st-comp::after { content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; z-index: -1; pointer-events: none;
  background: conic-gradient(var(--coral), #ffb35c, #ffd8a8, #8b6cff, #4a7dff, #8b6cff, var(--coral));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: blur(12px); opacity: .85; }
.st-comp .sila-ai { width: 36px; height: 36px; flex: none; }
.st-comp .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-comp .tx.ph { color: rgba(220,222,255,.5); }
.st-comp .cr { display: inline-block; width: 2px; height: 1.1em; background: #fff; vertical-align: -3px; margin-inline-start: 2px; animation: stBlink 1s steps(1) infinite; }
@keyframes stBlink { 50% { opacity: 0; } }
.st-comp .go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); } .st-comp .go svg { width: 18px; height: 18px; color: #fff; }
html[dir="rtl"] .st-comp .go svg { transform: scaleX(-1); }
.st-browser { position: relative; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -40px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.14); }
.st-browser .bar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #f1f2f7; color: #4b4f78; font: 600 13px var(--f-lat, "Inter"); direction: ltr; }
.st-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d8e6; } .st-browser .bar i:first-child { background: #ff6b5e; } .st-browser .bar i:nth-child(2) { background: #ffbf3c; } .st-browser .bar i:nth-child(3) { background: #33c748; }
.st-browser .bar span { margin-inline-start: 10px; padding: 4px 12px; border-radius: 8px; background: #fff; }
.st-browser .view { position: relative; aspect-ratio: 16 / 10; background: #f6f7fb; overflow: hidden; }
.st-browser iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .7s var(--ease); }
.st-browser iframe.on { opacity: 1; }
.st-browser .build { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(180deg, rgba(246,247,251,.96), rgba(246,247,251,.9)); color: #232863; font-weight: 800; font-size: 15px; transition: opacity .5s; }
.st-browser .build.off { opacity: 0; pointer-events: none; }
.st-browser .build b { display: flex; align-items: center; gap: 10px; } .st-browser .build b .sila-ai { width: 30px; height: 30px; }
.st-browser .scan { position: absolute; inset-inline: 0; height: 120px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(139,108,255,.35), transparent); mix-blend-mode: multiply; opacity: 0; }
.st-browser .scan.run { animation: stScan 1.6s var(--ease) both; } @keyframes stScan { from { top: -120px; opacity: 1; } to { top: 100%; opacity: 1; } }

/* thinking levels */
.st-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: var(--head-gap); }
.st-lv { position: relative; border-radius: 28px; padding: 26px 24px; background: var(--card, #fff); border: 1px solid var(--line); cursor: pointer; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; text-align: start; font: inherit; color: inherit; }
html:not([data-theme="light"]) .sec.dark .st-lv { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.st-lv:hover, .st-lv[aria-pressed="true"] { transform: translateY(-4px); border-color: var(--coral); box-shadow: 0 30px 60px -36px rgba(240,99,67,.7); }
.st-lv .nm { font: 800 20px var(--f-lat, "Inter"); }
.st-lv .rec { display: inline-block; margin-inline-start: 8px; padding: 2px 10px; border-radius: 99px; background: rgba(240,99,67,.14); color: #c03d20; font-size: 12px; font-weight: 800; vertical-align: 3px; }
.st-lv p { margin: 10px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
html:not([data-theme="light"]) .sec.dark .st-lv p { color: var(--navy200); }
.st-lv .mt { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
html:not([data-theme="light"]) .sec.dark .st-lv .mt { color: var(--navy300); }
.st-lv .mt u { text-decoration: none; height: 6px; border-radius: 99px; background: rgba(127,130,180,.2); overflow: hidden; display: block; } .st-lv .mt u i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #8b6cff); }
.st-lvnote { margin-top: 16px; font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 1000px) { .st-levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .st-levels { grid-template-columns: 1fr; } }

/* examples */
.st-ex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: var(--head-gap); }
.st-ex a { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: inherit; text-decoration: none; transition: transform .35s var(--ease), border-color .35s; }
.st-ex a:hover { transform: translateY(-5px); border-color: var(--coral); }
.st-ex img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.st-ex b { padding: 16px 18px 2px; font-size: 18px; } .st-ex span { padding: 0 18px 4px; color: #b9bbdd; font-size: 14px; } .st-ex em { padding: 8px 18px 18px; font-style: normal; color: var(--coral); font-weight: 800; font-size: 14px; }
html[data-theme="light"] .dark .st-ex a { background: #fff; border-color: var(--line); } html[data-theme="light"] .dark .st-ex span { color: var(--muted); }
@media (max-width: 1000px) { .st-ex { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .st-ex { grid-template-columns: 1fr; } }
.st-more { margin-top: 22px; display: flex; justify-content: center; }
