/* =========================================================
   Modern Data Studio — homepage art direction
   body.theme-studio
   ========================================================= */

body.theme-studio {
  --color-base: #f4f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #eaf1fb;
  --color-ink: #17202b;
  --color-muted: #657184;
  --color-faint: #8a96a8;
  --color-primary: #2f6fed;
  --color-primary-hover: #245dd4;
  --color-navy: #111827;
  --color-deep: #183b66;
  --color-accent: #ea6900;
  --color-accent-hover: #d45f00;
  --color-bright: #5c8dff;
  --color-steel: #d9e2ee;
  --color-border: #d6dee8;
  --font-display: "Manrope", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "DM Sans", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --home-max: 1320px;
  background: var(--color-base);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.65;
}

body.theme-studio .app-shell {
  background: var(--color-base);
}

body.theme-studio .shell-max,
body.theme-studio .container,
body.theme-studio .container-wide {
  max-width: var(--home-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}

/* ----- Top navigation ----- */
body.theme-studio #top-nav-shell {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 76px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 222, 232, 0.85);
  box-shadow: none;
  overflow: visible;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

body.theme-studio #top-nav-shell.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

body.theme-studio .top-nav-row {
  height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

body.theme-studio .product-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

body.theme-studio .product-lockup img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

body.theme-studio .primary-links {
  display: none;
  justify-content: center;
  gap: 1.65rem;
}

@media (min-width: 980px) {
  body.theme-studio .primary-links {
    display: flex;
  }
}

body.theme-studio .primary-links a {
  position: relative;
  text-decoration: none;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.18s ease;
}

body.theme-studio .primary-links a:hover {
  color: var(--color-primary);
}

body.theme-studio .primary-links a[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 600;
}

body.theme-studio .primary-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

body.theme-studio .top-nav-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.theme-studio #nav-drawer-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  cursor: pointer;
}

@media (min-width: 980px) {
  body.theme-studio #nav-drawer-btn {
    display: none;
  }
}

body.theme-studio #nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

body.theme-studio #nav-drawer.is-open {
  display: flex;
}

body.theme-studio #nav-drawer a {
  text-decoration: none;
  color: var(--color-ink);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
}

body.theme-studio #nav-drawer a:hover,
body.theme-studio #nav-drawer a[aria-current="page"] {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

/* ----- Actions ----- */
body.theme-studio .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.theme-studio .action:hover {
  transform: translateY(-2px);
}

body.theme-studio .action-get {
  background: #2f6fed;
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.28);
}

body.theme-studio .action-get:hover {
  background: #245dd4;
  color: #fff;
}

body.theme-studio .action-ghost {
  background: #fff;
  color: var(--color-deep);
  border-color: var(--color-border);
}

body.theme-studio .action-ghost:hover {
  border-color: rgba(47, 111, 237, 0.35);
  color: var(--color-primary);
}

body.theme-studio .action-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

body.theme-studio .action-text .arrow {
  color: var(--color-primary);
  transition: transform 0.18s ease;
}

body.theme-studio .action-text:hover .arrow {
  transform: translateX(3px);
}

body.theme-studio .action-compact {
  min-height: 40px;
  padding: 0 1.05rem;
  font-size: 0.88rem;
}

