.rbs-home {
    --home-ink: #fbf8ff;
    --home-accent: #d6b9ff;
    --home-surface: #15121e;
    --home-line: #342a42;
    --home-muted: #bdb4c9;
    width: min(100%, 1224px);
    margin-inline: auto;
    padding-block: clamp(22px, 3.2vw, 48px) clamp(36px, 5vw, 64px);
}

.rbs-home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
    gap: clamp(1rem, 3vw, 2.75rem);
    align-items: center;
    min-height: clamp(400px, 36vw, 510px);
    overflow: hidden;
    border: 1px solid #b788f525;
    border-radius: clamp(18px, 3vw, 34px);
    background: radial-gradient(ellipse at 76% 60%, #241530 0, transparent 64%), #100e17;
    padding: clamp(22px, 5vw, 64px);
    color: var(--home-ink);
}

.rbs-home-hero-content { position: relative; z-index: 1; min-width: 0; }
.rbs-studio .rbs-home-hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4.35vw, 4.25rem);
    font-weight: 730;
    line-height: 1.01;
    letter-spacing: -.066em;
}
.rbs-home-hero h1 span {
    display: block;
    margin-top: .07em;
    color: var(--home-accent);
}
.rbs-home-hero-content p {
    max-width: 35ch;
    margin: 1.5rem 0 0;
    color: var(--home-muted);
    line-height: 1.65;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    text-wrap: pretty;
}

.rbs-home-buttons, .rbs-home-feature-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem .8rem;
    margin-top: 1.55rem;
}
.rbs-home-buttons :is(.ucp-button, .rbs-button-secondary),
.rbs-home-feature-actions :is(.ucp-button, .rbs-button-secondary) {
    min-height: 44px;
    border-radius: 9px;
    padding: .65rem .95rem;
    font-size: .88rem;
}
.rbs-home-buttons .rbs-icon, .rbs-home-feature-actions .rbs-icon { width: 1rem; height: 1rem; }
.rbs-home .rbs-button-secondary { border-color: #9177ac6b; background: #1c1422a6; }
.rbs-home .rbs-button-secondary:hover { border-color: var(--home-accent); }

.rbs-home-section {
    margin-top: clamp(49px, 7vw, 86px);
    scroll-margin-top: 24px;
}
.rbs-home-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    margin-bottom: 1.4rem;
}
.rbs-studio .rbs-home-section-head :is(h1,h2) {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vw, 2.95rem);
    font-weight: 680;
    line-height: 1.11;
    letter-spacing: -.048em;
}
.rbs-home-section-head a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--home-accent);
    font-size: .9rem;
    font-weight: 600;
}
.rbs-home-section-head a .rbs-icon { width: 1rem; height: 1rem; }

.rbs-home-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 3.5vw, 2.75rem);
    padding: clamp(1.2rem, 3.5vw, 2.75rem);
    margin-bottom: 1.05rem;
    border: 1px solid #654e805e;
    border-radius: clamp(15px, 2vw, 22px);
    background: linear-gradient(122deg, #21172d, #13111c 70%);
}
.rbs-home-feature:has(.rbs-home-feature-visual) { grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); }
.rbs-home-feature-copy { min-width: 0; }
.rbs-studio .rbs-home-feature h3 {
    margin: 0 0 .7rem;
    font-size: clamp(1.6rem, 3vw, 2.75rem);
    font-weight: 690;
    letter-spacing: -.045em;
    line-height: 1.08;
    text-wrap: balance;
}
.rbs-home-feature-copy p { margin: 0 0 .65rem; color: var(--home-muted); line-height: 1.58; max-width: 44ch; }
.rbs-home-feature-access, .rbs-home-product small { color: var(--home-accent); font-size: .8rem; font-weight: 600; }
.rbs-home-feature-actions { margin-top: 1.15rem; }
.rbs-home-feature-actions > a:last-child:not(.rbs-button-secondary) { font-size: .9rem; color: var(--home-accent); }
.rbs-home-feature-visual {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #b59ac14d;
    color: #fff;
    background: var(--home-surface);
}
.rbs-home-feature-image { display: block; width: 100%; height: auto; aspect-ratio: 824 / 509; object-fit: cover; }
.rbs-home-feature-visual span {
    position: absolute;
    inset: auto 10px 10px auto;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .34rem .68rem;
    border-radius: .45rem;
    background: #15101eea;
    font-size: .8rem;
    font-weight: 650;
}
.rbs-home-feature-visual span .rbs-icon { width: .9rem; }

