:root {
    color-scheme: dark;
    --paper: #0d0c14;
    --ink: #f7f3ff;
    --muted: #cbc4d8;
    --quiet: #a9a1ba;
    --line: #342b43;
    --accent: #6c32da;
    --accent-dark: #d3adff;
    --tint: #241a36;
    --surface: #15131f;
    --width: 1240px;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
h1, h2 { font-weight: 730; letter-spacing: -.055em; }
h1 { font-size: clamp(2.55rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.52rem); }
h3 { font-size: clamp(1.16rem, 2vw, 1.6rem); letter-spacing: -.028em; }
p { color: var(--muted); }
img { display: block; width: 100%; height: auto; }
button, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
[hidden] { display: none !important; }
section[id], nav[id] { scroll-margin-top: 6rem; }
:focus-visible { outline: 3px solid #d3adff; outline-offset: 4px; }
.wrap { width: min(var(--width), calc(100% - 2 * clamp(1rem, 4vw, 3.25rem))); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; background: var(--accent-dark); color: var(--paper); padding: .8rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .52rem; font-size: 1.23rem; font-weight: 760; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { width: 48px; height: auto; flex: none; }
.site-nav { display: flex; align-items: center; gap: clamp(.7rem, 3.2vw, 2.6rem); }
.site-nav a, .site-footer nav a { text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--accent-dark); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; padding: .62rem 1.15rem; border: 1px solid transparent; border-radius: .68rem; font-size: .96rem; font-weight: 700; line-height: 1.22; text-decoration: none; text-align: center; }
.button-accent { color: #fff; background: var(--accent); }
.button-accent:hover { background: #793fe4; }
.button-dark { color: var(--ink); background: var(--tint); border-color: var(--line); }
.button-dark:hover { border-color: var(--accent-dark); }
.button-outline { border-color: #514463; }
.button-outline:hover { border-color: var(--accent); color: var(--accent); }
.button-small { min-height: 42px; padding: .5rem .9rem; font-size: .9rem; }
.text-link { color: var(--accent-dark); font-weight: 700; }
.text-link:hover { color: #ebd6ff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }

.hero { background: radial-gradient(ellipse at 87% 48%, #302048 0%, transparent 46%), var(--paper); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1.25rem, 4.5vw, 4.75rem); padding-block: clamp(3rem, 7vw, 7.25rem) clamp(3.5rem, 7vw, 6.75rem); }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 4.5rem); line-height: 1.03; }
.hero h1 em { color: var(--accent-dark); font-style: normal; display: block; }
.hero-copy p { margin-block: 1.45rem 1.65rem; max-width: 43ch; font-size: clamp(1rem, 1.55vw, 1.2rem); }
.hero-art { position: relative; padding: 0 4% 13% 4%; isolation: isolate; }
.hero-screen { display: block; border: 1px solid #655084; border-radius: 16px; overflow: hidden; background: #171520; box-shadow: 0 23px 55px #060510a8; }
.hero-screen img { aspect-ratio: 1.54; object-fit: cover; object-position: center top; }
.hero-inset { display: block; position: absolute; bottom: 0; border: 1px solid #625476; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 32px #060510b0; width: 39%; background: var(--surface); }
.hero-inset img { aspect-ratio: 1.62; object-fit: cover; object-position: center top; }
.hero-inset-portfolio { left: 0; bottom: 4%; transform: rotate(-4deg); }
.hero-inset-journal { right: 0; transform: rotate(5deg); }
.categories ul { list-style: none; padding: .8rem 0; margin: 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .7rem; }
.categories a { display: inline-flex; align-items: center; padding: .55rem .3rem; min-height: 43px; color: var(--ink); font-weight: 680; text-decoration: none; }
.categories a:hover { text-decoration: underline; color: var(--accent-dark); }

.section { padding-block: clamp(2.85rem, 7vw, 6rem); }
.section-heading { margin-bottom: clamp(1.5rem, 3.4vw, 2.65rem); }
.section-heading p:not(.eyebrow) { margin-top: .8rem; max-width: 60ch; }
.eyebrow { color: var(--quiet); margin-bottom: .48rem; font-size: .8rem; font-weight: 750; line-height: 1.35; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.1vw, 1.8rem); }
.theme-card, .demo-card { border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; overflow: hidden; }
.theme-card { display: flex; flex-direction: column; }
.theme-image, .demo-image { display: block; overflow: hidden; background: #1d1828; border-bottom: 1px solid var(--line); }
.theme-image img { aspect-ratio: 1.9; object-fit: cover; object-position: center; }
.theme-card .theme-image img { object-position: center 29%; }
.theme-image:hover img, .demo-image:hover img { filter: brightness(.95); }
.theme-content { padding: clamp(1.05rem, 2.7vw, 1.8rem); display: flex; align-items: start; flex-direction: column; flex: 1; }
.theme-content h3 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
.theme-content h3 a, .demo-content h3 a { text-decoration: none; }
.theme-content h3 a:hover, .demo-content h3 a:hover { text-decoration: underline; }
.theme-content h3 + p { margin-block: .68rem .9rem; }
.access-tags { list-style: none; margin: 0 0 1.15rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.access-tags li { padding: .28rem .64rem; border-radius: .45rem; background: var(--tint); color: var(--accent-dark); font-size: .83rem; font-weight: 680; line-height: 1.3; }
.access-tags .access-note { background: #21192c; color: var(--ink); }
.theme-content .actions { margin-top: auto; }
.demo-section { background: #11101a; border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.filters button, .viewer-controls button { padding: .55rem .9rem; min-height: 42px; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); font-weight: 650; line-height: 1.2; }
.filters button[aria-pressed="true"], .viewer-controls button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); }
.demo-card { display: flex; flex-direction: column; }
.demo-image img { aspect-ratio: 1.62; object-fit: cover; object-position: center top; }
.demo-content { padding: clamp(.95rem, 2vw, 1.4rem); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.demo-content h3 + p { margin-block: .6rem .75rem; font-size: .94rem; }
.demo-content .text-link { margin-top: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.feature-grid article { border-top: 2px solid #bdb3f3; padding: 1.2rem 0; }
.feature-grid h3, .steps h3 { margin-bottom: .55rem; }
.install { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; padding: 0; list-style: none; counter-reset: step; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: .75rem; background: var(--tint); color: var(--accent-dark); font-weight: 750; border-radius: 9px; }
.faq { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .57fr) minmax(0, 1fr); gap: 1.15rem 2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { min-height: 36px; font-weight: 680; }
.faq details p { margin: .3rem 0 .45rem; max-width: 58ch; }
.end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.15rem 2rem; padding: clamp(1.25rem, 4.1vw, 3.2rem); background: var(--tint); border-radius: 1rem; margin-bottom: 2.5rem; }
.end h2 { font-size: clamp(1.5rem, 3.6vw, 2.65rem); }
.end p { margin-top: .55rem; }
.site-footer { padding-block: clamp(1.7rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.1rem 2rem; }
.footer-inner p { margin-top: .55rem; font-size: .91rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; font-size: .94rem; }

.internal { padding-top: clamp(1.3rem, 4.5vw, 3rem); }
.internal .section { padding-bottom: 0; }
.internal .end { margin: 3rem 0 0; }
.crumbs { margin-bottom: clamp(1.1rem, 3.5vw, 2.5rem); font-size: .9rem; color: var(--quiet); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .38rem .65rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .65rem; }
.theme-hero { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1fr); gap: clamp(1rem, 4.5vw, 3.5rem); align-items: center; }
.theme-hero h1 + p { margin-block: .95rem 1.05rem; max-width: 50ch; font-size: 1.1rem; }
.theme-hero figure { border: 1px solid var(--line); overflow: hidden; border-radius: 1rem; }
.theme-hero figure img { aspect-ratio: 1.78; object-fit: cover; object-position: center top; }
.access-section { margin-top: clamp(2rem, 5vw, 4.5rem); padding: clamp(1rem, 3.5vw, 2.5rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--tint); }
.access-section h2 { font-size: clamp(1.55rem, 3.5vw, 2.4rem); }
.access-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: .75rem; margin-top: 1rem; }
.access-option { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(.9rem, 2.3vw, 1.45rem); border-radius: .68rem; background: var(--surface); }
.access-option h3, .access-activation h3 { font-size: 1.1rem; }
.access-option p { margin-block: .35rem .7rem; max-width: 63ch; }
.access-option a { margin-top: auto; }
.access-activation { margin-top: 1rem; }
.access-activation p { margin-top: .3rem; max-width: 72ch; }
.category-intro h1 { max-width: 19ch; font-size: clamp(2.45rem, 5.1vw, 4.4rem); }
.category-intro p { max-width: 63ch; margin-top: .85rem; }
.category-intro h1 + p { font-size: 1.12rem; }

.viewer-body { background: #100e18; }
.viewer { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.viewer-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: .55rem .85rem; display: flex; align-items: center; justify-content: space-between; column-gap: .9rem; row-gap: .65rem; flex-wrap: wrap; }
.viewer-links, .viewer-choice, .viewer-controls, .viewer-actions { display: flex; align-items: center; gap: .55rem; }
.viewer-choice h1 { font-size: 1.06rem; letter-spacing: -.025em; }
.viewer-choice:has([data-demo-select]:not([hidden])) h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.viewer-choice select { max-width: 100%; padding: .38rem .6rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); font-weight: 650; min-height: 42px; }
.viewer-bar .brand-mark { width: 37px; }
.viewer-bar .brand, .viewer-bar .text-link { font-size: .91rem; }
.viewer-controls button { padding-inline: .65rem; font-size: .87rem; }
.preview-area { display: flex; justify-content: center; flex: 1; min-height: 520px; overflow: hidden; }
.preview-area iframe { width: 100%; display: block; border: 0; background: #fff; }
.viewer.is-mobile .preview-area iframe { width: min(390px, 100%); box-shadow: 0 0 28px #05040caa; }

@media (max-width: 900px) {
    .hero-inner { gap: 1.35rem; }
    .theme-hero { gap: 1.5rem; }
    .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .viewer-links .brand span:last-child { display: none; }
}
@media (max-width: 690px) {
    .header-inner { min-height: 0; padding-block: .6rem; flex-wrap: wrap; gap: .6rem; }
    .site-nav { flex-basis: 100%; order: 2; justify-content: space-between; gap: .4rem; font-size: .92rem; }
    .site-nav a { padding: .2rem 0; }
    .hero-inner, .theme-grid, .theme-hero, .feature-grid, .steps, .faq { grid-template-columns: minmax(0, 1fr); }
    .hero-inner { padding-block: 2.4rem 2.75rem; }
    .hero h1 { max-width: 16ch; }
    .hero h1 em { display: inline; }
    .hero-art { width: min(100%, 550px); margin-inline: auto; }
    .categories ul { justify-content: flex-start; gap: 0 .75rem; }
    .categories a { font-size: .88rem; }
    .features .feature-grid { gap: .5rem; }
    .faq .section-heading { margin-bottom: 0; }
    .viewer-bar { padding: .43rem .5rem; }
    .viewer-links { flex-grow: 1; }
    .viewer-controls { order: 2; }
    .viewer-actions .text-link { font-size: .78rem; }
}
@media (max-width: 460px) {
    .demo-grid { grid-template-columns: minmax(0, 1fr); }
    .viewer-choice { order: 2; flex-grow: 1; }
    .viewer-choice select { max-width: 150px; font-size: .88rem; }
    .viewer-links .text-link { font-size: .8rem; }
    .viewer-controls button { font-size: .76rem; padding-inline: .48rem; }
    .viewer-actions .button-small { font-size: .76rem; padding-inline: .5rem; }
}

.rebutni-footer {
    --rebutni-footer-text: #f2ecf9;
    --rebutni-footer-muted: #bcb2c8;
    --rebutni-footer-accent: #e0bcff;
    --rebutni-footer-line: #342b43;
    color: var(--rebutni-footer-text);
    background: #111019;
    border-top: 1px solid var(--rebutni-footer-line);
    font-size: .92rem;
    line-height: 1.48;
}

.rebutni-footer-inner {
    width: min(1240px, calc(100% - 2 * clamp(16px, 4vw, 42px)));
    margin-inline: auto;
    padding-block: clamp(30px, 5vw, 52px) 22px;
}

.rebutni-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.12fr);
    gap: 1.7rem clamp(1rem, 3vw, 2.8rem);
}

.rebutni-footer-grid > *, .rebutni-footer-bottom > * { min-width: 0; }
.rebutni-footer a, .rebutni-footer button {
    color: var(--rebutni-footer-muted);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.rebutni-footer a:hover, .rebutni-footer button:hover { color: var(--rebutni-footer-accent); text-decoration: underline; text-underline-offset: .23em; }
.rebutni-footer a:focus-visible, .rebutni-footer button:focus-visible { outline: 2px solid var(--rebutni-footer-accent); outline-offset: 4px; border-radius: 2px; }
.rebutni-footer p { color: var(--rebutni-footer-muted); margin: 0; }
.rebutni-footer h2 {
    color: var(--rebutni-footer-text);
    font-size: 1rem;
    font-weight: 685;
    line-height: 1.25;
    margin: 0 0 .62rem;
    letter-spacing: -.015em;
}
.rebutni-footer .rebutni-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--rebutni-footer-text);
    font-size: 1.38rem;
    font-weight: 760;
    line-height: 1.12;
    letter-spacing: -.035em;
}
.rebutni-footer-brand img { display: block; width: 44px; height: 38px; object-fit: contain; flex: none; }
.rebutni-footer-intro p { max-width: 25ch; margin-top: .7rem; }
.rebutni-footer-nav ul { display: grid; gap: .38rem; list-style: none; margin: 0; padding: 0; }
.rebutni-footer-nav ul + h2 { margin-top: 1.1rem; }

.rebutni-footer .rebutni-footer-email {
    display: inline-block;
    color: var(--rebutni-footer-accent);
    font-size: clamp(.96rem, 1.55vw, 1.16rem);
    font-weight: 690;
}
.rebutni-footer-contacts p { margin-top: .45rem; }
.rebutni-footer-contacts > a:last-child { display: inline-block; margin-top: .8rem; }

.rebutni-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: .9rem 1.45rem;
    margin-top: clamp(22px, 4vw, 38px);
    padding-top: 1rem;
    border-top: 1px solid var(--rebutni-footer-line);
    font-size: .8rem;
}
.rebutni-footer-rights { display: grid; gap: .22rem; }
.rebutni-footer-rights strong { color: var(--rebutni-footer-text); font-weight: 640; }
.rebutni-footer-rights strong + span { margin-left: .35rem; }
.rebutni-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: flex-end;
    gap: .38rem .9rem;
}
.rebutni-footer-legal button {
    font: inherit;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

@media (max-width: 850px) {
    .rebutni-footer-bottom { grid-template-columns: minmax(0, 1fr); }
    .rebutni-footer-legal { justify-content: flex-start; }
    .rebutni-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
    .rebutni-footer-grid { column-gap: .9rem; row-gap: 1.35rem; }
    .rebutni-footer-intro { grid-column: 1 / -1; }
    .rebutni-footer-contacts { grid-column: 1 / -1; }
    .rebutni-footer-rights strong + span { display: block; margin-left: 0; }
}