/* ----- Intro banner (hero) ----- */
.mds-intro {
  position: relative;
  min-height: clamp(620px, 72vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 85% 35%, rgba(92, 141, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(47, 111, 237, 0.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.mds-intro-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(24, 59, 102, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 59, 102, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.mds-intro-nodes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(circle at 20% 30%, #2f6fed 1.5px, transparent 1.6px),
    radial-gradient(circle at 70% 20%, #183b66 1.2px, transparent 1.3px),
    radial-gradient(circle at 55% 75%, #5c8dff 1.4px, transparent 1.5px),
    radial-gradient(circle at 30% 70%, #2f6fed 1px, transparent 1.1px);
  background-size: 100% 100%;
}

.mds-intro-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

@media (min-width: 980px) {
  .mds-intro-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.mds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.mds-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}

.mds-intro h1 {
  position: relative;
  display: inline-block;
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 94px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #183b66;
  animation: mds-title-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mds-intro h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.09em;
  border-radius: 999px;
  background: linear-gradient(90deg, #ea6900 0%, #2f6fed 55%, #5c8dff 100%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: mds-title-line 0.85s 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mds-headline {
  margin: 0 0 1.1rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #2f6fed;
  animation: mds-title-in 0.75s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mds-lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.mds-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.5rem;
  margin-bottom: 1.35rem;
}

.mds-meta-row {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 13px;
  color: var(--color-muted);
}

.mds-meta-row li:not(:last-child)::after {
  content: "•";
  margin-left: 0.85rem;
  color: #b0bac8;
}

.mds-visual {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.mds-visual-blob,
.mds-visual-ring {
  display: none;
}

.mds-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  height: auto;
  display: block;
  filter: none;
  outline: none;
  border: 0;
  box-shadow: none;
  background: transparent;
}

@keyframes mds-drift {
  from { transform: translate(-6px, 4px) scale(1); }
  to { transform: translate(8px, -6px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .mds-visual-blob { animation: none; }
  body.theme-studio .action:hover { transform: none; }
  .mds-tile:hover { transform: none; }
}

/* ----- Schema divider ----- */
.mds-rule {
  height: 52px;
  display: grid;
  place-items: center;
  background: #fff;
}

.mds-rule-inner {
  width: min(720px, 86%);
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9e2ee 12%, #d9e2ee 88%, transparent);
  position: relative;
}

.mds-rule-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-deep);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.35);
  transform: translate(-50%, -50%);
}

.mds-rule-inner::after {
  content: "";
  position: absolute;
  left: calc(50% + 14px);
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

/* ----- Database rail ----- */
.mds-db {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: #fff;
  position: relative;
}

.mds-db::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 222, 232, 0.9), transparent);
  pointer-events: none;
}

.mds-db-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.mds-db-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: #183b66;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.mds-db:hover .mds-db-head h2 {
  color: #2f6fed;
  letter-spacing: -0.04em;
}

.mds-db-head p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.mds-db-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
}

.mds-db-rail span {
  position: relative;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
  opacity: 0.62;
  cursor: default;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.mds-db-rail span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: var(--color-steel);
  transform: translateY(-50%);
}

.mds-db-rail span:hover {
  opacity: 1;
  color: var(--color-primary);
}

.mds-db-rail span:hover::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--color-primary);
}

.mds-db-more {
  margin: 1.75rem 0 0;
  text-align: center;
}

.mds-db-more a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.mds-db-more a:hover {
  text-decoration: underline;
}

/* ----- Sections shell ----- */
.mds-block {
  position: relative;
  padding: clamp(4.75rem, 9vw, 7.5rem) 0;
}

.mds-block.is-soft {
  background: #f4f7fb;
}

.mds-block.is-white {
  background: #fff;
}

.mds-block.is-mist {
  background: #eaf1fb;
}

.mds-block.is-deep {
  background: #183b66;
  color: #fff;
  overflow: hidden;
}

.mds-block.is-deep .mds-copy,
.mds-block.is-deep p {
  color: rgba(255, 255, 255, 0.78);
}

.mds-table-ghost {
  position: absolute;
  inset: 8% 6% auto auto;
  width: min(420px, 42%);
  height: 220px;
  border: 1px solid rgba(24, 59, 102, 0.08);
  border-radius: 12px;
  opacity: 0.55;
  pointer-events: none;
  background:
    linear-gradient(rgba(24, 59, 102, 0.04) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgba(24, 59, 102, 0.04) 1px, transparent 1px) 0 0 / 18% 100%;
}

.mds-kicker {
  position: relative;
  display: inline-block;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2f6fed;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mds-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ea6900, #2f6fed);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mds-block:hover .mds-kicker,
.mds-head-center:hover .mds-kicker {
  color: #183b66;
}

.mds-block:hover .mds-kicker::after,
.mds-head-center:hover .mds-kicker::after {
  transform: scaleX(1);
}

.mds-block h2 {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.55rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #111827;
  transition: color 0.28s ease, transform 0.28s ease;
}

.mds-block.is-soft h2,
.mds-block.is-mist h2,
.mds-block.is-white h2 {
  color: #183b66;
}

.mds-block:hover h2 {
  color: #2f6fed;
  transform: translateY(-2px);
}

.mds-block.is-deep h2,
.mds-block.is-deep:hover h2 {
  color: #ffffff;
  transform: none;
}

.mds-block.is-deep .mds-kicker {
  color: #ffb067;
}

.mds-block.is-deep .mds-kicker::after {
  background: linear-gradient(90deg, #ea6900, #ffb067);
}

.mds-copy {
  margin: 0;
  max-width: 38rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.mds-head-center {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 42rem;
}

.mds-head-center .mds-copy {
  margin-left: auto;
  margin-right: auto;
}

.mds-head-split {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 900px) {
  .mds-head-split {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
  }
}

.mds-head-editorial {
  display: grid;
  gap: 1rem 2rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 900px) {
  .mds-head-editorial {
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }
  .mds-head-editorial h2 {
    max-width: 14ch;
  }
}

/* ----- Why / feature tiles ----- */
.mds-tile-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .mds-tile-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .mds-tile.span-wide { grid-column: 1 / -1; }
  .mds-tile.is-large { grid-row: span 1; min-height: 220px; }
}

.mds-tile {
  position: relative;
  padding: 1.65rem 1.55rem;
  background: #fff;
  border: 1px solid rgba(32, 70, 120, 0.1);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.03);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mds-tile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.mds-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 111, 237, 0.35);
  box-shadow: 0 16px 34px rgba(24, 59, 102, 0.08);
}

.mds-tile:hover::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-bright));
}