.rbs-home-theme-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.05rem; }
.rbs-home-product {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 104px;
    gap: .95rem;
    border: 1px solid var(--home-line);
    border-radius: 13px;
    background: var(--home-surface);
    padding: .85rem 1rem;
}
.rbs-home-product:not(:has(.rbs-home-product-image)) { grid-template-columns: minmax(0, 1fr); }
.rbs-studio .rbs-home-product h3 { margin: 0; font-size: 1.07rem; line-height: 1.3; overflow-wrap: anywhere; }
.rbs-home-product h3 a::after { content: ""; position: absolute; inset: 0; }
.rbs-home-product-image { width: 69px; aspect-ratio: 1; }
.rbs-home-product-image img { height: 100%; display: block; border-radius: 7px; object-fit: cover; }
.rbs-home-product p { margin: .25rem 0; color: var(--home-muted); font-size: .88rem; line-height: 1.46; }

.rbs-home-paths {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}
.rbs-home-paths a {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 78px;
    padding: .8rem 1rem;
    border-block: 1px solid var(--home-line);
}
.rbs-home-path-icon { flex: 0 0 1.5rem; color: var(--home-accent); }
.rbs-home-paths strong, .rbs-home-paths small { display: block; }
.rbs-home-paths strong { font-size: .99rem; line-height: 1.2; }
.rbs-home-paths small { color: var(--home-muted); font-size: .82rem; line-height: 1.4; margin-top: .18rem; }
.rbs-home-paths a > .rbs-icon { width: 1rem; margin-inline-start: auto; flex-shrink: 0; color: var(--home-accent); }
.rbs-home :is(.rbs-home-product, .rbs-home-paths a, .rbs-home-feature-visual):hover { border-color: #a476cb; }
.rbs-home :is(a, button):focus-visible { outline: 2px solid var(--home-accent); outline-offset: 4px; }
.rbs-home .rbs-article-card { background: var(--home-surface); border-color: var(--home-line); }
.rbs-home .rbs-article-grid .rbs-card-copy h2 { font-size: clamp(1rem, 1.8vw, 1.18rem); }

@media (max-width: 760px) {
    .rbs-home { padding-block-start: 1rem; }
    .rbs-home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 20px 24px 0; }
    .rbs-home-hero-content p { margin-top: .9rem; }
    .rbs-home-buttons { margin-top: 1.15rem; }
    .rbs-home-feature:has(.rbs-home-feature-visual) { grid-template-columns: minmax(0, 1fr); }
    .rbs-home-paths { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .rbs-home-paths a + a { border-block-start: 0; }
}

@media (max-width: 560px) {
    .rbs-home-hero { padding-inline: clamp(18px, 5.5vw, 24px); }
    .rbs-studio .rbs-home-hero h1 { font-size: clamp(1.9rem, 8vw, 3rem); letter-spacing: -.05em; }
    .rbs-home-hero-content p { font-size: .97rem; }
    .rbs-home-buttons :is(.ucp-button, .rbs-button-secondary) { font-size: .83rem; padding-inline: .65rem; }
    .rbs-home-theme-list, .rbs-home .rbs-article-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
    .rbs-home-product, .rbs-home-feature-visual { transition: border-color .18s ease; }
}
@media (prefers-reduced-motion: reduce) {
    .rbs-home .rbs-article-card { transition: none; }
    .rbs-home .rbs-article-card:hover { transform: none; }
}
.rbs-home-demo {
    display: grid;
    align-self: center;
    gap: .6rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.rbs-home-demo img { display: block; width: 100%; height: auto; border-radius: 1rem; }
.rbs-home-demo span { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
@media (max-width: 760px) {
    .rbs-home-demo { margin-block: .6rem 1rem; }
}
