:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #141619;
    --muted: #69717d;
    --line: #e4e7eb;
    --accent: #111111;
    --accent-soft: #eef0f3;
    --overlay: rgba(7, 9, 12, 0.84);
    --success: #2ea66f;
    --shadow: 0 22px 70px rgba(15, 20, 30, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select { font: inherit; }

button { cursor: pointer; }

body.is-viewer-open { overflow: hidden; }

main { min-height: 100vh; }

.showcase {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0;
}

.showcase__header {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
}

.eyebrow,
.viewer__eyebrow,
.project-category {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow,
.viewer__eyebrow { color: var(--muted); }

.showcase h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.intro {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.poc-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    font-size: .85rem;
    color: var(--muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(46,166,111,.12);
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.project-card__media {
    min-height: 500px;
    padding: 28px;
    background: linear-gradient(145deg, #dfe3e8, #f6f7f9 60%, #d8dde2);
}

.project-card__fake-browser {
    height: 100%;
    min-height: 440px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(20, 28, 40, .16);
}

.fake-browser__bar {
    display: flex;
    gap: 7px;
    align-items: center;
    height: 42px;
    padding: 0 15px;
    border-bottom: 1px solid #eceff2;
    background: #fbfbfc;
}

.fake-browser__bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cdd2d8;
}

.fake-browser__content {
    padding: 48px;
}

.fake-line {
    width: 70%;
    height: 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #eceff3;
}

.fake-line--small { width: 32%; }
.fake-line--large { width: 82%; height: 46px; }

.fake-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.fake-grid div {
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    background: linear-gradient(145deg, #eef1f4, #dfe4e9);
}

.project-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 42px;
}

.project-category { color: var(--muted); }

.project-card h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -.04em;
}

.project-card p {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.button {
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
}

.button--primary {
    background: var(--accent);
    color: #fff;
}

.button--secondary {
    background: var(--accent-soft);
    color: var(--text);
}

.button:focus-visible,
.viewer__close:focus-visible {
    outline: 3px solid #7f8cff;
    outline-offset: 3px;
}

.viewer[hidden] { display: none; }

.viewer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 14px;
}

.viewer__backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(8px);
}

.viewer__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: #0d0f12;
    box-shadow: 0 35px 100px rgba(0,0,0,.35);
}

.viewer__toolbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 14px 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(15,17,20,.96);
    color: #fff;
}

.viewer__title-wrap { min-width: 0; }

.viewer__eyebrow {
    margin-bottom: 4px;
    color: #8f97a4;
}

.viewer__toolbar h2 {
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.viewer__close {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.viewer__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #111;
}

.viewer__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.viewer__loading,
.viewer__error {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 10px;
    padding: 30px;
    text-align: center;
    background: #111;
    color: #fff;
}

.viewer__loading p,
.viewer__loading span,
.viewer__error p {
    margin: 0;
}

.viewer__loading span,
.viewer__error p { color: #8f97a4; }

.spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    border: 3px solid rgba(255,255,255,.18);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .showcase { padding: 54px 0; }
    .showcase__header { align-items: flex-start; flex-direction: column; }
    .project-card { grid-template-columns: 1fr; }
    .project-card__media { min-height: auto; }
    .project-card__fake-browser { min-height: 360px; }
}

@media (max-width: 600px) {
    .showcase { width: min(100% - 20px, 1180px); padding: 34px 0; }
    .showcase h1 { font-size: 2.45rem; }
    .intro { font-size: .98rem; }
    .poc-status { font-size: .78rem; }
    .project-card { border-radius: 22px; }
    .project-card__media { padding: 14px; }
    .project-card__fake-browser { min-height: 250px; }
    .fake-browser__content { padding: 26px; }
    .project-card__content { padding: 26px; }
    .viewer { padding: 0; }
    .viewer__dialog { border-radius: 0; }
    .viewer__toolbar { min-height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .spinner { animation: none; }
}