.mds-tile.is-accent::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--color-accent);
}

.mds-tile.is-large { border-radius: 14px; padding: 2rem 1.85rem; }
.mds-tile.is-wide { border-radius: 10px; }
.mds-tile.is-compact { border-radius: 11px; padding: 1.35rem 1.25rem; }

.mds-tile-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-primary);
}

.mds-tile h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #183b66;
  transition: color 0.2s ease;
}

.mds-tile p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.mds-center-link {
  margin-top: 2.25rem;
  text-align: center;
}

/* ----- Split workspace ----- */
.mds-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .mds-split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.75rem;
  }
}

.mds-flow {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.mds-flow li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--color-ink);
  font-weight: 500;
}

.mds-flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.mds-shot {
  margin: 0;
  position: relative;
}

.mds-shot::before {
  content: "";
  position: absolute;
  inset: 12% -4% -4% 8%;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(92, 141, 255, 0.22), rgba(24, 59, 102, 0.08));
  z-index: 0;
}

.mds-shot a {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(32, 70, 120, 0.12);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
  background: #111827;
}

.mds-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- Connection list ----- */
.mds-conn {
  border: 1px solid rgba(32, 70, 120, 0.1);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.mds-conn-head,
.mds-conn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
}

.mds-conn-head {
  background: #eaf1fb;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.mds-conn-row {
  border-top: 1px solid var(--color-border);
}

.mds-conn-row:hover {
  background: rgba(47, 111, 237, 0.04);
}

.mds-conn-row .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
}

.mds-conn-row .meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.mds-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.mds-status.on { color: #1f7a45; }
.mds-status.local { color: var(--color-deep); }
.mds-status.avail { color: var(--color-muted); }

.mds-status .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e5b;
  box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.5);
  animation: mds-pulse 2s ease-out infinite;
}

@keyframes mds-pulse {
  70% { box-shadow: 0 0 0 8px rgba(47, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); }
}

/* ----- Editions + table ----- */
.mds-editions {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .mds-editions {
    grid-template-columns: 1fr 1fr;
  }
}

.mds-edition {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(32, 70, 120, 0.1);
  border-radius: 14px;
}

