.rhero { position: relative; overflow: hidden; padding: 56px 0 48px; --rc: var(--brand) }
.rhero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center }
.rhero-copy { display: grid; gap: 18px; justify-items: start }
.rhero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.05; letter-spacing: -.015em }
.crumb { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .85rem; padding: 5px 12px 5px 8px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface) }
.crumb:hover { color: var(--text); border-color: var(--rc) }
.rbig { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 300px; width: 100%; margin-inline: auto }
.rbig span { position: relative; z-index: 2; display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 30%; color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); background: var(--rc)}
.rbig .ic { width: 1em; height: 1em }
.rbig .ring { position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--rc) 55%, transparent) }
.rbig .r1 { inset: 14% }
.rbig .r2 { inset: 0; border-style: solid; border-color: var(--line) }
.rbig .r2::after { content: ''; position: absolute; top: 8%; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 18px var(--rc) }

.rsec { position: relative; padding: 64px 0 }
.rsec-alt { background: none }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; counter-reset: n; margin-bottom: 36px }
.node { position: relative; display: grid; justify-items: center; gap: 10px; padding: 8px 10px; text-align: center }
.node b { font-size: .88rem }
.n-ic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-2xl); font-size: 1.7rem; color: #fff; background: var(--rc, var(--brand)) * .5s) }
.n-ic::after { counter-increment: n; content: counter(n); position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 700; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2) }
.node:not(:last-child)::after { content: ''; position: absolute; top: 40px; left: calc(50% + 42px); width: calc(100% - 84px); height: 2px; background: repeating-linear-gradient(90deg, var(--brand-2) 0 6px, transparent 6px 12px); background-size: 24px 2px; opacity: .8 }
.node:not(:last-child)::before { content: ''; position: absolute; top: 35px; right: calc(-50% + 36px); width: 10px; height: 10px; border-top: 2px solid var(--brand-2); border-right: 2px solid var(--brand-2); transform: rotate(45deg); z-index: 1 }


.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.glance.facts { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.facts .g-big { font-size: 1.7rem; overflow-wrap: anywhere }
.f-plans { margin-top: 26px; text-align: center } .f-plans .chips { justify-content: center; margin-bottom: 0 }
.g-card { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line) }
.g-h { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted) }
.g-big { font-size: 2.6rem; font-weight: 700; letter-spacing: -.015em; line-height: 1; color: var(--brand) }
.g-big small { font-size: .9rem; font-weight: 500; -webkit-text-fill-color: var(--muted) }
.g-sub { color: var(--muted); font-size: .84rem }
.g-size { display: grid; gap: 6px }
.g-size li { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: var(--r-lg); background: var(--surface-2); font-variant-numeric: tabular-nums }
.g-size i { font-style: normal; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted) }
@keyframes grow { from { transform: scaleY(0) } }

.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 22px }
.persona { display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s }
.persona:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2) }
.persona h3 { font-size: 1.02rem } .persona p { color: var(--muted); font-size: .9rem }
.usechips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.usechips li { padding: 6px 14px; border-radius: 99px; font-size: .84rem; background: var(--surface); border: 1px solid var(--line-2) }

.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px }
.way { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s }
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2) }
.way h3 { font-size: 1.02rem } .way p { color: var(--muted); font-size: .9rem }
.way ul { display: grid; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: .84rem }
.way li { display: flex; gap: 8px; align-items: flex-start } .way li .ic { flex: none; margin-top: 2px; color: var(--brand) }

