.ux-page { background: #071021; }
.ux-main { overflow: clip; }
.ux-hero,
.ux-case-hero { position: relative; color: #fff; background: radial-gradient(circle at 82% 10%, rgba(140, 83, 255, .3), transparent 32%), radial-gradient(circle at 58% 82%, rgba(22, 137, 255, .16), transparent 36%), linear-gradient(145deg, #050817, #0c1730); border-bottom: 1px solid #263754; }
.ux-hero::after,
.ux-case-hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: linear-gradient(90deg, #8c53ff, #1689ff, transparent 92%); }
.ux-hero__inner { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(60px, 8vw, 100px); }
.ux-hero h1 { max-width: 940px; margin: 18px 0 22px; color: #fff; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.06em; }
.ux-hero p { max-width: 820px; margin: 0; color: #b9c6dd; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.7; }
.ux-hero__summary { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ux-hero__summary span { padding: 13px 17px; border: 1px solid #324768; border-radius: 14px; background: rgba(9, 20, 42, .75); color: #b9c9df; }
.ux-hero__summary strong { margin-right: 7px; color: #fff; }
.ux-gallery-section { background: #071327; }
.ux-gallery-section .section-heading h2 { color: #fff; }
.ux-gallery-section .section-heading p { color: #aebed5; }
.ux-disclaimer { display: flex; gap: 18px; align-items: center; margin: 28px 0; padding: 18px 22px; border: 1px solid #38517a; border-left: 5px solid #8c53ff; border-radius: 14px; background: #0d1c35; color: #fff; }
.ux-disclaimer p { margin: 0; color: #b4c3d9; line-height: 1.55; }
.ux-filters { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 12px; align-items: end; padding: 20px; border: 1px solid #273e63; border-radius: 18px; background: #0b1a32; }
.ux-filters label { display: grid; gap: 8px; color: #c2cee0; font-size: .82rem; font-weight: 750; }
.ux-filters input,
.ux-filters select { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #375780; border-radius: 11px; outline: none; background: #071328; color: #fff; font: inherit; }
.ux-filters input:focus,
.ux-filters select:focus { border-color: #9c72ff; box-shadow: 0 0 0 3px rgba(140, 83, 255, .2); }
.ux-result-count { margin: 22px 0 14px; color: #a9bad1; }
.ux-result-count strong { color: #fff; }
.ux-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ux-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #263f65; border-radius: 20px; background: linear-gradient(180deg, #0d1c35, #09162b); color: #fff; box-shadow: 0 20px 55px rgba(0, 0, 0, .2); }
.ux-card[hidden] { display: none; }
.ux-card__image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #14233e; }
.ux-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ux-card:hover .ux-card__image img { transform: scale(1.035); }
.ux-card__image > span { position: absolute; top: 12px; left: 12px; padding: 7px 10px; border: 1px solid rgba(191, 164, 255, .4); border-radius: 999px; background: rgba(8, 15, 31, .9); color: #d4c2ff; font-size: .7rem; font-weight: 800; }
.ux-card__body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.ux-card__category { color: #a987ff; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ux-card h2 { margin: 12px 0 9px; font-size: 1.3rem; line-height: 1.22; }
.ux-card h2 a { color: #fff; text-decoration: none; }
.ux-card p { margin: 0; color: #adbed6; line-height: 1.58; }
.ux-card__facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.ux-card__facts span { padding: 6px 9px; border: 1px solid #315077; border-radius: 999px; color: #b9d7ff; font-size: .72rem; font-weight: 700; }
.ux-card__actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; margin-top: auto; padding-top: 20px; }
.ux-card__actions .btn { min-height: 44px; padding-inline: 10px; text-align: center; }
.ux-empty { padding: 48px; border: 1px dashed #38557d; border-radius: 18px; text-align: center; color: #adbed6; }
.ux-empty strong { color: #fff; font-size: 1.25rem; }
.ux-case-hero { padding: clamp(58px, 8vw, 100px) 0; }
.ux-case-hero__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 6vw, 84px); align-items: center; margin-top: 28px; }
.ux-case-hero h1 { margin: 16px 0; font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.ux-case-hero p { color: #b6c5da; font-size: 1.12rem; line-height: 1.7; }
.ux-case-hero .ux-card__facts { margin-bottom: 22px; }
.ux-case-hero__grid > img { width: 100%; border: 1px solid #3a5276; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ux-case-overview { background: #f5f7fb; color: #0b1930; }
.ux-case-overview .ux-disclaimer { margin-top: 0; background: #f1edff; border-color: #c9b9f4; color: #21153f; }
.ux-case-overview .ux-disclaimer p { color: #5e5277; }
.ux-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.ux-overview-grid article,
.ux-flow-grid article,
.ux-logic-grid article { padding: clamp(22px, 3vw, 32px); border: 1px solid #d2dcec; border-radius: 18px; background: #fff; }
.ux-overview-grid article > span { color: #7650d9; font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ux-overview-grid h2,
.ux-flow-grid h2,
.ux-logic-grid h2 { margin: 10px 0 13px; font-size: 1.3rem; }
.ux-overview-grid p { margin: 0; color: #57677e; line-height: 1.65; }
.ux-flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.ux-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ux-flow span { padding: 9px 11px; border-radius: 9px; background: #eef2f7; color: #4d5d74; font-size: .82rem; font-weight: 700; }
.ux-flow b { color: #9aabc0; }
.ux-flow--new span { background: #eee8ff; color: #4b2d99; }
.ux-prototype-section { background: #09162b; }
.ux-prototype-section .section-heading h2 { color: #fff; }
.ux-prototype-section .section-heading p { color: #aebfd7; }
.ux-prototype { overflow: hidden; max-width: 940px; margin: 34px auto 0; border: 1px solid #36547e; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(0, 0, 0, .28); color: #0c1c35; }
.ux-prototype__top { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 22px; background: #0b1930; color: #fff; }
.ux-prototype__top strong,
.ux-prototype__top small { display: block; }
.ux-prototype__top small { margin-top: 4px; color: #aabbd2; }
.ux-prototype__top button { border: 0; background: transparent; color: #b99cff; cursor: pointer; font-weight: 750; }
.ux-prototype__progress { height: 5px; background: #dfe7f1; }
.ux-prototype__progress span { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, #8c53ff, #1689ff); transition: width .25s ease; }
.ux-prototype__body { padding: clamp(24px, 5vw, 48px); }
.ux-prototype__screen > small,
.ux-prototype__result > small { color: #7650d9; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.ux-prototype__screen h3,
.ux-prototype__result h3 { margin: 8px 0 7px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.ux-prototype__screen > p,
.ux-prototype__result > p { margin: 0; color: #66758b; line-height: 1.6; }
.ux-prototype__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.ux-prototype__field { display: grid; gap: 7px; color: #273852; font-size: .84rem; font-weight: 750; }
.ux-prototype__field input:not([type="checkbox"]),
.ux-prototype__field select,
.ux-prototype__field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c7d3e3; border-radius: 10px; outline: none; background: #f8faff; color: #0c1d36; font: inherit; font-weight: 500; }
.ux-prototype__field textarea { resize: vertical; }
.ux-prototype__field input:focus,
.ux-prototype__field select:focus,
.ux-prototype__field textarea:focus { border-color: #7c50df; box-shadow: 0 0 0 3px rgba(140, 83, 255, .15); }
.ux-prototype__field--check { grid-template-columns: auto 1fr; align-items: center; padding: 14px; border: 1px solid #ccd7e6; border-radius: 10px; }
.ux-prototype__field--check input { width: 20px; height: 20px; accent-color: #7650d9; }
.ux-prototype__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.ux-prototype__actions .btn--ghost { border-color: #bba5ee; background: #eee8ff; color: #3f247f; box-shadow: none; }
.ux-prototype__actions .btn--ghost:hover,
.ux-prototype__actions .btn--ghost:focus-visible { border-color: #8c53ff; background: #ded1ff; color: #25114f; }
.ux-prototype__error { margin: 0 48px 28px; padding: 12px 15px; border-radius: 9px; background: #fff0f0; color: #a31e1e; }
.ux-prototype__result { text-align: center; }
.ux-prototype__check { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: #22c878; color: #052113; font-size: 1.7rem; font-weight: 900; }
.ux-prototype__result-note { margin-top: 20px; padding: 13px; border-radius: 10px; background: #f0edff; color: #5d4b82; }
.ux-case-logic { background: #f5f7fb; color: #0b1930; }
.ux-logic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ux-logic-grid ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ux-logic-grid li { position: relative; padding-left: 24px; color: #56667d; line-height: 1.55; }
.ux-logic-grid li::before { content: "✓"; position: absolute; left: 0; color: #7650d9; font-weight: 900; }
.ux-device-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); gap: 20px; align-items: start; margin-top: 38px; }
.ux-device-grid figure { margin: 0; padding: 13px; border: 1px solid #d0dbea; border-radius: 18px; background: #fff; }
.ux-device-grid img { width: 100%; border-radius: 11px; }
.ux-device-grid__mobile img { max-height: 720px; object-fit: contain; }
.ux-device-grid figcaption { padding: 12px 4px 3px; color: #69788e; font-size: .82rem; font-weight: 750; text-align: center; }

/* Case workbench: the live prototype uses the same visual language as its reference mockup. */
.ux-case-page { --ux-accent: #1689ff; }
.ux-case-page .ux-case-overview { background: #071327; color: #fff; }
.ux-case-page .ux-case-overview .ux-disclaimer { background: #0d1c35; border-color: #30496f; border-left-color: var(--ux-accent); color: #fff; }
.ux-case-page .ux-case-overview .ux-disclaimer p { color: #aebfd7; }
.ux-case-page .ux-overview-grid article,
.ux-case-page .ux-flow-grid article { border-color: #263f65; background: #0b1a32; box-shadow: 0 18px 44px rgba(0, 0, 0, .16); }
.ux-case-page .ux-overview-grid article > span { color: #6cb9ff; }
.ux-case-page .ux-overview-grid h2,
.ux-case-page .ux-flow-grid h2 { color: #fff; }
.ux-case-page .ux-overview-grid p { color: #aebed5; }
.ux-case-page .ux-flow span { border: 1px solid #2a4265; background: #101f37; color: #b7c7dc; }
.ux-case-page .ux-flow--new span { border-color: color-mix(in srgb, var(--ux-accent) 52%, #233a5d); background: color-mix(in srgb, var(--ux-accent) 13%, #0b1930); color: #d8efff; }

.ux-prototype-section { position: relative; isolation: isolate; background: #050b16; color: #fff; }
.ux-prototype-section::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .45; background: radial-gradient(circle at 50% 6%, color-mix(in srgb, var(--ux-accent) 18%, transparent), transparent 31%), linear-gradient(rgba(28, 55, 92, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 55, 92, .16) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; }
.ux-studio-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 28px; }
.ux-studio-heading h2 { max-width: 780px; margin: 9px 0 10px; color: #fff; font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.02; letter-spacing: -.045em; }
.ux-studio-heading p { max-width: 760px; margin: 0; color: #9fb2cc; line-height: 1.65; }
.ux-studio-heading__meta { min-width: 150px; padding: 15px 18px; border: 1px solid #29476f; border-radius: 15px; background: rgba(10, 25, 48, .82); text-align: right; }
.ux-studio-heading__meta strong { display: block; color: #fff; font-size: 1.7rem; line-height: 1; }
.ux-studio-heading__meta span { display: block; margin-top: 5px; color: #8da5c3; font-size: .72rem; font-weight: 750; }
.ux-workbench { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(460px, 1.55fr) minmax(190px, .72fr); gap: 14px; align-items: start; padding: 16px; border: 1px solid #203959; border-radius: 24px; background: rgba(5, 13, 28, .88); box-shadow: 0 34px 100px rgba(0, 0, 0, .38); }
.ux-workbench__rail { display: grid; gap: 12px; }
.ux-context-card { padding: 17px; border: 1px solid #274364; border-radius: 13px; background: linear-gradient(145deg, #0d1c35, #09162b); }
.ux-context-card > span { display: block; margin-bottom: 10px; color: #72baff; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ux-context-card p { margin: 0; color: #9eb0c8; font-size: .78rem; line-height: 1.55; }
.ux-context-card ul,
.ux-context-card ol { display: grid; gap: 7px; margin: 0; padding: 0; color: #adbed3; font-size: .75rem; line-height: 1.38; list-style: none; }
.ux-context-card li { position: relative; padding-left: 16px; }
.ux-context-card li::before { content: ""; position: absolute; top: .52em; left: 1px; width: 5px; height: 5px; border-radius: 50%; background: #5d789c; }
.ux-context-card--problem > span,
.ux-context-card--negative > span { color: #ff7786; }
.ux-context-card--problem li::before,
.ux-context-card--negative li::before { background: #ff6678; }
.ux-context-card--objective > span,
.ux-context-card--positive > span { color: #43da92; }
.ux-context-card--objective li::before,
.ux-context-card--positive li::before { background: #31d887; }
.ux-context-card--adapt > span { color: #8bbfff; }
.ux-workbench__center { min-width: 0; }
.ux-workbench__privacy { display: flex; gap: 8px; align-items: center; margin: 11px 4px 0; color: #7088a7; font-size: .7rem; line-height: 1.45; }
.ux-workbench__privacy span { color: #35d889; font-size: .55rem; }

.ux-case-page .ux-prototype { overflow: hidden; width: 100%; max-width: none; min-height: 500px; margin: 0; border: 1px solid #2a4b73; border-radius: 15px; background: #071327; box-shadow: 0 20px 56px rgba(0, 0, 0, .38); color: #fff; }
.ux-case-page .ux-prototype__top { padding: 16px 18px; border-bottom: 1px solid #213b5d; background: linear-gradient(180deg, #0d203c, #0a1a31); }
.ux-case-page .ux-prototype__top span { display: block; margin-bottom: 5px; color: #7fbaff; font-size: .64rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.ux-case-page .ux-prototype__top strong { color: #fff; font-size: .96rem; }
.ux-case-page .ux-prototype__top small { color: #7f96b3; }
.ux-case-page .ux-prototype__top button { color: #78bdff; }
.ux-case-page .ux-prototype__progress { height: 4px; background: #132844; }
.ux-case-page .ux-prototype__progress span { background: linear-gradient(90deg, var(--ux-accent), #6bc6ff); box-shadow: 0 0 16px color-mix(in srgb, var(--ux-accent) 60%, transparent); }
.ux-case-page .ux-prototype__body { padding: clamp(25px, 4vw, 42px); }
.ux-case-page .ux-prototype__screen > small,
.ux-case-page .ux-prototype__result > small { color: #6cb9ff; }
.ux-case-page .ux-prototype__screen h3,
.ux-case-page .ux-prototype__result h3 { color: #fff; }
.ux-case-page .ux-prototype__screen > p,
.ux-case-page .ux-prototype__result > p { color: #91a5c0; }
.ux-case-page .ux-prototype__field { color: #c8d5e6; }
.ux-case-page .ux-prototype__field small { color: #7389a5; font-weight: 550; }
.ux-case-page .ux-prototype__field input:not([type="checkbox"]),
.ux-case-page .ux-prototype__field select,
.ux-case-page .ux-prototype__field textarea { border-color: #294769; background: #061226; color: #f2f7ff; color-scheme: dark; }
.ux-case-page .ux-prototype__field input::placeholder,
.ux-case-page .ux-prototype__field textarea::placeholder { color: #5f7592; }
.ux-case-page .ux-prototype__field input:focus,
.ux-case-page .ux-prototype__field select:focus,
.ux-case-page .ux-prototype__field textarea:focus { border-color: var(--ux-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ux-accent) 18%, transparent); }
.ux-case-page .ux-prototype__field--check { border-color: #294769; background: #08172c; }
.ux-case-page .ux-prototype__field--check input { accent-color: var(--ux-accent); }
.ux-case-page .ux-prototype__actions .btn { min-height: 44px; }
.ux-case-page .ux-prototype__actions .btn--primary { border-color: var(--ux-accent); background: var(--ux-accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--ux-accent) 24%, transparent); }
.ux-case-page .ux-prototype__actions .btn--outline { border-color: #29496f; background: #0c1d35; color: #a7bbd3; }
.ux-case-page .ux-prototype__actions .btn--ghost { border-color: #31557e; background: #102540; color: #9bcbff; }
.ux-case-page .ux-prototype__actions .btn:disabled { cursor: not-allowed; opacity: .42; }
.ux-case-page .ux-prototype__error { border: 1px solid #6e2f42; background: #2b1420; color: #ff9cac; }
.ux-case-page .ux-prototype__check { background: #20d882; color: #042113; box-shadow: 0 0 24px rgba(32, 216, 130, .28); }
.ux-case-page .ux-prototype__result-note { border: 1px solid #29496f; background: #0c1d35; color: #9cb2ce; }

.ux-case-page .ux-case-logic { background: #071327; color: #fff; }
.ux-reference-heading h2 { color: #fff; }
.ux-reference-heading p { color: #9fb1ca; }
.ux-case-page .ux-device-grid figure { border-color: #294568; background: #0a1930; box-shadow: 0 20px 55px rgba(0, 0, 0, .22); }
.ux-case-page .ux-device-grid img { border: 1px solid #223b5c; background: #061023; }
.ux-case-page .ux-device-grid figcaption { color: #9eb1c9; }
@media (max-width: 1050px) {
  .ux-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ux-case-hero__grid { grid-template-columns: 1fr; }
  .ux-workbench { grid-template-columns: 1fr 1fr; }
  .ux-workbench__center { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
  .ux-hero__inner { padding-top: 46px; }
  .ux-filters,
  .ux-grid,
  .ux-overview-grid,
  .ux-flow-grid,
  .ux-logic-grid,
  .ux-device-grid,
  .ux-prototype__fields { grid-template-columns: 1fr; }
  .ux-card__actions { grid-template-columns: 1fr; }
  .ux-filters .btn { width: 100%; }
  .ux-disclaimer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .ux-prototype__top { align-items: flex-start; }
  .ux-prototype__actions { align-items: stretch; flex-direction: column; }
  .ux-prototype__actions .btn { width: 100%; }
  .ux-prototype__error { margin-inline: 24px; }
  .ux-studio-heading { align-items: stretch; flex-direction: column; }
  .ux-studio-heading__meta { text-align: left; }
  .ux-workbench { grid-template-columns: 1fr; padding: 10px; border-radius: 18px; }
  .ux-workbench__center { grid-column: auto; }
  .ux-case-page .ux-prototype { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ux-card__image img,
  .ux-prototype__progress span { transition: none; }
}