.mds-edition.ce {
  background: linear-gradient(180deg, #f7faff 0%, #fff 40%);
  border-color: rgba(47, 111, 237, 0.22);
}

.mds-edition .tag {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.mds-edition h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 750;
}

.mds-edition ul {
  margin: 1.1rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.mds-edition li + li {
  margin-top: 0.4rem;
}

.mds-spec {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.mds-spec th,
.mds-spec td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.98rem;
}

.mds-spec thead th {
  background: #eaf1fb;
  font-family: var(--font-display);
  font-weight: 700;
  position: sticky;
  top: 76px;
  z-index: 1;
}

.mds-spec th.emph,
.mds-spec td.emph {
  background: rgba(47, 111, 237, 0.05);
}

.mds-spec tbody tr:hover td {
  background: rgba(47, 111, 237, 0.04);
}

.mds-spec tbody tr:hover td.emph {
  background: rgba(47, 111, 237, 0.08);
}

/* ----- Release ----- */
.mds-release {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .mds-release {
    grid-template-columns: 1.4fr 1fr;
  }
}

.mds-release-card {
  padding: 1.85rem;
  background: #fff;
  border: 1px solid rgba(32, 70, 120, 0.1);
  border-radius: 14px;
}

.mds-release-card .date {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.mds-release-card h2,
.mds-release-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.mds-release-card a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.mds-release-card a:hover {
  text-decoration: underline;
}

/* ----- Reviews ----- */
.mds-quotes {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .mds-quotes {
    grid-template-columns: 1fr 1fr;
  }
}

.mds-quote {
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
}

.mds-quote .mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-bright);
}

.mds-quote p {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--color-ink);
}

.mds-quote .who {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* ----- FAQ ----- */
.mds-faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.mds-faq-list .acc-item {
  border-bottom: 1px solid var(--color-border);
}

.mds-faq-list .acc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0.15rem;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--color-ink);
}

.mds-faq-list .chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.mds-faq-list .acc-item.is-open .chev {
  transform: rotate(-135deg);
}

.mds-faq-list .acc-panel {
  padding: 0 0.15rem 1.25rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  transition: opacity 0.25s ease;
}

/* ----- Final CTA ----- */
.mds-launch {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) 1rem;
  z-index: 1;
}

.mds-block.is-deep .mds-nodes {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 15% 40%, #fff 1.5px, transparent 1.6px),
    radial-gradient(circle at 80% 30%, #5c8dff 1.2px, transparent 1.3px),
    radial-gradient(circle at 55% 75%, #fff 1px, transparent 1.1px);
  pointer-events: none;
}

.mds-launch .label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb067;
}

.mds-launch .label::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--color-accent);
}

.mds-launch h2 {
  color: #fff;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.mds-launch .mds-cta-row {
  justify-content: center;
  margin-top: 1.75rem;
}