.mono { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r-lg); font-size: .68rem; font-weight: 700; letter-spacing: -.01em; color: #fff; background: var(--mc); box-shadow: 0 6px 14px -6px var(--mc) }
.tgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px }
.tgroup { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line) }
.tgroup h3 { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px }
.tgroup ul { display: flex; flex-wrap: wrap; gap: 8px }
.tech { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--r-xl); background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem }
.tech .mono { width: 26px; height: 26px; border-radius: var(--r-lg); font-size: .62rem }
.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px }
.lang-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s }
.lang-card:hover { transform: translateY(-4px); box-shadow: var(--shadow) }
.lang-card header { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--lc) 10%, transparent) }
.lang-card h3 { font-size: .98rem } .lang-card small { color: var(--muted); font-size: .74rem }
.lang-card pre { margin: 0; padding: 14px; overflow-x: auto; font-size: .74rem; line-height: 1.6; background: #0d0f1f; color: #d7dcff }
.lang-card code { font-family: var(--font-mono) }
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface) }
.cmp { width: 100%; border-collapse: collapse; font-size: .88rem }
.cmp th, .cmp td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle }
.cmp thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--surface-2) }
.cmp tbody th { font-weight: 600; white-space: nowrap }
.cmp tbody tr:last-child > * { border-bottom: 0 }
.cmp tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent) }
.tech-table tbody th { display: flex; align-items: center; gap: 10px }
.tech-table .mono { width: 24px; height: 24px; border-radius: var(--r-md); font-size: .58rem }
.cmp code { padding: 2px 8px; border-radius: var(--r-md); background: var(--surface-2); font-size: .8rem; font-family: var(--font-mono)}
#compare .cmp thead th:nth-child(2), #compare .cmp td:nth-child(2) { background: color-mix(in srgb, var(--k-managed_db) 7%, transparent) }
#compare .cmp thead th:nth-child(3), #compare .cmp td:nth-child(3) { background: color-mix(in srgb, var(--k-database_app) 7%, transparent) }
.vs-graphic { max-width: 640px; margin: 0 auto 26px }
.vs-graphic svg { width: 100%; height: auto; overflow: visible }
.vs-graphic .box { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 6 5 }
.vs-graphic .mine-box { stroke: var(--brand); stroke-dasharray: none; fill: color-mix(in srgb, var(--brand) 8%, var(--surface)) }
.vs-graphic .lbl { fill: var(--text); font: 700 13px var(--font) } .vs-graphic .sub { fill: var(--muted); font: 11px var(--font) }
.vs-graphic .cyl ellipse, .vs-graphic .cyl path { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.3 }
.vs-graphic .cyl .top { fill: var(--surface) }
.vs-graphic .cyl.mine ellipse, .vs-graphic .cyl.mine path { fill: color-mix(in srgb, var(--k-managed_db) 55%, var(--bg-2)); stroke: var(--k-managed_db) }
.vs-graphic .cyl.big ellipse, .vs-graphic .cyl.big path { fill: color-mix(in srgb, var(--k-database_app) 55%, var(--bg-2)); stroke: var(--k-database_app) }
.vs-graphic .vs circle { fill: var(--bg-2); stroke: var(--brand); stroke-width: 2 } .vs-graphic .vs text { fill: var(--brand); font: 700 13px var(--font) }
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 18px }
.pc { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--k-managed_db) }
.pc.is-b { border-top-color: var(--k-database_app) }
.pc h3 { margin-bottom: 12px; font-size: 1.05rem }
.pc ul { display: grid; gap: 7px; font-size: .88rem } .pc .cons { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--muted) }
.pc li { display: flex; gap: 9px; align-items: center }
.pros .ic { color: var(--go); background: color-mix(in srgb, var(--go) 15%, transparent); border-radius: 50%; padding: 2px; width: 1.3em; height: 1.3em }
.cons .ic { color: var(--stop); background: color-mix(in srgb, var(--stop) 14%, transparent); border-radius: 50%; padding: 2px; width: 1.3em; height: 1.3em }
.cmp-links { display: flex; gap: 22px; justify-content: center; margin-top: 18px }

.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); --rc: var(--brand); transition: transform .3s, border-color .3s, box-shadow .3s }
.pick:hover { transform: translateY(-3px); border-color: var(--rc); box-shadow: var(--shadow) }
.pick.is-static { grid-template-columns: auto 1fr }
.pick.is-static:hover { transform: none; border-color: var(--line); box-shadow: none }
.pick .fic { background: none; box-shadow: none; color: var(--rc) }
.pick h3 { font-size: 1rem } .pick p { color: var(--muted); font-size: .82rem; line-height: 1.4 }
.pick > .ic { color: var(--muted); transition: transform .2s } .pick:hover > .ic { transform: translateX(4px); color: var(--rc) }
.idx { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) }

@media (max-width: 900px) {
    .rhero-grid { grid-template-columns: 1fr } .rbig { max-width: 190px; order: -1; margin-inline: 0 }
    .glance.facts { grid-template-columns: 1fr 1fr } .glance.facts .g-card:last-child:nth-child(odd) { grid-column: 1 / -1 }
    .flow { grid-template-columns: 1fr 1fr; row-gap: 22px } .node:not(:last-child)::after, .node:not(:last-child)::before { display: none }
}
@media (max-width: 520px) { .glance, .glance.facts { grid-template-columns: 1fr } .cmp th, .cmp td { padding: 9px 10px } }
.lang-card { display: flex; flex-direction: column } .lang-card pre { flex: 1 }
.rpage :is(.persona .fic, .way .fic, .n-ic, .rbig span) { color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent) }