.mds-launch-meta {
  margin: 1.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ----- Related ----- */
.mds-continue {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .mds-continue {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mds-continue a.card {
  display: block;
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(32, 70, 120, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mds-continue a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 111, 237, 0.35);
  box-shadow: 0 12px 28px rgba(24, 59, 102, 0.08);
}

.mds-continue h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-ink);
}

.mds-continue p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ----- Footer + float ----- */
body.theme-studio .page-end {
  background: #101923;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(92, 141, 255, 0.25);
  padding: 3.25rem 0 2rem;
}

body.theme-studio .page-end .product-lockup {
  color: #fff;
}

body.theme-studio .page-end h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

body.theme-studio .page-end a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

body.theme-studio .page-end a:hover {
  color: #fff;
}

body.theme-studio .end-columns {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  body.theme-studio .end-columns {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

body.theme-studio .end-columns > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.theme-studio .end-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

body.theme-studio .quick-get {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 8px;
  font-size: 0.88rem;
  background: #2f6fed;
  box-shadow: 0 12px 28px rgba(47, 111, 237, 0.32);
}

body.theme-studio .quick-get:hover {
  background: #245dd4;
}

@media (max-width: 640px) {
  body.theme-studio .quick-get span {
    display: none;
  }
  body.theme-studio .quick-get {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 10px;
  }
}

/* Lang switch polish on studio theme */
body.theme-studio .lang-switch-btn {
  border-color: var(--color-border);
  background: #fff;
  color: var(--color-ink);
  border-radius: 8px;
}

body.theme-studio .font-mono {
  font-family: var(--font-mono);
}

/* Title motion */
@keyframes mds-title-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mds-title-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.mds-tile:hover h3 {
  color: #2f6fed;
}

.mds-edition h3 {
  color: #183b66;
  transition: color 0.2s ease;
}

.mds-edition:hover h3 {
  color: #2f6fed;
}

.mds-quote .mark {
  transition: color 0.25s ease, transform 0.25s ease;
}

.mds-quote:hover .mark {
  color: #2f6fed;
  transform: translateY(-2px);
}

.mds-continue h3 {
  transition: color 0.2s ease;
}

.mds-continue a.card:hover h3 {
  color: #2f6fed;
}

.mds-release-card h2,
.mds-release-card h3 {
  color: #183b66;
  transition: color 0.2s ease;
}

.mds-release-card:hover h2,
.mds-release-card:hover h3 {
  color: #2f6fed;
}

.mds-faq-list .acc-btn {
  transition: color 0.2s ease;
}

.mds-faq-list .acc-item.is-open .acc-btn,
.mds-faq-list .acc-btn:hover {
  color: #2f6fed;
}

/* Inner pages — center everything + colored titles */
body.theme-studio:not(:has(.mds-intro)) .breadcrumbs,
body.theme-studio:not(:has(.mds-intro)) .breadcrumbs ol {
  justify-content: center;
  text-align: center;
}

body.theme-studio:not(:has(.mds-intro)) .entry-banner {
  text-align: center;
}

body.theme-studio:not(:has(.mds-intro)) .entry-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.theme-studio:not(:has(.mds-intro)) .entry-banner .lead,
body.theme-studio:not(:has(.mds-intro)) .entry-banner p {
  margin-left: auto;
  margin-right: auto;
  max-width: 46rem;
  text-align: center;
}

body.theme-studio:not(:has(.mds-intro)) .entry-banner .cta-row,
body.theme-studio:not(:has(.mds-intro)) .entry-banner .toc-panel {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
}

body.theme-studio:not(:has(.mds-intro)) .toc-panel ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

body.theme-studio:not(:has(.mds-intro)) .section > .container,
body.theme-studio:not(:has(.mds-intro)) .section-tight > .container {
  text-align: center;
}

body.theme-studio:not(:has(.mds-intro)) .section > .container > .eyebrow,
body.theme-studio:not(:has(.mds-intro)) .section-tight > .container > .eyebrow,
body.theme-studio:not(:has(.mds-intro)) .section > .container > h2,
body.theme-studio:not(:has(.mds-intro)) .section-tight > .container > h2,
body.theme-studio:not(:has(.mds-intro)) .section > .container > .lead,
body.theme-studio:not(:has(.mds-intro)) .section-tight > .container > .lead,
body.theme-studio:not(:has(.mds-intro)) .section > .container > p,
body.theme-studio:not(:has(.mds-intro)) .section-tight > .container > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.theme-studio:not(:has(.mds-intro)) .section > .container > p.muted,
body.theme-studio:not(:has(.mds-intro)) .section-tight > .container > p.muted {
  max-width: 40rem;
}

body.theme-studio:not(:has(.mds-intro)) .grid-2,
body.theme-studio:not(:has(.mds-intro)) .grid-3,
body.theme-studio:not(:has(.mds-intro)) .use-rail,
body.theme-studio:not(:has(.mds-intro)) .download-platform,
body.theme-studio:not(:has(.mds-intro)) .panel,
body.theme-studio:not(:has(.mds-intro)) .prose,
body.theme-studio:not(:has(.mds-intro)) [data-faq-group],
body.theme-studio:not(:has(.mds-intro)) .feat-layout {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

body.theme-studio:not(:has(.mds-intro)) .feat-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 920px;
}

body.theme-studio:not(:has(.mds-intro)) .feat-index {
  position: static;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

body.theme-studio:not(:has(.mds-intro)) .feat-index a {
  display: inline-flex;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  background: #eaf1fb;
  color: #183b66;
}

body.theme-studio:not(:has(.mds-intro)) .feat-index a:hover {
  background: #2f6fed;
  color: #fff;
}

body.theme-studio:not(:has(.mds-intro)) .feat-layout > div:last-child,
body.theme-studio:not(:has(.mds-intro)) .prose {
  width: 100%;
  max-width: 820px;
}

body.theme-studio:not(:has(.mds-intro)) .prose article,
body.theme-studio:not(:has(.mds-intro)) [data-faq-group] {
  text-align: center;
}

body.theme-studio:not(:has(.mds-intro)) .prose article > p,
body.theme-studio:not(:has(.mds-intro)) .prose article > ul,
body.theme-studio:not(:has(.mds-intro)) .prose article > ol,
body.theme-studio:not(:has(.mds-intro)) [data-faq-group] .acc-panel {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
}

body.theme-studio:not(:has(.mds-intro)) .download-platform {
  max-width: 860px;
}

body.theme-studio:not(:has(.mds-intro)) .dl-head,
body.theme-studio:not(:has(.mds-intro)) .dl-row {
  justify-content: space-between;
  text-align: left;
}

body.theme-studio:not(:has(.mds-intro)) .cta-row {
  justify-content: center;
}

body.theme-studio:not(:has(.mds-intro)) .split-57,
body.theme-studio:not(:has(.mds-intro)) .split-75 {
  text-align: left;
}

body.theme-studio:not(:has(.mds-intro)) .entry-banner h1 {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  letter-spacing: -0.04em;
  font-weight: 750;
  color: #183b66;
  animation: mds-title-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.theme-studio:not(:has(.mds-intro)) .entry-banner h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.08em;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5c8dff, #2f6fed);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  animation: mds-title-line-center 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mds-title-line-center {
  from { transform: translateX(-50%) scaleX(0); }
  to { transform: translateX(-50%) scaleX(1); }
}

body.theme-studio:not(:has(.mds-intro)) .section h2,
body.theme-studio:not(:has(.mds-intro)) .section-tight h2,
body.theme-studio:not(:has(.mds-intro)) .eyebrow + h2,
body.theme-studio:not(:has(.mds-intro)) .prose h2 {
  color: #183b66;
  transition: color 0.25s ease, transform 0.25s ease;
}

body.theme-studio:not(:has(.mds-intro)) .section:hover > .container > h2,
body.theme-studio:not(:has(.mds-intro)) .section-tight:hover > .container > h2 {
  color: #2f6fed;
  transform: translateY(-2px);
}

body.theme-studio:not(:has(.mds-intro)) .eyebrow,
body.theme-studio:not(:has(.mds-intro)) .px-label {
  color: #2f6fed;
}

@media (prefers-reduced-motion: reduce) {
  .mds-intro h1,
  .mds-headline,
  body.theme-studio:not(:has(.mds-intro)) .entry-banner h1,
  .mds-intro h1::after,
  body.theme-studio:not(:has(.mds-intro)) .entry-banner h1::after {
    animation: none;
  }
  .mds-block:hover h2,
  body.theme-studio:not(:has(.mds-intro)) .section:hover > .container > h2 {
    transform: none;
  }
}

/* Inner pages — soft blue fabric (no beige waves) */
body.theme-studio:not(:has(.mds-intro)) {
  background: #f4f7fb;
}

body.theme-studio:not(:has(.mds-intro)) .content-stage > .section,
body.theme-studio:not(:has(.mds-intro)) .content-stage > .section-tight {
  background: #ffffff;
}

body.theme-studio:not(:has(.mds-intro)) .content-stage > .section:nth-of-type(even),
body.theme-studio:not(:has(.mds-intro)) .content-stage > .section-tight:nth-of-type(even) {
  background: #eaf1fb;
}

body.theme-studio:not(:has(.mds-intro)) .content-stage > .section:nth-of-type(3n),
body.theme-studio:not(:has(.mds-intro)) .content-stage > .section-tight:nth-of-type(3n) {
  background: #f4f7fb;
}

body.theme-studio .panel {
  border-radius: 12px;
  border-color: rgba(32, 70, 120, 0.1);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

body.theme-studio .panel-interactive:hover {
  border-color: rgba(47, 111, 237, 0.35);
  transform: translateY(-4px);
}

